1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 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## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199 200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 204 PATH=/empty FPATH=/empty; export PATH FPATH 205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 207test \$(( 1 + 1 )) = 2 || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210else 211 as_have_required=no 212fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217as_found=false 218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in #( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233fi 234fi 235 done;; 236 esac 237 as_found=false 238done 239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242fi; } 243IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249# neutralization value for shells without unset; and this also 250# works around shells that cannot unset nonexistent variables. 251# Preserve -v and -x to the replacement shell. 252BASH_ENV=/dev/null 253ENV=/dev/null 254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260esac 261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262# Admittedly, this is quite paranoid, since all the known shells bail 263# out after a failed `exec'. 264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265exit 255 266fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 276$0: including any error possibly output before this 277$0: message. Then install a modern shell, or manually run 278$0: the script under such a shell if you do have one." 279 fi 280 exit 1 281fi 282fi 283fi 284SHELL=${CONFIG_SHELL-/bin/sh} 285export SHELL 286# Unset more variables known to interfere with behavior of common tools. 287CLICOLOR_FORCE= GREP_OPTIONS= 288unset CLICOLOR_FORCE GREP_OPTIONS 289 290## --------------------- ## 291## M4sh Shell Functions. ## 292## --------------------- ## 293# as_fn_unset VAR 294# --------------- 295# Portably unset VAR. 296as_fn_unset () 297{ 298 { eval $1=; unset $1;} 299} 300as_unset=as_fn_unset 301 302# as_fn_set_status STATUS 303# ----------------------- 304# Set $? to STATUS, without forking. 305as_fn_set_status () 306{ 307 return $1 308} # as_fn_set_status 309 310# as_fn_exit STATUS 311# ----------------- 312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 313as_fn_exit () 314{ 315 set +e 316 as_fn_set_status $1 317 exit $1 318} # as_fn_exit 319 320# as_fn_mkdir_p 321# ------------- 322# Create "$as_dir" as a directory, including parents if necessary. 323as_fn_mkdir_p () 324{ 325 326 case $as_dir in #( 327 -*) as_dir=./$as_dir;; 328 esac 329 test -d "$as_dir" || eval $as_mkdir_p || { 330 as_dirs= 331 while :; do 332 case $as_dir in #( 333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 334 *) as_qdir=$as_dir;; 335 esac 336 as_dirs="'$as_qdir' $as_dirs" 337 as_dir=`$as_dirname -- "$as_dir" || 338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 339 X"$as_dir" : 'X\(//\)[^/]' \| \ 340 X"$as_dir" : 'X\(//\)$' \| \ 341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 342$as_echo X"$as_dir" | 343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)[^/].*/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)$/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\).*/{ 356 s//\1/ 357 q 358 } 359 s/.*/./; q'` 360 test -d "$as_dir" && break 361 done 362 test -z "$as_dirs" || eval "mkdir $as_dirs" 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 364 365 366} # as_fn_mkdir_p 367 368# as_fn_executable_p FILE 369# ----------------------- 370# Test if FILE is an executable regular file. 371as_fn_executable_p () 372{ 373 test -f "$1" && test -x "$1" 374} # as_fn_executable_p 375# as_fn_append VAR VALUE 376# ---------------------- 377# Append the text in VALUE to the end of the definition contained in VAR. Take 378# advantage of any shell optimizations that allow amortized linear growth over 379# repeated appends, instead of the typical quadratic growth present in naive 380# implementations. 381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 382 eval 'as_fn_append () 383 { 384 eval $1+=\$2 385 }' 386else 387 as_fn_append () 388 { 389 eval $1=\$$1\$2 390 } 391fi # as_fn_append 392 393# as_fn_arith ARG... 394# ------------------ 395# Perform arithmetic evaluation on the ARGs, and store the result in the 396# global $as_val. Take advantage of shells that can avoid forks. The arguments 397# must be portable across $(()) and expr. 398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 399 eval 'as_fn_arith () 400 { 401 as_val=$(( $* )) 402 }' 403else 404 as_fn_arith () 405 { 406 as_val=`expr "$@" || test $? -eq 1` 407 } 408fi # as_fn_arith 409 410 411# as_fn_error STATUS ERROR [LINENO LOG_FD] 412# ---------------------------------------- 413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 415# script with STATUS, using 1 if that was 0. 416as_fn_error () 417{ 418 as_status=$1; test $as_status -eq 0 && as_status=1 419 if test "$4"; then 420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 422 fi 423 $as_echo "$as_me: error: $2" >&2 424 as_fn_exit $as_status 425} # as_fn_error 426 427if expr a : '\(a\)' >/dev/null 2>&1 && 428 test "X`expr 00001 : '.*\(...\)'`" = X001; then 429 as_expr=expr 430else 431 as_expr=false 432fi 433 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 435 as_basename=basename 436else 437 as_basename=false 438fi 439 440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 441 as_dirname=dirname 442else 443 as_dirname=false 444fi 445 446as_me=`$as_basename -- "$0" || 447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 448 X"$0" : 'X\(//\)$' \| \ 449 X"$0" : 'X\(/\)' \| . 2>/dev/null || 450$as_echo X/"$0" | 451 sed '/^.*\/\([^/][^/]*\)\/*$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\/\)$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\).*/{ 460 s//\1/ 461 q 462 } 463 s/.*/./; q'` 464 465# Avoid depending upon Character Ranges. 466as_cr_letters='abcdefghijklmnopqrstuvwxyz' 467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 468as_cr_Letters=$as_cr_letters$as_cr_LETTERS 469as_cr_digits='0123456789' 470as_cr_alnum=$as_cr_Letters$as_cr_digits 471 472 473 as_lineno_1=$LINENO as_lineno_1a=$LINENO 474 as_lineno_2=$LINENO as_lineno_2a=$LINENO 475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 478 sed -n ' 479 p 480 /[$]LINENO/= 481 ' <$as_myself | 482 sed ' 483 s/[$]LINENO.*/&-/ 484 t lineno 485 b 486 :lineno 487 N 488 :loop 489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 490 t loop 491 s/-\n.*// 492 ' >$as_me.lineno && 493 chmod +x "$as_me.lineno" || 494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 495 496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 497 # already done that, so ensure we don't try to do so again and fall 498 # in an infinite loop. This has already happened in practice. 499 _as_can_reexec=no; export _as_can_reexec 500 # Don't try to exec as it changes $[0], causing all sort of problems 501 # (the dirname of $[0] is not the place where we might find the 502 # original and so on. Autoconf is especially sensitive to this). 503 . "./$as_me.lineno" 504 # Exit status is that of the last command. 505 exit 506} 507 508ECHO_C= ECHO_N= ECHO_T= 509case `echo -n x` in #((((( 510-n*) 511 case `echo 'xy\c'` in 512 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 513 xy) ECHO_C='\c';; 514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 515 ECHO_T=' ';; 516 esac;; 517*) 518 ECHO_N='-n';; 519esac 520 521rm -f conf$$ conf$$.exe conf$$.file 522if test -d conf$$.dir; then 523 rm -f conf$$.dir/conf$$.file 524else 525 rm -f conf$$.dir 526 mkdir conf$$.dir 2>/dev/null 527fi 528if (echo >conf$$.file) 2>/dev/null; then 529 if ln -s conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s='ln -s' 531 # ... but there are two gotchas: 532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 534 # In both cases, we have to default to `cp -pR'. 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 536 as_ln_s='cp -pR' 537 elif ln conf$$.file conf$$ 2>/dev/null; then 538 as_ln_s=ln 539 else 540 as_ln_s='cp -pR' 541 fi 542else 543 as_ln_s='cp -pR' 544fi 545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 546rmdir conf$$.dir 2>/dev/null 547 548if mkdir -p . 2>/dev/null; then 549 as_mkdir_p='mkdir -p "$as_dir"' 550else 551 test -d ./-p && rmdir ./-p 552 as_mkdir_p=false 553fi 554 555as_test_x='test -x' 556as_executable_p=as_fn_executable_p 557 558# Sed expression to map a string onto a valid CPP name. 559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 560 561# Sed expression to map a string onto a valid variable name. 562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 563 564SHELL=${CONFIG_SHELL-/bin/sh} 565 566 567test -n "$DJDIR" || exec 7<&0 </dev/null 568exec 6>&1 569 570# Name of the host. 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 572# so uname gets run too. 573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 574 575# 576# Initializations. 577# 578ac_default_prefix=/usr/local 579ac_clean_files= 580ac_config_libobj_dir=. 581LIBOBJS= 582cross_compiling=no 583subdirs= 584MFLAGS= 585MAKEFLAGS= 586 587# Identity of this package. 588PACKAGE_NAME= 589PACKAGE_TARNAME= 590PACKAGE_VERSION= 591PACKAGE_STRING= 592PACKAGE_BUGREPORT= 593PACKAGE_URL= 594 595ac_unique_file="README.txt" 596# Factoring default headers for most tests. 597ac_includes_default="\ 598#include <stdio.h> 599#ifdef HAVE_SYS_TYPES_H 600# include <sys/types.h> 601#endif 602#ifdef HAVE_SYS_STAT_H 603# include <sys/stat.h> 604#endif 605#ifdef STDC_HEADERS 606# include <stdlib.h> 607# include <stddef.h> 608#else 609# ifdef HAVE_STDLIB_H 610# include <stdlib.h> 611# endif 612#endif 613#ifdef HAVE_STRING_H 614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 615# include <memory.h> 616# endif 617# include <string.h> 618#endif 619#ifdef HAVE_STRINGS_H 620# include <strings.h> 621#endif 622#ifdef HAVE_INTTYPES_H 623# include <inttypes.h> 624#endif 625#ifdef HAVE_STDINT_H 626# include <stdint.h> 627#endif 628#ifdef HAVE_UNISTD_H 629# include <unistd.h> 630#endif" 631 632ac_subst_vars='LTLIBOBJS 633WAYLAND_SCANNER 634EXTRA_LDFLAGS 635BUILD_LDFLAGS 636EXTRA_CFLAGS 637BUILD_CFLAGS 638SDLTEST_OBJECTS 639SDLMAIN_OBJECTS 640VERSION_OBJECTS 641GEN_OBJECTS 642GEN_HEADERS 643OBJECTS 644INCLUDE 645ac_aux_dir 646ENABLE_STATIC_FALSE 647ENABLE_STATIC_TRUE 648ENABLE_SHARED_FALSE 649ENABLE_SHARED_TRUE 650SDL_RLD_FLAGS 651SDL_STATIC_LIBS 652SDL_LIBS 653SDL_CFLAGS 654DIRECTFBCONFIG 655X_EXTRA_LIBS 656X_LIBS 657X_PRE_LIBS 658X_CFLAGS 659XMKMF 660ARTSCONFIG 661PKG_CONFIG 662ESD_LIBS 663ESD_CFLAGS 664ESD_CONFIG 665ALSA_LIBS 666ALSA_CFLAGS 667POW_LIB 668LIBOBJS 669ALLOCA 670WINDRES 671SET_MAKE 672INSTALL_DATA 673INSTALL_SCRIPT 674INSTALL_PROGRAM 675CXXCPP 676ac_ct_CXX 677CXXFLAGS 678CXX 679LT_AGE 680LT_REVISION 681LT_CURRENT 682LT_RELEASE 683CPP 684OTOOL64 685OTOOL 686LIPO 687NMEDIT 688DSYMUTIL 689MANIFEST_TOOL 690AWK 691RANLIB 692STRIP 693ac_ct_AR 694AR 695LN_S 696NM 697ac_ct_DUMPBIN 698DUMPBIN 699LD 700FGREP 701EGREP 702GREP 703SED 704OBJEXT 705EXEEXT 706ac_ct_CC 707CPPFLAGS 708LDFLAGS 709CFLAGS 710CC 711host_os 712host_vendor 713host_cpu 714host 715build_os 716build_vendor 717build_cpu 718build 719LIBTOOL 720OBJDUMP 721DLLTOOL 722AS 723SDL_VERSION 724SDL_BINARY_AGE 725SDL_INTERFACE_AGE 726SDL_MICRO_VERSION 727SDL_MINOR_VERSION 728SDL_MAJOR_VERSION 729target_alias 730host_alias 731build_alias 732LIBS 733ECHO_T 734ECHO_N 735ECHO_C 736DEFS 737mandir 738localedir 739libdir 740psdir 741pdfdir 742dvidir 743htmldir 744infodir 745docdir 746oldincludedir 747includedir 748localstatedir 749sharedstatedir 750sysconfdir 751datadir 752datarootdir 753libexecdir 754sbindir 755bindir 756program_transform_name 757prefix 758exec_prefix 759PACKAGE_URL 760PACKAGE_BUGREPORT 761PACKAGE_STRING 762PACKAGE_VERSION 763PACKAGE_TARNAME 764PACKAGE_NAME 765PATH_SEPARATOR 766SHELL' 767ac_subst_files='' 768ac_user_opts=' 769enable_option_checking 770enable_shared 771enable_static 772with_pic 773enable_fast_install 774with_gnu_ld 775with_sysroot 776enable_libtool_lock 777enable_assertions 778enable_dependency_tracking 779enable_libc 780enable_gcc_atomics 781enable_atomic 782enable_audio 783enable_video 784enable_render 785enable_events 786enable_joystick 787enable_haptic 788enable_power 789enable_filesystem 790enable_threads 791enable_timers 792enable_file 793enable_loadso 794enable_cpuinfo 795enable_assembly 796enable_ssemath 797enable_mmx 798enable_3dnow 799enable_sse 800enable_sse2 801enable_altivec 802enable_oss 803enable_alsa 804with_alsa_prefix 805with_alsa_inc_prefix 806enable_alsatest 807enable_alsa_shared 808enable_esd 809with_esd_prefix 810with_esd_exec_prefix 811enable_esdtest 812enable_esd_shared 813enable_pulseaudio 814enable_pulseaudio_shared 815enable_arts 816enable_arts_shared 817enable_nas 818enable_nas_shared 819enable_sndio 820enable_sndio_shared 821enable_diskaudio 822enable_dummyaudio 823enable_video_wayland 824enable_video_wayland_qt_touch 825enable_wayland_shared 826enable_video_mir 827enable_mir_shared 828enable_video_x11 829with_x 830enable_x11_shared 831enable_video_x11_xcursor 832enable_video_x11_xdbe 833enable_video_x11_xinerama 834enable_video_x11_xinput 835enable_video_x11_xrandr 836enable_video_x11_scrnsaver 837enable_video_x11_xshape 838enable_video_x11_vm 839enable_video_vivante 840enable_video_cocoa 841enable_video_directfb 842enable_directfb_shared 843enable_fusionsound 844enable_fusionsound_shared 845enable_video_dummy 846enable_video_opengl 847enable_video_opengles 848enable_video_opengles1 849enable_video_opengles2 850enable_libudev 851enable_dbus 852enable_ime 853enable_ibus 854enable_fcitx 855enable_input_tslib 856enable_pthreads 857enable_pthread_sem 858enable_directx 859enable_sdl_dlopen 860enable_clock_gettime 861enable_rpath 862enable_render_d3d 863' 864 ac_precious_vars='build_alias 865host_alias 866target_alias 867CC 868CFLAGS 869LDFLAGS 870LIBS 871CPPFLAGS 872CPP 873CXX 874CXXFLAGS 875CCC 876CXXCPP 877XMKMF' 878 879 880# Initialize some variables set by options. 881ac_init_help= 882ac_init_version=false 883ac_unrecognized_opts= 884ac_unrecognized_sep= 885# The variables have the same names as the options, with 886# dashes changed to underlines. 887cache_file=/dev/null 888exec_prefix=NONE 889no_create= 890no_recursion= 891prefix=NONE 892program_prefix=NONE 893program_suffix=NONE 894program_transform_name=s,x,x, 895silent= 896site= 897srcdir= 898verbose= 899x_includes=NONE 900x_libraries=NONE 901 902# Installation directory options. 903# These are left unexpanded so users can "make install exec_prefix=/foo" 904# and all the variables that are supposed to be based on exec_prefix 905# by default will actually change. 906# Use braces instead of parens because sh, perl, etc. also accept them. 907# (The list follows the same order as the GNU Coding Standards.) 908bindir='${exec_prefix}/bin' 909sbindir='${exec_prefix}/sbin' 910libexecdir='${exec_prefix}/libexec' 911datarootdir='${prefix}/share' 912datadir='${datarootdir}' 913sysconfdir='${prefix}/etc' 914sharedstatedir='${prefix}/com' 915localstatedir='${prefix}/var' 916includedir='${prefix}/include' 917oldincludedir='/usr/include' 918docdir='${datarootdir}/doc/${PACKAGE}' 919infodir='${datarootdir}/info' 920htmldir='${docdir}' 921dvidir='${docdir}' 922pdfdir='${docdir}' 923psdir='${docdir}' 924libdir='${exec_prefix}/lib' 925localedir='${datarootdir}/locale' 926mandir='${datarootdir}/man' 927 928ac_prev= 929ac_dashdash= 930for ac_option 931do 932 # If the previous option needs an argument, assign it. 933 if test -n "$ac_prev"; then 934 eval $ac_prev=\$ac_option 935 ac_prev= 936 continue 937 fi 938 939 case $ac_option in 940 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 941 *=) ac_optarg= ;; 942 *) ac_optarg=yes ;; 943 esac 944 945 # Accept the important Cygnus configure options, so we can diagnose typos. 946 947 case $ac_dashdash$ac_option in 948 --) 949 ac_dashdash=yes ;; 950 951 -bindir | --bindir | --bindi | --bind | --bin | --bi) 952 ac_prev=bindir ;; 953 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 954 bindir=$ac_optarg ;; 955 956 -build | --build | --buil | --bui | --bu) 957 ac_prev=build_alias ;; 958 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 959 build_alias=$ac_optarg ;; 960 961 -cache-file | --cache-file | --cache-fil | --cache-fi \ 962 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 963 ac_prev=cache_file ;; 964 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 965 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 966 cache_file=$ac_optarg ;; 967 968 --config-cache | -C) 969 cache_file=config.cache ;; 970 971 -datadir | --datadir | --datadi | --datad) 972 ac_prev=datadir ;; 973 -datadir=* | --datadir=* | --datadi=* | --datad=*) 974 datadir=$ac_optarg ;; 975 976 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 977 | --dataroo | --dataro | --datar) 978 ac_prev=datarootdir ;; 979 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 980 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 981 datarootdir=$ac_optarg ;; 982 983 -disable-* | --disable-*) 984 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 985 # Reject names that are not valid shell variable names. 986 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 987 as_fn_error $? "invalid feature name: $ac_useropt" 988 ac_useropt_orig=$ac_useropt 989 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 990 case $ac_user_opts in 991 *" 992"enable_$ac_useropt" 993"*) ;; 994 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 995 ac_unrecognized_sep=', ';; 996 esac 997 eval enable_$ac_useropt=no ;; 998 999 -docdir | --docdir | --docdi | --doc | --do) 1000 ac_prev=docdir ;; 1001 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1002 docdir=$ac_optarg ;; 1003 1004 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1005 ac_prev=dvidir ;; 1006 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1007 dvidir=$ac_optarg ;; 1008 1009 -enable-* | --enable-*) 1010 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1011 # Reject names that are not valid shell variable names. 1012 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1013 as_fn_error $? "invalid feature name: $ac_useropt" 1014 ac_useropt_orig=$ac_useropt 1015 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1016 case $ac_user_opts in 1017 *" 1018"enable_$ac_useropt" 1019"*) ;; 1020 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1021 ac_unrecognized_sep=', ';; 1022 esac 1023 eval enable_$ac_useropt=\$ac_optarg ;; 1024 1025 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1026 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1027 | --exec | --exe | --ex) 1028 ac_prev=exec_prefix ;; 1029 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1030 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1031 | --exec=* | --exe=* | --ex=*) 1032 exec_prefix=$ac_optarg ;; 1033 1034 -gas | --gas | --ga | --g) 1035 # Obsolete; use --with-gas. 1036 with_gas=yes ;; 1037 1038 -help | --help | --hel | --he | -h) 1039 ac_init_help=long ;; 1040 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1041 ac_init_help=recursive ;; 1042 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1043 ac_init_help=short ;; 1044 1045 -host | --host | --hos | --ho) 1046 ac_prev=host_alias ;; 1047 -host=* | --host=* | --hos=* | --ho=*) 1048 host_alias=$ac_optarg ;; 1049 1050 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1051 ac_prev=htmldir ;; 1052 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1053 | --ht=*) 1054 htmldir=$ac_optarg ;; 1055 1056 -includedir | --includedir | --includedi | --included | --include \ 1057 | --includ | --inclu | --incl | --inc) 1058 ac_prev=includedir ;; 1059 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1060 | --includ=* | --inclu=* | --incl=* | --inc=*) 1061 includedir=$ac_optarg ;; 1062 1063 -infodir | --infodir | --infodi | --infod | --info | --inf) 1064 ac_prev=infodir ;; 1065 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1066 infodir=$ac_optarg ;; 1067 1068 -libdir | --libdir | --libdi | --libd) 1069 ac_prev=libdir ;; 1070 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1071 libdir=$ac_optarg ;; 1072 1073 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1074 | --libexe | --libex | --libe) 1075 ac_prev=libexecdir ;; 1076 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1077 | --libexe=* | --libex=* | --libe=*) 1078 libexecdir=$ac_optarg ;; 1079 1080 -localedir | --localedir | --localedi | --localed | --locale) 1081 ac_prev=localedir ;; 1082 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1083 localedir=$ac_optarg ;; 1084 1085 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1086 | --localstate | --localstat | --localsta | --localst | --locals) 1087 ac_prev=localstatedir ;; 1088 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1089 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1090 localstatedir=$ac_optarg ;; 1091 1092 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1093 ac_prev=mandir ;; 1094 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1095 mandir=$ac_optarg ;; 1096 1097 -nfp | --nfp | --nf) 1098 # Obsolete; use --without-fp. 1099 with_fp=no ;; 1100 1101 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1102 | --no-cr | --no-c | -n) 1103 no_create=yes ;; 1104 1105 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1106 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1107 no_recursion=yes ;; 1108 1109 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1110 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1111 | --oldin | --oldi | --old | --ol | --o) 1112 ac_prev=oldincludedir ;; 1113 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1114 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1115 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1116 oldincludedir=$ac_optarg ;; 1117 1118 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1119 ac_prev=prefix ;; 1120 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1121 prefix=$ac_optarg ;; 1122 1123 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1124 | --program-pre | --program-pr | --program-p) 1125 ac_prev=program_prefix ;; 1126 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1127 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1128 program_prefix=$ac_optarg ;; 1129 1130 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1131 | --program-suf | --program-su | --program-s) 1132 ac_prev=program_suffix ;; 1133 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1134 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1135 program_suffix=$ac_optarg ;; 1136 1137 -program-transform-name | --program-transform-name \ 1138 | --program-transform-nam | --program-transform-na \ 1139 | --program-transform-n | --program-transform- \ 1140 | --program-transform | --program-transfor \ 1141 | --program-transfo | --program-transf \ 1142 | --program-trans | --program-tran \ 1143 | --progr-tra | --program-tr | --program-t) 1144 ac_prev=program_transform_name ;; 1145 -program-transform-name=* | --program-transform-name=* \ 1146 | --program-transform-nam=* | --program-transform-na=* \ 1147 | --program-transform-n=* | --program-transform-=* \ 1148 | --program-transform=* | --program-transfor=* \ 1149 | --program-transfo=* | --program-transf=* \ 1150 | --program-trans=* | --program-tran=* \ 1151 | --progr-tra=* | --program-tr=* | --program-t=*) 1152 program_transform_name=$ac_optarg ;; 1153 1154 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1155 ac_prev=pdfdir ;; 1156 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1157 pdfdir=$ac_optarg ;; 1158 1159 -psdir | --psdir | --psdi | --psd | --ps) 1160 ac_prev=psdir ;; 1161 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1162 psdir=$ac_optarg ;; 1163 1164 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1165 | -silent | --silent | --silen | --sile | --sil) 1166 silent=yes ;; 1167 1168 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1169 ac_prev=sbindir ;; 1170 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1171 | --sbi=* | --sb=*) 1172 sbindir=$ac_optarg ;; 1173 1174 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1175 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1176 | --sharedst | --shareds | --shared | --share | --shar \ 1177 | --sha | --sh) 1178 ac_prev=sharedstatedir ;; 1179 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1180 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1181 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1182 | --sha=* | --sh=*) 1183 sharedstatedir=$ac_optarg ;; 1184 1185 -site | --site | --sit) 1186 ac_prev=site ;; 1187 -site=* | --site=* | --sit=*) 1188 site=$ac_optarg ;; 1189 1190 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1191 ac_prev=srcdir ;; 1192 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1193 srcdir=$ac_optarg ;; 1194 1195 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1196 | --syscon | --sysco | --sysc | --sys | --sy) 1197 ac_prev=sysconfdir ;; 1198 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1199 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1200 sysconfdir=$ac_optarg ;; 1201 1202 -target | --target | --targe | --targ | --tar | --ta | --t) 1203 ac_prev=target_alias ;; 1204 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1205 target_alias=$ac_optarg ;; 1206 1207 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1208 verbose=yes ;; 1209 1210 -version | --version | --versio | --versi | --vers | -V) 1211 ac_init_version=: ;; 1212 1213 -with-* | --with-*) 1214 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1215 # Reject names that are not valid shell variable names. 1216 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1217 as_fn_error $? "invalid package name: $ac_useropt" 1218 ac_useropt_orig=$ac_useropt 1219 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1220 case $ac_user_opts in 1221 *" 1222"with_$ac_useropt" 1223"*) ;; 1224 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1225 ac_unrecognized_sep=', ';; 1226 esac 1227 eval with_$ac_useropt=\$ac_optarg ;; 1228 1229 -without-* | --without-*) 1230 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1231 # Reject names that are not valid shell variable names. 1232 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1233 as_fn_error $? "invalid package name: $ac_useropt" 1234 ac_useropt_orig=$ac_useropt 1235 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1236 case $ac_user_opts in 1237 *" 1238"with_$ac_useropt" 1239"*) ;; 1240 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1241 ac_unrecognized_sep=', ';; 1242 esac 1243 eval with_$ac_useropt=no ;; 1244 1245 --x) 1246 # Obsolete; use --with-x. 1247 with_x=yes ;; 1248 1249 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1250 | --x-incl | --x-inc | --x-in | --x-i) 1251 ac_prev=x_includes ;; 1252 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1253 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1254 x_includes=$ac_optarg ;; 1255 1256 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1257 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1258 ac_prev=x_libraries ;; 1259 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1260 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1261 x_libraries=$ac_optarg ;; 1262 1263 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1264Try \`$0 --help' for more information" 1265 ;; 1266 1267 *=*) 1268 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1269 # Reject names that are not valid shell variable names. 1270 case $ac_envvar in #( 1271 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1272 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1273 esac 1274 eval $ac_envvar=\$ac_optarg 1275 export $ac_envvar ;; 1276 1277 *) 1278 # FIXME: should be removed in autoconf 3.0. 1279 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1280 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1281 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1282 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1283 ;; 1284 1285 esac 1286done 1287 1288if test -n "$ac_prev"; then 1289 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1290 as_fn_error $? "missing argument to $ac_option" 1291fi 1292 1293if test -n "$ac_unrecognized_opts"; then 1294 case $enable_option_checking in 1295 no) ;; 1296 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1297 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1298 esac 1299fi 1300 1301# Check all directory arguments for consistency. 1302for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1303 datadir sysconfdir sharedstatedir localstatedir includedir \ 1304 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1305 libdir localedir mandir 1306do 1307 eval ac_val=\$$ac_var 1308 # Remove trailing slashes. 1309 case $ac_val in 1310 */ ) 1311 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1312 eval $ac_var=\$ac_val;; 1313 esac 1314 # Be sure to have absolute directory names. 1315 case $ac_val in 1316 [\\/$]* | ?:[\\/]* ) continue;; 1317 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1318 esac 1319 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1320done 1321 1322# There might be people who depend on the old broken behavior: `$host' 1323# used to hold the argument of --host etc. 1324# FIXME: To remove some day. 1325build=$build_alias 1326host=$host_alias 1327target=$target_alias 1328 1329# FIXME: To remove some day. 1330if test "x$host_alias" != x; then 1331 if test "x$build_alias" = x; then 1332 cross_compiling=maybe 1333 elif test "x$build_alias" != "x$host_alias"; then 1334 cross_compiling=yes 1335 fi 1336fi 1337 1338ac_tool_prefix= 1339test -n "$host_alias" && ac_tool_prefix=$host_alias- 1340 1341test "$silent" = yes && exec 6>/dev/null 1342 1343 1344ac_pwd=`pwd` && test -n "$ac_pwd" && 1345ac_ls_di=`ls -di .` && 1346ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1347 as_fn_error $? "working directory cannot be determined" 1348test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1349 as_fn_error $? "pwd does not report name of working directory" 1350 1351 1352# Find the source files, if location was not specified. 1353if test -z "$srcdir"; then 1354 ac_srcdir_defaulted=yes 1355 # Try the directory containing this script, then the parent directory. 1356 ac_confdir=`$as_dirname -- "$as_myself" || 1357$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1358 X"$as_myself" : 'X\(//\)[^/]' \| \ 1359 X"$as_myself" : 'X\(//\)$' \| \ 1360 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1361$as_echo X"$as_myself" | 1362 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1363 s//\1/ 1364 q 1365 } 1366 /^X\(\/\/\)[^/].*/{ 1367 s//\1/ 1368 q 1369 } 1370 /^X\(\/\/\)$/{ 1371 s//\1/ 1372 q 1373 } 1374 /^X\(\/\).*/{ 1375 s//\1/ 1376 q 1377 } 1378 s/.*/./; q'` 1379 srcdir=$ac_confdir 1380 if test ! -r "$srcdir/$ac_unique_file"; then 1381 srcdir=.. 1382 fi 1383else 1384 ac_srcdir_defaulted=no 1385fi 1386if test ! -r "$srcdir/$ac_unique_file"; then 1387 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1388 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1389fi 1390ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1391ac_abs_confdir=`( 1392 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1393 pwd)` 1394# When building in place, set srcdir=. 1395if test "$ac_abs_confdir" = "$ac_pwd"; then 1396 srcdir=. 1397fi 1398# Remove unnecessary trailing slashes from srcdir. 1399# Double slashes in file names in object file debugging info 1400# mess up M-x gdb in Emacs. 1401case $srcdir in 1402*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1403esac 1404for ac_var in $ac_precious_vars; do 1405 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1406 eval ac_env_${ac_var}_value=\$${ac_var} 1407 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1408 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1409done 1410 1411# 1412# Report the --help message. 1413# 1414if test "$ac_init_help" = "long"; then 1415 # Omit some internal or obsolete options to make the list less imposing. 1416 # This message is too long to be a string in the A/UX 3.1 sh. 1417 cat <<_ACEOF 1418\`configure' configures this package to adapt to many kinds of systems. 1419 1420Usage: $0 [OPTION]... [VAR=VALUE]... 1421 1422To assign environment variables (e.g., CC, CFLAGS...), specify them as 1423VAR=VALUE. See below for descriptions of some of the useful variables. 1424 1425Defaults for the options are specified in brackets. 1426 1427Configuration: 1428 -h, --help display this help and exit 1429 --help=short display options specific to this package 1430 --help=recursive display the short help of all the included packages 1431 -V, --version display version information and exit 1432 -q, --quiet, --silent do not print \`checking ...' messages 1433 --cache-file=FILE cache test results in FILE [disabled] 1434 -C, --config-cache alias for \`--cache-file=config.cache' 1435 -n, --no-create do not create output files 1436 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1437 1438Installation directories: 1439 --prefix=PREFIX install architecture-independent files in PREFIX 1440 [$ac_default_prefix] 1441 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1442 [PREFIX] 1443 1444By default, \`make install' will install all the files in 1445\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1446an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1447for instance \`--prefix=\$HOME'. 1448 1449For better control, use the options below. 1450 1451Fine tuning of the installation directories: 1452 --bindir=DIR user executables [EPREFIX/bin] 1453 --sbindir=DIR system admin executables [EPREFIX/sbin] 1454 --libexecdir=DIR program executables [EPREFIX/libexec] 1455 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1456 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1457 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1458 --libdir=DIR object code libraries [EPREFIX/lib] 1459 --includedir=DIR C header files [PREFIX/include] 1460 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1461 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1462 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1463 --infodir=DIR info documentation [DATAROOTDIR/info] 1464 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1465 --mandir=DIR man documentation [DATAROOTDIR/man] 1466 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1467 --htmldir=DIR html documentation [DOCDIR] 1468 --dvidir=DIR dvi documentation [DOCDIR] 1469 --pdfdir=DIR pdf documentation [DOCDIR] 1470 --psdir=DIR ps documentation [DOCDIR] 1471_ACEOF 1472 1473 cat <<\_ACEOF 1474 1475X features: 1476 --x-includes=DIR X include files are in DIR 1477 --x-libraries=DIR X library files are in DIR 1478 1479System types: 1480 --build=BUILD configure for building on BUILD [guessed] 1481 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1482_ACEOF 1483fi 1484 1485if test -n "$ac_init_help"; then 1486 1487 cat <<\_ACEOF 1488 1489Optional Features: 1490 --disable-option-checking ignore unrecognized --enable/--with options 1491 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1492 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1493 --enable-shared[=PKGS] build shared libraries [default=yes] 1494 --enable-static[=PKGS] build static libraries [default=yes] 1495 --enable-fast-install[=PKGS] 1496 optimize for fast installation [default=yes] 1497 --disable-libtool-lock avoid locking (might break parallel builds) 1498 --enable-assertions Enable internal sanity checks 1499 (auto/disabled/release/enabled/paranoid) 1500 [[default=auto]] 1501 --enable-dependency-tracking 1502 Use gcc -MMD -MT dependency tracking [[default=yes]] 1503 --enable-libc Use the system C library [[default=yes]] 1504 --enable-gcc-atomics Use gcc builtin atomics [[default=yes]] 1505 --enable-atomic Enable the atomic operations subsystem 1506 [[default=yes]] 1507 --enable-audio Enable the audio subsystem [[default=yes]] 1508 --enable-video Enable the video subsystem [[default=yes]] 1509 --enable-render Enable the render subsystem [[default=yes]] 1510 --enable-events Enable the events subsystem [[default=yes]] 1511 --enable-joystick Enable the joystick subsystem [[default=yes]] 1512 --enable-haptic Enable the haptic (force feedback) subsystem 1513 [[default=yes]] 1514 --enable-power Enable the power subsystem [[default=yes]] 1515 --enable-filesystem Enable the filesystem subsystem [[default=yes]] 1516 --enable-threads Enable the threading subsystem [[default=yes]] 1517 --enable-timers Enable the timer subsystem [[default=yes]] 1518 --enable-file Enable the file subsystem [[default=yes]] 1519 --enable-loadso Enable the shared object loading subsystem 1520 [[default=yes]] 1521 --enable-cpuinfo Enable the cpuinfo subsystem [[default=yes]] 1522 --enable-assembly Enable assembly routines [[default=yes]] 1523 --enable-ssemath Allow GCC to use SSE floating point math 1524 [[default=no]] 1525 --enable-mmx use MMX assembly routines [[default=yes]] 1526 --enable-3dnow use 3DNow! assembly routines [[default=yes]] 1527 --enable-sse use SSE assembly routines [[default=yes]] 1528 --enable-sse2 use SSE2 assembly routines [[default=no]] 1529 --enable-altivec use Altivec assembly routines [[default=yes]] 1530 --enable-oss support the OSS audio API [[default=maybe]] 1531 --enable-alsa support the ALSA audio API [[default=yes]] 1532 --disable-alsatest Do not try to compile and run a test Alsa program 1533 --enable-alsa-shared dynamically load ALSA audio support [[default=yes]] 1534 --enable-esd support the Enlightened Sound Daemon [[default=yes]] 1535 --disable-esdtest Do not try to compile and run a test ESD program 1536 --enable-esd-shared dynamically load ESD audio support [[default=yes]] 1537 --enable-pulseaudio use PulseAudio [[default=yes]] 1538 --enable-pulseaudio-shared 1539 dynamically load PulseAudio support [[default=yes]] 1540 --enable-arts support the Analog Real Time Synthesizer 1541 [[default=yes]] 1542 --enable-arts-shared dynamically load aRts audio support [[default=yes]] 1543 --enable-nas support the NAS audio API [[default=yes]] 1544 --enable-nas-shared dynamically load NAS audio support [[default=yes]] 1545 --enable-sndio support the sndio audio API [[default=yes]] 1546 --enable-sndio-shared dynamically load sndio audio support [[default=yes]] 1547 --enable-diskaudio support the disk writer audio driver [[default=yes]] 1548 --enable-dummyaudio support the dummy audio driver [[default=yes]] 1549 --enable-video-wayland use Wayland video driver [[default=yes]] 1550 --enable-video-wayland-qt-touch 1551 QtWayland server support for Wayland video driver 1552 [[default=yes]] 1553 --enable-wayland-shared dynamically load Wayland support [[default=maybe]] 1554 --enable-video-mir use Mir video driver [[default=yes]] 1555 --enable-mir-shared dynamically load Mir support [[default=maybe]] 1556 --enable-video-x11 use X11 video driver [[default=yes]] 1557 --enable-x11-shared dynamically load X11 support [[default=maybe]] 1558 --enable-video-x11-xcursor 1559 enable X11 Xcursor support [[default=yes]] 1560 --enable-video-x11-xdbe enable X11 Xdbe support [[default=yes]] 1561 --enable-video-x11-xinerama 1562 enable X11 Xinerama support [[default=yes]] 1563 --enable-video-x11-xinput 1564 enable X11 XInput extension for manymouse, tablets, 1565 etc [[default=yes]] 1566 --enable-video-x11-xrandr 1567 enable X11 Xrandr extension for fullscreen 1568 [[default=yes]] 1569 --enable-video-x11-scrnsaver 1570 enable X11 screensaver extension [[default=yes]] 1571 --enable-video-x11-xshape 1572 enable X11 XShape support [[default=yes]] 1573 --enable-video-x11-vm use X11 VM extension for fullscreen [[default=yes]] 1574 --enable-video-vivante use Vivante EGL video driver [[default=yes]] 1575 --enable-video-cocoa use Cocoa video driver [[default=yes]] 1576 --enable-video-directfb use DirectFB video driver [[default=no]] 1577 --enable-directfb-shared 1578 dynamically load directfb support [[default=yes]] 1579 --enable-fusionsound use FusionSound audio driver [[default=no]] 1580 --enable-fusionsound-shared 1581 dynamically load fusionsound audio support 1582 [[default=yes]] 1583 --enable-video-dummy use dummy video driver [[default=yes]] 1584 --enable-video-opengl include OpenGL support [[default=yes]] 1585 --enable-video-opengles include OpenGL ES support [[default=yes]] 1586 --enable-video-opengles1 1587 include OpenGL ES 1.1 support [[default=yes]] 1588 --enable-video-opengles2 1589 include OpenGL ES 2.0 support [[default=yes]] 1590 --enable-libudev enable libudev support [[default=yes]] 1591 --enable-dbus enable D-Bus support [[default=yes]] 1592 --enable-ime enable IME support [[default=yes]] 1593 --enable-ibus enable IBus support [[default=yes]] 1594 --enable-fcitx enable fcitx support [[default=yes]] 1595 --enable-input-tslib use the Touchscreen library for input 1596 [[default=yes]] 1597 --enable-pthreads use POSIX threads for multi-threading 1598 [[default=yes]] 1599 --enable-pthread-sem use pthread semaphores [[default=yes]] 1600 --enable-directx use DirectX for Windows audio/video [[default=yes]] 1601 --enable-sdl-dlopen use dlopen for shared object loading [[default=yes]] 1602 --enable-clock_gettime use clock_gettime() instead of gettimeofday() on 1603 UNIX [[default=yes]] 1604 --enable-rpath use an rpath when linking SDL [[default=yes]] 1605 --enable-render-d3d enable the Direct3D render driver [[default=yes]] 1606 1607Optional Packages: 1608 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1609 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1610 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1611 both] 1612 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1613 --with-sysroot=DIR Search for dependent libraries within DIR 1614 (or the compiler's sysroot if not specified). 1615 --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional) 1616 --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional) 1617 --with-esd-prefix=PFX Prefix where ESD is installed (optional) 1618 --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional) 1619 --with-x use the X Window System 1620 1621Some influential environment variables: 1622 CC C compiler command 1623 CFLAGS C compiler flags 1624 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1625 nonstandard directory <lib dir> 1626 LIBS libraries to pass to the linker, e.g. -l<library> 1627 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1628 you have headers in a nonstandard directory <include dir> 1629 CPP C preprocessor 1630 CXX C++ compiler command 1631 CXXFLAGS C++ compiler flags 1632 CXXCPP C++ preprocessor 1633 XMKMF Path to xmkmf, Makefile generator for X Window System 1634 1635Use these variables to override the choices made by `configure' or to help 1636it to find libraries and programs with nonstandard names/locations. 1637 1638Report bugs to the package provider. 1639_ACEOF 1640ac_status=$? 1641fi 1642 1643if test "$ac_init_help" = "recursive"; then 1644 # If there are subdirs, report their specific --help. 1645 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1646 test -d "$ac_dir" || 1647 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1648 continue 1649 ac_builddir=. 1650 1651case "$ac_dir" in 1652.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1653*) 1654 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1655 # A ".." for each directory in $ac_dir_suffix. 1656 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1657 case $ac_top_builddir_sub in 1658 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1659 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1660 esac ;; 1661esac 1662ac_abs_top_builddir=$ac_pwd 1663ac_abs_builddir=$ac_pwd$ac_dir_suffix 1664# for backward compatibility: 1665ac_top_builddir=$ac_top_build_prefix 1666 1667case $srcdir in 1668 .) # We are building in place. 1669 ac_srcdir=. 1670 ac_top_srcdir=$ac_top_builddir_sub 1671 ac_abs_top_srcdir=$ac_pwd ;; 1672 [\\/]* | ?:[\\/]* ) # Absolute name. 1673 ac_srcdir=$srcdir$ac_dir_suffix; 1674 ac_top_srcdir=$srcdir 1675 ac_abs_top_srcdir=$srcdir ;; 1676 *) # Relative name. 1677 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1678 ac_top_srcdir=$ac_top_build_prefix$srcdir 1679 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1680esac 1681ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1682 1683 cd "$ac_dir" || { ac_status=$?; continue; } 1684 # Check for guested configure. 1685 if test -f "$ac_srcdir/configure.gnu"; then 1686 echo && 1687 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1688 elif test -f "$ac_srcdir/configure"; then 1689 echo && 1690 $SHELL "$ac_srcdir/configure" --help=recursive 1691 else 1692 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1693 fi || ac_status=$? 1694 cd "$ac_pwd" || { ac_status=$?; break; } 1695 done 1696fi 1697 1698test -n "$ac_init_help" && exit $ac_status 1699if $ac_init_version; then 1700 cat <<\_ACEOF 1701configure 1702generated by GNU Autoconf 2.69 1703 1704Copyright (C) 2012 Free Software Foundation, Inc. 1705This configure script is free software; the Free Software Foundation 1706gives unlimited permission to copy, distribute and modify it. 1707_ACEOF 1708 exit 1709fi 1710 1711## ------------------------ ## 1712## Autoconf initialization. ## 1713## ------------------------ ## 1714 1715# ac_fn_c_try_compile LINENO 1716# -------------------------- 1717# Try to compile conftest.$ac_ext, and return whether this succeeded. 1718ac_fn_c_try_compile () 1719{ 1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1721 rm -f conftest.$ac_objext 1722 if { { ac_try="$ac_compile" 1723case "(($ac_try" in 1724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1725 *) ac_try_echo=$ac_try;; 1726esac 1727eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1728$as_echo "$ac_try_echo"; } >&5 1729 (eval "$ac_compile") 2>conftest.err 1730 ac_status=$? 1731 if test -s conftest.err; then 1732 grep -v '^ *+' conftest.err >conftest.er1 1733 cat conftest.er1 >&5 1734 mv -f conftest.er1 conftest.err 1735 fi 1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1737 test $ac_status = 0; } && { 1738 test -z "$ac_c_werror_flag" || 1739 test ! -s conftest.err 1740 } && test -s conftest.$ac_objext; then : 1741 ac_retval=0 1742else 1743 $as_echo "$as_me: failed program was:" >&5 1744sed 's/^/| /' conftest.$ac_ext >&5 1745 1746 ac_retval=1 1747fi 1748 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1749 as_fn_set_status $ac_retval 1750 1751} # ac_fn_c_try_compile 1752 1753# ac_fn_c_try_link LINENO 1754# ----------------------- 1755# Try to link conftest.$ac_ext, and return whether this succeeded. 1756ac_fn_c_try_link () 1757{ 1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1759 rm -f conftest.$ac_objext conftest$ac_exeext 1760 if { { ac_try="$ac_link" 1761case "(($ac_try" in 1762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1763 *) ac_try_echo=$ac_try;; 1764esac 1765eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1766$as_echo "$ac_try_echo"; } >&5 1767 (eval "$ac_link") 2>conftest.err 1768 ac_status=$? 1769 if test -s conftest.err; then 1770 grep -v '^ *+' conftest.err >conftest.er1 1771 cat conftest.er1 >&5 1772 mv -f conftest.er1 conftest.err 1773 fi 1774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1775 test $ac_status = 0; } && { 1776 test -z "$ac_c_werror_flag" || 1777 test ! -s conftest.err 1778 } && test -s conftest$ac_exeext && { 1779 test "$cross_compiling" = yes || 1780 test -x conftest$ac_exeext 1781 }; then : 1782 ac_retval=0 1783else 1784 $as_echo "$as_me: failed program was:" >&5 1785sed 's/^/| /' conftest.$ac_ext >&5 1786 1787 ac_retval=1 1788fi 1789 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1790 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1791 # interfere with the next link command; also delete a directory that is 1792 # left behind by Apple's compiler. We do this before executing the actions. 1793 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1794 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1795 as_fn_set_status $ac_retval 1796 1797} # ac_fn_c_try_link 1798 1799# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1800# ------------------------------------------------------- 1801# Tests whether HEADER exists and can be compiled using the include files in 1802# INCLUDES, setting the cache variable VAR accordingly. 1803ac_fn_c_check_header_compile () 1804{ 1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1807$as_echo_n "checking for $2... " >&6; } 1808if eval \${$3+:} false; then : 1809 $as_echo_n "(cached) " >&6 1810else 1811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1812/* end confdefs.h. */ 1813$4 1814#include <$2> 1815_ACEOF 1816if ac_fn_c_try_compile "$LINENO"; then : 1817 eval "$3=yes" 1818else 1819 eval "$3=no" 1820fi 1821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1822fi 1823eval ac_res=\$$3 1824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1825$as_echo "$ac_res" >&6; } 1826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1827 1828} # ac_fn_c_check_header_compile 1829 1830# ac_fn_c_try_cpp LINENO 1831# ---------------------- 1832# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1833ac_fn_c_try_cpp () 1834{ 1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1836 if { { ac_try="$ac_cpp conftest.$ac_ext" 1837case "(($ac_try" in 1838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1839 *) ac_try_echo=$ac_try;; 1840esac 1841eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1842$as_echo "$ac_try_echo"; } >&5 1843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1844 ac_status=$? 1845 if test -s conftest.err; then 1846 grep -v '^ *+' conftest.err >conftest.er1 1847 cat conftest.er1 >&5 1848 mv -f conftest.er1 conftest.err 1849 fi 1850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1851 test $ac_status = 0; } > conftest.i && { 1852 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1853 test ! -s conftest.err 1854 }; then : 1855 ac_retval=0 1856else 1857 $as_echo "$as_me: failed program was:" >&5 1858sed 's/^/| /' conftest.$ac_ext >&5 1859 1860 ac_retval=1 1861fi 1862 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1863 as_fn_set_status $ac_retval 1864 1865} # ac_fn_c_try_cpp 1866 1867# ac_fn_c_try_run LINENO 1868# ---------------------- 1869# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1870# that executables *can* be run. 1871ac_fn_c_try_run () 1872{ 1873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1874 if { { ac_try="$ac_link" 1875case "(($ac_try" in 1876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1877 *) ac_try_echo=$ac_try;; 1878esac 1879eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1880$as_echo "$ac_try_echo"; } >&5 1881 (eval "$ac_link") 2>&5 1882 ac_status=$? 1883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1884 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1885 { { case "(($ac_try" in 1886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1887 *) ac_try_echo=$ac_try;; 1888esac 1889eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1890$as_echo "$ac_try_echo"; } >&5 1891 (eval "$ac_try") 2>&5 1892 ac_status=$? 1893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1894 test $ac_status = 0; }; }; then : 1895 ac_retval=0 1896else 1897 $as_echo "$as_me: program exited with status $ac_status" >&5 1898 $as_echo "$as_me: failed program was:" >&5 1899sed 's/^/| /' conftest.$ac_ext >&5 1900 1901 ac_retval=$ac_status 1902fi 1903 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1904 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1905 as_fn_set_status $ac_retval 1906 1907} # ac_fn_c_try_run 1908 1909# ac_fn_c_check_func LINENO FUNC VAR 1910# ---------------------------------- 1911# Tests whether FUNC exists, setting the cache variable VAR accordingly 1912ac_fn_c_check_func () 1913{ 1914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1916$as_echo_n "checking for $2... " >&6; } 1917if eval \${$3+:} false; then : 1918 $as_echo_n "(cached) " >&6 1919else 1920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1921/* end confdefs.h. */ 1922/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1923 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1924#define $2 innocuous_$2 1925 1926/* System header to define __stub macros and hopefully few prototypes, 1927 which can conflict with char $2 (); below. 1928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1929 <limits.h> exists even on freestanding compilers. */ 1930 1931#ifdef __STDC__ 1932# include <limits.h> 1933#else 1934# include <assert.h> 1935#endif 1936 1937#undef $2 1938 1939/* Override any GCC internal prototype to avoid an error. 1940 Use char because int might match the return type of a GCC 1941 builtin and then its argument prototype would still apply. */ 1942#ifdef __cplusplus 1943extern "C" 1944#endif 1945char $2 (); 1946/* The GNU C library defines this for functions which it implements 1947 to always fail with ENOSYS. Some functions are actually named 1948 something starting with __ and the normal name is an alias. */ 1949#if defined __stub_$2 || defined __stub___$2 1950choke me 1951#endif 1952 1953int 1954main () 1955{ 1956return $2 (); 1957 ; 1958 return 0; 1959} 1960_ACEOF 1961if ac_fn_c_try_link "$LINENO"; then : 1962 eval "$3=yes" 1963else 1964 eval "$3=no" 1965fi 1966rm -f core conftest.err conftest.$ac_objext \ 1967 conftest$ac_exeext conftest.$ac_ext 1968fi 1969eval ac_res=\$$3 1970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1971$as_echo "$ac_res" >&6; } 1972 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1973 1974} # ac_fn_c_check_func 1975 1976# ac_fn_cxx_try_compile LINENO 1977# ---------------------------- 1978# Try to compile conftest.$ac_ext, and return whether this succeeded. 1979ac_fn_cxx_try_compile () 1980{ 1981 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1982 rm -f conftest.$ac_objext 1983 if { { ac_try="$ac_compile" 1984case "(($ac_try" in 1985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1986 *) ac_try_echo=$ac_try;; 1987esac 1988eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1989$as_echo "$ac_try_echo"; } >&5 1990 (eval "$ac_compile") 2>conftest.err 1991 ac_status=$? 1992 if test -s conftest.err; then 1993 grep -v '^ *+' conftest.err >conftest.er1 1994 cat conftest.er1 >&5 1995 mv -f conftest.er1 conftest.err 1996 fi 1997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1998 test $ac_status = 0; } && { 1999 test -z "$ac_cxx_werror_flag" || 2000 test ! -s conftest.err 2001 } && test -s conftest.$ac_objext; then : 2002 ac_retval=0 2003else 2004 $as_echo "$as_me: failed program was:" >&5 2005sed 's/^/| /' conftest.$ac_ext >&5 2006 2007 ac_retval=1 2008fi 2009 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2010 as_fn_set_status $ac_retval 2011 2012} # ac_fn_cxx_try_compile 2013 2014# ac_fn_cxx_try_cpp LINENO 2015# ------------------------ 2016# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2017ac_fn_cxx_try_cpp () 2018{ 2019 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2020 if { { ac_try="$ac_cpp conftest.$ac_ext" 2021case "(($ac_try" in 2022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2023 *) ac_try_echo=$ac_try;; 2024esac 2025eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2026$as_echo "$ac_try_echo"; } >&5 2027 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2028 ac_status=$? 2029 if test -s conftest.err; then 2030 grep -v '^ *+' conftest.err >conftest.er1 2031 cat conftest.er1 >&5 2032 mv -f conftest.er1 conftest.err 2033 fi 2034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2035 test $ac_status = 0; } > conftest.i && { 2036 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2037 test ! -s conftest.err 2038 }; then : 2039 ac_retval=0 2040else 2041 $as_echo "$as_me: failed program was:" >&5 2042sed 's/^/| /' conftest.$ac_ext >&5 2043 2044 ac_retval=1 2045fi 2046 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2047 as_fn_set_status $ac_retval 2048 2049} # ac_fn_cxx_try_cpp 2050 2051# ac_fn_cxx_try_link LINENO 2052# ------------------------- 2053# Try to link conftest.$ac_ext, and return whether this succeeded. 2054ac_fn_cxx_try_link () 2055{ 2056 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2057 rm -f conftest.$ac_objext conftest$ac_exeext 2058 if { { ac_try="$ac_link" 2059case "(($ac_try" in 2060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2061 *) ac_try_echo=$ac_try;; 2062esac 2063eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2064$as_echo "$ac_try_echo"; } >&5 2065 (eval "$ac_link") 2>conftest.err 2066 ac_status=$? 2067 if test -s conftest.err; then 2068 grep -v '^ *+' conftest.err >conftest.er1 2069 cat conftest.er1 >&5 2070 mv -f conftest.er1 conftest.err 2071 fi 2072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2073 test $ac_status = 0; } && { 2074 test -z "$ac_cxx_werror_flag" || 2075 test ! -s conftest.err 2076 } && test -s conftest$ac_exeext && { 2077 test "$cross_compiling" = yes || 2078 test -x conftest$ac_exeext 2079 }; then : 2080 ac_retval=0 2081else 2082 $as_echo "$as_me: failed program was:" >&5 2083sed 's/^/| /' conftest.$ac_ext >&5 2084 2085 ac_retval=1 2086fi 2087 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2088 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2089 # interfere with the next link command; also delete a directory that is 2090 # left behind by Apple's compiler. We do this before executing the actions. 2091 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2092 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2093 as_fn_set_status $ac_retval 2094 2095} # ac_fn_cxx_try_link 2096 2097# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2098# ------------------------------------------------------- 2099# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2100# the include files in INCLUDES and setting the cache variable VAR 2101# accordingly. 2102ac_fn_c_check_header_mongrel () 2103{ 2104 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2105 if eval \${$3+:} false; then : 2106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2107$as_echo_n "checking for $2... " >&6; } 2108if eval \${$3+:} false; then : 2109 $as_echo_n "(cached) " >&6 2110fi 2111eval ac_res=\$$3 2112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2113$as_echo "$ac_res" >&6; } 2114else 2115 # Is the header compilable? 2116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2117$as_echo_n "checking $2 usability... " >&6; } 2118cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2119/* end confdefs.h. */ 2120$4 2121#include <$2> 2122_ACEOF 2123if ac_fn_c_try_compile "$LINENO"; then : 2124 ac_header_compiler=yes 2125else 2126 ac_header_compiler=no 2127fi 2128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2130$as_echo "$ac_header_compiler" >&6; } 2131 2132# Is the header present? 2133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2134$as_echo_n "checking $2 presence... " >&6; } 2135cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2136/* end confdefs.h. */ 2137#include <$2> 2138_ACEOF 2139if ac_fn_c_try_cpp "$LINENO"; then : 2140 ac_header_preproc=yes 2141else 2142 ac_header_preproc=no 2143fi 2144rm -f conftest.err conftest.i conftest.$ac_ext 2145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2146$as_echo "$ac_header_preproc" >&6; } 2147 2148# So? What about this header? 2149case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2150 yes:no: ) 2151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2152$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2154$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2155 ;; 2156 no:yes:* ) 2157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2158$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2160$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2162$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2164$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2166$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2167 ;; 2168esac 2169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2170$as_echo_n "checking for $2... " >&6; } 2171if eval \${$3+:} false; then : 2172 $as_echo_n "(cached) " >&6 2173else 2174 eval "$3=\$ac_header_compiler" 2175fi 2176eval ac_res=\$$3 2177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2178$as_echo "$ac_res" >&6; } 2179fi 2180 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2181 2182} # ac_fn_c_check_header_mongrel 2183 2184# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2185# ------------------------------------------- 2186# Tests whether TYPE exists after having included INCLUDES, setting cache 2187# variable VAR accordingly. 2188ac_fn_c_check_type () 2189{ 2190 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2192$as_echo_n "checking for $2... " >&6; } 2193if eval \${$3+:} false; then : 2194 $as_echo_n "(cached) " >&6 2195else 2196 eval "$3=no" 2197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2198/* end confdefs.h. */ 2199$4 2200int 2201main () 2202{ 2203if (sizeof ($2)) 2204 return 0; 2205 ; 2206 return 0; 2207} 2208_ACEOF 2209if ac_fn_c_try_compile "$LINENO"; then : 2210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2211/* end confdefs.h. */ 2212$4 2213int 2214main () 2215{ 2216if (sizeof (($2))) 2217 return 0; 2218 ; 2219 return 0; 2220} 2221_ACEOF 2222if ac_fn_c_try_compile "$LINENO"; then : 2223 2224else 2225 eval "$3=yes" 2226fi 2227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2228fi 2229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2230fi 2231eval ac_res=\$$3 2232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2233$as_echo "$ac_res" >&6; } 2234 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2235 2236} # ac_fn_c_check_type 2237 2238# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2239# ---------------------------------------------------- 2240# Tries to find if the field MEMBER exists in type AGGR, after including 2241# INCLUDES, setting cache variable VAR accordingly. 2242ac_fn_c_check_member () 2243{ 2244 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2246$as_echo_n "checking for $2.$3... " >&6; } 2247if eval \${$4+:} false; then : 2248 $as_echo_n "(cached) " >&6 2249else 2250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2251/* end confdefs.h. */ 2252$5 2253int 2254main () 2255{ 2256static $2 ac_aggr; 2257if (ac_aggr.$3) 2258return 0; 2259 ; 2260 return 0; 2261} 2262_ACEOF 2263if ac_fn_c_try_compile "$LINENO"; then : 2264 eval "$4=yes" 2265else 2266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2267/* end confdefs.h. */ 2268$5 2269int 2270main () 2271{ 2272static $2 ac_aggr; 2273if (sizeof ac_aggr.$3) 2274return 0; 2275 ; 2276 return 0; 2277} 2278_ACEOF 2279if ac_fn_c_try_compile "$LINENO"; then : 2280 eval "$4=yes" 2281else 2282 eval "$4=no" 2283fi 2284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2285fi 2286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2287fi 2288eval ac_res=\$$4 2289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2290$as_echo "$ac_res" >&6; } 2291 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2292 2293} # ac_fn_c_check_member 2294cat >config.log <<_ACEOF 2295This file contains any messages produced by compilers while 2296running configure, to aid debugging if configure makes a mistake. 2297 2298It was created by $as_me, which was 2299generated by GNU Autoconf 2.69. Invocation command line was 2300 2301 $ $0 $@ 2302 2303_ACEOF 2304exec 5>>config.log 2305{ 2306cat <<_ASUNAME 2307## --------- ## 2308## Platform. ## 2309## --------- ## 2310 2311hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2312uname -m = `(uname -m) 2>/dev/null || echo unknown` 2313uname -r = `(uname -r) 2>/dev/null || echo unknown` 2314uname -s = `(uname -s) 2>/dev/null || echo unknown` 2315uname -v = `(uname -v) 2>/dev/null || echo unknown` 2316 2317/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2318/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2319 2320/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2321/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2322/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2323/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2324/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2325/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2326/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2327 2328_ASUNAME 2329 2330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2331for as_dir in $PATH 2332do 2333 IFS=$as_save_IFS 2334 test -z "$as_dir" && as_dir=. 2335 $as_echo "PATH: $as_dir" 2336 done 2337IFS=$as_save_IFS 2338 2339} >&5 2340 2341cat >&5 <<_ACEOF 2342 2343 2344## ----------- ## 2345## Core tests. ## 2346## ----------- ## 2347 2348_ACEOF 2349 2350 2351# Keep a trace of the command line. 2352# Strip out --no-create and --no-recursion so they do not pile up. 2353# Strip out --silent because we don't want to record it for future runs. 2354# Also quote any args containing shell meta-characters. 2355# Make two passes to allow for proper duplicate-argument suppression. 2356ac_configure_args= 2357ac_configure_args0= 2358ac_configure_args1= 2359ac_must_keep_next=false 2360for ac_pass in 1 2 2361do 2362 for ac_arg 2363 do 2364 case $ac_arg in 2365 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2366 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2367 | -silent | --silent | --silen | --sile | --sil) 2368 continue ;; 2369 *\'*) 2370 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2371 esac 2372 case $ac_pass in 2373 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2374 2) 2375 as_fn_append ac_configure_args1 " '$ac_arg'" 2376 if test $ac_must_keep_next = true; then 2377 ac_must_keep_next=false # Got value, back to normal. 2378 else 2379 case $ac_arg in 2380 *=* | --config-cache | -C | -disable-* | --disable-* \ 2381 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2382 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2383 | -with-* | --with-* | -without-* | --without-* | --x) 2384 case "$ac_configure_args0 " in 2385 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2386 esac 2387 ;; 2388 -* ) ac_must_keep_next=true ;; 2389 esac 2390 fi 2391 as_fn_append ac_configure_args " '$ac_arg'" 2392 ;; 2393 esac 2394 done 2395done 2396{ ac_configure_args0=; unset ac_configure_args0;} 2397{ ac_configure_args1=; unset ac_configure_args1;} 2398 2399# When interrupted or exit'd, cleanup temporary files, and complete 2400# config.log. We remove comments because anyway the quotes in there 2401# would cause problems or look ugly. 2402# WARNING: Use '\'' to represent an apostrophe within the trap. 2403# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2404trap 'exit_status=$? 2405 # Save into config.log some information that might help in debugging. 2406 { 2407 echo 2408 2409 $as_echo "## ---------------- ## 2410## Cache variables. ## 2411## ---------------- ##" 2412 echo 2413 # The following way of writing the cache mishandles newlines in values, 2414( 2415 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2416 eval ac_val=\$$ac_var 2417 case $ac_val in #( 2418 *${as_nl}*) 2419 case $ac_var in #( 2420 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2421$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2422 esac 2423 case $ac_var in #( 2424 _ | IFS | as_nl) ;; #( 2425 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2426 *) { eval $ac_var=; unset $ac_var;} ;; 2427 esac ;; 2428 esac 2429 done 2430 (set) 2>&1 | 2431 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2432 *${as_nl}ac_space=\ *) 2433 sed -n \ 2434 "s/'\''/'\''\\\\'\'''\''/g; 2435 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2436 ;; #( 2437 *) 2438 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2439 ;; 2440 esac | 2441 sort 2442) 2443 echo 2444 2445 $as_echo "## ----------------- ## 2446## Output variables. ## 2447## ----------------- ##" 2448 echo 2449 for ac_var in $ac_subst_vars 2450 do 2451 eval ac_val=\$$ac_var 2452 case $ac_val in 2453 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2454 esac 2455 $as_echo "$ac_var='\''$ac_val'\''" 2456 done | sort 2457 echo 2458 2459 if test -n "$ac_subst_files"; then 2460 $as_echo "## ------------------- ## 2461## File substitutions. ## 2462## ------------------- ##" 2463 echo 2464 for ac_var in $ac_subst_files 2465 do 2466 eval ac_val=\$$ac_var 2467 case $ac_val in 2468 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2469 esac 2470 $as_echo "$ac_var='\''$ac_val'\''" 2471 done | sort 2472 echo 2473 fi 2474 2475 if test -s confdefs.h; then 2476 $as_echo "## ----------- ## 2477## confdefs.h. ## 2478## ----------- ##" 2479 echo 2480 cat confdefs.h 2481 echo 2482 fi 2483 test "$ac_signal" != 0 && 2484 $as_echo "$as_me: caught signal $ac_signal" 2485 $as_echo "$as_me: exit $exit_status" 2486 } >&5 2487 rm -f core *.core core.conftest.* && 2488 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2489 exit $exit_status 2490' 0 2491for ac_signal in 1 2 13 15; do 2492 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2493done 2494ac_signal=0 2495 2496# confdefs.h avoids OS command line length limits that DEFS can exceed. 2497rm -f -r conftest* confdefs.h 2498 2499$as_echo "/* confdefs.h */" > confdefs.h 2500 2501# Predefined preprocessor variables. 2502 2503cat >>confdefs.h <<_ACEOF 2504#define PACKAGE_NAME "$PACKAGE_NAME" 2505_ACEOF 2506 2507cat >>confdefs.h <<_ACEOF 2508#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2509_ACEOF 2510 2511cat >>confdefs.h <<_ACEOF 2512#define PACKAGE_VERSION "$PACKAGE_VERSION" 2513_ACEOF 2514 2515cat >>confdefs.h <<_ACEOF 2516#define PACKAGE_STRING "$PACKAGE_STRING" 2517_ACEOF 2518 2519cat >>confdefs.h <<_ACEOF 2520#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2521_ACEOF 2522 2523cat >>confdefs.h <<_ACEOF 2524#define PACKAGE_URL "$PACKAGE_URL" 2525_ACEOF 2526 2527 2528# Let the site file select an alternate cache file if it wants to. 2529# Prefer an explicitly selected file to automatically selected ones. 2530ac_site_file1=NONE 2531ac_site_file2=NONE 2532if test -n "$CONFIG_SITE"; then 2533 # We do not want a PATH search for config.site. 2534 case $CONFIG_SITE in #(( 2535 -*) ac_site_file1=./$CONFIG_SITE;; 2536 */*) ac_site_file1=$CONFIG_SITE;; 2537 *) ac_site_file1=./$CONFIG_SITE;; 2538 esac 2539elif test "x$prefix" != xNONE; then 2540 ac_site_file1=$prefix/share/config.site 2541 ac_site_file2=$prefix/etc/config.site 2542else 2543 ac_site_file1=$ac_default_prefix/share/config.site 2544 ac_site_file2=$ac_default_prefix/etc/config.site 2545fi 2546for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2547do 2548 test "x$ac_site_file" = xNONE && continue 2549 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2550 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2551$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2552 sed 's/^/| /' "$ac_site_file" >&5 2553 . "$ac_site_file" \ 2554 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2555$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2556as_fn_error $? "failed to load site script $ac_site_file 2557See \`config.log' for more details" "$LINENO" 5; } 2558 fi 2559done 2560 2561if test -r "$cache_file"; then 2562 # Some versions of bash will fail to source /dev/null (special files 2563 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2564 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2565 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2566$as_echo "$as_me: loading cache $cache_file" >&6;} 2567 case $cache_file in 2568 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2569 *) . "./$cache_file";; 2570 esac 2571 fi 2572else 2573 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2574$as_echo "$as_me: creating cache $cache_file" >&6;} 2575 >$cache_file 2576fi 2577 2578# Check that the precious variables saved in the cache have kept the same 2579# value. 2580ac_cache_corrupted=false 2581for ac_var in $ac_precious_vars; do 2582 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2583 eval ac_new_set=\$ac_env_${ac_var}_set 2584 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2585 eval ac_new_val=\$ac_env_${ac_var}_value 2586 case $ac_old_set,$ac_new_set in 2587 set,) 2588 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2589$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2590 ac_cache_corrupted=: ;; 2591 ,set) 2592 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2593$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2594 ac_cache_corrupted=: ;; 2595 ,);; 2596 *) 2597 if test "x$ac_old_val" != "x$ac_new_val"; then 2598 # differences in whitespace do not lead to failure. 2599 ac_old_val_w=`echo x $ac_old_val` 2600 ac_new_val_w=`echo x $ac_new_val` 2601 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2602 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2603$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2604 ac_cache_corrupted=: 2605 else 2606 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2607$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2608 eval $ac_var=\$ac_old_val 2609 fi 2610 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2611$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2612 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2613$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2614 fi;; 2615 esac 2616 # Pass precious variables to config.status. 2617 if test "$ac_new_set" = set; then 2618 case $ac_new_val in 2619 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2620 *) ac_arg=$ac_var=$ac_new_val ;; 2621 esac 2622 case " $ac_configure_args " in 2623 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2624 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2625 esac 2626 fi 2627done 2628if $ac_cache_corrupted; then 2629 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2630$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2631 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2632$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2633 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2634fi 2635## -------------------- ## 2636## Main body of script. ## 2637## -------------------- ## 2638 2639ac_ext=c 2640ac_cpp='$CPP $CPPFLAGS' 2641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2643ac_compiler_gnu=$ac_cv_c_compiler_gnu 2644 2645 2646ac_config_headers="$ac_config_headers include/SDL_config.h" 2647 2648ac_aux_dir= 2649for ac_dir in build-scripts "$srcdir"/build-scripts; do 2650 if test -f "$ac_dir/install-sh"; then 2651 ac_aux_dir=$ac_dir 2652 ac_install_sh="$ac_aux_dir/install-sh -c" 2653 break 2654 elif test -f "$ac_dir/install.sh"; then 2655 ac_aux_dir=$ac_dir 2656 ac_install_sh="$ac_aux_dir/install.sh -c" 2657 break 2658 elif test -f "$ac_dir/shtool"; then 2659 ac_aux_dir=$ac_dir 2660 ac_install_sh="$ac_aux_dir/shtool install -c" 2661 break 2662 fi 2663done 2664if test -z "$ac_aux_dir"; then 2665 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5 2666fi 2667 2668# These three variables are undocumented and unsupported, 2669# and are intended to be withdrawn in a future Autoconf release. 2670# They can cause serious problems if a builder's source tree is in a directory 2671# whose full name contains unusual characters. 2672ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2673ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2674ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2675 2676 2677 2678 2679orig_CFLAGS="$CFLAGS" 2680 2681# 2682# Making releases: 2683# Edit include/SDL_version.h and change the version, then: 2684# SDL_MICRO_VERSION += 1; 2685# SDL_INTERFACE_AGE += 1; 2686# SDL_BINARY_AGE += 1; 2687# if any functions have been added, set SDL_INTERFACE_AGE to 0. 2688# if backwards compatibility has been broken, 2689# set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0. 2690# 2691SDL_MAJOR_VERSION=2 2692SDL_MINOR_VERSION=0 2693SDL_MICRO_VERSION=5 2694SDL_INTERFACE_AGE=1 2695SDL_BINARY_AGE=5 2696SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION 2697 2698 2699 2700 2701 2702 2703 2704 2705# libtool versioning 2706case `pwd` in 2707 *\ * | *\ *) 2708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2709$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2710esac 2711 2712 2713 2714macro_version='2.4.2' 2715macro_revision='1.3337' 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729ltmain="$ac_aux_dir/ltmain.sh" 2730 2731# Make sure we can run config.sub. 2732$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2733 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2734 2735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2736$as_echo_n "checking build system type... " >&6; } 2737if ${ac_cv_build+:} false; then : 2738 $as_echo_n "(cached) " >&6 2739else 2740 ac_build_alias=$build_alias 2741test "x$ac_build_alias" = x && 2742 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2743test "x$ac_build_alias" = x && 2744 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2745ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2746 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2747 2748fi 2749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2750$as_echo "$ac_cv_build" >&6; } 2751case $ac_cv_build in 2752*-*-*) ;; 2753*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2754esac 2755build=$ac_cv_build 2756ac_save_IFS=$IFS; IFS='-' 2757set x $ac_cv_build 2758shift 2759build_cpu=$1 2760build_vendor=$2 2761shift; shift 2762# Remember, the first character of IFS is used to create $*, 2763# except with old shells: 2764build_os=$* 2765IFS=$ac_save_IFS 2766case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2767 2768 2769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2770$as_echo_n "checking host system type... " >&6; } 2771if ${ac_cv_host+:} false; then : 2772 $as_echo_n "(cached) " >&6 2773else 2774 if test "x$host_alias" = x; then 2775 ac_cv_host=$ac_cv_build 2776else 2777 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2778 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2779fi 2780 2781fi 2782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2783$as_echo "$ac_cv_host" >&6; } 2784case $ac_cv_host in 2785*-*-*) ;; 2786*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2787esac 2788host=$ac_cv_host 2789ac_save_IFS=$IFS; IFS='-' 2790set x $ac_cv_host 2791shift 2792host_cpu=$1 2793host_vendor=$2 2794shift; shift 2795# Remember, the first character of IFS is used to create $*, 2796# except with old shells: 2797host_os=$* 2798IFS=$ac_save_IFS 2799case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2800 2801 2802# Backslashify metacharacters that are still active within 2803# double-quoted strings. 2804sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 2805 2806# Same as above, but do not quote variable references. 2807double_quote_subst='s/\(["`\\]\)/\\\1/g' 2808 2809# Sed substitution to delay expansion of an escaped shell variable in a 2810# double_quote_subst'ed string. 2811delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 2812 2813# Sed substitution to delay expansion of an escaped single quote. 2814delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 2815 2816# Sed substitution to avoid accidental globbing in evaled expressions 2817no_glob_subst='s/\*/\\\*/g' 2818 2819ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 2820ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 2821ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 2822 2823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 2824$as_echo_n "checking how to print strings... " >&6; } 2825# Test print first, because it will be a builtin if present. 2826if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 2827 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 2828 ECHO='print -r --' 2829elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 2830 ECHO='printf %s\n' 2831else 2832 # Use this function as a fallback that always works. 2833 func_fallback_echo () 2834 { 2835 eval 'cat <<_LTECHO_EOF 2836$1 2837_LTECHO_EOF' 2838 } 2839 ECHO='func_fallback_echo' 2840fi 2841 2842# func_echo_all arg... 2843# Invoke $ECHO with all args, space-separated. 2844func_echo_all () 2845{ 2846 $ECHO "" 2847} 2848 2849case "$ECHO" in 2850 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 2851$as_echo "printf" >&6; } ;; 2852 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 2853$as_echo "print -r" >&6; } ;; 2854 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 2855$as_echo "cat" >&6; } ;; 2856esac 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871ac_ext=c 2872ac_cpp='$CPP $CPPFLAGS' 2873ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2874ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2875ac_compiler_gnu=$ac_cv_c_compiler_gnu 2876if test -n "$ac_tool_prefix"; then 2877 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2878set dummy ${ac_tool_prefix}gcc; ac_word=$2 2879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2880$as_echo_n "checking for $ac_word... " >&6; } 2881if ${ac_cv_prog_CC+:} false; then : 2882 $as_echo_n "(cached) " >&6 2883else 2884 if test -n "$CC"; then 2885 ac_cv_prog_CC="$CC" # Let the user override the test. 2886else 2887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2888for as_dir in $PATH 2889do 2890 IFS=$as_save_IFS 2891 test -z "$as_dir" && as_dir=. 2892 for ac_exec_ext in '' $ac_executable_extensions; do 2893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2894 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2896 break 2 2897 fi 2898done 2899 done 2900IFS=$as_save_IFS 2901 2902fi 2903fi 2904CC=$ac_cv_prog_CC 2905if test -n "$CC"; then 2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2907$as_echo "$CC" >&6; } 2908else 2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2910$as_echo "no" >&6; } 2911fi 2912 2913 2914fi 2915if test -z "$ac_cv_prog_CC"; then 2916 ac_ct_CC=$CC 2917 # Extract the first word of "gcc", so it can be a program name with args. 2918set dummy gcc; ac_word=$2 2919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2920$as_echo_n "checking for $ac_word... " >&6; } 2921if ${ac_cv_prog_ac_ct_CC+:} false; then : 2922 $as_echo_n "(cached) " >&6 2923else 2924 if test -n "$ac_ct_CC"; then 2925 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2926else 2927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2928for as_dir in $PATH 2929do 2930 IFS=$as_save_IFS 2931 test -z "$as_dir" && as_dir=. 2932 for ac_exec_ext in '' $ac_executable_extensions; do 2933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2934 ac_cv_prog_ac_ct_CC="gcc" 2935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2936 break 2 2937 fi 2938done 2939 done 2940IFS=$as_save_IFS 2941 2942fi 2943fi 2944ac_ct_CC=$ac_cv_prog_ac_ct_CC 2945if test -n "$ac_ct_CC"; then 2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2947$as_echo "$ac_ct_CC" >&6; } 2948else 2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2950$as_echo "no" >&6; } 2951fi 2952 2953 if test "x$ac_ct_CC" = x; then 2954 CC="" 2955 else 2956 case $cross_compiling:$ac_tool_warned in 2957yes:) 2958{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2959$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2960ac_tool_warned=yes ;; 2961esac 2962 CC=$ac_ct_CC 2963 fi 2964else 2965 CC="$ac_cv_prog_CC" 2966fi 2967 2968if test -z "$CC"; then 2969 if test -n "$ac_tool_prefix"; then 2970 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2971set dummy ${ac_tool_prefix}cc; ac_word=$2 2972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2973$as_echo_n "checking for $ac_word... " >&6; } 2974if ${ac_cv_prog_CC+:} false; then : 2975 $as_echo_n "(cached) " >&6 2976else 2977 if test -n "$CC"; then 2978 ac_cv_prog_CC="$CC" # Let the user override the test. 2979else 2980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2981for as_dir in $PATH 2982do 2983 IFS=$as_save_IFS 2984 test -z "$as_dir" && as_dir=. 2985 for ac_exec_ext in '' $ac_executable_extensions; do 2986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2987 ac_cv_prog_CC="${ac_tool_prefix}cc" 2988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2989 break 2 2990 fi 2991done 2992 done 2993IFS=$as_save_IFS 2994 2995fi 2996fi 2997CC=$ac_cv_prog_CC 2998if test -n "$CC"; then 2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3000$as_echo "$CC" >&6; } 3001else 3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3003$as_echo "no" >&6; } 3004fi 3005 3006 3007 fi 3008fi 3009if test -z "$CC"; then 3010 # Extract the first word of "cc", so it can be a program name with args. 3011set dummy cc; ac_word=$2 3012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3013$as_echo_n "checking for $ac_word... " >&6; } 3014if ${ac_cv_prog_CC+:} false; then : 3015 $as_echo_n "(cached) " >&6 3016else 3017 if test -n "$CC"; then 3018 ac_cv_prog_CC="$CC" # Let the user override the test. 3019else 3020 ac_prog_rejected=no 3021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3022for as_dir in $PATH 3023do 3024 IFS=$as_save_IFS 3025 test -z "$as_dir" && as_dir=. 3026 for ac_exec_ext in '' $ac_executable_extensions; do 3027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3028 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3029 ac_prog_rejected=yes 3030 continue 3031 fi 3032 ac_cv_prog_CC="cc" 3033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3034 break 2 3035 fi 3036done 3037 done 3038IFS=$as_save_IFS 3039 3040if test $ac_prog_rejected = yes; then 3041 # We found a bogon in the path, so make sure we never use it. 3042 set dummy $ac_cv_prog_CC 3043 shift 3044 if test $# != 0; then 3045 # We chose a different compiler from the bogus one. 3046 # However, it has the same basename, so the bogon will be chosen 3047 # first if we set CC to just the basename; use the full file name. 3048 shift 3049 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3050 fi 3051fi 3052fi 3053fi 3054CC=$ac_cv_prog_CC 3055if test -n "$CC"; then 3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3057$as_echo "$CC" >&6; } 3058else 3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3060$as_echo "no" >&6; } 3061fi 3062 3063 3064fi 3065if test -z "$CC"; then 3066 if test -n "$ac_tool_prefix"; then 3067 for ac_prog in cl.exe 3068 do 3069 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3070set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3072$as_echo_n "checking for $ac_word... " >&6; } 3073if ${ac_cv_prog_CC+:} false; then : 3074 $as_echo_n "(cached) " >&6 3075else 3076 if test -n "$CC"; then 3077 ac_cv_prog_CC="$CC" # Let the user override the test. 3078else 3079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3080for as_dir in $PATH 3081do 3082 IFS=$as_save_IFS 3083 test -z "$as_dir" && as_dir=. 3084 for ac_exec_ext in '' $ac_executable_extensions; do 3085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3086 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3088 break 2 3089 fi 3090done 3091 done 3092IFS=$as_save_IFS 3093 3094fi 3095fi 3096CC=$ac_cv_prog_CC 3097if test -n "$CC"; then 3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3099$as_echo "$CC" >&6; } 3100else 3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3102$as_echo "no" >&6; } 3103fi 3104 3105 3106 test -n "$CC" && break 3107 done 3108fi 3109if test -z "$CC"; then 3110 ac_ct_CC=$CC 3111 for ac_prog in cl.exe 3112do 3113 # Extract the first word of "$ac_prog", so it can be a program name with args. 3114set dummy $ac_prog; ac_word=$2 3115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3116$as_echo_n "checking for $ac_word... " >&6; } 3117if ${ac_cv_prog_ac_ct_CC+:} false; then : 3118 $as_echo_n "(cached) " >&6 3119else 3120 if test -n "$ac_ct_CC"; then 3121 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3122else 3123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3124for as_dir in $PATH 3125do 3126 IFS=$as_save_IFS 3127 test -z "$as_dir" && as_dir=. 3128 for ac_exec_ext in '' $ac_executable_extensions; do 3129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3130 ac_cv_prog_ac_ct_CC="$ac_prog" 3131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3132 break 2 3133 fi 3134done 3135 done 3136IFS=$as_save_IFS 3137 3138fi 3139fi 3140ac_ct_CC=$ac_cv_prog_ac_ct_CC 3141if test -n "$ac_ct_CC"; then 3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3143$as_echo "$ac_ct_CC" >&6; } 3144else 3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3146$as_echo "no" >&6; } 3147fi 3148 3149 3150 test -n "$ac_ct_CC" && break 3151done 3152 3153 if test "x$ac_ct_CC" = x; then 3154 CC="" 3155 else 3156 case $cross_compiling:$ac_tool_warned in 3157yes:) 3158{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3159$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3160ac_tool_warned=yes ;; 3161esac 3162 CC=$ac_ct_CC 3163 fi 3164fi 3165 3166fi 3167 3168 3169test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3170$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3171as_fn_error $? "no acceptable C compiler found in \$PATH 3172See \`config.log' for more details" "$LINENO" 5; } 3173 3174# Provide some information about the compiler. 3175$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3176set X $ac_compile 3177ac_compiler=$2 3178for ac_option in --version -v -V -qversion; do 3179 { { ac_try="$ac_compiler $ac_option >&5" 3180case "(($ac_try" in 3181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3182 *) ac_try_echo=$ac_try;; 3183esac 3184eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3185$as_echo "$ac_try_echo"; } >&5 3186 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3187 ac_status=$? 3188 if test -s conftest.err; then 3189 sed '10a\ 3190... rest of stderr output deleted ... 3191 10q' conftest.err >conftest.er1 3192 cat conftest.er1 >&5 3193 fi 3194 rm -f conftest.er1 conftest.err 3195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3196 test $ac_status = 0; } 3197done 3198 3199cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3200/* end confdefs.h. */ 3201 3202int 3203main () 3204{ 3205 3206 ; 3207 return 0; 3208} 3209_ACEOF 3210ac_clean_files_save=$ac_clean_files 3211ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3212# Try to create an executable without -o first, disregard a.out. 3213# It will help us diagnose broken compilers, and finding out an intuition 3214# of exeext. 3215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3216$as_echo_n "checking whether the C compiler works... " >&6; } 3217ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3218 3219# The possible output files: 3220ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3221 3222ac_rmfiles= 3223for ac_file in $ac_files 3224do 3225 case $ac_file in 3226 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3227 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3228 esac 3229done 3230rm -f $ac_rmfiles 3231 3232if { { ac_try="$ac_link_default" 3233case "(($ac_try" in 3234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3235 *) ac_try_echo=$ac_try;; 3236esac 3237eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3238$as_echo "$ac_try_echo"; } >&5 3239 (eval "$ac_link_default") 2>&5 3240 ac_status=$? 3241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3242 test $ac_status = 0; }; then : 3243 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3244# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3245# in a Makefile. We should not override ac_cv_exeext if it was cached, 3246# so that the user can short-circuit this test for compilers unknown to 3247# Autoconf. 3248for ac_file in $ac_files '' 3249do 3250 test -f "$ac_file" || continue 3251 case $ac_file in 3252 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3253 ;; 3254 [ab].out ) 3255 # We found the default executable, but exeext='' is most 3256 # certainly right. 3257 break;; 3258 *.* ) 3259 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3260 then :; else 3261 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3262 fi 3263 # We set ac_cv_exeext here because the later test for it is not 3264 # safe: cross compilers may not add the suffix if given an `-o' 3265 # argument, so we may need to know it at that point already. 3266 # Even if this section looks crufty: it has the advantage of 3267 # actually working. 3268 break;; 3269 * ) 3270 break;; 3271 esac 3272done 3273test "$ac_cv_exeext" = no && ac_cv_exeext= 3274 3275else 3276 ac_file='' 3277fi 3278if test -z "$ac_file"; then : 3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3280$as_echo "no" >&6; } 3281$as_echo "$as_me: failed program was:" >&5 3282sed 's/^/| /' conftest.$ac_ext >&5 3283 3284{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3285$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3286as_fn_error 77 "C compiler cannot create executables 3287See \`config.log' for more details" "$LINENO" 5; } 3288else 3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3290$as_echo "yes" >&6; } 3291fi 3292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3293$as_echo_n "checking for C compiler default output file name... " >&6; } 3294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3295$as_echo "$ac_file" >&6; } 3296ac_exeext=$ac_cv_exeext 3297 3298rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3299ac_clean_files=$ac_clean_files_save 3300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3301$as_echo_n "checking for suffix of executables... " >&6; } 3302if { { ac_try="$ac_link" 3303case "(($ac_try" in 3304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3305 *) ac_try_echo=$ac_try;; 3306esac 3307eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3308$as_echo "$ac_try_echo"; } >&5 3309 (eval "$ac_link") 2>&5 3310 ac_status=$? 3311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3312 test $ac_status = 0; }; then : 3313 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3314# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3315# work properly (i.e., refer to `conftest.exe'), while it won't with 3316# `rm'. 3317for ac_file in conftest.exe conftest conftest.*; do 3318 test -f "$ac_file" || continue 3319 case $ac_file in 3320 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3321 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3322 break;; 3323 * ) break;; 3324 esac 3325done 3326else 3327 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3328$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3329as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3330See \`config.log' for more details" "$LINENO" 5; } 3331fi 3332rm -f conftest conftest$ac_cv_exeext 3333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3334$as_echo "$ac_cv_exeext" >&6; } 3335 3336rm -f conftest.$ac_ext 3337EXEEXT=$ac_cv_exeext 3338ac_exeext=$EXEEXT 3339cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3340/* end confdefs.h. */ 3341#include <stdio.h> 3342int 3343main () 3344{ 3345FILE *f = fopen ("conftest.out", "w"); 3346 return ferror (f) || fclose (f) != 0; 3347 3348 ; 3349 return 0; 3350} 3351_ACEOF 3352ac_clean_files="$ac_clean_files conftest.out" 3353# Check that the compiler produces executables we can run. If not, either 3354# the compiler is broken, or we cross compile. 3355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3356$as_echo_n "checking whether we are cross compiling... " >&6; } 3357if test "$cross_compiling" != yes; then 3358 { { ac_try="$ac_link" 3359case "(($ac_try" in 3360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3361 *) ac_try_echo=$ac_try;; 3362esac 3363eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3364$as_echo "$ac_try_echo"; } >&5 3365 (eval "$ac_link") 2>&5 3366 ac_status=$? 3367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3368 test $ac_status = 0; } 3369 if { ac_try='./conftest$ac_cv_exeext' 3370 { { case "(($ac_try" in 3371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3372 *) ac_try_echo=$ac_try;; 3373esac 3374eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3375$as_echo "$ac_try_echo"; } >&5 3376 (eval "$ac_try") 2>&5 3377 ac_status=$? 3378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3379 test $ac_status = 0; }; }; then 3380 cross_compiling=no 3381 else 3382 if test "$cross_compiling" = maybe; then 3383 cross_compiling=yes 3384 else 3385 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3386$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3387as_fn_error $? "cannot run C compiled programs. 3388If you meant to cross compile, use \`--host'. 3389See \`config.log' for more details" "$LINENO" 5; } 3390 fi 3391 fi 3392fi 3393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3394$as_echo "$cross_compiling" >&6; } 3395 3396rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3397ac_clean_files=$ac_clean_files_save 3398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3399$as_echo_n "checking for suffix of object files... " >&6; } 3400if ${ac_cv_objext+:} false; then : 3401 $as_echo_n "(cached) " >&6 3402else 3403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3404/* end confdefs.h. */ 3405 3406int 3407main () 3408{ 3409 3410 ; 3411 return 0; 3412} 3413_ACEOF 3414rm -f conftest.o conftest.obj 3415if { { ac_try="$ac_compile" 3416case "(($ac_try" in 3417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3418 *) ac_try_echo=$ac_try;; 3419esac 3420eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3421$as_echo "$ac_try_echo"; } >&5 3422 (eval "$ac_compile") 2>&5 3423 ac_status=$? 3424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3425 test $ac_status = 0; }; then : 3426 for ac_file in conftest.o conftest.obj conftest.*; do 3427 test -f "$ac_file" || continue; 3428 case $ac_file in 3429 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3430 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3431 break;; 3432 esac 3433done 3434else 3435 $as_echo "$as_me: failed program was:" >&5 3436sed 's/^/| /' conftest.$ac_ext >&5 3437 3438{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3439$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3440as_fn_error $? "cannot compute suffix of object files: cannot compile 3441See \`config.log' for more details" "$LINENO" 5; } 3442fi 3443rm -f conftest.$ac_cv_objext conftest.$ac_ext 3444fi 3445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3446$as_echo "$ac_cv_objext" >&6; } 3447OBJEXT=$ac_cv_objext 3448ac_objext=$OBJEXT 3449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3450$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3451if ${ac_cv_c_compiler_gnu+:} false; then : 3452 $as_echo_n "(cached) " >&6 3453else 3454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3455/* end confdefs.h. */ 3456 3457int 3458main () 3459{ 3460#ifndef __GNUC__ 3461 choke me 3462#endif 3463 3464 ; 3465 return 0; 3466} 3467_ACEOF 3468if ac_fn_c_try_compile "$LINENO"; then : 3469 ac_compiler_gnu=yes 3470else 3471 ac_compiler_gnu=no 3472fi 3473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3474ac_cv_c_compiler_gnu=$ac_compiler_gnu 3475 3476fi 3477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3478$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3479if test $ac_compiler_gnu = yes; then 3480 GCC=yes 3481else 3482 GCC= 3483fi 3484ac_test_CFLAGS=${CFLAGS+set} 3485ac_save_CFLAGS=$CFLAGS 3486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3487$as_echo_n "checking whether $CC accepts -g... " >&6; } 3488if ${ac_cv_prog_cc_g+:} false; then : 3489 $as_echo_n "(cached) " >&6 3490else 3491 ac_save_c_werror_flag=$ac_c_werror_flag 3492 ac_c_werror_flag=yes 3493 ac_cv_prog_cc_g=no 3494 CFLAGS="-g" 3495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3496/* end confdefs.h. */ 3497 3498int 3499main () 3500{ 3501 3502 ; 3503 return 0; 3504} 3505_ACEOF 3506if ac_fn_c_try_compile "$LINENO"; then : 3507 ac_cv_prog_cc_g=yes 3508else 3509 CFLAGS="" 3510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3511/* end confdefs.h. */ 3512 3513int 3514main () 3515{ 3516 3517 ; 3518 return 0; 3519} 3520_ACEOF 3521if ac_fn_c_try_compile "$LINENO"; then : 3522 3523else 3524 ac_c_werror_flag=$ac_save_c_werror_flag 3525 CFLAGS="-g" 3526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3527/* end confdefs.h. */ 3528 3529int 3530main () 3531{ 3532 3533 ; 3534 return 0; 3535} 3536_ACEOF 3537if ac_fn_c_try_compile "$LINENO"; then : 3538 ac_cv_prog_cc_g=yes 3539fi 3540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3541fi 3542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3543fi 3544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3545 ac_c_werror_flag=$ac_save_c_werror_flag 3546fi 3547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3548$as_echo "$ac_cv_prog_cc_g" >&6; } 3549if test "$ac_test_CFLAGS" = set; then 3550 CFLAGS=$ac_save_CFLAGS 3551elif test $ac_cv_prog_cc_g = yes; then 3552 if test "$GCC" = yes; then 3553 CFLAGS="-g -O2" 3554 else 3555 CFLAGS="-g" 3556 fi 3557else 3558 if test "$GCC" = yes; then 3559 CFLAGS="-O2" 3560 else 3561 CFLAGS= 3562 fi 3563fi 3564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3565$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3566if ${ac_cv_prog_cc_c89+:} false; then : 3567 $as_echo_n "(cached) " >&6 3568else 3569 ac_cv_prog_cc_c89=no 3570ac_save_CC=$CC 3571cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3572/* end confdefs.h. */ 3573#include <stdarg.h> 3574#include <stdio.h> 3575struct stat; 3576/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3577struct buf { int x; }; 3578FILE * (*rcsopen) (struct buf *, struct stat *, int); 3579static char *e (p, i) 3580 char **p; 3581 int i; 3582{ 3583 return p[i]; 3584} 3585static char *f (char * (*g) (char **, int), char **p, ...) 3586{ 3587 char *s; 3588 va_list v; 3589 va_start (v,p); 3590 s = g (p, va_arg (v,int)); 3591 va_end (v); 3592 return s; 3593} 3594 3595/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3596 function prototypes and stuff, but not '\xHH' hex character constants. 3597 These don't provoke an error unfortunately, instead are silently treated 3598 as 'x'. The following induces an error, until -std is added to get 3599 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3600 array size at least. It's necessary to write '\x00'==0 to get something 3601 that's true only with -std. */ 3602int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3603 3604/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3605 inside strings and character constants. */ 3606#define FOO(x) 'x' 3607int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3608 3609int test (int i, double x); 3610struct s1 {int (*f) (int a);}; 3611struct s2 {int (*f) (double a);}; 3612int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3613int argc; 3614char **argv; 3615int 3616main () 3617{ 3618return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3619 ; 3620 return 0; 3621} 3622_ACEOF 3623for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3624 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3625do 3626 CC="$ac_save_CC $ac_arg" 3627 if ac_fn_c_try_compile "$LINENO"; then : 3628 ac_cv_prog_cc_c89=$ac_arg 3629fi 3630rm -f core conftest.err conftest.$ac_objext 3631 test "x$ac_cv_prog_cc_c89" != "xno" && break 3632done 3633rm -f conftest.$ac_ext 3634CC=$ac_save_CC 3635 3636fi 3637# AC_CACHE_VAL 3638case "x$ac_cv_prog_cc_c89" in 3639 x) 3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3641$as_echo "none needed" >&6; } ;; 3642 xno) 3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3644$as_echo "unsupported" >&6; } ;; 3645 *) 3646 CC="$CC $ac_cv_prog_cc_c89" 3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3648$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3649esac 3650if test "x$ac_cv_prog_cc_c89" != xno; then : 3651 3652fi 3653 3654ac_ext=c 3655ac_cpp='$CPP $CPPFLAGS' 3656ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3657ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3658ac_compiler_gnu=$ac_cv_c_compiler_gnu 3659 3660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 3661$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3662if ${ac_cv_path_SED+:} false; then : 3663 $as_echo_n "(cached) " >&6 3664else 3665 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 3666 for ac_i in 1 2 3 4 5 6 7; do 3667 ac_script="$ac_script$as_nl$ac_script" 3668 done 3669 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 3670 { ac_script=; unset ac_script;} 3671 if test -z "$SED"; then 3672 ac_path_SED_found=false 3673 # Loop through the user's path and test for each of PROGNAME-LIST 3674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3675for as_dir in $PATH 3676do 3677 IFS=$as_save_IFS 3678 test -z "$as_dir" && as_dir=. 3679 for ac_prog in sed gsed; do 3680 for ac_exec_ext in '' $ac_executable_extensions; do 3681 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 3682 as_fn_executable_p "$ac_path_SED" || continue 3683# Check for GNU ac_path_SED and select it if it is found. 3684 # Check for GNU $ac_path_SED 3685case `"$ac_path_SED" --version 2>&1` in 3686*GNU*) 3687 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 3688*) 3689 ac_count=0 3690 $as_echo_n 0123456789 >"conftest.in" 3691 while : 3692 do 3693 cat "conftest.in" "conftest.in" >"conftest.tmp" 3694 mv "conftest.tmp" "conftest.in" 3695 cp "conftest.in" "conftest.nl" 3696 $as_echo '' >> "conftest.nl" 3697 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 3698 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3699 as_fn_arith $ac_count + 1 && ac_count=$as_val 3700 if test $ac_count -gt ${ac_path_SED_max-0}; then 3701 # Best one so far, save it but keep looking for a better one 3702 ac_cv_path_SED="$ac_path_SED" 3703 ac_path_SED_max=$ac_count 3704 fi 3705 # 10*(2^10) chars as input seems more than enough 3706 test $ac_count -gt 10 && break 3707 done 3708 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3709esac 3710 3711 $ac_path_SED_found && break 3 3712 done 3713 done 3714 done 3715IFS=$as_save_IFS 3716 if test -z "$ac_cv_path_SED"; then 3717 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 3718 fi 3719else 3720 ac_cv_path_SED=$SED 3721fi 3722 3723fi 3724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 3725$as_echo "$ac_cv_path_SED" >&6; } 3726 SED="$ac_cv_path_SED" 3727 rm -f conftest.sed 3728 3729test -z "$SED" && SED=sed 3730Xsed="$SED -e 1s/^X//" 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3743$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3744if ${ac_cv_path_GREP+:} false; then : 3745 $as_echo_n "(cached) " >&6 3746else 3747 if test -z "$GREP"; then 3748 ac_path_GREP_found=false 3749 # Loop through the user's path and test for each of PROGNAME-LIST 3750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3751for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3752do 3753 IFS=$as_save_IFS 3754 test -z "$as_dir" && as_dir=. 3755 for ac_prog in grep ggrep; do 3756 for ac_exec_ext in '' $ac_executable_extensions; do 3757 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3758 as_fn_executable_p "$ac_path_GREP" || continue 3759# Check for GNU ac_path_GREP and select it if it is found. 3760 # Check for GNU $ac_path_GREP 3761case `"$ac_path_GREP" --version 2>&1` in 3762*GNU*) 3763 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3764*) 3765 ac_count=0 3766 $as_echo_n 0123456789 >"conftest.in" 3767 while : 3768 do 3769 cat "conftest.in" "conftest.in" >"conftest.tmp" 3770 mv "conftest.tmp" "conftest.in" 3771 cp "conftest.in" "conftest.nl" 3772 $as_echo 'GREP' >> "conftest.nl" 3773 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3774 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3775 as_fn_arith $ac_count + 1 && ac_count=$as_val 3776 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3777 # Best one so far, save it but keep looking for a better one 3778 ac_cv_path_GREP="$ac_path_GREP" 3779 ac_path_GREP_max=$ac_count 3780 fi 3781 # 10*(2^10) chars as input seems more than enough 3782 test $ac_count -gt 10 && break 3783 done 3784 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3785esac 3786 3787 $ac_path_GREP_found && break 3 3788 done 3789 done 3790 done 3791IFS=$as_save_IFS 3792 if test -z "$ac_cv_path_GREP"; then 3793 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3794 fi 3795else 3796 ac_cv_path_GREP=$GREP 3797fi 3798 3799fi 3800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3801$as_echo "$ac_cv_path_GREP" >&6; } 3802 GREP="$ac_cv_path_GREP" 3803 3804 3805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3806$as_echo_n "checking for egrep... " >&6; } 3807if ${ac_cv_path_EGREP+:} false; then : 3808 $as_echo_n "(cached) " >&6 3809else 3810 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3811 then ac_cv_path_EGREP="$GREP -E" 3812 else 3813 if test -z "$EGREP"; then 3814 ac_path_EGREP_found=false 3815 # Loop through the user's path and test for each of PROGNAME-LIST 3816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3817for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3818do 3819 IFS=$as_save_IFS 3820 test -z "$as_dir" && as_dir=. 3821 for ac_prog in egrep; do 3822 for ac_exec_ext in '' $ac_executable_extensions; do 3823 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3824 as_fn_executable_p "$ac_path_EGREP" || continue 3825# Check for GNU ac_path_EGREP and select it if it is found. 3826 # Check for GNU $ac_path_EGREP 3827case `"$ac_path_EGREP" --version 2>&1` in 3828*GNU*) 3829 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3830*) 3831 ac_count=0 3832 $as_echo_n 0123456789 >"conftest.in" 3833 while : 3834 do 3835 cat "conftest.in" "conftest.in" >"conftest.tmp" 3836 mv "conftest.tmp" "conftest.in" 3837 cp "conftest.in" "conftest.nl" 3838 $as_echo 'EGREP' >> "conftest.nl" 3839 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3840 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3841 as_fn_arith $ac_count + 1 && ac_count=$as_val 3842 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3843 # Best one so far, save it but keep looking for a better one 3844 ac_cv_path_EGREP="$ac_path_EGREP" 3845 ac_path_EGREP_max=$ac_count 3846 fi 3847 # 10*(2^10) chars as input seems more than enough 3848 test $ac_count -gt 10 && break 3849 done 3850 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3851esac 3852 3853 $ac_path_EGREP_found && break 3 3854 done 3855 done 3856 done 3857IFS=$as_save_IFS 3858 if test -z "$ac_cv_path_EGREP"; then 3859 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3860 fi 3861else 3862 ac_cv_path_EGREP=$EGREP 3863fi 3864 3865 fi 3866fi 3867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3868$as_echo "$ac_cv_path_EGREP" >&6; } 3869 EGREP="$ac_cv_path_EGREP" 3870 3871 3872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 3873$as_echo_n "checking for fgrep... " >&6; } 3874if ${ac_cv_path_FGREP+:} false; then : 3875 $as_echo_n "(cached) " >&6 3876else 3877 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 3878 then ac_cv_path_FGREP="$GREP -F" 3879 else 3880 if test -z "$FGREP"; then 3881 ac_path_FGREP_found=false 3882 # Loop through the user's path and test for each of PROGNAME-LIST 3883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3884for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3885do 3886 IFS=$as_save_IFS 3887 test -z "$as_dir" && as_dir=. 3888 for ac_prog in fgrep; do 3889 for ac_exec_ext in '' $ac_executable_extensions; do 3890 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 3891 as_fn_executable_p "$ac_path_FGREP" || continue 3892# Check for GNU ac_path_FGREP and select it if it is found. 3893 # Check for GNU $ac_path_FGREP 3894case `"$ac_path_FGREP" --version 2>&1` in 3895*GNU*) 3896 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 3897*) 3898 ac_count=0 3899 $as_echo_n 0123456789 >"conftest.in" 3900 while : 3901 do 3902 cat "conftest.in" "conftest.in" >"conftest.tmp" 3903 mv "conftest.tmp" "conftest.in" 3904 cp "conftest.in" "conftest.nl" 3905 $as_echo 'FGREP' >> "conftest.nl" 3906 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 3907 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3908 as_fn_arith $ac_count + 1 && ac_count=$as_val 3909 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 3910 # Best one so far, save it but keep looking for a better one 3911 ac_cv_path_FGREP="$ac_path_FGREP" 3912 ac_path_FGREP_max=$ac_count 3913 fi 3914 # 10*(2^10) chars as input seems more than enough 3915 test $ac_count -gt 10 && break 3916 done 3917 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3918esac 3919 3920 $ac_path_FGREP_found && break 3 3921 done 3922 done 3923 done 3924IFS=$as_save_IFS 3925 if test -z "$ac_cv_path_FGREP"; then 3926 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3927 fi 3928else 3929 ac_cv_path_FGREP=$FGREP 3930fi 3931 3932 fi 3933fi 3934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 3935$as_echo "$ac_cv_path_FGREP" >&6; } 3936 FGREP="$ac_cv_path_FGREP" 3937 3938 3939test -z "$GREP" && GREP=grep 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959# Check whether --with-gnu-ld was given. 3960if test "${with_gnu_ld+set}" = set; then : 3961 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 3962else 3963 with_gnu_ld=no 3964fi 3965 3966ac_prog=ld 3967if test "$GCC" = yes; then 3968 # Check if gcc -print-prog-name=ld gives a path. 3969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 3970$as_echo_n "checking for ld used by $CC... " >&6; } 3971 case $host in 3972 *-*-mingw*) 3973 # gcc leaves a trailing carriage return which upsets mingw 3974 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3975 *) 3976 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3977 esac 3978 case $ac_prog in 3979 # Accept absolute paths. 3980 [\\/]* | ?:[\\/]*) 3981 re_direlt='/[^/][^/]*/\.\./' 3982 # Canonicalize the pathname of ld 3983 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 3984 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 3985 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 3986 done 3987 test -z "$LD" && LD="$ac_prog" 3988 ;; 3989 "") 3990 # If it fails, then pretend we aren't using GCC. 3991 ac_prog=ld 3992 ;; 3993 *) 3994 # If it is relative, then search for the first ld in PATH. 3995 with_gnu_ld=unknown 3996 ;; 3997 esac 3998elif test "$with_gnu_ld" = yes; then 3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4000$as_echo_n "checking for GNU ld... " >&6; } 4001else 4002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4003$as_echo_n "checking for non-GNU ld... " >&6; } 4004fi 4005if ${lt_cv_path_LD+:} false; then : 4006 $as_echo_n "(cached) " >&6 4007else 4008 if test -z "$LD"; then 4009 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4010 for ac_dir in $PATH; do 4011 IFS="$lt_save_ifs" 4012 test -z "$ac_dir" && ac_dir=. 4013 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4014 lt_cv_path_LD="$ac_dir/$ac_prog" 4015 # Check to see if the program is GNU ld. I'd rather use --version, 4016 # but apparently some variants of GNU ld only accept -v. 4017 # Break only if it was the GNU/non-GNU ld that we prefer. 4018 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4019 *GNU* | *'with BFD'*) 4020 test "$with_gnu_ld" != no && break 4021 ;; 4022 *) 4023 test "$with_gnu_ld" != yes && break 4024 ;; 4025 esac 4026 fi 4027 done 4028 IFS="$lt_save_ifs" 4029else 4030 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4031fi 4032fi 4033 4034LD="$lt_cv_path_LD" 4035if test -n "$LD"; then 4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4037$as_echo "$LD" >&6; } 4038else 4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4040$as_echo "no" >&6; } 4041fi 4042test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4044$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4045if ${lt_cv_prog_gnu_ld+:} false; then : 4046 $as_echo_n "(cached) " >&6 4047else 4048 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4049case `$LD -v 2>&1 </dev/null` in 4050*GNU* | *'with BFD'*) 4051 lt_cv_prog_gnu_ld=yes 4052 ;; 4053*) 4054 lt_cv_prog_gnu_ld=no 4055 ;; 4056esac 4057fi 4058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4059$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4060with_gnu_ld=$lt_cv_prog_gnu_ld 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4071$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4072if ${lt_cv_path_NM+:} false; then : 4073 $as_echo_n "(cached) " >&6 4074else 4075 if test -n "$NM"; then 4076 # Let the user override the test. 4077 lt_cv_path_NM="$NM" 4078else 4079 lt_nm_to_check="${ac_tool_prefix}nm" 4080 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4081 lt_nm_to_check="$lt_nm_to_check nm" 4082 fi 4083 for lt_tmp_nm in $lt_nm_to_check; do 4084 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4085 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4086 IFS="$lt_save_ifs" 4087 test -z "$ac_dir" && ac_dir=. 4088 tmp_nm="$ac_dir/$lt_tmp_nm" 4089 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4090 # Check to see if the nm accepts a BSD-compat flag. 4091 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4092 # nm: unknown option "B" ignored 4093 # Tru64's nm complains that /dev/null is an invalid object file 4094 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4095 */dev/null* | *'Invalid file or object type'*) 4096 lt_cv_path_NM="$tmp_nm -B" 4097 break 4098 ;; 4099 *) 4100 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4101 */dev/null*) 4102 lt_cv_path_NM="$tmp_nm -p" 4103 break 4104 ;; 4105 *) 4106 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4107 continue # so that we can try to find one that supports BSD flags 4108 ;; 4109 esac 4110 ;; 4111 esac 4112 fi 4113 done 4114 IFS="$lt_save_ifs" 4115 done 4116 : ${lt_cv_path_NM=no} 4117fi 4118fi 4119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4120$as_echo "$lt_cv_path_NM" >&6; } 4121if test "$lt_cv_path_NM" != "no"; then 4122 NM="$lt_cv_path_NM" 4123else 4124 # Didn't find any BSD compatible name lister, look for dumpbin. 4125 if test -n "$DUMPBIN"; then : 4126 # Let the user override the test. 4127 else 4128 if test -n "$ac_tool_prefix"; then 4129 for ac_prog in dumpbin "link -dump" 4130 do 4131 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4132set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4134$as_echo_n "checking for $ac_word... " >&6; } 4135if ${ac_cv_prog_DUMPBIN+:} false; then : 4136 $as_echo_n "(cached) " >&6 4137else 4138 if test -n "$DUMPBIN"; then 4139 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4140else 4141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4142for as_dir in $PATH 4143do 4144 IFS=$as_save_IFS 4145 test -z "$as_dir" && as_dir=. 4146 for ac_exec_ext in '' $ac_executable_extensions; do 4147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4148 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4150 break 2 4151 fi 4152done 4153 done 4154IFS=$as_save_IFS 4155 4156fi 4157fi 4158DUMPBIN=$ac_cv_prog_DUMPBIN 4159if test -n "$DUMPBIN"; then 4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4161$as_echo "$DUMPBIN" >&6; } 4162else 4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4164$as_echo "no" >&6; } 4165fi 4166 4167 4168 test -n "$DUMPBIN" && break 4169 done 4170fi 4171if test -z "$DUMPBIN"; then 4172 ac_ct_DUMPBIN=$DUMPBIN 4173 for ac_prog in dumpbin "link -dump" 4174do 4175 # Extract the first word of "$ac_prog", so it can be a program name with args. 4176set dummy $ac_prog; ac_word=$2 4177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4178$as_echo_n "checking for $ac_word... " >&6; } 4179if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4180 $as_echo_n "(cached) " >&6 4181else 4182 if test -n "$ac_ct_DUMPBIN"; then 4183 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4184else 4185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4186for as_dir in $PATH 4187do 4188 IFS=$as_save_IFS 4189 test -z "$as_dir" && as_dir=. 4190 for ac_exec_ext in '' $ac_executable_extensions; do 4191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4192 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4194 break 2 4195 fi 4196done 4197 done 4198IFS=$as_save_IFS 4199 4200fi 4201fi 4202ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4203if test -n "$ac_ct_DUMPBIN"; then 4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4205$as_echo "$ac_ct_DUMPBIN" >&6; } 4206else 4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4208$as_echo "no" >&6; } 4209fi 4210 4211 4212 test -n "$ac_ct_DUMPBIN" && break 4213done 4214 4215 if test "x$ac_ct_DUMPBIN" = x; then 4216 DUMPBIN=":" 4217 else 4218 case $cross_compiling:$ac_tool_warned in 4219yes:) 4220{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4221$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4222ac_tool_warned=yes ;; 4223esac 4224 DUMPBIN=$ac_ct_DUMPBIN 4225 fi 4226fi 4227 4228 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4229 *COFF*) 4230 DUMPBIN="$DUMPBIN -symbols" 4231 ;; 4232 *) 4233 DUMPBIN=: 4234 ;; 4235 esac 4236 fi 4237 4238 if test "$DUMPBIN" != ":"; then 4239 NM="$DUMPBIN" 4240 fi 4241fi 4242test -z "$NM" && NM=nm 4243 4244 4245 4246 4247 4248 4249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4250$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4251if ${lt_cv_nm_interface+:} false; then : 4252 $as_echo_n "(cached) " >&6 4253else 4254 lt_cv_nm_interface="BSD nm" 4255 echo "int some_variable = 0;" > conftest.$ac_ext 4256 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4257 (eval "$ac_compile" 2>conftest.err) 4258 cat conftest.err >&5 4259 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4260 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4261 cat conftest.err >&5 4262 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4263 cat conftest.out >&5 4264 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4265 lt_cv_nm_interface="MS dumpbin" 4266 fi 4267 rm -f conftest* 4268fi 4269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4270$as_echo "$lt_cv_nm_interface" >&6; } 4271 4272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4273$as_echo_n "checking whether ln -s works... " >&6; } 4274LN_S=$as_ln_s 4275if test "$LN_S" = "ln -s"; then 4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4277$as_echo "yes" >&6; } 4278else 4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4280$as_echo "no, using $LN_S" >&6; } 4281fi 4282 4283# find the maximum length of command line arguments 4284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4285$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4286if ${lt_cv_sys_max_cmd_len+:} false; then : 4287 $as_echo_n "(cached) " >&6 4288else 4289 i=0 4290 teststring="ABCD" 4291 4292 case $build_os in 4293 msdosdjgpp*) 4294 # On DJGPP, this test can blow up pretty badly due to problems in libc 4295 # (any single argument exceeding 2000 bytes causes a buffer overrun 4296 # during glob expansion). Even if it were fixed, the result of this 4297 # check would be larger than it should be. 4298 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4299 ;; 4300 4301 gnu*) 4302 # Under GNU Hurd, this test is not required because there is 4303 # no limit to the length of command line arguments. 4304 # Libtool will interpret -1 as no limit whatsoever 4305 lt_cv_sys_max_cmd_len=-1; 4306 ;; 4307 4308 cygwin* | mingw* | cegcc*) 4309 # On Win9x/ME, this test blows up -- it succeeds, but takes 4310 # about 5 minutes as the teststring grows exponentially. 4311 # Worse, since 9x/ME are not pre-emptively multitasking, 4312 # you end up with a "frozen" computer, even though with patience 4313 # the test eventually succeeds (with a max line length of 256k). 4314 # Instead, let's just punt: use the minimum linelength reported by 4315 # all of the supported platforms: 8192 (on NT/2K/XP). 4316 lt_cv_sys_max_cmd_len=8192; 4317 ;; 4318 4319 mint*) 4320 # On MiNT this can take a long time and run out of memory. 4321 lt_cv_sys_max_cmd_len=8192; 4322 ;; 4323 4324 amigaos*) 4325 # On AmigaOS with pdksh, this test takes hours, literally. 4326 # So we just punt and use a minimum line length of 8192. 4327 lt_cv_sys_max_cmd_len=8192; 4328 ;; 4329 4330 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4331 # This has been around since 386BSD, at least. Likely further. 4332 if test -x /sbin/sysctl; then 4333 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4334 elif test -x /usr/sbin/sysctl; then 4335 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4336 else 4337 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4338 fi 4339 # And add a safety zone 4340 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4341 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4342 ;; 4343 4344 interix*) 4345 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4346 lt_cv_sys_max_cmd_len=196608 4347 ;; 4348 4349 os2*) 4350 # The test takes a long time on OS/2. 4351 lt_cv_sys_max_cmd_len=8192 4352 ;; 4353 4354 osf*) 4355 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4356 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4357 # nice to cause kernel panics so lets avoid the loop below. 4358 # First set a reasonable default. 4359 lt_cv_sys_max_cmd_len=16384 4360 # 4361 if test -x /sbin/sysconfig; then 4362 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4363 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4364 esac 4365 fi 4366 ;; 4367 sco3.2v5*) 4368 lt_cv_sys_max_cmd_len=102400 4369 ;; 4370 sysv5* | sco5v6* | sysv4.2uw2*) 4371 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4372 if test -n "$kargmax"; then 4373 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4374 else 4375 lt_cv_sys_max_cmd_len=32768 4376 fi 4377 ;; 4378 *) 4379 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4380 if test -n "$lt_cv_sys_max_cmd_len"; then 4381 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4382 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4383 else 4384 # Make teststring a little bigger before we do anything with it. 4385 # a 1K string should be a reasonable start. 4386 for i in 1 2 3 4 5 6 7 8 ; do 4387 teststring=$teststring$teststring 4388 done 4389 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4390 # If test is not a shell built-in, we'll probably end up computing a 4391 # maximum length that is only half of the actual maximum length, but 4392 # we can't tell. 4393 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 4394 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4395 test $i != 17 # 1/2 MB should be enough 4396 do 4397 i=`expr $i + 1` 4398 teststring=$teststring$teststring 4399 done 4400 # Only check the string length outside the loop. 4401 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4402 teststring= 4403 # Add a significant safety factor because C++ compilers can tack on 4404 # massive amounts of additional arguments before passing them to the 4405 # linker. It appears as though 1/2 is a usable value. 4406 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4407 fi 4408 ;; 4409 esac 4410 4411fi 4412 4413if test -n $lt_cv_sys_max_cmd_len ; then 4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4415$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4416else 4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4418$as_echo "none" >&6; } 4419fi 4420max_cmd_len=$lt_cv_sys_max_cmd_len 4421 4422 4423 4424 4425 4426 4427: ${CP="cp -f"} 4428: ${MV="mv -f"} 4429: ${RM="rm -f"} 4430 4431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4432$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4433# Try some XSI features 4434xsi_shell=no 4435( _lt_dummy="a/b/c" 4436 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 4437 = c,a/b,b/c, \ 4438 && eval 'test $(( 1 + 1 )) -eq 2 \ 4439 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4440 && xsi_shell=yes 4441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 4442$as_echo "$xsi_shell" >&6; } 4443 4444 4445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 4446$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4447lt_shell_append=no 4448( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4449 >/dev/null 2>&1 \ 4450 && lt_shell_append=yes 4451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 4452$as_echo "$lt_shell_append" >&6; } 4453 4454 4455if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4456 lt_unset=unset 4457else 4458 lt_unset=false 4459fi 4460 4461 4462 4463 4464 4465# test EBCDIC or ASCII 4466case `echo X|tr X '\101'` in 4467 A) # ASCII based system 4468 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4469 lt_SP2NL='tr \040 \012' 4470 lt_NL2SP='tr \015\012 \040\040' 4471 ;; 4472 *) # EBCDIC based system 4473 lt_SP2NL='tr \100 \n' 4474 lt_NL2SP='tr \r\n \100\100' 4475 ;; 4476esac 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4487$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4488if ${lt_cv_to_host_file_cmd+:} false; then : 4489 $as_echo_n "(cached) " >&6 4490else 4491 case $host in 4492 *-*-mingw* ) 4493 case $build in 4494 *-*-mingw* ) # actually msys 4495 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4496 ;; 4497 *-*-cygwin* ) 4498 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 4499 ;; 4500 * ) # otherwise, assume *nix 4501 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 4502 ;; 4503 esac 4504 ;; 4505 *-*-cygwin* ) 4506 case $build in 4507 *-*-mingw* ) # actually msys 4508 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 4509 ;; 4510 *-*-cygwin* ) 4511 lt_cv_to_host_file_cmd=func_convert_file_noop 4512 ;; 4513 * ) # otherwise, assume *nix 4514 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 4515 ;; 4516 esac 4517 ;; 4518 * ) # unhandled hosts (and "normal" native builds) 4519 lt_cv_to_host_file_cmd=func_convert_file_noop 4520 ;; 4521esac 4522 4523fi 4524 4525to_host_file_cmd=$lt_cv_to_host_file_cmd 4526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 4527$as_echo "$lt_cv_to_host_file_cmd" >&6; } 4528 4529 4530 4531 4532 4533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 4534$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 4535if ${lt_cv_to_tool_file_cmd+:} false; then : 4536 $as_echo_n "(cached) " >&6 4537else 4538 #assume ordinary cross tools, or native build. 4539lt_cv_to_tool_file_cmd=func_convert_file_noop 4540case $host in 4541 *-*-mingw* ) 4542 case $build in 4543 *-*-mingw* ) # actually msys 4544 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 4545 ;; 4546 esac 4547 ;; 4548esac 4549 4550fi 4551 4552to_tool_file_cmd=$lt_cv_to_tool_file_cmd 4553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 4554$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 4555 4556 4557 4558 4559 4560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4561$as_echo_n "checking for $LD option to reload object files... " >&6; } 4562if ${lt_cv_ld_reload_flag+:} false; then : 4563 $as_echo_n "(cached) " >&6 4564else 4565 lt_cv_ld_reload_flag='-r' 4566fi 4567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4568$as_echo "$lt_cv_ld_reload_flag" >&6; } 4569reload_flag=$lt_cv_ld_reload_flag 4570case $reload_flag in 4571"" | " "*) ;; 4572*) reload_flag=" $reload_flag" ;; 4573esac 4574reload_cmds='$LD$reload_flag -o $output$reload_objs' 4575case $host_os in 4576 cygwin* | mingw* | pw32* | cegcc*) 4577 if test "$GCC" != yes; then 4578 reload_cmds=false 4579 fi 4580 ;; 4581 darwin*) 4582 if test "$GCC" = yes; then 4583 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4584 else 4585 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4586 fi 4587 ;; 4588esac 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598if test -n "$ac_tool_prefix"; then 4599 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4600set dummy ${ac_tool_prefix}objdump; ac_word=$2 4601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4602$as_echo_n "checking for $ac_word... " >&6; } 4603if ${ac_cv_prog_OBJDUMP+:} false; then : 4604 $as_echo_n "(cached) " >&6 4605else 4606 if test -n "$OBJDUMP"; then 4607 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4608else 4609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4610for as_dir in $PATH 4611do 4612 IFS=$as_save_IFS 4613 test -z "$as_dir" && as_dir=. 4614 for ac_exec_ext in '' $ac_executable_extensions; do 4615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4616 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4618 break 2 4619 fi 4620done 4621 done 4622IFS=$as_save_IFS 4623 4624fi 4625fi 4626OBJDUMP=$ac_cv_prog_OBJDUMP 4627if test -n "$OBJDUMP"; then 4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4629$as_echo "$OBJDUMP" >&6; } 4630else 4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4632$as_echo "no" >&6; } 4633fi 4634 4635 4636fi 4637if test -z "$ac_cv_prog_OBJDUMP"; then 4638 ac_ct_OBJDUMP=$OBJDUMP 4639 # Extract the first word of "objdump", so it can be a program name with args. 4640set dummy objdump; ac_word=$2 4641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4642$as_echo_n "checking for $ac_word... " >&6; } 4643if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 4644 $as_echo_n "(cached) " >&6 4645else 4646 if test -n "$ac_ct_OBJDUMP"; then 4647 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4648else 4649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4650for as_dir in $PATH 4651do 4652 IFS=$as_save_IFS 4653 test -z "$as_dir" && as_dir=. 4654 for ac_exec_ext in '' $ac_executable_extensions; do 4655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4656 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4658 break 2 4659 fi 4660done 4661 done 4662IFS=$as_save_IFS 4663 4664fi 4665fi 4666ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4667if test -n "$ac_ct_OBJDUMP"; then 4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 4669$as_echo "$ac_ct_OBJDUMP" >&6; } 4670else 4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4672$as_echo "no" >&6; } 4673fi 4674 4675 if test "x$ac_ct_OBJDUMP" = x; then 4676 OBJDUMP="false" 4677 else 4678 case $cross_compiling:$ac_tool_warned in 4679yes:) 4680{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4681$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4682ac_tool_warned=yes ;; 4683esac 4684 OBJDUMP=$ac_ct_OBJDUMP 4685 fi 4686else 4687 OBJDUMP="$ac_cv_prog_OBJDUMP" 4688fi 4689 4690test -z "$OBJDUMP" && OBJDUMP=objdump 4691 4692 4693 4694 4695 4696 4697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 4698$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4699if ${lt_cv_deplibs_check_method+:} false; then : 4700 $as_echo_n "(cached) " >&6 4701else 4702 lt_cv_file_magic_cmd='$MAGIC_CMD' 4703lt_cv_file_magic_test_file= 4704lt_cv_deplibs_check_method='unknown' 4705# Need to set the preceding variable on all platforms that support 4706# interlibrary dependencies. 4707# 'none' -- dependencies not supported. 4708# `unknown' -- same as none, but documents that we really don't know. 4709# 'pass_all' -- all dependencies passed with no checks. 4710# 'test_compile' -- check by making test program. 4711# 'file_magic [[regex]]' -- check by looking for files in library path 4712# which responds to the $file_magic_cmd with a given extended regex. 4713# If you have `file' or equivalent on your system and you're not sure 4714# whether `pass_all' will *always* work, you probably want this one. 4715 4716case $host_os in 4717aix[4-9]*) 4718 lt_cv_deplibs_check_method=pass_all 4719 ;; 4720 4721beos*) 4722 lt_cv_deplibs_check_method=pass_all 4723 ;; 4724 4725bsdi[45]*) 4726 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4727 lt_cv_file_magic_cmd='/usr/bin/file -L' 4728 lt_cv_file_magic_test_file=/shlib/libc.so 4729 ;; 4730 4731cygwin*) 4732 # func_win32_libid is a shell function defined in ltmain.sh 4733 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4734 lt_cv_file_magic_cmd='func_win32_libid' 4735 lt_cv_deplibs_check_method=pass_all 4736 ;; 4737 4738mingw* | pw32*) 4739 # Base MSYS/MinGW do not provide the 'file' command needed by 4740 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4741 # unless we find 'file', for example because we are cross-compiling. 4742 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 4743 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 4744 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4745 lt_cv_file_magic_cmd='func_win32_libid' 4746 else 4747 # Keep this pattern in sync with the one in func_win32_libid. 4748 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 4749 lt_cv_file_magic_cmd='$OBJDUMP -f' 4750 fi 4751 lt_cv_deplibs_check_method=pass_all 4752 ;; 4753 4754cegcc*) 4755 # use the weaker test based on 'objdump'. See mingw*. 4756 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 4757 lt_cv_file_magic_cmd='$OBJDUMP -f' 4758 ;; 4759 4760darwin* | rhapsody*) 4761 lt_cv_deplibs_check_method=pass_all 4762 ;; 4763 4764freebsd* | dragonfly*) 4765 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4766 case $host_cpu in 4767 i*86 ) 4768 # Not sure whether the presence of OpenBSD here was a mistake. 4769 # Let's accept both of them until this is cleared up. 4770 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4771 lt_cv_file_magic_cmd=/usr/bin/file 4772 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4773 ;; 4774 esac 4775 else 4776 lt_cv_deplibs_check_method=pass_all 4777 fi 4778 ;; 4779 4780gnu*) 4781 lt_cv_deplibs_check_method=pass_all 4782 ;; 4783 4784haiku*) 4785 lt_cv_deplibs_check_method=pass_all 4786 ;; 4787 4788hpux10.20* | hpux11*) 4789 lt_cv_file_magic_cmd=/usr/bin/file 4790 case $host_cpu in 4791 ia64*) 4792 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4793 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4794 ;; 4795 hppa*64*) 4796 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' 4797 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4798 ;; 4799 *) 4800 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 4801 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4802 ;; 4803 esac 4804 ;; 4805 4806interix[3-9]*) 4807 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4808 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4809 ;; 4810 4811irix5* | irix6* | nonstopux*) 4812 case $LD in 4813 *-32|*"-32 ") libmagic=32-bit;; 4814 *-n32|*"-n32 ") libmagic=N32;; 4815 *-64|*"-64 ") libmagic=64-bit;; 4816 *) libmagic=never-match;; 4817 esac 4818 lt_cv_deplibs_check_method=pass_all 4819 ;; 4820 4821# This must be glibc/ELF. 4822linux* | k*bsd*-gnu | kopensolaris*-gnu) 4823 lt_cv_deplibs_check_method=pass_all 4824 ;; 4825 4826netbsd*) 4827 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4828 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4829 else 4830 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4831 fi 4832 ;; 4833 4834newos6*) 4835 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4836 lt_cv_file_magic_cmd=/usr/bin/file 4837 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4838 ;; 4839 4840*nto* | *qnx*) 4841 lt_cv_deplibs_check_method=pass_all 4842 ;; 4843 4844openbsd*) 4845 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4846 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4847 else 4848 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4849 fi 4850 ;; 4851 4852osf3* | osf4* | osf5*) 4853 lt_cv_deplibs_check_method=pass_all 4854 ;; 4855 4856rdos*) 4857 lt_cv_deplibs_check_method=pass_all 4858 ;; 4859 4860solaris*) 4861 lt_cv_deplibs_check_method=pass_all 4862 ;; 4863 4864sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4865 lt_cv_deplibs_check_method=pass_all 4866 ;; 4867 4868sysv4 | sysv4.3*) 4869 case $host_vendor in 4870 motorola) 4871 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]' 4872 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4873 ;; 4874 ncr) 4875 lt_cv_deplibs_check_method=pass_all 4876 ;; 4877 sequent) 4878 lt_cv_file_magic_cmd='/bin/file' 4879 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4880 ;; 4881 sni) 4882 lt_cv_file_magic_cmd='/bin/file' 4883 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4884 lt_cv_file_magic_test_file=/lib/libc.so 4885 ;; 4886 siemens) 4887 lt_cv_deplibs_check_method=pass_all 4888 ;; 4889 pc) 4890 lt_cv_deplibs_check_method=pass_all 4891 ;; 4892 esac 4893 ;; 4894 4895tpf*) 4896 lt_cv_deplibs_check_method=pass_all 4897 ;; 4898esac 4899 4900fi 4901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 4902$as_echo "$lt_cv_deplibs_check_method" >&6; } 4903 4904file_magic_glob= 4905want_nocaseglob=no 4906if test "$build" = "$host"; then 4907 case $host_os in 4908 mingw* | pw32*) 4909 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 4910 want_nocaseglob=yes 4911 else 4912 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 4913 fi 4914 ;; 4915 esac 4916fi 4917 4918file_magic_cmd=$lt_cv_file_magic_cmd 4919deplibs_check_method=$lt_cv_deplibs_check_method 4920test -z "$deplibs_check_method" && deplibs_check_method=unknown 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943if test -n "$ac_tool_prefix"; then 4944 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 4945set dummy ${ac_tool_prefix}dlltool; ac_word=$2 4946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4947$as_echo_n "checking for $ac_word... " >&6; } 4948if ${ac_cv_prog_DLLTOOL+:} false; then : 4949 $as_echo_n "(cached) " >&6 4950else 4951 if test -n "$DLLTOOL"; then 4952 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 4953else 4954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4955for as_dir in $PATH 4956do 4957 IFS=$as_save_IFS 4958 test -z "$as_dir" && as_dir=. 4959 for ac_exec_ext in '' $ac_executable_extensions; do 4960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4961 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 4962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4963 break 2 4964 fi 4965done 4966 done 4967IFS=$as_save_IFS 4968 4969fi 4970fi 4971DLLTOOL=$ac_cv_prog_DLLTOOL 4972if test -n "$DLLTOOL"; then 4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 4974$as_echo "$DLLTOOL" >&6; } 4975else 4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4977$as_echo "no" >&6; } 4978fi 4979 4980 4981fi 4982if test -z "$ac_cv_prog_DLLTOOL"; then 4983 ac_ct_DLLTOOL=$DLLTOOL 4984 # Extract the first word of "dlltool", so it can be a program name with args. 4985set dummy dlltool; ac_word=$2 4986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4987$as_echo_n "checking for $ac_word... " >&6; } 4988if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 4989 $as_echo_n "(cached) " >&6 4990else 4991 if test -n "$ac_ct_DLLTOOL"; then 4992 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 4993else 4994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4995for as_dir in $PATH 4996do 4997 IFS=$as_save_IFS 4998 test -z "$as_dir" && as_dir=. 4999 for ac_exec_ext in '' $ac_executable_extensions; do 5000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5001 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5003 break 2 5004 fi 5005done 5006 done 5007IFS=$as_save_IFS 5008 5009fi 5010fi 5011ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5012if test -n "$ac_ct_DLLTOOL"; then 5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5014$as_echo "$ac_ct_DLLTOOL" >&6; } 5015else 5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5017$as_echo "no" >&6; } 5018fi 5019 5020 if test "x$ac_ct_DLLTOOL" = x; then 5021 DLLTOOL="false" 5022 else 5023 case $cross_compiling:$ac_tool_warned in 5024yes:) 5025{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5026$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5027ac_tool_warned=yes ;; 5028esac 5029 DLLTOOL=$ac_ct_DLLTOOL 5030 fi 5031else 5032 DLLTOOL="$ac_cv_prog_DLLTOOL" 5033fi 5034 5035test -z "$DLLTOOL" && DLLTOOL=dlltool 5036 5037 5038 5039 5040 5041 5042 5043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5044$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5045if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5046 $as_echo_n "(cached) " >&6 5047else 5048 lt_cv_sharedlib_from_linklib_cmd='unknown' 5049 5050case $host_os in 5051cygwin* | mingw* | pw32* | cegcc*) 5052 # two different shell functions defined in ltmain.sh 5053 # decide which to use based on capabilities of $DLLTOOL 5054 case `$DLLTOOL --help 2>&1` in 5055 *--identify-strict*) 5056 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5057 ;; 5058 *) 5059 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5060 ;; 5061 esac 5062 ;; 5063*) 5064 # fallback: assume linklib IS sharedlib 5065 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5066 ;; 5067esac 5068 5069fi 5070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5071$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5072sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5073test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5074 5075 5076 5077 5078 5079 5080 5081 5082if test -n "$ac_tool_prefix"; then 5083 for ac_prog in ar 5084 do 5085 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5086set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5088$as_echo_n "checking for $ac_word... " >&6; } 5089if ${ac_cv_prog_AR+:} false; then : 5090 $as_echo_n "(cached) " >&6 5091else 5092 if test -n "$AR"; then 5093 ac_cv_prog_AR="$AR" # Let the user override the test. 5094else 5095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5096for as_dir in $PATH 5097do 5098 IFS=$as_save_IFS 5099 test -z "$as_dir" && as_dir=. 5100 for ac_exec_ext in '' $ac_executable_extensions; do 5101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5102 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5104 break 2 5105 fi 5106done 5107 done 5108IFS=$as_save_IFS 5109 5110fi 5111fi 5112AR=$ac_cv_prog_AR 5113if test -n "$AR"; then 5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5115$as_echo "$AR" >&6; } 5116else 5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5118$as_echo "no" >&6; } 5119fi 5120 5121 5122 test -n "$AR" && break 5123 done 5124fi 5125if test -z "$AR"; then 5126 ac_ct_AR=$AR 5127 for ac_prog in ar 5128do 5129 # Extract the first word of "$ac_prog", so it can be a program name with args. 5130set dummy $ac_prog; ac_word=$2 5131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5132$as_echo_n "checking for $ac_word... " >&6; } 5133if ${ac_cv_prog_ac_ct_AR+:} false; then : 5134 $as_echo_n "(cached) " >&6 5135else 5136 if test -n "$ac_ct_AR"; then 5137 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5138else 5139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5140for as_dir in $PATH 5141do 5142 IFS=$as_save_IFS 5143 test -z "$as_dir" && as_dir=. 5144 for ac_exec_ext in '' $ac_executable_extensions; do 5145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5146 ac_cv_prog_ac_ct_AR="$ac_prog" 5147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5148 break 2 5149 fi 5150done 5151 done 5152IFS=$as_save_IFS 5153 5154fi 5155fi 5156ac_ct_AR=$ac_cv_prog_ac_ct_AR 5157if test -n "$ac_ct_AR"; then 5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5159$as_echo "$ac_ct_AR" >&6; } 5160else 5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5162$as_echo "no" >&6; } 5163fi 5164 5165 5166 test -n "$ac_ct_AR" && break 5167done 5168 5169 if test "x$ac_ct_AR" = x; then 5170 AR="false" 5171 else 5172 case $cross_compiling:$ac_tool_warned in 5173yes:) 5174{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5175$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5176ac_tool_warned=yes ;; 5177esac 5178 AR=$ac_ct_AR 5179 fi 5180fi 5181 5182: ${AR=ar} 5183: ${AR_FLAGS=cru} 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5196$as_echo_n "checking for archiver @FILE support... " >&6; } 5197if ${lt_cv_ar_at_file+:} false; then : 5198 $as_echo_n "(cached) " >&6 5199else 5200 lt_cv_ar_at_file=no 5201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5202/* end confdefs.h. */ 5203 5204int 5205main () 5206{ 5207 5208 ; 5209 return 0; 5210} 5211_ACEOF 5212if ac_fn_c_try_compile "$LINENO"; then : 5213 echo conftest.$ac_objext > conftest.lst 5214 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5215 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5216 (eval $lt_ar_try) 2>&5 5217 ac_status=$? 5218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5219 test $ac_status = 0; } 5220 if test "$ac_status" -eq 0; then 5221 # Ensure the archiver fails upon bogus file names. 5222 rm -f conftest.$ac_objext libconftest.a 5223 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5224 (eval $lt_ar_try) 2>&5 5225 ac_status=$? 5226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5227 test $ac_status = 0; } 5228 if test "$ac_status" -ne 0; then 5229 lt_cv_ar_at_file=@ 5230 fi 5231 fi 5232 rm -f conftest.* libconftest.a 5233 5234fi 5235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5236 5237fi 5238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5239$as_echo "$lt_cv_ar_at_file" >&6; } 5240 5241if test "x$lt_cv_ar_at_file" = xno; then 5242 archiver_list_spec= 5243else 5244 archiver_list_spec=$lt_cv_ar_at_file 5245fi 5246 5247 5248 5249 5250 5251 5252 5253if test -n "$ac_tool_prefix"; then 5254 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5255set dummy ${ac_tool_prefix}strip; ac_word=$2 5256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5257$as_echo_n "checking for $ac_word... " >&6; } 5258if ${ac_cv_prog_STRIP+:} false; then : 5259 $as_echo_n "(cached) " >&6 5260else 5261 if test -n "$STRIP"; then 5262 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5263else 5264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5265for as_dir in $PATH 5266do 5267 IFS=$as_save_IFS 5268 test -z "$as_dir" && as_dir=. 5269 for ac_exec_ext in '' $ac_executable_extensions; do 5270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5271 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5273 break 2 5274 fi 5275done 5276 done 5277IFS=$as_save_IFS 5278 5279fi 5280fi 5281STRIP=$ac_cv_prog_STRIP 5282if test -n "$STRIP"; then 5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5284$as_echo "$STRIP" >&6; } 5285else 5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5287$as_echo "no" >&6; } 5288fi 5289 5290 5291fi 5292if test -z "$ac_cv_prog_STRIP"; then 5293 ac_ct_STRIP=$STRIP 5294 # Extract the first word of "strip", so it can be a program name with args. 5295set dummy strip; ac_word=$2 5296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5297$as_echo_n "checking for $ac_word... " >&6; } 5298if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5299 $as_echo_n "(cached) " >&6 5300else 5301 if test -n "$ac_ct_STRIP"; then 5302 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5303else 5304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5305for as_dir in $PATH 5306do 5307 IFS=$as_save_IFS 5308 test -z "$as_dir" && as_dir=. 5309 for ac_exec_ext in '' $ac_executable_extensions; do 5310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5311 ac_cv_prog_ac_ct_STRIP="strip" 5312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5313 break 2 5314 fi 5315done 5316 done 5317IFS=$as_save_IFS 5318 5319fi 5320fi 5321ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5322if test -n "$ac_ct_STRIP"; then 5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5324$as_echo "$ac_ct_STRIP" >&6; } 5325else 5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5327$as_echo "no" >&6; } 5328fi 5329 5330 if test "x$ac_ct_STRIP" = x; then 5331 STRIP=":" 5332 else 5333 case $cross_compiling:$ac_tool_warned in 5334yes:) 5335{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5336$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5337ac_tool_warned=yes ;; 5338esac 5339 STRIP=$ac_ct_STRIP 5340 fi 5341else 5342 STRIP="$ac_cv_prog_STRIP" 5343fi 5344 5345test -z "$STRIP" && STRIP=: 5346 5347 5348 5349 5350 5351 5352if test -n "$ac_tool_prefix"; then 5353 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5354set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5356$as_echo_n "checking for $ac_word... " >&6; } 5357if ${ac_cv_prog_RANLIB+:} false; then : 5358 $as_echo_n "(cached) " >&6 5359else 5360 if test -n "$RANLIB"; then 5361 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5362else 5363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5364for as_dir in $PATH 5365do 5366 IFS=$as_save_IFS 5367 test -z "$as_dir" && as_dir=. 5368 for ac_exec_ext in '' $ac_executable_extensions; do 5369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5370 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5372 break 2 5373 fi 5374done 5375 done 5376IFS=$as_save_IFS 5377 5378fi 5379fi 5380RANLIB=$ac_cv_prog_RANLIB 5381if test -n "$RANLIB"; then 5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5383$as_echo "$RANLIB" >&6; } 5384else 5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5386$as_echo "no" >&6; } 5387fi 5388 5389 5390fi 5391if test -z "$ac_cv_prog_RANLIB"; then 5392 ac_ct_RANLIB=$RANLIB 5393 # Extract the first word of "ranlib", so it can be a program name with args. 5394set dummy ranlib; ac_word=$2 5395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5396$as_echo_n "checking for $ac_word... " >&6; } 5397if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5398 $as_echo_n "(cached) " >&6 5399else 5400 if test -n "$ac_ct_RANLIB"; then 5401 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5402else 5403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5404for as_dir in $PATH 5405do 5406 IFS=$as_save_IFS 5407 test -z "$as_dir" && as_dir=. 5408 for ac_exec_ext in '' $ac_executable_extensions; do 5409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5410 ac_cv_prog_ac_ct_RANLIB="ranlib" 5411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5412 break 2 5413 fi 5414done 5415 done 5416IFS=$as_save_IFS 5417 5418fi 5419fi 5420ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5421if test -n "$ac_ct_RANLIB"; then 5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5423$as_echo "$ac_ct_RANLIB" >&6; } 5424else 5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5426$as_echo "no" >&6; } 5427fi 5428 5429 if test "x$ac_ct_RANLIB" = x; then 5430 RANLIB=":" 5431 else 5432 case $cross_compiling:$ac_tool_warned in 5433yes:) 5434{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5435$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5436ac_tool_warned=yes ;; 5437esac 5438 RANLIB=$ac_ct_RANLIB 5439 fi 5440else 5441 RANLIB="$ac_cv_prog_RANLIB" 5442fi 5443 5444test -z "$RANLIB" && RANLIB=: 5445 5446 5447 5448 5449 5450 5451# Determine commands to create old-style static archives. 5452old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5453old_postinstall_cmds='chmod 644 $oldlib' 5454old_postuninstall_cmds= 5455 5456if test -n "$RANLIB"; then 5457 case $host_os in 5458 openbsd*) 5459 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 5460 ;; 5461 *) 5462 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 5463 ;; 5464 esac 5465 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 5466fi 5467 5468case $host_os in 5469 darwin*) 5470 lock_old_archive_extraction=yes ;; 5471 *) 5472 lock_old_archive_extraction=no ;; 5473esac 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495for ac_prog in gawk mawk nawk awk 5496do 5497 # Extract the first word of "$ac_prog", so it can be a program name with args. 5498set dummy $ac_prog; ac_word=$2 5499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5500$as_echo_n "checking for $ac_word... " >&6; } 5501if ${ac_cv_prog_AWK+:} false; then : 5502 $as_echo_n "(cached) " >&6 5503else 5504 if test -n "$AWK"; then 5505 ac_cv_prog_AWK="$AWK" # Let the user override the test. 5506else 5507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5508for as_dir in $PATH 5509do 5510 IFS=$as_save_IFS 5511 test -z "$as_dir" && as_dir=. 5512 for ac_exec_ext in '' $ac_executable_extensions; do 5513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5514 ac_cv_prog_AWK="$ac_prog" 5515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5516 break 2 5517 fi 5518done 5519 done 5520IFS=$as_save_IFS 5521 5522fi 5523fi 5524AWK=$ac_cv_prog_AWK 5525if test -n "$AWK"; then 5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 5527$as_echo "$AWK" >&6; } 5528else 5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5530$as_echo "no" >&6; } 5531fi 5532 5533 5534 test -n "$AWK" && break 5535done 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555# If no C compiler was specified, use CC. 5556LTCC=${LTCC-"$CC"} 5557 5558# If no C compiler flags were specified, use CFLAGS. 5559LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5560 5561# Allow CC to be a program name with arguments. 5562compiler=$CC 5563 5564 5565# Check for command to grab the raw symbol name followed by C symbol from nm. 5566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5567$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5568if ${lt_cv_sys_global_symbol_pipe+:} false; then : 5569 $as_echo_n "(cached) " >&6 5570else 5571 5572# These are sane defaults that work on at least a few old systems. 5573# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5574 5575# Character class describing NM global symbol codes. 5576symcode='[BCDEGRST]' 5577 5578# Regexp to match symbols that can be accessed directly from C. 5579sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5580 5581# Define system-specific variables. 5582case $host_os in 5583aix*) 5584 symcode='[BCDT]' 5585 ;; 5586cygwin* | mingw* | pw32* | cegcc*) 5587 symcode='[ABCDGISTW]' 5588 ;; 5589hpux*) 5590 if test "$host_cpu" = ia64; then 5591 symcode='[ABCDEGRST]' 5592 fi 5593 ;; 5594irix* | nonstopux*) 5595 symcode='[BCDEGRST]' 5596 ;; 5597osf*) 5598 symcode='[BCDEGQRST]' 5599 ;; 5600solaris*) 5601 symcode='[BDRT]' 5602 ;; 5603sco3.2v5*) 5604 symcode='[DT]' 5605 ;; 5606sysv4.2uw2*) 5607 symcode='[DT]' 5608 ;; 5609sysv5* | sco5v6* | unixware* | OpenUNIX*) 5610 symcode='[ABDT]' 5611 ;; 5612sysv4) 5613 symcode='[DFNSTU]' 5614 ;; 5615esac 5616 5617# If we're using GNU nm, then use its standard symbol codes. 5618case `$NM -V 2>&1` in 5619*GNU* | *'with BFD'*) 5620 symcode='[ABCDGIRSTW]' ;; 5621esac 5622 5623# Transform an extracted symbol line into a proper C declaration. 5624# Some systems (esp. on ia64) link data and code symbols differently, 5625# so use this general approach. 5626lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5627 5628# Transform an extracted symbol line into symbol name and symbol address 5629lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5630lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 5631 5632# Handle CRLF in mingw tool chain 5633opt_cr= 5634case $build_os in 5635mingw*) 5636 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5637 ;; 5638esac 5639 5640# Try without a prefix underscore, then with it. 5641for ac_symprfx in "" "_"; do 5642 5643 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5644 symxfrm="\\1 $ac_symprfx\\2 \\2" 5645 5646 # Write the raw and C identifiers. 5647 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5648 # Fake it for dumpbin and say T for any non-static function 5649 # and D for any global variable. 5650 # Also find C++ and __fastcall symbols from MSVC++, 5651 # which start with @ or ?. 5652 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5653" {last_section=section; section=\$ 3};"\ 5654" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 5655" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5656" \$ 0!~/External *\|/{next};"\ 5657" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5658" {if(hide[section]) next};"\ 5659" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5660" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5661" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5662" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5663" ' prfx=^$ac_symprfx" 5664 else 5665 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5666 fi 5667 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 5668 5669 # Check to see that the pipe works correctly. 5670 pipe_works=no 5671 5672 rm -f conftest* 5673 cat > conftest.$ac_ext <<_LT_EOF 5674#ifdef __cplusplus 5675extern "C" { 5676#endif 5677char nm_test_var; 5678void nm_test_func(void); 5679void nm_test_func(void){} 5680#ifdef __cplusplus 5681} 5682#endif 5683int main(){nm_test_var='a';nm_test_func();return(0);} 5684_LT_EOF 5685 5686 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5687 (eval $ac_compile) 2>&5 5688 ac_status=$? 5689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5690 test $ac_status = 0; }; then 5691 # Now try to grab the symbols. 5692 nlist=conftest.nm 5693 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 5694 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 5695 ac_status=$? 5696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5697 test $ac_status = 0; } && test -s "$nlist"; then 5698 # Try sorting and uniquifying the output. 5699 if sort "$nlist" | uniq > "$nlist"T; then 5700 mv -f "$nlist"T "$nlist" 5701 else 5702 rm -f "$nlist"T 5703 fi 5704 5705 # Make sure that we snagged all the symbols we need. 5706 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5707 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5708 cat <<_LT_EOF > conftest.$ac_ext 5709/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 5710#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 5711/* DATA imports from DLLs on WIN32 con't be const, because runtime 5712 relocations are performed -- see ld's documentation on pseudo-relocs. */ 5713# define LT_DLSYM_CONST 5714#elif defined(__osf__) 5715/* This system does not cope well with relocations in const data. */ 5716# define LT_DLSYM_CONST 5717#else 5718# define LT_DLSYM_CONST const 5719#endif 5720 5721#ifdef __cplusplus 5722extern "C" { 5723#endif 5724 5725_LT_EOF 5726 # Now generate the symbol file. 5727 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5728 5729 cat <<_LT_EOF >> conftest.$ac_ext 5730 5731/* The mapping between symbol names and symbols. */ 5732LT_DLSYM_CONST struct { 5733 const char *name; 5734 void *address; 5735} 5736lt__PROGRAM__LTX_preloaded_symbols[] = 5737{ 5738 { "@PROGRAM@", (void *) 0 }, 5739_LT_EOF 5740 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5741 cat <<\_LT_EOF >> conftest.$ac_ext 5742 {0, (void *) 0} 5743}; 5744 5745/* This works around a problem in FreeBSD linker */ 5746#ifdef FREEBSD_WORKAROUND 5747static const void *lt_preloaded_setup() { 5748 return lt__PROGRAM__LTX_preloaded_symbols; 5749} 5750#endif 5751 5752#ifdef __cplusplus 5753} 5754#endif 5755_LT_EOF 5756 # Now try linking the two files. 5757 mv conftest.$ac_objext conftstm.$ac_objext 5758 lt_globsym_save_LIBS=$LIBS 5759 lt_globsym_save_CFLAGS=$CFLAGS 5760 LIBS="conftstm.$ac_objext" 5761 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5762 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 5763 (eval $ac_link) 2>&5 5764 ac_status=$? 5765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5766 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 5767 pipe_works=yes 5768 fi 5769 LIBS=$lt_globsym_save_LIBS 5770 CFLAGS=$lt_globsym_save_CFLAGS 5771 else 5772 echo "cannot find nm_test_func in $nlist" >&5 5773 fi 5774 else 5775 echo "cannot find nm_test_var in $nlist" >&5 5776 fi 5777 else 5778 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5779 fi 5780 else 5781 echo "$progname: failed program was:" >&5 5782 cat conftest.$ac_ext >&5 5783 fi 5784 rm -rf conftest* conftst* 5785 5786 # Do not use the global_symbol_pipe unless it works. 5787 if test "$pipe_works" = yes; then 5788 break 5789 else 5790 lt_cv_sys_global_symbol_pipe= 5791 fi 5792done 5793 5794fi 5795 5796if test -z "$lt_cv_sys_global_symbol_pipe"; then 5797 lt_cv_sys_global_symbol_to_cdecl= 5798fi 5799if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5801$as_echo "failed" >&6; } 5802else 5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 5804$as_echo "ok" >&6; } 5805fi 5806 5807# Response file support. 5808if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5809 nm_file_list_spec='@' 5810elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 5811 nm_file_list_spec='@' 5812fi 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 5841$as_echo_n "checking for sysroot... " >&6; } 5842 5843# Check whether --with-sysroot was given. 5844if test "${with_sysroot+set}" = set; then : 5845 withval=$with_sysroot; 5846else 5847 with_sysroot=no 5848fi 5849 5850 5851lt_sysroot= 5852case ${with_sysroot} in #( 5853 yes) 5854 if test "$GCC" = yes; then 5855 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 5856 fi 5857 ;; #( 5858 /*) 5859 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 5860 ;; #( 5861 no|'') 5862 ;; #( 5863 *) 5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 5865$as_echo "${with_sysroot}" >&6; } 5866 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 5867 ;; 5868esac 5869 5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 5871$as_echo "${lt_sysroot:-no}" >&6; } 5872 5873 5874 5875 5876 5877# Check whether --enable-libtool-lock was given. 5878if test "${enable_libtool_lock+set}" = set; then : 5879 enableval=$enable_libtool_lock; 5880fi 5881 5882test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5883 5884# Some flags need to be propagated to the compiler or linker for good 5885# libtool support. 5886case $host in 5887ia64-*-hpux*) 5888 # Find out which ABI we are using. 5889 echo 'int i;' > conftest.$ac_ext 5890 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5891 (eval $ac_compile) 2>&5 5892 ac_status=$? 5893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5894 test $ac_status = 0; }; then 5895 case `/usr/bin/file conftest.$ac_objext` in 5896 *ELF-32*) 5897 HPUX_IA64_MODE="32" 5898 ;; 5899 *ELF-64*) 5900 HPUX_IA64_MODE="64" 5901 ;; 5902 esac 5903 fi 5904 rm -rf conftest* 5905 ;; 5906*-*-irix6*) 5907 # Find out which ABI we are using. 5908 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 5909 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5910 (eval $ac_compile) 2>&5 5911 ac_status=$? 5912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5913 test $ac_status = 0; }; then 5914 if test "$lt_cv_prog_gnu_ld" = yes; then 5915 case `/usr/bin/file conftest.$ac_objext` in 5916 *32-bit*) 5917 LD="${LD-ld} -melf32bsmip" 5918 ;; 5919 *N32*) 5920 LD="${LD-ld} -melf32bmipn32" 5921 ;; 5922 *64-bit*) 5923 LD="${LD-ld} -melf64bmip" 5924 ;; 5925 esac 5926 else 5927 case `/usr/bin/file conftest.$ac_objext` in 5928 *32-bit*) 5929 LD="${LD-ld} -32" 5930 ;; 5931 *N32*) 5932 LD="${LD-ld} -n32" 5933 ;; 5934 *64-bit*) 5935 LD="${LD-ld} -64" 5936 ;; 5937 esac 5938 fi 5939 fi 5940 rm -rf conftest* 5941 ;; 5942 5943x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 5944s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 5945 # Find out which ABI we are using. 5946 echo 'int i;' > conftest.$ac_ext 5947 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5948 (eval $ac_compile) 2>&5 5949 ac_status=$? 5950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5951 test $ac_status = 0; }; then 5952 case `/usr/bin/file conftest.o` in 5953 *32-bit*) 5954 case $host in 5955 x86_64-*kfreebsd*-gnu) 5956 LD="${LD-ld} -m elf_i386_fbsd" 5957 ;; 5958 x86_64-*linux*) 5959 LD="${LD-ld} -m elf_i386" 5960 ;; 5961 ppc64-*linux*|powerpc64-*linux*) 5962 LD="${LD-ld} -m elf32ppclinux" 5963 ;; 5964 s390x-*linux*) 5965 LD="${LD-ld} -m elf_s390" 5966 ;; 5967 sparc64-*linux*) 5968 LD="${LD-ld} -m elf32_sparc" 5969 ;; 5970 esac 5971 ;; 5972 *64-bit*) 5973 case $host in 5974 x86_64-*kfreebsd*-gnu) 5975 LD="${LD-ld} -m elf_x86_64_fbsd" 5976 ;; 5977 x86_64-*linux*) 5978 LD="${LD-ld} -m elf_x86_64" 5979 ;; 5980 ppc*-*linux*|powerpc*-*linux*) 5981 LD="${LD-ld} -m elf64ppc" 5982 ;; 5983 s390*-*linux*|s390*-*tpf*) 5984 LD="${LD-ld} -m elf64_s390" 5985 ;; 5986 sparc*-*linux*) 5987 LD="${LD-ld} -m elf64_sparc" 5988 ;; 5989 esac 5990 ;; 5991 esac 5992 fi 5993 rm -rf conftest* 5994 ;; 5995 5996*-*-sco3.2v5*) 5997 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5998 SAVE_CFLAGS="$CFLAGS" 5999 CFLAGS="$CFLAGS -belf" 6000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6001$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6002if ${lt_cv_cc_needs_belf+:} false; then : 6003 $as_echo_n "(cached) " >&6 6004else 6005 ac_ext=c 6006ac_cpp='$CPP $CPPFLAGS' 6007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6009ac_compiler_gnu=$ac_cv_c_compiler_gnu 6010 6011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6012/* end confdefs.h. */ 6013 6014int 6015main () 6016{ 6017 6018 ; 6019 return 0; 6020} 6021_ACEOF 6022if ac_fn_c_try_link "$LINENO"; then : 6023 lt_cv_cc_needs_belf=yes 6024else 6025 lt_cv_cc_needs_belf=no 6026fi 6027rm -f core conftest.err conftest.$ac_objext \ 6028 conftest$ac_exeext conftest.$ac_ext 6029 ac_ext=c 6030ac_cpp='$CPP $CPPFLAGS' 6031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6033ac_compiler_gnu=$ac_cv_c_compiler_gnu 6034 6035fi 6036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6037$as_echo "$lt_cv_cc_needs_belf" >&6; } 6038 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6039 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6040 CFLAGS="$SAVE_CFLAGS" 6041 fi 6042 ;; 6043*-*solaris*) 6044 # Find out which ABI we are using. 6045 echo 'int i;' > conftest.$ac_ext 6046 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6047 (eval $ac_compile) 2>&5 6048 ac_status=$? 6049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6050 test $ac_status = 0; }; then 6051 case `/usr/bin/file conftest.o` in 6052 *64-bit*) 6053 case $lt_cv_prog_gnu_ld in 6054 yes*) 6055 case $host in 6056 i?86-*-solaris*) 6057 LD="${LD-ld} -m elf_x86_64" 6058 ;; 6059 sparc*-*-solaris*) 6060 LD="${LD-ld} -m elf64_sparc" 6061 ;; 6062 esac 6063 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6064 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6065 LD="${LD-ld}_sol2" 6066 fi 6067 ;; 6068 *) 6069 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6070 LD="${LD-ld} -64" 6071 fi 6072 ;; 6073 esac 6074 ;; 6075 esac 6076 fi 6077 rm -rf conftest* 6078 ;; 6079esac 6080 6081need_locks="$enable_libtool_lock" 6082 6083if test -n "$ac_tool_prefix"; then 6084 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6085set dummy ${ac_tool_prefix}mt; ac_word=$2 6086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6087$as_echo_n "checking for $ac_word... " >&6; } 6088if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6089 $as_echo_n "(cached) " >&6 6090else 6091 if test -n "$MANIFEST_TOOL"; then 6092 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6093else 6094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6095for as_dir in $PATH 6096do 6097 IFS=$as_save_IFS 6098 test -z "$as_dir" && as_dir=. 6099 for ac_exec_ext in '' $ac_executable_extensions; do 6100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6101 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6103 break 2 6104 fi 6105done 6106 done 6107IFS=$as_save_IFS 6108 6109fi 6110fi 6111MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6112if test -n "$MANIFEST_TOOL"; then 6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6114$as_echo "$MANIFEST_TOOL" >&6; } 6115else 6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6117$as_echo "no" >&6; } 6118fi 6119 6120 6121fi 6122if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6123 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6124 # Extract the first word of "mt", so it can be a program name with args. 6125set dummy mt; ac_word=$2 6126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6127$as_echo_n "checking for $ac_word... " >&6; } 6128if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6129 $as_echo_n "(cached) " >&6 6130else 6131 if test -n "$ac_ct_MANIFEST_TOOL"; then 6132 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6133else 6134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6135for as_dir in $PATH 6136do 6137 IFS=$as_save_IFS 6138 test -z "$as_dir" && as_dir=. 6139 for ac_exec_ext in '' $ac_executable_extensions; do 6140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6141 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6143 break 2 6144 fi 6145done 6146 done 6147IFS=$as_save_IFS 6148 6149fi 6150fi 6151ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6152if test -n "$ac_ct_MANIFEST_TOOL"; then 6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6154$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6155else 6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6157$as_echo "no" >&6; } 6158fi 6159 6160 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6161 MANIFEST_TOOL=":" 6162 else 6163 case $cross_compiling:$ac_tool_warned in 6164yes:) 6165{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6166$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6167ac_tool_warned=yes ;; 6168esac 6169 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6170 fi 6171else 6172 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6173fi 6174 6175test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6177$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6178if ${lt_cv_path_mainfest_tool+:} false; then : 6179 $as_echo_n "(cached) " >&6 6180else 6181 lt_cv_path_mainfest_tool=no 6182 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6183 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6184 cat conftest.err >&5 6185 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6186 lt_cv_path_mainfest_tool=yes 6187 fi 6188 rm -f conftest* 6189fi 6190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6191$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6192if test "x$lt_cv_path_mainfest_tool" != xyes; then 6193 MANIFEST_TOOL=: 6194fi 6195 6196 6197 6198 6199 6200 6201 case $host_os in 6202 rhapsody* | darwin*) 6203 if test -n "$ac_tool_prefix"; then 6204 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6205set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6207$as_echo_n "checking for $ac_word... " >&6; } 6208if ${ac_cv_prog_DSYMUTIL+:} false; then : 6209 $as_echo_n "(cached) " >&6 6210else 6211 if test -n "$DSYMUTIL"; then 6212 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6213else 6214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6215for as_dir in $PATH 6216do 6217 IFS=$as_save_IFS 6218 test -z "$as_dir" && as_dir=. 6219 for ac_exec_ext in '' $ac_executable_extensions; do 6220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6221 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6223 break 2 6224 fi 6225done 6226 done 6227IFS=$as_save_IFS 6228 6229fi 6230fi 6231DSYMUTIL=$ac_cv_prog_DSYMUTIL 6232if test -n "$DSYMUTIL"; then 6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6234$as_echo "$DSYMUTIL" >&6; } 6235else 6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6237$as_echo "no" >&6; } 6238fi 6239 6240 6241fi 6242if test -z "$ac_cv_prog_DSYMUTIL"; then 6243 ac_ct_DSYMUTIL=$DSYMUTIL 6244 # Extract the first word of "dsymutil", so it can be a program name with args. 6245set dummy dsymutil; ac_word=$2 6246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6247$as_echo_n "checking for $ac_word... " >&6; } 6248if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6249 $as_echo_n "(cached) " >&6 6250else 6251 if test -n "$ac_ct_DSYMUTIL"; then 6252 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6253else 6254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6255for as_dir in $PATH 6256do 6257 IFS=$as_save_IFS 6258 test -z "$as_dir" && as_dir=. 6259 for ac_exec_ext in '' $ac_executable_extensions; do 6260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6261 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6263 break 2 6264 fi 6265done 6266 done 6267IFS=$as_save_IFS 6268 6269fi 6270fi 6271ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6272if test -n "$ac_ct_DSYMUTIL"; then 6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6274$as_echo "$ac_ct_DSYMUTIL" >&6; } 6275else 6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6277$as_echo "no" >&6; } 6278fi 6279 6280 if test "x$ac_ct_DSYMUTIL" = x; then 6281 DSYMUTIL=":" 6282 else 6283 case $cross_compiling:$ac_tool_warned in 6284yes:) 6285{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6286$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6287ac_tool_warned=yes ;; 6288esac 6289 DSYMUTIL=$ac_ct_DSYMUTIL 6290 fi 6291else 6292 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6293fi 6294 6295 if test -n "$ac_tool_prefix"; then 6296 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6297set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6299$as_echo_n "checking for $ac_word... " >&6; } 6300if ${ac_cv_prog_NMEDIT+:} false; then : 6301 $as_echo_n "(cached) " >&6 6302else 6303 if test -n "$NMEDIT"; then 6304 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6305else 6306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6307for as_dir in $PATH 6308do 6309 IFS=$as_save_IFS 6310 test -z "$as_dir" && as_dir=. 6311 for ac_exec_ext in '' $ac_executable_extensions; do 6312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6313 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6315 break 2 6316 fi 6317done 6318 done 6319IFS=$as_save_IFS 6320 6321fi 6322fi 6323NMEDIT=$ac_cv_prog_NMEDIT 6324if test -n "$NMEDIT"; then 6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6326$as_echo "$NMEDIT" >&6; } 6327else 6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6329$as_echo "no" >&6; } 6330fi 6331 6332 6333fi 6334if test -z "$ac_cv_prog_NMEDIT"; then 6335 ac_ct_NMEDIT=$NMEDIT 6336 # Extract the first word of "nmedit", so it can be a program name with args. 6337set dummy nmedit; ac_word=$2 6338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6339$as_echo_n "checking for $ac_word... " >&6; } 6340if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6341 $as_echo_n "(cached) " >&6 6342else 6343 if test -n "$ac_ct_NMEDIT"; then 6344 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6345else 6346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6347for as_dir in $PATH 6348do 6349 IFS=$as_save_IFS 6350 test -z "$as_dir" && as_dir=. 6351 for ac_exec_ext in '' $ac_executable_extensions; do 6352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6353 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6355 break 2 6356 fi 6357done 6358 done 6359IFS=$as_save_IFS 6360 6361fi 6362fi 6363ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6364if test -n "$ac_ct_NMEDIT"; then 6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6366$as_echo "$ac_ct_NMEDIT" >&6; } 6367else 6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6369$as_echo "no" >&6; } 6370fi 6371 6372 if test "x$ac_ct_NMEDIT" = x; then 6373 NMEDIT=":" 6374 else 6375 case $cross_compiling:$ac_tool_warned in 6376yes:) 6377{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6378$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6379ac_tool_warned=yes ;; 6380esac 6381 NMEDIT=$ac_ct_NMEDIT 6382 fi 6383else 6384 NMEDIT="$ac_cv_prog_NMEDIT" 6385fi 6386 6387 if test -n "$ac_tool_prefix"; then 6388 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6389set dummy ${ac_tool_prefix}lipo; ac_word=$2 6390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6391$as_echo_n "checking for $ac_word... " >&6; } 6392if ${ac_cv_prog_LIPO+:} false; then : 6393 $as_echo_n "(cached) " >&6 6394else 6395 if test -n "$LIPO"; then 6396 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6397else 6398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6399for as_dir in $PATH 6400do 6401 IFS=$as_save_IFS 6402 test -z "$as_dir" && as_dir=. 6403 for ac_exec_ext in '' $ac_executable_extensions; do 6404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6405 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6407 break 2 6408 fi 6409done 6410 done 6411IFS=$as_save_IFS 6412 6413fi 6414fi 6415LIPO=$ac_cv_prog_LIPO 6416if test -n "$LIPO"; then 6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6418$as_echo "$LIPO" >&6; } 6419else 6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6421$as_echo "no" >&6; } 6422fi 6423 6424 6425fi 6426if test -z "$ac_cv_prog_LIPO"; then 6427 ac_ct_LIPO=$LIPO 6428 # Extract the first word of "lipo", so it can be a program name with args. 6429set dummy lipo; ac_word=$2 6430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6431$as_echo_n "checking for $ac_word... " >&6; } 6432if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6433 $as_echo_n "(cached) " >&6 6434else 6435 if test -n "$ac_ct_LIPO"; then 6436 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6437else 6438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6439for as_dir in $PATH 6440do 6441 IFS=$as_save_IFS 6442 test -z "$as_dir" && as_dir=. 6443 for ac_exec_ext in '' $ac_executable_extensions; do 6444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6445 ac_cv_prog_ac_ct_LIPO="lipo" 6446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6447 break 2 6448 fi 6449done 6450 done 6451IFS=$as_save_IFS 6452 6453fi 6454fi 6455ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6456if test -n "$ac_ct_LIPO"; then 6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6458$as_echo "$ac_ct_LIPO" >&6; } 6459else 6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6461$as_echo "no" >&6; } 6462fi 6463 6464 if test "x$ac_ct_LIPO" = x; then 6465 LIPO=":" 6466 else 6467 case $cross_compiling:$ac_tool_warned in 6468yes:) 6469{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6470$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6471ac_tool_warned=yes ;; 6472esac 6473 LIPO=$ac_ct_LIPO 6474 fi 6475else 6476 LIPO="$ac_cv_prog_LIPO" 6477fi 6478 6479 if test -n "$ac_tool_prefix"; then 6480 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6481set dummy ${ac_tool_prefix}otool; ac_word=$2 6482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6483$as_echo_n "checking for $ac_word... " >&6; } 6484if ${ac_cv_prog_OTOOL+:} false; then : 6485 $as_echo_n "(cached) " >&6 6486else 6487 if test -n "$OTOOL"; then 6488 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6489else 6490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6491for as_dir in $PATH 6492do 6493 IFS=$as_save_IFS 6494 test -z "$as_dir" && as_dir=. 6495 for ac_exec_ext in '' $ac_executable_extensions; do 6496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6497 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6499 break 2 6500 fi 6501done 6502 done 6503IFS=$as_save_IFS 6504 6505fi 6506fi 6507OTOOL=$ac_cv_prog_OTOOL 6508if test -n "$OTOOL"; then 6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6510$as_echo "$OTOOL" >&6; } 6511else 6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6513$as_echo "no" >&6; } 6514fi 6515 6516 6517fi 6518if test -z "$ac_cv_prog_OTOOL"; then 6519 ac_ct_OTOOL=$OTOOL 6520 # Extract the first word of "otool", so it can be a program name with args. 6521set dummy otool; ac_word=$2 6522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6523$as_echo_n "checking for $ac_word... " >&6; } 6524if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 6525 $as_echo_n "(cached) " >&6 6526else 6527 if test -n "$ac_ct_OTOOL"; then 6528 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6529else 6530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6531for as_dir in $PATH 6532do 6533 IFS=$as_save_IFS 6534 test -z "$as_dir" && as_dir=. 6535 for ac_exec_ext in '' $ac_executable_extensions; do 6536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6537 ac_cv_prog_ac_ct_OTOOL="otool" 6538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6539 break 2 6540 fi 6541done 6542 done 6543IFS=$as_save_IFS 6544 6545fi 6546fi 6547ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6548if test -n "$ac_ct_OTOOL"; then 6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6550$as_echo "$ac_ct_OTOOL" >&6; } 6551else 6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6553$as_echo "no" >&6; } 6554fi 6555 6556 if test "x$ac_ct_OTOOL" = x; then 6557 OTOOL=":" 6558 else 6559 case $cross_compiling:$ac_tool_warned in 6560yes:) 6561{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6562$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6563ac_tool_warned=yes ;; 6564esac 6565 OTOOL=$ac_ct_OTOOL 6566 fi 6567else 6568 OTOOL="$ac_cv_prog_OTOOL" 6569fi 6570 6571 if test -n "$ac_tool_prefix"; then 6572 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6573set dummy ${ac_tool_prefix}otool64; ac_word=$2 6574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6575$as_echo_n "checking for $ac_word... " >&6; } 6576if ${ac_cv_prog_OTOOL64+:} false; then : 6577 $as_echo_n "(cached) " >&6 6578else 6579 if test -n "$OTOOL64"; then 6580 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6581else 6582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6583for as_dir in $PATH 6584do 6585 IFS=$as_save_IFS 6586 test -z "$as_dir" && as_dir=. 6587 for ac_exec_ext in '' $ac_executable_extensions; do 6588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6589 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6591 break 2 6592 fi 6593done 6594 done 6595IFS=$as_save_IFS 6596 6597fi 6598fi 6599OTOOL64=$ac_cv_prog_OTOOL64 6600if test -n "$OTOOL64"; then 6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6602$as_echo "$OTOOL64" >&6; } 6603else 6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6605$as_echo "no" >&6; } 6606fi 6607 6608 6609fi 6610if test -z "$ac_cv_prog_OTOOL64"; then 6611 ac_ct_OTOOL64=$OTOOL64 6612 # Extract the first word of "otool64", so it can be a program name with args. 6613set dummy otool64; ac_word=$2 6614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6615$as_echo_n "checking for $ac_word... " >&6; } 6616if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 6617 $as_echo_n "(cached) " >&6 6618else 6619 if test -n "$ac_ct_OTOOL64"; then 6620 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6621else 6622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6623for as_dir in $PATH 6624do 6625 IFS=$as_save_IFS 6626 test -z "$as_dir" && as_dir=. 6627 for ac_exec_ext in '' $ac_executable_extensions; do 6628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6629 ac_cv_prog_ac_ct_OTOOL64="otool64" 6630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6631 break 2 6632 fi 6633done 6634 done 6635IFS=$as_save_IFS 6636 6637fi 6638fi 6639ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6640if test -n "$ac_ct_OTOOL64"; then 6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 6642$as_echo "$ac_ct_OTOOL64" >&6; } 6643else 6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6645$as_echo "no" >&6; } 6646fi 6647 6648 if test "x$ac_ct_OTOOL64" = x; then 6649 OTOOL64=":" 6650 else 6651 case $cross_compiling:$ac_tool_warned in 6652yes:) 6653{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6654$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6655ac_tool_warned=yes ;; 6656esac 6657 OTOOL64=$ac_ct_OTOOL64 6658 fi 6659else 6660 OTOOL64="$ac_cv_prog_OTOOL64" 6661fi 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 6690$as_echo_n "checking for -single_module linker flag... " >&6; } 6691if ${lt_cv_apple_cc_single_mod+:} false; then : 6692 $as_echo_n "(cached) " >&6 6693else 6694 lt_cv_apple_cc_single_mod=no 6695 if test -z "${LT_MULTI_MODULE}"; then 6696 # By default we will add the -single_module flag. You can override 6697 # by either setting the environment variable LT_MULTI_MODULE 6698 # non-empty at configure time, or by adding -multi_module to the 6699 # link flags. 6700 rm -rf libconftest.dylib* 6701 echo "int foo(void){return 1;}" > conftest.c 6702 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6703-dynamiclib -Wl,-single_module conftest.c" >&5 6704 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6705 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6706 _lt_result=$? 6707 # If there is a non-empty error log, and "single_module" 6708 # appears in it, assume the flag caused a linker warning 6709 if test -s conftest.err && $GREP single_module conftest.err; then 6710 cat conftest.err >&5 6711 # Otherwise, if the output was created with a 0 exit code from 6712 # the compiler, it worked. 6713 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 6714 lt_cv_apple_cc_single_mod=yes 6715 else 6716 cat conftest.err >&5 6717 fi 6718 rm -rf libconftest.dylib* 6719 rm -f conftest.* 6720 fi 6721fi 6722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 6723$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 6724 6725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 6726$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 6727if ${lt_cv_ld_exported_symbols_list+:} false; then : 6728 $as_echo_n "(cached) " >&6 6729else 6730 lt_cv_ld_exported_symbols_list=no 6731 save_LDFLAGS=$LDFLAGS 6732 echo "_main" > conftest.sym 6733 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6735/* end confdefs.h. */ 6736 6737int 6738main () 6739{ 6740 6741 ; 6742 return 0; 6743} 6744_ACEOF 6745if ac_fn_c_try_link "$LINENO"; then : 6746 lt_cv_ld_exported_symbols_list=yes 6747else 6748 lt_cv_ld_exported_symbols_list=no 6749fi 6750rm -f core conftest.err conftest.$ac_objext \ 6751 conftest$ac_exeext conftest.$ac_ext 6752 LDFLAGS="$save_LDFLAGS" 6753 6754fi 6755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 6756$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 6757 6758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 6759$as_echo_n "checking for -force_load linker flag... " >&6; } 6760if ${lt_cv_ld_force_load+:} false; then : 6761 $as_echo_n "(cached) " >&6 6762else 6763 lt_cv_ld_force_load=no 6764 cat > conftest.c << _LT_EOF 6765int forced_loaded() { return 2;} 6766_LT_EOF 6767 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 6768 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 6769 echo "$AR cru libconftest.a conftest.o" >&5 6770 $AR cru libconftest.a conftest.o 2>&5 6771 echo "$RANLIB libconftest.a" >&5 6772 $RANLIB libconftest.a 2>&5 6773 cat > conftest.c << _LT_EOF 6774int main() { return 0;} 6775_LT_EOF 6776 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 6777 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 6778 _lt_result=$? 6779 if test -s conftest.err && $GREP force_load conftest.err; then 6780 cat conftest.err >&5 6781 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 6782 lt_cv_ld_force_load=yes 6783 else 6784 cat conftest.err >&5 6785 fi 6786 rm -f conftest.err libconftest.a conftest conftest.c 6787 rm -rf conftest.dSYM 6788 6789fi 6790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 6791$as_echo "$lt_cv_ld_force_load" >&6; } 6792 case $host_os in 6793 rhapsody* | darwin1.[012]) 6794 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 6795 darwin1.*) 6796 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6797 darwin*) # darwin 5.x on 6798 # if running on 10.5 or later, the deployment target defaults 6799 # to the OS version, if on x86, and 10.4, the deployment 6800 # target defaults to 10.4. Don't you love it? 6801 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 6802 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 6803 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6804 10.[012]*) 6805 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6806 10.*) 6807 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6808 esac 6809 ;; 6810 esac 6811 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 6812 _lt_dar_single_mod='$single_module' 6813 fi 6814 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 6815 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 6816 else 6817 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 6818 fi 6819 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 6820 _lt_dsymutil='~$DSYMUTIL $lib || :' 6821 else 6822 _lt_dsymutil= 6823 fi 6824 ;; 6825 esac 6826 6827ac_ext=c 6828ac_cpp='$CPP $CPPFLAGS' 6829ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6830ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6831ac_compiler_gnu=$ac_cv_c_compiler_gnu 6832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 6833$as_echo_n "checking how to run the C preprocessor... " >&6; } 6834# On Suns, sometimes $CPP names a directory. 6835if test -n "$CPP" && test -d "$CPP"; then 6836 CPP= 6837fi 6838if test -z "$CPP"; then 6839 if ${ac_cv_prog_CPP+:} false; then : 6840 $as_echo_n "(cached) " >&6 6841else 6842 # Double quotes because CPP needs to be expanded 6843 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6844 do 6845 ac_preproc_ok=false 6846for ac_c_preproc_warn_flag in '' yes 6847do 6848 # Use a header file that comes with gcc, so configuring glibc 6849 # with a fresh cross-compiler works. 6850 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6851 # <limits.h> exists even on freestanding compilers. 6852 # On the NeXT, cc -E runs the code through the compiler's parser, 6853 # not just through cpp. "Syntax error" is here to catch this case. 6854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6855/* end confdefs.h. */ 6856#ifdef __STDC__ 6857# include <limits.h> 6858#else 6859# include <assert.h> 6860#endif 6861 Syntax error 6862_ACEOF 6863if ac_fn_c_try_cpp "$LINENO"; then : 6864 6865else 6866 # Broken: fails on valid input. 6867continue 6868fi 6869rm -f conftest.err conftest.i conftest.$ac_ext 6870 6871 # OK, works on sane cases. Now check whether nonexistent headers 6872 # can be detected and how. 6873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6874/* end confdefs.h. */ 6875#include <ac_nonexistent.h> 6876_ACEOF 6877if ac_fn_c_try_cpp "$LINENO"; then : 6878 # Broken: success on invalid input. 6879continue 6880else 6881 # Passes both tests. 6882ac_preproc_ok=: 6883break 6884fi 6885rm -f conftest.err conftest.i conftest.$ac_ext 6886 6887done 6888# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6889rm -f conftest.i conftest.err conftest.$ac_ext 6890if $ac_preproc_ok; then : 6891 break 6892fi 6893 6894 done 6895 ac_cv_prog_CPP=$CPP 6896 6897fi 6898 CPP=$ac_cv_prog_CPP 6899else 6900 ac_cv_prog_CPP=$CPP 6901fi 6902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 6903$as_echo "$CPP" >&6; } 6904ac_preproc_ok=false 6905for ac_c_preproc_warn_flag in '' yes 6906do 6907 # Use a header file that comes with gcc, so configuring glibc 6908 # with a fresh cross-compiler works. 6909 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6910 # <limits.h> exists even on freestanding compilers. 6911 # On the NeXT, cc -E runs the code through the compiler's parser, 6912 # not just through cpp. "Syntax error" is here to catch this case. 6913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6914/* end confdefs.h. */ 6915#ifdef __STDC__ 6916# include <limits.h> 6917#else 6918# include <assert.h> 6919#endif 6920 Syntax error 6921_ACEOF 6922if ac_fn_c_try_cpp "$LINENO"; then : 6923 6924else 6925 # Broken: fails on valid input. 6926continue 6927fi 6928rm -f conftest.err conftest.i conftest.$ac_ext 6929 6930 # OK, works on sane cases. Now check whether nonexistent headers 6931 # can be detected and how. 6932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6933/* end confdefs.h. */ 6934#include <ac_nonexistent.h> 6935_ACEOF 6936if ac_fn_c_try_cpp "$LINENO"; then : 6937 # Broken: success on invalid input. 6938continue 6939else 6940 # Passes both tests. 6941ac_preproc_ok=: 6942break 6943fi 6944rm -f conftest.err conftest.i conftest.$ac_ext 6945 6946done 6947# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6948rm -f conftest.i conftest.err conftest.$ac_ext 6949if $ac_preproc_ok; then : 6950 6951else 6952 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6953$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6954as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 6955See \`config.log' for more details" "$LINENO" 5; } 6956fi 6957 6958ac_ext=c 6959ac_cpp='$CPP $CPPFLAGS' 6960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6962ac_compiler_gnu=$ac_cv_c_compiler_gnu 6963 6964 6965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 6966$as_echo_n "checking for ANSI C header files... " >&6; } 6967if ${ac_cv_header_stdc+:} false; then : 6968 $as_echo_n "(cached) " >&6 6969else 6970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6971/* end confdefs.h. */ 6972#include <stdlib.h> 6973#include <stdarg.h> 6974#include <string.h> 6975#include <float.h> 6976 6977int 6978main () 6979{ 6980 6981 ; 6982 return 0; 6983} 6984_ACEOF 6985if ac_fn_c_try_compile "$LINENO"; then : 6986 ac_cv_header_stdc=yes 6987else 6988 ac_cv_header_stdc=no 6989fi 6990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6991 6992if test $ac_cv_header_stdc = yes; then 6993 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6995/* end confdefs.h. */ 6996#include <string.h> 6997 6998_ACEOF 6999if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7000 $EGREP "memchr" >/dev/null 2>&1; then : 7001 7002else 7003 ac_cv_header_stdc=no 7004fi 7005rm -f conftest* 7006 7007fi 7008 7009if test $ac_cv_header_stdc = yes; then 7010 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7012/* end confdefs.h. */ 7013#include <stdlib.h> 7014 7015_ACEOF 7016if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7017 $EGREP "free" >/dev/null 2>&1; then : 7018 7019else 7020 ac_cv_header_stdc=no 7021fi 7022rm -f conftest* 7023 7024fi 7025 7026if test $ac_cv_header_stdc = yes; then 7027 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7028 if test "$cross_compiling" = yes; then : 7029 : 7030else 7031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7032/* end confdefs.h. */ 7033#include <ctype.h> 7034#include <stdlib.h> 7035#if ((' ' & 0x0FF) == 0x020) 7036# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7037# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7038#else 7039# define ISLOWER(c) \ 7040 (('a' <= (c) && (c) <= 'i') \ 7041 || ('j' <= (c) && (c) <= 'r') \ 7042 || ('s' <= (c) && (c) <= 'z')) 7043# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7044#endif 7045 7046#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7047int 7048main () 7049{ 7050 int i; 7051 for (i = 0; i < 256; i++) 7052 if (XOR (islower (i), ISLOWER (i)) 7053 || toupper (i) != TOUPPER (i)) 7054 return 2; 7055 return 0; 7056} 7057_ACEOF 7058if ac_fn_c_try_run "$LINENO"; then : 7059 7060else 7061 ac_cv_header_stdc=no 7062fi 7063rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7064 conftest.$ac_objext conftest.beam conftest.$ac_ext 7065fi 7066 7067fi 7068fi 7069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7070$as_echo "$ac_cv_header_stdc" >&6; } 7071if test $ac_cv_header_stdc = yes; then 7072 7073$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7074 7075fi 7076 7077# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7078for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7079 inttypes.h stdint.h unistd.h 7080do : 7081 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7082ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7083" 7084if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7085 cat >>confdefs.h <<_ACEOF 7086#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7087_ACEOF 7088 7089fi 7090 7091done 7092 7093 7094for ac_header in dlfcn.h 7095do : 7096 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7097" 7098if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7099 cat >>confdefs.h <<_ACEOF 7100#define HAVE_DLFCN_H 1 7101_ACEOF 7102 7103fi 7104 7105done 7106 7107 7108 7109 7110 7111# Set options 7112enable_win32_dll=yes 7113 7114case $host in 7115*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 7116 if test -n "$ac_tool_prefix"; then 7117 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 7118set dummy ${ac_tool_prefix}as; ac_word=$2 7119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7120$as_echo_n "checking for $ac_word... " >&6; } 7121if ${ac_cv_prog_AS+:} false; then : 7122 $as_echo_n "(cached) " >&6 7123else 7124 if test -n "$AS"; then 7125 ac_cv_prog_AS="$AS" # Let the user override the test. 7126else 7127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7128for as_dir in $PATH 7129do 7130 IFS=$as_save_IFS 7131 test -z "$as_dir" && as_dir=. 7132 for ac_exec_ext in '' $ac_executable_extensions; do 7133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7134 ac_cv_prog_AS="${ac_tool_prefix}as" 7135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7136 break 2 7137 fi 7138done 7139 done 7140IFS=$as_save_IFS 7141 7142fi 7143fi 7144AS=$ac_cv_prog_AS 7145if test -n "$AS"; then 7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 7147$as_echo "$AS" >&6; } 7148else 7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7150$as_echo "no" >&6; } 7151fi 7152 7153 7154fi 7155if test -z "$ac_cv_prog_AS"; then 7156 ac_ct_AS=$AS 7157 # Extract the first word of "as", so it can be a program name with args. 7158set dummy as; ac_word=$2 7159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7160$as_echo_n "checking for $ac_word... " >&6; } 7161if ${ac_cv_prog_ac_ct_AS+:} false; then : 7162 $as_echo_n "(cached) " >&6 7163else 7164 if test -n "$ac_ct_AS"; then 7165 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 7166else 7167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7168for as_dir in $PATH 7169do 7170 IFS=$as_save_IFS 7171 test -z "$as_dir" && as_dir=. 7172 for ac_exec_ext in '' $ac_executable_extensions; do 7173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7174 ac_cv_prog_ac_ct_AS="as" 7175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7176 break 2 7177 fi 7178done 7179 done 7180IFS=$as_save_IFS 7181 7182fi 7183fi 7184ac_ct_AS=$ac_cv_prog_ac_ct_AS 7185if test -n "$ac_ct_AS"; then 7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 7187$as_echo "$ac_ct_AS" >&6; } 7188else 7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7190$as_echo "no" >&6; } 7191fi 7192 7193 if test "x$ac_ct_AS" = x; then 7194 AS="false" 7195 else 7196 case $cross_compiling:$ac_tool_warned in 7197yes:) 7198{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7199$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7200ac_tool_warned=yes ;; 7201esac 7202 AS=$ac_ct_AS 7203 fi 7204else 7205 AS="$ac_cv_prog_AS" 7206fi 7207 7208 if test -n "$ac_tool_prefix"; then 7209 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 7210set dummy ${ac_tool_prefix}dlltool; ac_word=$2 7211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7212$as_echo_n "checking for $ac_word... " >&6; } 7213if ${ac_cv_prog_DLLTOOL+:} false; then : 7214 $as_echo_n "(cached) " >&6 7215else 7216 if test -n "$DLLTOOL"; then 7217 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 7218else 7219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7220for as_dir in $PATH 7221do 7222 IFS=$as_save_IFS 7223 test -z "$as_dir" && as_dir=. 7224 for ac_exec_ext in '' $ac_executable_extensions; do 7225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7226 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 7227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7228 break 2 7229 fi 7230done 7231 done 7232IFS=$as_save_IFS 7233 7234fi 7235fi 7236DLLTOOL=$ac_cv_prog_DLLTOOL 7237if test -n "$DLLTOOL"; then 7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 7239$as_echo "$DLLTOOL" >&6; } 7240else 7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7242$as_echo "no" >&6; } 7243fi 7244 7245 7246fi 7247if test -z "$ac_cv_prog_DLLTOOL"; then 7248 ac_ct_DLLTOOL=$DLLTOOL 7249 # Extract the first word of "dlltool", so it can be a program name with args. 7250set dummy dlltool; ac_word=$2 7251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7252$as_echo_n "checking for $ac_word... " >&6; } 7253if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 7254 $as_echo_n "(cached) " >&6 7255else 7256 if test -n "$ac_ct_DLLTOOL"; then 7257 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 7258else 7259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7260for as_dir in $PATH 7261do 7262 IFS=$as_save_IFS 7263 test -z "$as_dir" && as_dir=. 7264 for ac_exec_ext in '' $ac_executable_extensions; do 7265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7266 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 7267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7268 break 2 7269 fi 7270done 7271 done 7272IFS=$as_save_IFS 7273 7274fi 7275fi 7276ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 7277if test -n "$ac_ct_DLLTOOL"; then 7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 7279$as_echo "$ac_ct_DLLTOOL" >&6; } 7280else 7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7282$as_echo "no" >&6; } 7283fi 7284 7285 if test "x$ac_ct_DLLTOOL" = x; then 7286 DLLTOOL="false" 7287 else 7288 case $cross_compiling:$ac_tool_warned in 7289yes:) 7290{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7291$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7292ac_tool_warned=yes ;; 7293esac 7294 DLLTOOL=$ac_ct_DLLTOOL 7295 fi 7296else 7297 DLLTOOL="$ac_cv_prog_DLLTOOL" 7298fi 7299 7300 if test -n "$ac_tool_prefix"; then 7301 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 7302set dummy ${ac_tool_prefix}objdump; ac_word=$2 7303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7304$as_echo_n "checking for $ac_word... " >&6; } 7305if ${ac_cv_prog_OBJDUMP+:} false; then : 7306 $as_echo_n "(cached) " >&6 7307else 7308 if test -n "$OBJDUMP"; then 7309 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 7310else 7311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7312for as_dir in $PATH 7313do 7314 IFS=$as_save_IFS 7315 test -z "$as_dir" && as_dir=. 7316 for ac_exec_ext in '' $ac_executable_extensions; do 7317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7318 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 7319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7320 break 2 7321 fi 7322done 7323 done 7324IFS=$as_save_IFS 7325 7326fi 7327fi 7328OBJDUMP=$ac_cv_prog_OBJDUMP 7329if test -n "$OBJDUMP"; then 7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 7331$as_echo "$OBJDUMP" >&6; } 7332else 7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7334$as_echo "no" >&6; } 7335fi 7336 7337 7338fi 7339if test -z "$ac_cv_prog_OBJDUMP"; then 7340 ac_ct_OBJDUMP=$OBJDUMP 7341 # Extract the first word of "objdump", so it can be a program name with args. 7342set dummy objdump; ac_word=$2 7343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7344$as_echo_n "checking for $ac_word... " >&6; } 7345if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 7346 $as_echo_n "(cached) " >&6 7347else 7348 if test -n "$ac_ct_OBJDUMP"; then 7349 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 7350else 7351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7352for as_dir in $PATH 7353do 7354 IFS=$as_save_IFS 7355 test -z "$as_dir" && as_dir=. 7356 for ac_exec_ext in '' $ac_executable_extensions; do 7357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7358 ac_cv_prog_ac_ct_OBJDUMP="objdump" 7359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7360 break 2 7361 fi 7362done 7363 done 7364IFS=$as_save_IFS 7365 7366fi 7367fi 7368ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 7369if test -n "$ac_ct_OBJDUMP"; then 7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 7371$as_echo "$ac_ct_OBJDUMP" >&6; } 7372else 7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7374$as_echo "no" >&6; } 7375fi 7376 7377 if test "x$ac_ct_OBJDUMP" = x; then 7378 OBJDUMP="false" 7379 else 7380 case $cross_compiling:$ac_tool_warned in 7381yes:) 7382{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7383$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7384ac_tool_warned=yes ;; 7385esac 7386 OBJDUMP=$ac_ct_OBJDUMP 7387 fi 7388else 7389 OBJDUMP="$ac_cv_prog_OBJDUMP" 7390fi 7391 7392 ;; 7393esac 7394 7395test -z "$AS" && AS=as 7396 7397 7398 7399 7400 7401test -z "$DLLTOOL" && DLLTOOL=dlltool 7402 7403 7404 7405 7406 7407test -z "$OBJDUMP" && OBJDUMP=objdump 7408 7409 7410 7411 7412 7413 7414 7415 enable_dlopen=no 7416 7417 7418 7419 # Check whether --enable-shared was given. 7420if test "${enable_shared+set}" = set; then : 7421 enableval=$enable_shared; p=${PACKAGE-default} 7422 case $enableval in 7423 yes) enable_shared=yes ;; 7424 no) enable_shared=no ;; 7425 *) 7426 enable_shared=no 7427 # Look at the argument we got. We use all the common list separators. 7428 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7429 for pkg in $enableval; do 7430 IFS="$lt_save_ifs" 7431 if test "X$pkg" = "X$p"; then 7432 enable_shared=yes 7433 fi 7434 done 7435 IFS="$lt_save_ifs" 7436 ;; 7437 esac 7438else 7439 enable_shared=yes 7440fi 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 # Check whether --enable-static was given. 7451if test "${enable_static+set}" = set; then : 7452 enableval=$enable_static; p=${PACKAGE-default} 7453 case $enableval in 7454 yes) enable_static=yes ;; 7455 no) enable_static=no ;; 7456 *) 7457 enable_static=no 7458 # Look at the argument we got. We use all the common list separators. 7459 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7460 for pkg in $enableval; do 7461 IFS="$lt_save_ifs" 7462 if test "X$pkg" = "X$p"; then 7463 enable_static=yes 7464 fi 7465 done 7466 IFS="$lt_save_ifs" 7467 ;; 7468 esac 7469else 7470 enable_static=yes 7471fi 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482# Check whether --with-pic was given. 7483if test "${with_pic+set}" = set; then : 7484 withval=$with_pic; lt_p=${PACKAGE-default} 7485 case $withval in 7486 yes|no) pic_mode=$withval ;; 7487 *) 7488 pic_mode=default 7489 # Look at the argument we got. We use all the common list separators. 7490 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7491 for lt_pkg in $withval; do 7492 IFS="$lt_save_ifs" 7493 if test "X$lt_pkg" = "X$lt_p"; then 7494 pic_mode=yes 7495 fi 7496 done 7497 IFS="$lt_save_ifs" 7498 ;; 7499 esac 7500else 7501 pic_mode=default 7502fi 7503 7504 7505test -z "$pic_mode" && pic_mode=default 7506 7507 7508 7509 7510 7511 7512 7513 # Check whether --enable-fast-install was given. 7514if test "${enable_fast_install+set}" = set; then : 7515 enableval=$enable_fast_install; p=${PACKAGE-default} 7516 case $enableval in 7517 yes) enable_fast_install=yes ;; 7518 no) enable_fast_install=no ;; 7519 *) 7520 enable_fast_install=no 7521 # Look at the argument we got. We use all the common list separators. 7522 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7523 for pkg in $enableval; do 7524 IFS="$lt_save_ifs" 7525 if test "X$pkg" = "X$p"; then 7526 enable_fast_install=yes 7527 fi 7528 done 7529 IFS="$lt_save_ifs" 7530 ;; 7531 esac 7532else 7533 enable_fast_install=yes 7534fi 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546# This can be used to rebuild libtool when needed 7547LIBTOOL_DEPS="$ltmain" 7548 7549# Always use our own libtool. 7550LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581test -z "$LN_S" && LN_S="ln -s" 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596if test -n "${ZSH_VERSION+set}" ; then 7597 setopt NO_GLOB_SUBST 7598fi 7599 7600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7601$as_echo_n "checking for objdir... " >&6; } 7602if ${lt_cv_objdir+:} false; then : 7603 $as_echo_n "(cached) " >&6 7604else 7605 rm -f .libs 2>/dev/null 7606mkdir .libs 2>/dev/null 7607if test -d .libs; then 7608 lt_cv_objdir=.libs 7609else 7610 # MS-DOS does not allow filenames that begin with a dot. 7611 lt_cv_objdir=_libs 7612fi 7613rmdir .libs 2>/dev/null 7614fi 7615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7616$as_echo "$lt_cv_objdir" >&6; } 7617objdir=$lt_cv_objdir 7618 7619 7620 7621 7622 7623cat >>confdefs.h <<_ACEOF 7624#define LT_OBJDIR "$lt_cv_objdir/" 7625_ACEOF 7626 7627 7628 7629 7630case $host_os in 7631aix3*) 7632 # AIX sometimes has problems with the GCC collect2 program. For some 7633 # reason, if we set the COLLECT_NAMES environment variable, the problems 7634 # vanish in a puff of smoke. 7635 if test "X${COLLECT_NAMES+set}" != Xset; then 7636 COLLECT_NAMES= 7637 export COLLECT_NAMES 7638 fi 7639 ;; 7640esac 7641 7642# Global variables: 7643ofile=libtool 7644can_build_shared=yes 7645 7646# All known linkers require a `.a' archive for static linking (except MSVC, 7647# which needs '.lib'). 7648libext=a 7649 7650with_gnu_ld="$lt_cv_prog_gnu_ld" 7651 7652old_CC="$CC" 7653old_CFLAGS="$CFLAGS" 7654 7655# Set sane defaults for various variables 7656test -z "$CC" && CC=cc 7657test -z "$LTCC" && LTCC=$CC 7658test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7659test -z "$LD" && LD=ld 7660test -z "$ac_objext" && ac_objext=o 7661 7662for cc_temp in $compiler""; do 7663 case $cc_temp in 7664 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7665 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7666 \-*) ;; 7667 *) break;; 7668 esac 7669done 7670cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7671 7672 7673# Only perform the check for file, if the check method requires it 7674test -z "$MAGIC_CMD" && MAGIC_CMD=file 7675case $deplibs_check_method in 7676file_magic*) 7677 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7679$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7680if ${lt_cv_path_MAGIC_CMD+:} false; then : 7681 $as_echo_n "(cached) " >&6 7682else 7683 case $MAGIC_CMD in 7684[\\/*] | ?:[\\/]*) 7685 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7686 ;; 7687*) 7688 lt_save_MAGIC_CMD="$MAGIC_CMD" 7689 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7690 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7691 for ac_dir in $ac_dummy; do 7692 IFS="$lt_save_ifs" 7693 test -z "$ac_dir" && ac_dir=. 7694 if test -f $ac_dir/${ac_tool_prefix}file; then 7695 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7696 if test -n "$file_magic_test_file"; then 7697 case $deplibs_check_method in 7698 "file_magic "*) 7699 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7700 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7701 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7702 $EGREP "$file_magic_regex" > /dev/null; then 7703 : 7704 else 7705 cat <<_LT_EOF 1>&2 7706 7707*** Warning: the command libtool uses to detect shared libraries, 7708*** $file_magic_cmd, produces output that libtool cannot recognize. 7709*** The result is that libtool may fail to recognize shared libraries 7710*** as such. This will affect the creation of libtool libraries that 7711*** depend on shared libraries, but programs linked with such libtool 7712*** libraries will work regardless of this problem. Nevertheless, you 7713*** may want to report the problem to your system manager and/or to 7714*** bug-libtool@gnu.org 7715 7716_LT_EOF 7717 fi ;; 7718 esac 7719 fi 7720 break 7721 fi 7722 done 7723 IFS="$lt_save_ifs" 7724 MAGIC_CMD="$lt_save_MAGIC_CMD" 7725 ;; 7726esac 7727fi 7728 7729MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7730if test -n "$MAGIC_CMD"; then 7731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7732$as_echo "$MAGIC_CMD" >&6; } 7733else 7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7735$as_echo "no" >&6; } 7736fi 7737 7738 7739 7740 7741 7742if test -z "$lt_cv_path_MAGIC_CMD"; then 7743 if test -n "$ac_tool_prefix"; then 7744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7745$as_echo_n "checking for file... " >&6; } 7746if ${lt_cv_path_MAGIC_CMD+:} false; then : 7747 $as_echo_n "(cached) " >&6 7748else 7749 case $MAGIC_CMD in 7750[\\/*] | ?:[\\/]*) 7751 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7752 ;; 7753*) 7754 lt_save_MAGIC_CMD="$MAGIC_CMD" 7755 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7756 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7757 for ac_dir in $ac_dummy; do 7758 IFS="$lt_save_ifs" 7759 test -z "$ac_dir" && ac_dir=. 7760 if test -f $ac_dir/file; then 7761 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7762 if test -n "$file_magic_test_file"; then 7763 case $deplibs_check_method in 7764 "file_magic "*) 7765 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7766 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7767 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7768 $EGREP "$file_magic_regex" > /dev/null; then 7769 : 7770 else 7771 cat <<_LT_EOF 1>&2 7772 7773*** Warning: the command libtool uses to detect shared libraries, 7774*** $file_magic_cmd, produces output that libtool cannot recognize. 7775*** The result is that libtool may fail to recognize shared libraries 7776*** as such. This will affect the creation of libtool libraries that 7777*** depend on shared libraries, but programs linked with such libtool 7778*** libraries will work regardless of this problem. Nevertheless, you 7779*** may want to report the problem to your system manager and/or to 7780*** bug-libtool@gnu.org 7781 7782_LT_EOF 7783 fi ;; 7784 esac 7785 fi 7786 break 7787 fi 7788 done 7789 IFS="$lt_save_ifs" 7790 MAGIC_CMD="$lt_save_MAGIC_CMD" 7791 ;; 7792esac 7793fi 7794 7795MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7796if test -n "$MAGIC_CMD"; then 7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7798$as_echo "$MAGIC_CMD" >&6; } 7799else 7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7801$as_echo "no" >&6; } 7802fi 7803 7804 7805 else 7806 MAGIC_CMD=: 7807 fi 7808fi 7809 7810 fi 7811 ;; 7812esac 7813 7814# Use C for the default configuration in the libtool script 7815 7816lt_save_CC="$CC" 7817ac_ext=c 7818ac_cpp='$CPP $CPPFLAGS' 7819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7821ac_compiler_gnu=$ac_cv_c_compiler_gnu 7822 7823 7824# Source file extension for C test sources. 7825ac_ext=c 7826 7827# Object file extension for compiled C test sources. 7828objext=o 7829objext=$objext 7830 7831# Code to be used in simple compile tests 7832lt_simple_compile_test_code="int some_variable = 0;" 7833 7834# Code to be used in simple link tests 7835lt_simple_link_test_code='int main(){return(0);}' 7836 7837 7838 7839 7840 7841 7842 7843# If no C compiler was specified, use CC. 7844LTCC=${LTCC-"$CC"} 7845 7846# If no C compiler flags were specified, use CFLAGS. 7847LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7848 7849# Allow CC to be a program name with arguments. 7850compiler=$CC 7851 7852# Save the default compiler, since it gets overwritten when the other 7853# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7854compiler_DEFAULT=$CC 7855 7856# save warnings/boilerplate of simple test code 7857ac_outfile=conftest.$ac_objext 7858echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7859eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7860_lt_compiler_boilerplate=`cat conftest.err` 7861$RM conftest* 7862 7863ac_outfile=conftest.$ac_objext 7864echo "$lt_simple_link_test_code" >conftest.$ac_ext 7865eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7866_lt_linker_boilerplate=`cat conftest.err` 7867$RM -r conftest* 7868 7869 7870## CAVEAT EMPTOR: 7871## There is no encapsulation within the following macros, do not change 7872## the running order or otherwise move them around unless you know exactly 7873## what you are doing... 7874if test -n "$compiler"; then 7875 7876lt_prog_compiler_no_builtin_flag= 7877 7878if test "$GCC" = yes; then 7879 case $cc_basename in 7880 nvcc*) 7881 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 7882 *) 7883 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 7884 esac 7885 7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7887$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7888if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 7889 $as_echo_n "(cached) " >&6 7890else 7891 lt_cv_prog_compiler_rtti_exceptions=no 7892 ac_outfile=conftest.$ac_objext 7893 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7894 lt_compiler_flag="-fno-rtti -fno-exceptions" 7895 # Insert the option either (1) after the last *FLAGS variable, or 7896 # (2) before a word containing "conftest.", or (3) at the end. 7897 # Note that $ac_compile itself does not contain backslashes and begins 7898 # with a dollar sign (not a hyphen), so the echo should work correctly. 7899 # The option is referenced via a variable to avoid confusing sed. 7900 lt_compile=`echo "$ac_compile" | $SED \ 7901 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7902 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7903 -e 's:$: $lt_compiler_flag:'` 7904 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7905 (eval "$lt_compile" 2>conftest.err) 7906 ac_status=$? 7907 cat conftest.err >&5 7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7909 if (exit $ac_status) && test -s "$ac_outfile"; then 7910 # The compiler can only warn and ignore the option if not recognized 7911 # So say no if there are warnings other than the usual output. 7912 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7913 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7914 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7915 lt_cv_prog_compiler_rtti_exceptions=yes 7916 fi 7917 fi 7918 $RM conftest* 7919 7920fi 7921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7922$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7923 7924if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7925 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7926else 7927 : 7928fi 7929 7930fi 7931 7932 7933 7934 7935 7936 7937 lt_prog_compiler_wl= 7938lt_prog_compiler_pic= 7939lt_prog_compiler_static= 7940 7941 7942 if test "$GCC" = yes; then 7943 lt_prog_compiler_wl='-Wl,' 7944 lt_prog_compiler_static='-static' 7945 7946 case $host_os in 7947 aix*) 7948 # All AIX code is PIC. 7949 if test "$host_cpu" = ia64; then 7950 # AIX 5 now supports IA64 processor 7951 lt_prog_compiler_static='-Bstatic' 7952 fi 7953 ;; 7954 7955 amigaos*) 7956 case $host_cpu in 7957 powerpc) 7958 # see comment about AmigaOS4 .so support 7959 lt_prog_compiler_pic='-fPIC' 7960 ;; 7961 m68k) 7962 # FIXME: we need at least 68020 code to build shared libraries, but 7963 # adding the `-m68020' flag to GCC prevents building anything better, 7964 # like `-m68040'. 7965 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7966 ;; 7967 esac 7968 ;; 7969 7970 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7971 # PIC is the default for these OSes. 7972 ;; 7973 7974 mingw* | cygwin* | pw32* | os2* | cegcc*) 7975 # This hack is so that the source file can tell whether it is being 7976 # built for inclusion in a dll (and should export symbols for example). 7977 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7978 # (--disable-auto-import) libraries 7979 lt_prog_compiler_pic='-DDLL_EXPORT' 7980 ;; 7981 7982 darwin* | rhapsody*) 7983 # PIC is the default on this platform 7984 # Common symbols not allowed in MH_DYLIB files 7985 lt_prog_compiler_pic='-fno-common' 7986 ;; 7987 7988 haiku*) 7989 # PIC is the default for Haiku. 7990 # The "-static" flag exists, but is broken. 7991 lt_prog_compiler_static= 7992 ;; 7993 7994 hpux*) 7995 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7996 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7997 # sets the default TLS model and affects inlining. 7998 case $host_cpu in 7999 hppa*64*) 8000 # +Z the default 8001 ;; 8002 *) 8003 lt_prog_compiler_pic='-fPIC' 8004 ;; 8005 esac 8006 ;; 8007 8008 interix[3-9]*) 8009 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8010 # Instead, we relocate shared libraries at runtime. 8011 ;; 8012 8013 msdosdjgpp*) 8014 # Just because we use GCC doesn't mean we suddenly get shared libraries 8015 # on systems that don't support them. 8016 lt_prog_compiler_can_build_shared=no 8017 enable_shared=no 8018 ;; 8019 8020 *nto* | *qnx*) 8021 # QNX uses GNU C++, but need to define -shared option too, otherwise 8022 # it will coredump. 8023 lt_prog_compiler_pic='-fPIC -shared' 8024 ;; 8025 8026 sysv4*MP*) 8027 if test -d /usr/nec; then 8028 lt_prog_compiler_pic=-Kconform_pic 8029 fi 8030 ;; 8031 8032 *) 8033 lt_prog_compiler_pic='-fPIC' 8034 ;; 8035 esac 8036 8037 case $cc_basename in 8038 nvcc*) # Cuda Compiler Driver 2.2 8039 lt_prog_compiler_wl='-Xlinker ' 8040 if test -n "$lt_prog_compiler_pic"; then 8041 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8042 fi 8043 ;; 8044 esac 8045 else 8046 # PORTME Check for flag to pass linker flags through the system compiler. 8047 case $host_os in 8048 aix*) 8049 lt_prog_compiler_wl='-Wl,' 8050 if test "$host_cpu" = ia64; then 8051 # AIX 5 now supports IA64 processor 8052 lt_prog_compiler_static='-Bstatic' 8053 else 8054 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8055 fi 8056 ;; 8057 8058 mingw* | cygwin* | pw32* | os2* | cegcc*) 8059 # This hack is so that the source file can tell whether it is being 8060 # built for inclusion in a dll (and should export symbols for example). 8061 lt_prog_compiler_pic='-DDLL_EXPORT' 8062 ;; 8063 8064 hpux9* | hpux10* | hpux11*) 8065 lt_prog_compiler_wl='-Wl,' 8066 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8067 # not for PA HP-UX. 8068 case $host_cpu in 8069 hppa*64*|ia64*) 8070 # +Z the default 8071 ;; 8072 *) 8073 lt_prog_compiler_pic='+Z' 8074 ;; 8075 esac 8076 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8077 lt_prog_compiler_static='${wl}-a ${wl}archive' 8078 ;; 8079 8080 irix5* | irix6* | nonstopux*) 8081 lt_prog_compiler_wl='-Wl,' 8082 # PIC (with -KPIC) is the default. 8083 lt_prog_compiler_static='-non_shared' 8084 ;; 8085 8086 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8087 case $cc_basename in 8088 # old Intel for x86_64 which still supported -KPIC. 8089 ecc*) 8090 lt_prog_compiler_wl='-Wl,' 8091 lt_prog_compiler_pic='-KPIC' 8092 lt_prog_compiler_static='-static' 8093 ;; 8094 # icc used to be incompatible with GCC. 8095 # ICC 10 doesn't accept -KPIC any more. 8096 icc* | ifort*) 8097 lt_prog_compiler_wl='-Wl,' 8098 lt_prog_compiler_pic='-fPIC' 8099 lt_prog_compiler_static='-static' 8100 ;; 8101 # Lahey Fortran 8.1. 8102 lf95*) 8103 lt_prog_compiler_wl='-Wl,' 8104 lt_prog_compiler_pic='--shared' 8105 lt_prog_compiler_static='--static' 8106 ;; 8107 nagfor*) 8108 # NAG Fortran compiler 8109 lt_prog_compiler_wl='-Wl,-Wl,,' 8110 lt_prog_compiler_pic='-PIC' 8111 lt_prog_compiler_static='-Bstatic' 8112 ;; 8113 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8114 # Portland Group compilers (*not* the Pentium gcc compiler, 8115 # which looks to be a dead project) 8116 lt_prog_compiler_wl='-Wl,' 8117 lt_prog_compiler_pic='-fpic' 8118 lt_prog_compiler_static='-Bstatic' 8119 ;; 8120 ccc*) 8121 lt_prog_compiler_wl='-Wl,' 8122 # All Alpha code is PIC. 8123 lt_prog_compiler_static='-non_shared' 8124 ;; 8125 xl* | bgxl* | bgf* | mpixl*) 8126 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8127 lt_prog_compiler_wl='-Wl,' 8128 lt_prog_compiler_pic='-qpic' 8129 lt_prog_compiler_static='-qstaticlink' 8130 ;; 8131 *) 8132 case `$CC -V 2>&1 | sed 5q` in 8133 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8134 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8135 lt_prog_compiler_pic='-KPIC' 8136 lt_prog_compiler_static='-Bstatic' 8137 lt_prog_compiler_wl='' 8138 ;; 8139 *Sun\ F* | *Sun*Fortran*) 8140 lt_prog_compiler_pic='-KPIC' 8141 lt_prog_compiler_static='-Bstatic' 8142 lt_prog_compiler_wl='-Qoption ld ' 8143 ;; 8144 *Sun\ C*) 8145 # Sun C 5.9 8146 lt_prog_compiler_pic='-KPIC' 8147 lt_prog_compiler_static='-Bstatic' 8148 lt_prog_compiler_wl='-Wl,' 8149 ;; 8150 *Intel*\ [CF]*Compiler*) 8151 lt_prog_compiler_wl='-Wl,' 8152 lt_prog_compiler_pic='-fPIC' 8153 lt_prog_compiler_static='-static' 8154 ;; 8155 *Portland\ Group*) 8156 lt_prog_compiler_wl='-Wl,' 8157 lt_prog_compiler_pic='-fpic' 8158 lt_prog_compiler_static='-Bstatic' 8159 ;; 8160 esac 8161 ;; 8162 esac 8163 ;; 8164 8165 newsos6) 8166 lt_prog_compiler_pic='-KPIC' 8167 lt_prog_compiler_static='-Bstatic' 8168 ;; 8169 8170 *nto* | *qnx*) 8171 # QNX uses GNU C++, but need to define -shared option too, otherwise 8172 # it will coredump. 8173 lt_prog_compiler_pic='-fPIC -shared' 8174 ;; 8175 8176 osf3* | osf4* | osf5*) 8177 lt_prog_compiler_wl='-Wl,' 8178 # All OSF/1 code is PIC. 8179 lt_prog_compiler_static='-non_shared' 8180 ;; 8181 8182 rdos*) 8183 lt_prog_compiler_static='-non_shared' 8184 ;; 8185 8186 solaris*) 8187 lt_prog_compiler_pic='-KPIC' 8188 lt_prog_compiler_static='-Bstatic' 8189 case $cc_basename in 8190 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8191 lt_prog_compiler_wl='-Qoption ld ';; 8192 *) 8193 lt_prog_compiler_wl='-Wl,';; 8194 esac 8195 ;; 8196 8197 sunos4*) 8198 lt_prog_compiler_wl='-Qoption ld ' 8199 lt_prog_compiler_pic='-PIC' 8200 lt_prog_compiler_static='-Bstatic' 8201 ;; 8202 8203 sysv4 | sysv4.2uw2* | sysv4.3*) 8204 lt_prog_compiler_wl='-Wl,' 8205 lt_prog_compiler_pic='-KPIC' 8206 lt_prog_compiler_static='-Bstatic' 8207 ;; 8208 8209 sysv4*MP*) 8210 if test -d /usr/nec ;then 8211 lt_prog_compiler_pic='-Kconform_pic' 8212 lt_prog_compiler_static='-Bstatic' 8213 fi 8214 ;; 8215 8216 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8217 lt_prog_compiler_wl='-Wl,' 8218 lt_prog_compiler_pic='-KPIC' 8219 lt_prog_compiler_static='-Bstatic' 8220 ;; 8221 8222 unicos*) 8223 lt_prog_compiler_wl='-Wl,' 8224 lt_prog_compiler_can_build_shared=no 8225 ;; 8226 8227 uts4*) 8228 lt_prog_compiler_pic='-pic' 8229 lt_prog_compiler_static='-Bstatic' 8230 ;; 8231 8232 *) 8233 lt_prog_compiler_can_build_shared=no 8234 ;; 8235 esac 8236 fi 8237 8238case $host_os in 8239 # For platforms which do not support PIC, -DPIC is meaningless: 8240 *djgpp*) 8241 lt_prog_compiler_pic= 8242 ;; 8243 *) 8244 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8245 ;; 8246esac 8247 8248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8249$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8250if ${lt_cv_prog_compiler_pic+:} false; then : 8251 $as_echo_n "(cached) " >&6 8252else 8253 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8254fi 8255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8256$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8257lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8258 8259# 8260# Check to make sure the PIC flag actually works. 8261# 8262if test -n "$lt_prog_compiler_pic"; then 8263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8264$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8265if ${lt_cv_prog_compiler_pic_works+:} false; then : 8266 $as_echo_n "(cached) " >&6 8267else 8268 lt_cv_prog_compiler_pic_works=no 8269 ac_outfile=conftest.$ac_objext 8270 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8271 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8272 # Insert the option either (1) after the last *FLAGS variable, or 8273 # (2) before a word containing "conftest.", or (3) at the end. 8274 # Note that $ac_compile itself does not contain backslashes and begins 8275 # with a dollar sign (not a hyphen), so the echo should work correctly. 8276 # The option is referenced via a variable to avoid confusing sed. 8277 lt_compile=`echo "$ac_compile" | $SED \ 8278 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8279 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8280 -e 's:$: $lt_compiler_flag:'` 8281 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8282 (eval "$lt_compile" 2>conftest.err) 8283 ac_status=$? 8284 cat conftest.err >&5 8285 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8286 if (exit $ac_status) && test -s "$ac_outfile"; then 8287 # The compiler can only warn and ignore the option if not recognized 8288 # So say no if there are warnings other than the usual output. 8289 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8290 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8291 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8292 lt_cv_prog_compiler_pic_works=yes 8293 fi 8294 fi 8295 $RM conftest* 8296 8297fi 8298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8299$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8300 8301if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8302 case $lt_prog_compiler_pic in 8303 "" | " "*) ;; 8304 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8305 esac 8306else 8307 lt_prog_compiler_pic= 8308 lt_prog_compiler_can_build_shared=no 8309fi 8310 8311fi 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323# 8324# Check to make sure the static flag actually works. 8325# 8326wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8328$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8329if ${lt_cv_prog_compiler_static_works+:} false; then : 8330 $as_echo_n "(cached) " >&6 8331else 8332 lt_cv_prog_compiler_static_works=no 8333 save_LDFLAGS="$LDFLAGS" 8334 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8335 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8336 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8337 # The linker can only warn and ignore the option if not recognized 8338 # So say no if there are warnings 8339 if test -s conftest.err; then 8340 # Append any errors to the config.log. 8341 cat conftest.err 1>&5 8342 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8343 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8344 if diff conftest.exp conftest.er2 >/dev/null; then 8345 lt_cv_prog_compiler_static_works=yes 8346 fi 8347 else 8348 lt_cv_prog_compiler_static_works=yes 8349 fi 8350 fi 8351 $RM -r conftest* 8352 LDFLAGS="$save_LDFLAGS" 8353 8354fi 8355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8356$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8357 8358if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8359 : 8360else 8361 lt_prog_compiler_static= 8362fi 8363 8364 8365 8366 8367 8368 8369 8370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8371$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8372if ${lt_cv_prog_compiler_c_o+:} false; then : 8373 $as_echo_n "(cached) " >&6 8374else 8375 lt_cv_prog_compiler_c_o=no 8376 $RM -r conftest 2>/dev/null 8377 mkdir conftest 8378 cd conftest 8379 mkdir out 8380 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8381 8382 lt_compiler_flag="-o out/conftest2.$ac_objext" 8383 # Insert the option either (1) after the last *FLAGS variable, or 8384 # (2) before a word containing "conftest.", or (3) at the end. 8385 # Note that $ac_compile itself does not contain backslashes and begins 8386 # with a dollar sign (not a hyphen), so the echo should work correctly. 8387 lt_compile=`echo "$ac_compile" | $SED \ 8388 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8389 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8390 -e 's:$: $lt_compiler_flag:'` 8391 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8392 (eval "$lt_compile" 2>out/conftest.err) 8393 ac_status=$? 8394 cat out/conftest.err >&5 8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8396 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8397 then 8398 # The compiler can only warn and ignore the option if not recognized 8399 # So say no if there are warnings 8400 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8401 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8402 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8403 lt_cv_prog_compiler_c_o=yes 8404 fi 8405 fi 8406 chmod u+w . 2>&5 8407 $RM conftest* 8408 # SGI C++ compiler will create directory out/ii_files/ for 8409 # template instantiation 8410 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8411 $RM out/* && rmdir out 8412 cd .. 8413 $RM -r conftest 8414 $RM conftest* 8415 8416fi 8417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8418$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8419 8420 8421 8422 8423 8424 8425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8426$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8427if ${lt_cv_prog_compiler_c_o+:} false; then : 8428 $as_echo_n "(cached) " >&6 8429else 8430 lt_cv_prog_compiler_c_o=no 8431 $RM -r conftest 2>/dev/null 8432 mkdir conftest 8433 cd conftest 8434 mkdir out 8435 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8436 8437 lt_compiler_flag="-o out/conftest2.$ac_objext" 8438 # Insert the option either (1) after the last *FLAGS variable, or 8439 # (2) before a word containing "conftest.", or (3) at the end. 8440 # Note that $ac_compile itself does not contain backslashes and begins 8441 # with a dollar sign (not a hyphen), so the echo should work correctly. 8442 lt_compile=`echo "$ac_compile" | $SED \ 8443 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8444 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8445 -e 's:$: $lt_compiler_flag:'` 8446 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8447 (eval "$lt_compile" 2>out/conftest.err) 8448 ac_status=$? 8449 cat out/conftest.err >&5 8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8451 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8452 then 8453 # The compiler can only warn and ignore the option if not recognized 8454 # So say no if there are warnings 8455 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8456 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8457 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8458 lt_cv_prog_compiler_c_o=yes 8459 fi 8460 fi 8461 chmod u+w . 2>&5 8462 $RM conftest* 8463 # SGI C++ compiler will create directory out/ii_files/ for 8464 # template instantiation 8465 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8466 $RM out/* && rmdir out 8467 cd .. 8468 $RM -r conftest 8469 $RM conftest* 8470 8471fi 8472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8473$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8474 8475 8476 8477 8478hard_links="nottested" 8479if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8480 # do not overwrite the value of need_locks provided by the user 8481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8482$as_echo_n "checking if we can lock with hard links... " >&6; } 8483 hard_links=yes 8484 $RM conftest* 8485 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8486 touch conftest.a 8487 ln conftest.a conftest.b 2>&5 || hard_links=no 8488 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8490$as_echo "$hard_links" >&6; } 8491 if test "$hard_links" = no; then 8492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8493$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8494 need_locks=warn 8495 fi 8496else 8497 need_locks=no 8498fi 8499 8500 8501 8502 8503 8504 8505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8506$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8507 8508 runpath_var= 8509 allow_undefined_flag= 8510 always_export_symbols=no 8511 archive_cmds= 8512 archive_expsym_cmds= 8513 compiler_needs_object=no 8514 enable_shared_with_static_runtimes=no 8515 export_dynamic_flag_spec= 8516 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8517 hardcode_automatic=no 8518 hardcode_direct=no 8519 hardcode_direct_absolute=no 8520 hardcode_libdir_flag_spec= 8521 hardcode_libdir_separator= 8522 hardcode_minus_L=no 8523 hardcode_shlibpath_var=unsupported 8524 inherit_rpath=no 8525 link_all_deplibs=unknown 8526 module_cmds= 8527 module_expsym_cmds= 8528 old_archive_from_new_cmds= 8529 old_archive_from_expsyms_cmds= 8530 thread_safe_flag_spec= 8531 whole_archive_flag_spec= 8532 # include_expsyms should be a list of space-separated symbols to be *always* 8533 # included in the symbol list 8534 include_expsyms= 8535 # exclude_expsyms can be an extended regexp of symbols to exclude 8536 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8537 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8538 # as well as any symbol that contains `d'. 8539 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8540 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8541 # platforms (ab)use it in PIC code, but their linkers get confused if 8542 # the symbol is explicitly referenced. Since portable code cannot 8543 # rely on this symbol name, it's probably fine to never include it in 8544 # preloaded symbol tables. 8545 # Exclude shared library initialization/finalization symbols. 8546 extract_expsyms_cmds= 8547 8548 case $host_os in 8549 cygwin* | mingw* | pw32* | cegcc*) 8550 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8551 # When not using gcc, we currently assume that we are using 8552 # Microsoft Visual C++. 8553 if test "$GCC" != yes; then 8554 with_gnu_ld=no 8555 fi 8556 ;; 8557 interix*) 8558 # we just hope/assume this is gcc and not c89 (= MSVC++) 8559 with_gnu_ld=yes 8560 ;; 8561 openbsd*) 8562 with_gnu_ld=no 8563 ;; 8564 esac 8565 8566 ld_shlibs=yes 8567 8568 # On some targets, GNU ld is compatible enough with the native linker 8569 # that we're better off using the native interface for both. 8570 lt_use_gnu_ld_interface=no 8571 if test "$with_gnu_ld" = yes; then 8572 case $host_os in 8573 aix*) 8574 # The AIX port of GNU ld has always aspired to compatibility 8575 # with the native linker. However, as the warning in the GNU ld 8576 # block says, versions before 2.19.5* couldn't really create working 8577 # shared libraries, regardless of the interface used. 8578 case `$LD -v 2>&1` in 8579 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8580 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8581 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8582 *) 8583 lt_use_gnu_ld_interface=yes 8584 ;; 8585 esac 8586 ;; 8587 *) 8588 lt_use_gnu_ld_interface=yes 8589 ;; 8590 esac 8591 fi 8592 8593 if test "$lt_use_gnu_ld_interface" = yes; then 8594 # If archive_cmds runs LD, not CC, wlarc should be empty 8595 wlarc='${wl}' 8596 8597 # Set some defaults for GNU ld with shared library support. These 8598 # are reset later if shared libraries are not supported. Putting them 8599 # here allows them to be overridden if necessary. 8600 runpath_var=LD_RUN_PATH 8601 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8602 export_dynamic_flag_spec='${wl}--export-dynamic' 8603 # ancient GNU ld didn't support --whole-archive et. al. 8604 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8605 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8606 else 8607 whole_archive_flag_spec= 8608 fi 8609 supports_anon_versioning=no 8610 case `$LD -v 2>&1` in 8611 *GNU\ gold*) supports_anon_versioning=yes ;; 8612 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8613 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8614 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8615 *\ 2.11.*) ;; # other 2.11 versions 8616 *) supports_anon_versioning=yes ;; 8617 esac 8618 8619 # See if GNU ld supports shared libraries. 8620 case $host_os in 8621 aix[3-9]*) 8622 # On AIX/PPC, the GNU linker is very broken 8623 if test "$host_cpu" != ia64; then 8624 ld_shlibs=no 8625 cat <<_LT_EOF 1>&2 8626 8627*** Warning: the GNU linker, at least up to release 2.19, is reported 8628*** to be unable to reliably create shared libraries on AIX. 8629*** Therefore, libtool is disabling shared libraries support. If you 8630*** really care for shared libraries, you may want to install binutils 8631*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8632*** You will then need to restart the configuration process. 8633 8634_LT_EOF 8635 fi 8636 ;; 8637 8638 amigaos*) 8639 case $host_cpu in 8640 powerpc) 8641 # see comment about AmigaOS4 .so support 8642 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8643 archive_expsym_cmds='' 8644 ;; 8645 m68k) 8646 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)' 8647 hardcode_libdir_flag_spec='-L$libdir' 8648 hardcode_minus_L=yes 8649 ;; 8650 esac 8651 ;; 8652 8653 beos*) 8654 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8655 allow_undefined_flag=unsupported 8656 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8657 # support --undefined. This deserves some investigation. FIXME 8658 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8659 else 8660 ld_shlibs=no 8661 fi 8662 ;; 8663 8664 cygwin* | mingw* | pw32* | cegcc*) 8665 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8666 # as there is no search path for DLLs. 8667 hardcode_libdir_flag_spec='-L$libdir' 8668 export_dynamic_flag_spec='${wl}--export-all-symbols' 8669 allow_undefined_flag=unsupported 8670 always_export_symbols=no 8671 enable_shared_with_static_runtimes=yes 8672 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 8673 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8674 8675 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8676 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8677 # If the export-symbols file already is a .def file (1st line 8678 # is EXPORTS), use it as is; otherwise, prepend... 8679 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8680 cp $export_symbols $output_objdir/$soname.def; 8681 else 8682 echo EXPORTS > $output_objdir/$soname.def; 8683 cat $export_symbols >> $output_objdir/$soname.def; 8684 fi~ 8685 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8686 else 8687 ld_shlibs=no 8688 fi 8689 ;; 8690 8691 haiku*) 8692 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8693 link_all_deplibs=yes 8694 ;; 8695 8696 interix[3-9]*) 8697 hardcode_direct=no 8698 hardcode_shlibpath_var=no 8699 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8700 export_dynamic_flag_spec='${wl}-E' 8701 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8702 # Instead, shared libraries are loaded at an image base (0x10000000 by 8703 # default) and relocated if they conflict, which is a slow very memory 8704 # consuming and fragmenting process. To avoid this, we pick a random, 8705 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8706 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8707 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8708 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8709 ;; 8710 8711 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8712 tmp_diet=no 8713 if test "$host_os" = linux-dietlibc; then 8714 case $cc_basename in 8715 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8716 esac 8717 fi 8718 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8719 && test "$tmp_diet" = no 8720 then 8721 tmp_addflag=' $pic_flag' 8722 tmp_sharedflag='-shared' 8723 case $cc_basename,$host_cpu in 8724 pgcc*) # Portland Group C compiler 8725 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 8726 tmp_addflag=' $pic_flag' 8727 ;; 8728 pgf77* | pgf90* | pgf95* | pgfortran*) 8729 # Portland Group f77 and f90 compilers 8730 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 8731 tmp_addflag=' $pic_flag -Mnomain' ;; 8732 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8733 tmp_addflag=' -i_dynamic' ;; 8734 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8735 tmp_addflag=' -i_dynamic -nofor_main' ;; 8736 ifc* | ifort*) # Intel Fortran compiler 8737 tmp_addflag=' -nofor_main' ;; 8738 lf95*) # Lahey Fortran 8.1 8739 whole_archive_flag_spec= 8740 tmp_sharedflag='--shared' ;; 8741 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8742 tmp_sharedflag='-qmkshrobj' 8743 tmp_addflag= ;; 8744 nvcc*) # Cuda Compiler Driver 2.2 8745 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 8746 compiler_needs_object=yes 8747 ;; 8748 esac 8749 case `$CC -V 2>&1 | sed 5q` in 8750 *Sun\ C*) # Sun C 5.9 8751 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 8752 compiler_needs_object=yes 8753 tmp_sharedflag='-G' ;; 8754 *Sun\ F*) # Sun Fortran 8.3 8755 tmp_sharedflag='-G' ;; 8756 esac 8757 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8758 8759 if test "x$supports_anon_versioning" = xyes; then 8760 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8761 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8762 echo "local: *; };" >> $output_objdir/$libname.ver~ 8763 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8764 fi 8765 8766 case $cc_basename in 8767 xlf* | bgf* | bgxlf* | mpixlf*) 8768 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8769 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8770 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8771 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 8772 if test "x$supports_anon_versioning" = xyes; then 8773 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8774 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8775 echo "local: *; };" >> $output_objdir/$libname.ver~ 8776 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8777 fi 8778 ;; 8779 esac 8780 else 8781 ld_shlibs=no 8782 fi 8783 ;; 8784 8785 netbsd*) 8786 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8787 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8788 wlarc= 8789 else 8790 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8791 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8792 fi 8793 ;; 8794 8795 solaris*) 8796 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8797 ld_shlibs=no 8798 cat <<_LT_EOF 1>&2 8799 8800*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8801*** create shared libraries on Solaris systems. Therefore, libtool 8802*** is disabling shared libraries support. We urge you to upgrade GNU 8803*** binutils to release 2.9.1 or newer. Another option is to modify 8804*** your PATH or compiler configuration so that the native linker is 8805*** used, and then restart. 8806 8807_LT_EOF 8808 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8809 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8810 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8811 else 8812 ld_shlibs=no 8813 fi 8814 ;; 8815 8816 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8817 case `$LD -v 2>&1` in 8818 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8819 ld_shlibs=no 8820 cat <<_LT_EOF 1>&2 8821 8822*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8823*** reliably create shared libraries on SCO systems. Therefore, libtool 8824*** is disabling shared libraries support. We urge you to upgrade GNU 8825*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8826*** your PATH or compiler configuration so that the native linker is 8827*** used, and then restart. 8828 8829_LT_EOF 8830 ;; 8831 *) 8832 # For security reasons, it is highly recommended that you always 8833 # use absolute paths for naming shared libraries, and exclude the 8834 # DT_RUNPATH tag from executables and libraries. But doing so 8835 # requires that you compile everything twice, which is a pain. 8836 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8837 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8838 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8839 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8840 else 8841 ld_shlibs=no 8842 fi 8843 ;; 8844 esac 8845 ;; 8846 8847 sunos4*) 8848 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8849 wlarc= 8850 hardcode_direct=yes 8851 hardcode_shlibpath_var=no 8852 ;; 8853 8854 *) 8855 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8856 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8857 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8858 else 8859 ld_shlibs=no 8860 fi 8861 ;; 8862 esac 8863 8864 if test "$ld_shlibs" = no; then 8865 runpath_var= 8866 hardcode_libdir_flag_spec= 8867 export_dynamic_flag_spec= 8868 whole_archive_flag_spec= 8869 fi 8870 else 8871 # PORTME fill in a description of your system's linker (not GNU ld) 8872 case $host_os in 8873 aix3*) 8874 allow_undefined_flag=unsupported 8875 always_export_symbols=yes 8876 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' 8877 # Note: this linker hardcodes the directories in LIBPATH if there 8878 # are no directories specified by -L. 8879 hardcode_minus_L=yes 8880 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8881 # Neither direct hardcoding nor static linking is supported with a 8882 # broken collect2. 8883 hardcode_direct=unsupported 8884 fi 8885 ;; 8886 8887 aix[4-9]*) 8888 if test "$host_cpu" = ia64; then 8889 # On IA64, the linker does run time linking by default, so we don't 8890 # have to do anything special. 8891 aix_use_runtimelinking=no 8892 exp_sym_flag='-Bexport' 8893 no_entry_flag="" 8894 else 8895 # If we're using GNU nm, then we don't want the "-C" option. 8896 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8897 # Also, AIX nm treats weak defined symbols like other global 8898 # defined symbols, whereas GNU nm marks them as "W". 8899 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8900 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 8901 else 8902 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 8903 fi 8904 aix_use_runtimelinking=no 8905 8906 # Test if we are trying to use run time linking or normal 8907 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8908 # need to do runtime linking. 8909 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8910 for ld_flag in $LDFLAGS; do 8911 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8912 aix_use_runtimelinking=yes 8913 break 8914 fi 8915 done 8916 ;; 8917 esac 8918 8919 exp_sym_flag='-bexport' 8920 no_entry_flag='-bnoentry' 8921 fi 8922 8923 # When large executables or shared objects are built, AIX ld can 8924 # have problems creating the table of contents. If linking a library 8925 # or program results in "error TOC overflow" add -mminimal-toc to 8926 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8927 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8928 8929 archive_cmds='' 8930 hardcode_direct=yes 8931 hardcode_direct_absolute=yes 8932 hardcode_libdir_separator=':' 8933 link_all_deplibs=yes 8934 file_list_spec='${wl}-f,' 8935 8936 if test "$GCC" = yes; then 8937 case $host_os in aix4.[012]|aix4.[012].*) 8938 # We only want to do this on AIX 4.2 and lower, the check 8939 # below for broken collect2 doesn't work under 4.3+ 8940 collect2name=`${CC} -print-prog-name=collect2` 8941 if test -f "$collect2name" && 8942 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8943 then 8944 # We have reworked collect2 8945 : 8946 else 8947 # We have old collect2 8948 hardcode_direct=unsupported 8949 # It fails to find uninstalled libraries when the uninstalled 8950 # path is not listed in the libpath. Setting hardcode_minus_L 8951 # to unsupported forces relinking 8952 hardcode_minus_L=yes 8953 hardcode_libdir_flag_spec='-L$libdir' 8954 hardcode_libdir_separator= 8955 fi 8956 ;; 8957 esac 8958 shared_flag='-shared' 8959 if test "$aix_use_runtimelinking" = yes; then 8960 shared_flag="$shared_flag "'${wl}-G' 8961 fi 8962 else 8963 # not using gcc 8964 if test "$host_cpu" = ia64; then 8965 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8966 # chokes on -Wl,-G. The following line is correct: 8967 shared_flag='-G' 8968 else 8969 if test "$aix_use_runtimelinking" = yes; then 8970 shared_flag='${wl}-G' 8971 else 8972 shared_flag='${wl}-bM:SRE' 8973 fi 8974 fi 8975 fi 8976 8977 export_dynamic_flag_spec='${wl}-bexpall' 8978 # It seems that -bexpall does not export symbols beginning with 8979 # underscore (_), so it is better to generate a list of symbols to export. 8980 always_export_symbols=yes 8981 if test "$aix_use_runtimelinking" = yes; then 8982 # Warning - without using the other runtime loading flags (-brtl), 8983 # -berok will link without error, but may produce a broken library. 8984 allow_undefined_flag='-berok' 8985 # Determine the default libpath from the value encoded in an 8986 # empty executable. 8987 if test "${lt_cv_aix_libpath+set}" = set; then 8988 aix_libpath=$lt_cv_aix_libpath 8989else 8990 if ${lt_cv_aix_libpath_+:} false; then : 8991 $as_echo_n "(cached) " >&6 8992else 8993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8994/* end confdefs.h. */ 8995 8996int 8997main () 8998{ 8999 9000 ; 9001 return 0; 9002} 9003_ACEOF 9004if ac_fn_c_try_link "$LINENO"; then : 9005 9006 lt_aix_libpath_sed=' 9007 /Import File Strings/,/^$/ { 9008 /^0/ { 9009 s/^0 *\([^ ]*\) *$/\1/ 9010 p 9011 } 9012 }' 9013 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9014 # Check for a 64-bit object if we didn't find anything. 9015 if test -z "$lt_cv_aix_libpath_"; then 9016 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9017 fi 9018fi 9019rm -f core conftest.err conftest.$ac_objext \ 9020 conftest$ac_exeext conftest.$ac_ext 9021 if test -z "$lt_cv_aix_libpath_"; then 9022 lt_cv_aix_libpath_="/usr/lib:/lib" 9023 fi 9024 9025fi 9026 9027 aix_libpath=$lt_cv_aix_libpath_ 9028fi 9029 9030 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9031 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 9032 else 9033 if test "$host_cpu" = ia64; then 9034 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9035 allow_undefined_flag="-z nodefs" 9036 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 9037 else 9038 # Determine the default libpath from the value encoded in an 9039 # empty executable. 9040 if test "${lt_cv_aix_libpath+set}" = set; then 9041 aix_libpath=$lt_cv_aix_libpath 9042else 9043 if ${lt_cv_aix_libpath_+:} false; then : 9044 $as_echo_n "(cached) " >&6 9045else 9046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9047/* end confdefs.h. */ 9048 9049int 9050main () 9051{ 9052 9053 ; 9054 return 0; 9055} 9056_ACEOF 9057if ac_fn_c_try_link "$LINENO"; then : 9058 9059 lt_aix_libpath_sed=' 9060 /Import File Strings/,/^$/ { 9061 /^0/ { 9062 s/^0 *\([^ ]*\) *$/\1/ 9063 p 9064 } 9065 }' 9066 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9067 # Check for a 64-bit object if we didn't find anything. 9068 if test -z "$lt_cv_aix_libpath_"; then 9069 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9070 fi 9071fi 9072rm -f core conftest.err conftest.$ac_objext \ 9073 conftest$ac_exeext conftest.$ac_ext 9074 if test -z "$lt_cv_aix_libpath_"; then 9075 lt_cv_aix_libpath_="/usr/lib:/lib" 9076 fi 9077 9078fi 9079 9080 aix_libpath=$lt_cv_aix_libpath_ 9081fi 9082 9083 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9084 # Warning - without using the other run time loading flags, 9085 # -berok will link without error, but may produce a broken library. 9086 no_undefined_flag=' ${wl}-bernotok' 9087 allow_undefined_flag=' ${wl}-berok' 9088 if test "$with_gnu_ld" = yes; then 9089 # We only use this code for GNU lds that support --whole-archive. 9090 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9091 else 9092 # Exported symbols can be pulled into shared objects from archives 9093 whole_archive_flag_spec='$convenience' 9094 fi 9095 archive_cmds_need_lc=yes 9096 # This is similar to how AIX traditionally builds its shared libraries. 9097 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 9098 fi 9099 fi 9100 ;; 9101 9102 amigaos*) 9103 case $host_cpu in 9104 powerpc) 9105 # see comment about AmigaOS4 .so support 9106 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9107 archive_expsym_cmds='' 9108 ;; 9109 m68k) 9110 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)' 9111 hardcode_libdir_flag_spec='-L$libdir' 9112 hardcode_minus_L=yes 9113 ;; 9114 esac 9115 ;; 9116 9117 bsdi[45]*) 9118 export_dynamic_flag_spec=-rdynamic 9119 ;; 9120 9121 cygwin* | mingw* | pw32* | cegcc*) 9122 # When not using gcc, we currently assume that we are using 9123 # Microsoft Visual C++. 9124 # hardcode_libdir_flag_spec is actually meaningless, as there is 9125 # no search path for DLLs. 9126 case $cc_basename in 9127 cl*) 9128 # Native MSVC 9129 hardcode_libdir_flag_spec=' ' 9130 allow_undefined_flag=unsupported 9131 always_export_symbols=yes 9132 file_list_spec='@' 9133 # Tell ltmain to make .lib files, not .a files. 9134 libext=lib 9135 # Tell ltmain to make .dll files, not .so files. 9136 shrext_cmds=".dll" 9137 # FIXME: Setting linknames here is a bad hack. 9138 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9139 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9140 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9141 else 9142 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9143 fi~ 9144 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9145 linknames=' 9146 # The linker will not automatically build a static lib if we build a DLL. 9147 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9148 enable_shared_with_static_runtimes=yes 9149 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9150 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9151 # Don't use ranlib 9152 old_postinstall_cmds='chmod 644 $oldlib' 9153 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9154 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9155 case $lt_outputfile in 9156 *.exe|*.EXE) ;; 9157 *) 9158 lt_outputfile="$lt_outputfile.exe" 9159 lt_tool_outputfile="$lt_tool_outputfile.exe" 9160 ;; 9161 esac~ 9162 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9163 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9164 $RM "$lt_outputfile.manifest"; 9165 fi' 9166 ;; 9167 *) 9168 # Assume MSVC wrapper 9169 hardcode_libdir_flag_spec=' ' 9170 allow_undefined_flag=unsupported 9171 # Tell ltmain to make .lib files, not .a files. 9172 libext=lib 9173 # Tell ltmain to make .dll files, not .so files. 9174 shrext_cmds=".dll" 9175 # FIXME: Setting linknames here is a bad hack. 9176 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9177 # The linker will automatically build a .lib file if we build a DLL. 9178 old_archive_from_new_cmds='true' 9179 # FIXME: Should let the user specify the lib program. 9180 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9181 enable_shared_with_static_runtimes=yes 9182 ;; 9183 esac 9184 ;; 9185 9186 darwin* | rhapsody*) 9187 9188 9189 archive_cmds_need_lc=no 9190 hardcode_direct=no 9191 hardcode_automatic=yes 9192 hardcode_shlibpath_var=unsupported 9193 if test "$lt_cv_ld_force_load" = "yes"; then 9194 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 9195 9196 else 9197 whole_archive_flag_spec='' 9198 fi 9199 link_all_deplibs=yes 9200 allow_undefined_flag="$_lt_dar_allow_undefined" 9201 case $cc_basename in 9202 ifort*) _lt_dar_can_shared=yes ;; 9203 *) _lt_dar_can_shared=$GCC ;; 9204 esac 9205 if test "$_lt_dar_can_shared" = "yes"; then 9206 output_verbose_link_cmd=func_echo_all 9207 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9208 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9209 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 9210 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 9211 9212 else 9213 ld_shlibs=no 9214 fi 9215 9216 ;; 9217 9218 dgux*) 9219 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9220 hardcode_libdir_flag_spec='-L$libdir' 9221 hardcode_shlibpath_var=no 9222 ;; 9223 9224 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9225 # support. Future versions do this automatically, but an explicit c++rt0.o 9226 # does not break anything, and helps significantly (at the cost of a little 9227 # extra space). 9228 freebsd2.2*) 9229 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9230 hardcode_libdir_flag_spec='-R$libdir' 9231 hardcode_direct=yes 9232 hardcode_shlibpath_var=no 9233 ;; 9234 9235 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9236 freebsd2.*) 9237 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9238 hardcode_direct=yes 9239 hardcode_minus_L=yes 9240 hardcode_shlibpath_var=no 9241 ;; 9242 9243 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9244 freebsd* | dragonfly*) 9245 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9246 hardcode_libdir_flag_spec='-R$libdir' 9247 hardcode_direct=yes 9248 hardcode_shlibpath_var=no 9249 ;; 9250 9251 hpux9*) 9252 if test "$GCC" = yes; then 9253 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9254 else 9255 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' 9256 fi 9257 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9258 hardcode_libdir_separator=: 9259 hardcode_direct=yes 9260 9261 # hardcode_minus_L: Not really in the search PATH, 9262 # but as the default location of the library. 9263 hardcode_minus_L=yes 9264 export_dynamic_flag_spec='${wl}-E' 9265 ;; 9266 9267 hpux10*) 9268 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9269 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9270 else 9271 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9272 fi 9273 if test "$with_gnu_ld" = no; then 9274 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9275 hardcode_libdir_separator=: 9276 hardcode_direct=yes 9277 hardcode_direct_absolute=yes 9278 export_dynamic_flag_spec='${wl}-E' 9279 # hardcode_minus_L: Not really in the search PATH, 9280 # but as the default location of the library. 9281 hardcode_minus_L=yes 9282 fi 9283 ;; 9284 9285 hpux11*) 9286 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9287 case $host_cpu in 9288 hppa*64*) 9289 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9290 ;; 9291 ia64*) 9292 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9293 ;; 9294 *) 9295 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9296 ;; 9297 esac 9298 else 9299 case $host_cpu in 9300 hppa*64*) 9301 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9302 ;; 9303 ia64*) 9304 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9305 ;; 9306 *) 9307 9308 # Older versions of the 11.00 compiler do not understand -b yet 9309 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9311$as_echo_n "checking if $CC understands -b... " >&6; } 9312if ${lt_cv_prog_compiler__b+:} false; then : 9313 $as_echo_n "(cached) " >&6 9314else 9315 lt_cv_prog_compiler__b=no 9316 save_LDFLAGS="$LDFLAGS" 9317 LDFLAGS="$LDFLAGS -b" 9318 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9319 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9320 # The linker can only warn and ignore the option if not recognized 9321 # So say no if there are warnings 9322 if test -s conftest.err; then 9323 # Append any errors to the config.log. 9324 cat conftest.err 1>&5 9325 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9326 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9327 if diff conftest.exp conftest.er2 >/dev/null; then 9328 lt_cv_prog_compiler__b=yes 9329 fi 9330 else 9331 lt_cv_prog_compiler__b=yes 9332 fi 9333 fi 9334 $RM -r conftest* 9335 LDFLAGS="$save_LDFLAGS" 9336 9337fi 9338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9339$as_echo "$lt_cv_prog_compiler__b" >&6; } 9340 9341if test x"$lt_cv_prog_compiler__b" = xyes; then 9342 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9343else 9344 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9345fi 9346 9347 ;; 9348 esac 9349 fi 9350 if test "$with_gnu_ld" = no; then 9351 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9352 hardcode_libdir_separator=: 9353 9354 case $host_cpu in 9355 hppa*64*|ia64*) 9356 hardcode_direct=no 9357 hardcode_shlibpath_var=no 9358 ;; 9359 *) 9360 hardcode_direct=yes 9361 hardcode_direct_absolute=yes 9362 export_dynamic_flag_spec='${wl}-E' 9363 9364 # hardcode_minus_L: Not really in the search PATH, 9365 # but as the default location of the library. 9366 hardcode_minus_L=yes 9367 ;; 9368 esac 9369 fi 9370 ;; 9371 9372 irix5* | irix6* | nonstopux*) 9373 if test "$GCC" = yes; then 9374 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9375 # Try to use the -exported_symbol ld option, if it does not 9376 # work, assume that -exports_file does not work either and 9377 # implicitly export all symbols. 9378 # This should be the same for all languages, so no per-tag cache variable. 9379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9380$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9381if ${lt_cv_irix_exported_symbol+:} false; then : 9382 $as_echo_n "(cached) " >&6 9383else 9384 save_LDFLAGS="$LDFLAGS" 9385 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9387/* end confdefs.h. */ 9388int foo (void) { return 0; } 9389_ACEOF 9390if ac_fn_c_try_link "$LINENO"; then : 9391 lt_cv_irix_exported_symbol=yes 9392else 9393 lt_cv_irix_exported_symbol=no 9394fi 9395rm -f core conftest.err conftest.$ac_objext \ 9396 conftest$ac_exeext conftest.$ac_ext 9397 LDFLAGS="$save_LDFLAGS" 9398fi 9399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9400$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9401 if test "$lt_cv_irix_exported_symbol" = yes; then 9402 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 9403 fi 9404 else 9405 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 9406 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 9407 fi 9408 archive_cmds_need_lc='no' 9409 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9410 hardcode_libdir_separator=: 9411 inherit_rpath=yes 9412 link_all_deplibs=yes 9413 ;; 9414 9415 netbsd*) 9416 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9417 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9418 else 9419 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9420 fi 9421 hardcode_libdir_flag_spec='-R$libdir' 9422 hardcode_direct=yes 9423 hardcode_shlibpath_var=no 9424 ;; 9425 9426 newsos6) 9427 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9428 hardcode_direct=yes 9429 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9430 hardcode_libdir_separator=: 9431 hardcode_shlibpath_var=no 9432 ;; 9433 9434 *nto* | *qnx*) 9435 ;; 9436 9437 openbsd*) 9438 if test -f /usr/libexec/ld.so; then 9439 hardcode_direct=yes 9440 hardcode_shlibpath_var=no 9441 hardcode_direct_absolute=yes 9442 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9443 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9444 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9445 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9446 export_dynamic_flag_spec='${wl}-E' 9447 else 9448 case $host_os in 9449 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9450 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9451 hardcode_libdir_flag_spec='-R$libdir' 9452 ;; 9453 *) 9454 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9455 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9456 ;; 9457 esac 9458 fi 9459 else 9460 ld_shlibs=no 9461 fi 9462 ;; 9463 9464 os2*) 9465 hardcode_libdir_flag_spec='-L$libdir' 9466 hardcode_minus_L=yes 9467 allow_undefined_flag=unsupported 9468 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' 9469 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9470 ;; 9471 9472 osf3*) 9473 if test "$GCC" = yes; then 9474 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9475 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9476 else 9477 allow_undefined_flag=' -expect_unresolved \*' 9478 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 9479 fi 9480 archive_cmds_need_lc='no' 9481 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9482 hardcode_libdir_separator=: 9483 ;; 9484 9485 osf4* | osf5*) # as osf3* with the addition of -msym flag 9486 if test "$GCC" = yes; then 9487 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9488 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9489 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9490 else 9491 allow_undefined_flag=' -expect_unresolved \*' 9492 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 9493 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 9494 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 9495 9496 # Both c and cxx compiler support -rpath directly 9497 hardcode_libdir_flag_spec='-rpath $libdir' 9498 fi 9499 archive_cmds_need_lc='no' 9500 hardcode_libdir_separator=: 9501 ;; 9502 9503 solaris*) 9504 no_undefined_flag=' -z defs' 9505 if test "$GCC" = yes; then 9506 wlarc='${wl}' 9507 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9508 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9509 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9510 else 9511 case `$CC -V 2>&1` in 9512 *"Compilers 5.0"*) 9513 wlarc='' 9514 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9515 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9516 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9517 ;; 9518 *) 9519 wlarc='${wl}' 9520 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9521 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9522 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9523 ;; 9524 esac 9525 fi 9526 hardcode_libdir_flag_spec='-R$libdir' 9527 hardcode_shlibpath_var=no 9528 case $host_os in 9529 solaris2.[0-5] | solaris2.[0-5].*) ;; 9530 *) 9531 # The compiler driver will combine and reorder linker options, 9532 # but understands `-z linker_flag'. GCC discards it without `$wl', 9533 # but is careful enough not to reorder. 9534 # Supported since Solaris 2.6 (maybe 2.5.1?) 9535 if test "$GCC" = yes; then 9536 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9537 else 9538 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9539 fi 9540 ;; 9541 esac 9542 link_all_deplibs=yes 9543 ;; 9544 9545 sunos4*) 9546 if test "x$host_vendor" = xsequent; then 9547 # Use $CC to link under sequent, because it throws in some extra .o 9548 # files that make .init and .fini sections work. 9549 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9550 else 9551 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9552 fi 9553 hardcode_libdir_flag_spec='-L$libdir' 9554 hardcode_direct=yes 9555 hardcode_minus_L=yes 9556 hardcode_shlibpath_var=no 9557 ;; 9558 9559 sysv4) 9560 case $host_vendor in 9561 sni) 9562 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9563 hardcode_direct=yes # is this really true??? 9564 ;; 9565 siemens) 9566 ## LD is ld it makes a PLAMLIB 9567 ## CC just makes a GrossModule. 9568 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9569 reload_cmds='$CC -r -o $output$reload_objs' 9570 hardcode_direct=no 9571 ;; 9572 motorola) 9573 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9574 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9575 ;; 9576 esac 9577 runpath_var='LD_RUN_PATH' 9578 hardcode_shlibpath_var=no 9579 ;; 9580 9581 sysv4.3*) 9582 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9583 hardcode_shlibpath_var=no 9584 export_dynamic_flag_spec='-Bexport' 9585 ;; 9586 9587 sysv4*MP*) 9588 if test -d /usr/nec; then 9589 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9590 hardcode_shlibpath_var=no 9591 runpath_var=LD_RUN_PATH 9592 hardcode_runpath_var=yes 9593 ld_shlibs=yes 9594 fi 9595 ;; 9596 9597 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9598 no_undefined_flag='${wl}-z,text' 9599 archive_cmds_need_lc=no 9600 hardcode_shlibpath_var=no 9601 runpath_var='LD_RUN_PATH' 9602 9603 if test "$GCC" = yes; then 9604 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9605 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9606 else 9607 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9608 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9609 fi 9610 ;; 9611 9612 sysv5* | sco3.2v5* | sco5v6*) 9613 # Note: We can NOT use -z defs as we might desire, because we do not 9614 # link with -lc, and that would cause any symbols used from libc to 9615 # always be unresolved, which means just about no library would 9616 # ever link correctly. If we're not using GNU ld we use -z text 9617 # though, which does catch some bad symbols but isn't as heavy-handed 9618 # as -z defs. 9619 no_undefined_flag='${wl}-z,text' 9620 allow_undefined_flag='${wl}-z,nodefs' 9621 archive_cmds_need_lc=no 9622 hardcode_shlibpath_var=no 9623 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9624 hardcode_libdir_separator=':' 9625 link_all_deplibs=yes 9626 export_dynamic_flag_spec='${wl}-Bexport' 9627 runpath_var='LD_RUN_PATH' 9628 9629 if test "$GCC" = yes; then 9630 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9631 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9632 else 9633 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9634 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9635 fi 9636 ;; 9637 9638 uts4*) 9639 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9640 hardcode_libdir_flag_spec='-L$libdir' 9641 hardcode_shlibpath_var=no 9642 ;; 9643 9644 *) 9645 ld_shlibs=no 9646 ;; 9647 esac 9648 9649 if test x$host_vendor = xsni; then 9650 case $host in 9651 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9652 export_dynamic_flag_spec='${wl}-Blargedynsym' 9653 ;; 9654 esac 9655 fi 9656 fi 9657 9658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9659$as_echo "$ld_shlibs" >&6; } 9660test "$ld_shlibs" = no && can_build_shared=no 9661 9662with_gnu_ld=$with_gnu_ld 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677 9678# 9679# Do we need to explicitly link libc? 9680# 9681case "x$archive_cmds_need_lc" in 9682x|xyes) 9683 # Assume -lc should be added 9684 archive_cmds_need_lc=yes 9685 9686 if test "$enable_shared" = yes && test "$GCC" = yes; then 9687 case $archive_cmds in 9688 *'~'*) 9689 # FIXME: we may have to deal with multi-command sequences. 9690 ;; 9691 '$CC '*) 9692 # Test whether the compiler implicitly links with -lc since on some 9693 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9694 # to ld, don't add -lc before -lgcc. 9695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9696$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9697if ${lt_cv_archive_cmds_need_lc+:} false; then : 9698 $as_echo_n "(cached) " >&6 9699else 9700 $RM conftest* 9701 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9702 9703 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9704 (eval $ac_compile) 2>&5 9705 ac_status=$? 9706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9707 test $ac_status = 0; } 2>conftest.err; then 9708 soname=conftest 9709 lib=conftest 9710 libobjs=conftest.$ac_objext 9711 deplibs= 9712 wl=$lt_prog_compiler_wl 9713 pic_flag=$lt_prog_compiler_pic 9714 compiler_flags=-v 9715 linker_flags=-v 9716 verstring= 9717 output_objdir=. 9718 libname=conftest 9719 lt_save_allow_undefined_flag=$allow_undefined_flag 9720 allow_undefined_flag= 9721 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9722 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9723 ac_status=$? 9724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9725 test $ac_status = 0; } 9726 then 9727 lt_cv_archive_cmds_need_lc=no 9728 else 9729 lt_cv_archive_cmds_need_lc=yes 9730 fi 9731 allow_undefined_flag=$lt_save_allow_undefined_flag 9732 else 9733 cat conftest.err 1>&5 9734 fi 9735 $RM conftest* 9736 9737fi 9738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9739$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9740 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9741 ;; 9742 esac 9743 fi 9744 ;; 9745esac 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9899$as_echo_n "checking dynamic linker characteristics... " >&6; } 9900 9901if test "$GCC" = yes; then 9902 case $host_os in 9903 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9904 *) lt_awk_arg="/^libraries:/" ;; 9905 esac 9906 case $host_os in 9907 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 9908 *) lt_sed_strip_eq="s,=/,/,g" ;; 9909 esac 9910 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 9911 case $lt_search_path_spec in 9912 *\;*) 9913 # if the path contains ";" then we assume it to be the separator 9914 # otherwise default to the standard path separator (i.e. ":") - it is 9915 # assumed that no part of a normal pathname contains ";" but that should 9916 # okay in the real world where ";" in dirpaths is itself problematic. 9917 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 9918 ;; 9919 *) 9920 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 9921 ;; 9922 esac 9923 # Ok, now we have the path, separated by spaces, we can step through it 9924 # and add multilib dir if necessary... 9925 lt_tmp_lt_search_path_spec= 9926 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9927 # ...but if some path already ends with the multilib dir we assume 9928 # that all is fine and trust -print-search-dirs as is (GCC 4.2 or newer). 9929 case "$lt_multi_os_dir; $lt_search_path_spec " in 9930 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 9931 lt_multi_os_dir= 9932 ;; 9933 esac 9934 for lt_sys_path in $lt_search_path_spec; do 9935 if test -d "$lt_sys_path$lt_multi_os_dir"; then 9936 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 9937 elif test -n "$lt_multi_os_dir"; then 9938 test -d "$lt_sys_path" && \ 9939 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9940 fi 9941 done 9942 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 9943BEGIN {RS=" "; FS="/|\n";} { 9944 lt_foo=""; 9945 lt_count=0; 9946 for (lt_i = NF; lt_i > 0; lt_i--) { 9947 if ($lt_i != "" && $lt_i != ".") { 9948 if ($lt_i == "..") { 9949 lt_count++; 9950 } else { 9951 if (lt_count == 0) { 9952 lt_foo="/" $lt_i lt_foo; 9953 } else { 9954 lt_count--; 9955 } 9956 } 9957 } 9958 } 9959 if (lt_foo != "") { lt_freq[lt_foo]++; } 9960 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9961}'` 9962 # AWK program above erroneously prepends '/' to C:/dos/paths 9963 # for these hosts. 9964 case $host_os in 9965 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 9966 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 9967 esac 9968 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 9969else 9970 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9971fi 9972library_names_spec= 9973libname_spec='lib$name' 9974soname_spec= 9975shrext_cmds=".so" 9976postinstall_cmds= 9977postuninstall_cmds= 9978finish_cmds= 9979finish_eval= 9980shlibpath_var= 9981shlibpath_overrides_runpath=unknown 9982version_type=none 9983dynamic_linker="$host_os ld.so" 9984sys_lib_dlsearch_path_spec="/lib /usr/lib" 9985need_lib_prefix=unknown 9986hardcode_into_libs=no 9987 9988# when you set need_version to no, make sure it does not cause -set_version 9989# flags to be left without arguments 9990need_version=unknown 9991 9992case $host_os in 9993aix3*) 9994 version_type=linux # correct to gnu/linux during the next big refactor 9995 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9996 shlibpath_var=LIBPATH 9997 9998 # AIX 3 has no versioning support, so we append a major version to the name. 9999 soname_spec='${libname}${release}${shared_ext}$major' 10000 ;; 10001 10002aix[4-9]*) 10003 version_type=linux # correct to gnu/linux during the next big refactor 10004 need_lib_prefix=no 10005 need_version=no 10006 hardcode_into_libs=yes 10007 if test "$host_cpu" = ia64; then 10008 # AIX 5 supports IA64 10009 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10010 shlibpath_var=LD_LIBRARY_PATH 10011 else 10012 # With GCC up to 2.95.x, collect2 would create an import file 10013 # for dependence libraries. The import file would start with 10014 # the line `#! .'. This would cause the generated library to 10015 # depend on `.', always an invalid library. This was fixed in 10016 # development snapshots of GCC prior to 3.0. 10017 case $host_os in 10018 aix4 | aix4.[01] | aix4.[01].*) 10019 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10020 echo ' yes ' 10021 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10022 : 10023 else 10024 can_build_shared=no 10025 fi 10026 ;; 10027 esac 10028 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10029 # soname into executable. Probably we can add versioning support to 10030 # collect2, so additional links can be useful in future. 10031 if test "$aix_use_runtimelinking" = yes; then 10032 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10033 # instead of lib<name>.a to let people know that these are not 10034 # typical AIX shared libraries. 10035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10036 else 10037 # We preserve .a as extension for shared libraries through AIX4.2 10038 # and later when we are not doing run time linking. 10039 library_names_spec='${libname}${release}.a $libname.a' 10040 soname_spec='${libname}${release}${shared_ext}$major' 10041 fi 10042 shlibpath_var=LIBPATH 10043 fi 10044 ;; 10045 10046amigaos*) 10047 case $host_cpu in 10048 powerpc) 10049 # Since July 2007 AmigaOS4 officially supports .so libraries. 10050 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10052 ;; 10053 m68k) 10054 library_names_spec='$libname.ixlibrary $libname.a' 10055 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10056 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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' 10057 ;; 10058 esac 10059 ;; 10060 10061beos*) 10062 library_names_spec='${libname}${shared_ext}' 10063 dynamic_linker="$host_os ld.so" 10064 shlibpath_var=LIBRARY_PATH 10065 ;; 10066 10067bsdi[45]*) 10068 version_type=linux # correct to gnu/linux during the next big refactor 10069 need_version=no 10070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10071 soname_spec='${libname}${release}${shared_ext}$major' 10072 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10073 shlibpath_var=LD_LIBRARY_PATH 10074 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10075 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10076 # the default ld.so.conf also contains /usr/contrib/lib and 10077 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10078 # libtool to hard-code these into programs 10079 ;; 10080 10081cygwin* | mingw* | pw32* | cegcc*) 10082 version_type=windows 10083 shrext_cmds=".dll" 10084 need_version=no 10085 need_lib_prefix=no 10086 10087 case $GCC,$cc_basename in 10088 yes,*) 10089 # gcc 10090 library_names_spec='$libname.dll.a' 10091 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10092 postinstall_cmds='base_file=`basename \${file}`~ 10093 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10094 dldir=$destdir/`dirname \$dlpath`~ 10095 test -d \$dldir || mkdir -p \$dldir~ 10096 $install_prog $dir/$dlname \$dldir/$dlname~ 10097 chmod a+x \$dldir/$dlname~ 10098 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10099 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10100 fi' 10101 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10102 dlpath=$dir/\$dldll~ 10103 $RM \$dlpath' 10104 shlibpath_overrides_runpath=yes 10105 10106 case $host_os in 10107 cygwin*) 10108 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10109 #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 10110 soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}' 10111 10112 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10113 ;; 10114 mingw* | cegcc*) 10115 # MinGW DLLs use traditional 'lib' prefix 10116 #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 10117 soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}' 10118 ;; 10119 pw32*) 10120 # pw32 DLLs use 'pw' prefix rather than 'lib' 10121 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10122 ;; 10123 esac 10124 dynamic_linker='Win32 ld.exe' 10125 ;; 10126 10127 *,cl*) 10128 # Native MSVC 10129 libname_spec='$name' 10130 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10131 library_names_spec='${libname}.dll.lib' 10132 10133 case $build_os in 10134 mingw*) 10135 sys_lib_search_path_spec= 10136 lt_save_ifs=$IFS 10137 IFS=';' 10138 for lt_path in $LIB 10139 do 10140 IFS=$lt_save_ifs 10141 # Let DOS variable expansion print the short 8.3 style file name. 10142 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10143 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10144 done 10145 IFS=$lt_save_ifs 10146 # Convert to MSYS style. 10147 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10148 ;; 10149 cygwin*) 10150 # Convert to unix form, then to dos form, then back to unix form 10151 # but this time dos style (no spaces!) so that the unix form looks 10152 # like /cygdrive/c/PROGRA~1:/cygdr... 10153 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10154 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10155 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10156 ;; 10157 *) 10158 sys_lib_search_path_spec="$LIB" 10159 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10160 # It is most probably a Windows format PATH. 10161 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10162 else 10163 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10164 fi 10165 # FIXME: find the short name or the path components, as spaces are 10166 # common. (e.g. "Program Files" -> "PROGRA~1") 10167 ;; 10168 esac 10169 10170 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10171 postinstall_cmds='base_file=`basename \${file}`~ 10172 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10173 dldir=$destdir/`dirname \$dlpath`~ 10174 test -d \$dldir || mkdir -p \$dldir~ 10175 $install_prog $dir/$dlname \$dldir/$dlname' 10176 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10177 dlpath=$dir/\$dldll~ 10178 $RM \$dlpath' 10179 shlibpath_overrides_runpath=yes 10180 dynamic_linker='Win32 link.exe' 10181 ;; 10182 10183 *) 10184 # Assume MSVC wrapper 10185 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10186 dynamic_linker='Win32 ld.exe' 10187 ;; 10188 esac 10189 # FIXME: first we should search . and the directory the executable is in 10190 shlibpath_var=PATH 10191 ;; 10192 10193darwin* | rhapsody*) 10194 dynamic_linker="$host_os dyld" 10195 version_type=darwin 10196 need_lib_prefix=no 10197 need_version=no 10198 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10199 soname_spec='${libname}${release}${major}$shared_ext' 10200 shlibpath_overrides_runpath=yes 10201 shlibpath_var=DYLD_LIBRARY_PATH 10202 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10203 10204 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10205 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10206 ;; 10207 10208dgux*) 10209 version_type=linux # correct to gnu/linux during the next big refactor 10210 need_lib_prefix=no 10211 need_version=no 10212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10213 soname_spec='${libname}${release}${shared_ext}$major' 10214 shlibpath_var=LD_LIBRARY_PATH 10215 ;; 10216 10217freebsd* | dragonfly*) 10218 # DragonFly does not have aout. When/if they implement a new 10219 # versioning mechanism, adjust this. 10220 if test -x /usr/bin/objformat; then 10221 objformat=`/usr/bin/objformat` 10222 else 10223 case $host_os in 10224 freebsd[23].*) objformat=aout ;; 10225 *) objformat=elf ;; 10226 esac 10227 fi 10228 version_type=freebsd-$objformat 10229 case $version_type in 10230 freebsd-elf*) 10231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10232 need_version=no 10233 need_lib_prefix=no 10234 ;; 10235 freebsd-*) 10236 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10237 need_version=yes 10238 ;; 10239 esac 10240 shlibpath_var=LD_LIBRARY_PATH 10241 case $host_os in 10242 freebsd2.*) 10243 shlibpath_overrides_runpath=yes 10244 ;; 10245 freebsd3.[01]* | freebsdelf3.[01]*) 10246 shlibpath_overrides_runpath=yes 10247 hardcode_into_libs=yes 10248 ;; 10249 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10250 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10251 shlibpath_overrides_runpath=no 10252 hardcode_into_libs=yes 10253 ;; 10254 *) # from 4.6 on, and DragonFly 10255 shlibpath_overrides_runpath=yes 10256 hardcode_into_libs=yes 10257 ;; 10258 esac 10259 ;; 10260 10261gnu*) 10262 version_type=linux # correct to gnu/linux during the next big refactor 10263 need_lib_prefix=no 10264 need_version=no 10265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10266 soname_spec='${libname}${release}${shared_ext}$major' 10267 shlibpath_var=LD_LIBRARY_PATH 10268 shlibpath_overrides_runpath=no 10269 hardcode_into_libs=yes 10270 ;; 10271 10272haiku*) 10273 version_type=linux # correct to gnu/linux during the next big refactor 10274 need_lib_prefix=no 10275 need_version=no 10276 dynamic_linker="$host_os runtime_loader" 10277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10278 soname_spec='${libname}${release}${shared_ext}$major' 10279 shlibpath_var=LIBRARY_PATH 10280 shlibpath_overrides_runpath=yes 10281 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10282 hardcode_into_libs=yes 10283 ;; 10284 10285hpux9* | hpux10* | hpux11*) 10286 # Give a soname corresponding to the major version so that dld.sl refuses to 10287 # link against other versions. 10288 version_type=sunos 10289 need_lib_prefix=no 10290 need_version=no 10291 case $host_cpu in 10292 ia64*) 10293 shrext_cmds='.so' 10294 hardcode_into_libs=yes 10295 dynamic_linker="$host_os dld.so" 10296 shlibpath_var=LD_LIBRARY_PATH 10297 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10299 soname_spec='${libname}${release}${shared_ext}$major' 10300 if test "X$HPUX_IA64_MODE" = X32; then 10301 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10302 else 10303 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10304 fi 10305 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10306 ;; 10307 hppa*64*) 10308 shrext_cmds='.sl' 10309 hardcode_into_libs=yes 10310 dynamic_linker="$host_os dld.sl" 10311 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10312 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10314 soname_spec='${libname}${release}${shared_ext}$major' 10315 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10316 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10317 ;; 10318 *) 10319 shrext_cmds='.sl' 10320 dynamic_linker="$host_os dld.sl" 10321 shlibpath_var=SHLIB_PATH 10322 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10324 soname_spec='${libname}${release}${shared_ext}$major' 10325 ;; 10326 esac 10327 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10328 postinstall_cmds='chmod 555 $lib' 10329 # or fails outright, so override atomically: 10330 install_override_mode=555 10331 ;; 10332 10333interix[3-9]*) 10334 version_type=linux # correct to gnu/linux during the next big refactor 10335 need_lib_prefix=no 10336 need_version=no 10337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10338 soname_spec='${libname}${release}${shared_ext}$major' 10339 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10340 shlibpath_var=LD_LIBRARY_PATH 10341 shlibpath_overrides_runpath=no 10342 hardcode_into_libs=yes 10343 ;; 10344 10345irix5* | irix6* | nonstopux*) 10346 case $host_os in 10347 nonstopux*) version_type=nonstopux ;; 10348 *) 10349 if test "$lt_cv_prog_gnu_ld" = yes; then 10350 version_type=linux # correct to gnu/linux during the next big refactor 10351 else 10352 version_type=irix 10353 fi ;; 10354 esac 10355 need_lib_prefix=no 10356 need_version=no 10357 soname_spec='${libname}${release}${shared_ext}$major' 10358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10359 case $host_os in 10360 irix5* | nonstopux*) 10361 libsuff= shlibsuff= 10362 ;; 10363 *) 10364 case $LD in # libtool.m4 will add one of these switches to LD 10365 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10366 libsuff= shlibsuff= libmagic=32-bit;; 10367 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10368 libsuff=32 shlibsuff=N32 libmagic=N32;; 10369 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10370 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10371 *) libsuff= shlibsuff= libmagic=never-match;; 10372 esac 10373 ;; 10374 esac 10375 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10376 shlibpath_overrides_runpath=no 10377 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10378 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10379 hardcode_into_libs=yes 10380 ;; 10381 10382# No shared lib support for Linux oldld, aout, or coff. 10383linux*oldld* | linux*aout* | linux*coff*) 10384 dynamic_linker=no 10385 ;; 10386 10387# This must be glibc/ELF. 10388linux* | k*bsd*-gnu | kopensolaris*-gnu) 10389 version_type=linux # correct to gnu/linux during the next big refactor 10390 need_lib_prefix=no 10391 need_version=no 10392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10393 soname_spec='${libname}${release}${shared_ext}$major' 10394 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10395 shlibpath_var=LD_LIBRARY_PATH 10396 shlibpath_overrides_runpath=no 10397 10398 # Some binutils ld are patched to set DT_RUNPATH 10399 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10400 $as_echo_n "(cached) " >&6 10401else 10402 lt_cv_shlibpath_overrides_runpath=no 10403 save_LDFLAGS=$LDFLAGS 10404 save_libdir=$libdir 10405 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10406 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10408/* end confdefs.h. */ 10409 10410int 10411main () 10412{ 10413 10414 ; 10415 return 0; 10416} 10417_ACEOF 10418if ac_fn_c_try_link "$LINENO"; then : 10419 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10420 lt_cv_shlibpath_overrides_runpath=yes 10421fi 10422fi 10423rm -f core conftest.err conftest.$ac_objext \ 10424 conftest$ac_exeext conftest.$ac_ext 10425 LDFLAGS=$save_LDFLAGS 10426 libdir=$save_libdir 10427 10428fi 10429 10430 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10431 10432 # This implies no fast_install, which is unacceptable. 10433 # Some rework will be needed to allow for fast_install 10434 # before this can be enabled. 10435 hardcode_into_libs=yes 10436 10437 # Append ld.so.conf contents to the search path 10438 if test -f /etc/ld.so.conf; then 10439 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 10440 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10441 fi 10442 10443 # We used to test for /lib/ld.so.1 and disable shared libraries on 10444 # powerpc, because MkLinux only supported shared libraries with the 10445 # GNU dynamic linker. Since this was broken with cross compilers, 10446 # most powerpc-linux boxes support dynamic linking these days and 10447 # people can always --disable-shared, the test was removed, and we 10448 # assume the GNU/Linux dynamic linker is in use. 10449 dynamic_linker='GNU/Linux ld.so' 10450 ;; 10451 10452netbsd*) 10453 version_type=sunos 10454 need_lib_prefix=no 10455 need_version=no 10456 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10458 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10459 dynamic_linker='NetBSD (a.out) ld.so' 10460 else 10461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10462 soname_spec='${libname}${release}${shared_ext}$major' 10463 dynamic_linker='NetBSD ld.elf_so' 10464 fi 10465 shlibpath_var=LD_LIBRARY_PATH 10466 shlibpath_overrides_runpath=yes 10467 hardcode_into_libs=yes 10468 ;; 10469 10470newsos6) 10471 version_type=linux # correct to gnu/linux during the next big refactor 10472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10473 shlibpath_var=LD_LIBRARY_PATH 10474 shlibpath_overrides_runpath=yes 10475 ;; 10476 10477*nto* | *qnx*) 10478 version_type=qnx 10479 need_lib_prefix=no 10480 need_version=no 10481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10482 soname_spec='${libname}${release}${shared_ext}$major' 10483 shlibpath_var=LD_LIBRARY_PATH 10484 shlibpath_overrides_runpath=no 10485 hardcode_into_libs=yes 10486 dynamic_linker='ldqnx.so' 10487 ;; 10488 10489openbsd*) 10490 version_type=sunos 10491 sys_lib_dlsearch_path_spec="/usr/lib" 10492 need_lib_prefix=no 10493 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10494 case $host_os in 10495 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10496 *) need_version=no ;; 10497 esac 10498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10499 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10500 shlibpath_var=LD_LIBRARY_PATH 10501 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10502 case $host_os in 10503 openbsd2.[89] | openbsd2.[89].*) 10504 shlibpath_overrides_runpath=no 10505 ;; 10506 *) 10507 shlibpath_overrides_runpath=yes 10508 ;; 10509 esac 10510 else 10511 shlibpath_overrides_runpath=yes 10512 fi 10513 ;; 10514 10515os2*) 10516 libname_spec='$name' 10517 shrext_cmds=".dll" 10518 need_lib_prefix=no 10519 library_names_spec='$libname${shared_ext} $libname.a' 10520 dynamic_linker='OS/2 ld.exe' 10521 shlibpath_var=LIBPATH 10522 ;; 10523 10524osf3* | osf4* | osf5*) 10525 version_type=osf 10526 need_lib_prefix=no 10527 need_version=no 10528 soname_spec='${libname}${release}${shared_ext}$major' 10529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10530 shlibpath_var=LD_LIBRARY_PATH 10531 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10532 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10533 ;; 10534 10535rdos*) 10536 dynamic_linker=no 10537 ;; 10538 10539solaris*) 10540 version_type=linux # correct to gnu/linux during the next big refactor 10541 need_lib_prefix=no 10542 need_version=no 10543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10544 soname_spec='${libname}${release}${shared_ext}$major' 10545 shlibpath_var=LD_LIBRARY_PATH 10546 shlibpath_overrides_runpath=yes 10547 hardcode_into_libs=yes 10548 # ldd complains unless libraries are executable 10549 postinstall_cmds='chmod +x $lib' 10550 ;; 10551 10552sunos4*) 10553 version_type=sunos 10554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10555 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10556 shlibpath_var=LD_LIBRARY_PATH 10557 shlibpath_overrides_runpath=yes 10558 if test "$with_gnu_ld" = yes; then 10559 need_lib_prefix=no 10560 fi 10561 need_version=yes 10562 ;; 10563 10564sysv4 | sysv4.3*) 10565 version_type=linux # correct to gnu/linux during the next big refactor 10566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10567 soname_spec='${libname}${release}${shared_ext}$major' 10568 shlibpath_var=LD_LIBRARY_PATH 10569 case $host_vendor in 10570 sni) 10571 shlibpath_overrides_runpath=no 10572 need_lib_prefix=no 10573 runpath_var=LD_RUN_PATH 10574 ;; 10575 siemens) 10576 need_lib_prefix=no 10577 ;; 10578 motorola) 10579 need_lib_prefix=no 10580 need_version=no 10581 shlibpath_overrides_runpath=no 10582 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10583 ;; 10584 esac 10585 ;; 10586 10587sysv4*MP*) 10588 if test -d /usr/nec ;then 10589 version_type=linux # correct to gnu/linux during the next big refactor 10590 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10591 soname_spec='$libname${shared_ext}.$major' 10592 shlibpath_var=LD_LIBRARY_PATH 10593 fi 10594 ;; 10595 10596sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10597 version_type=freebsd-elf 10598 need_lib_prefix=no 10599 need_version=no 10600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10601 soname_spec='${libname}${release}${shared_ext}$major' 10602 shlibpath_var=LD_LIBRARY_PATH 10603 shlibpath_overrides_runpath=yes 10604 hardcode_into_libs=yes 10605 if test "$with_gnu_ld" = yes; then 10606 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10607 else 10608 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10609 case $host_os in 10610 sco3.2v5*) 10611 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10612 ;; 10613 esac 10614 fi 10615 sys_lib_dlsearch_path_spec='/usr/lib' 10616 ;; 10617 10618tpf*) 10619 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10620 version_type=linux # correct to gnu/linux during the next big refactor 10621 need_lib_prefix=no 10622 need_version=no 10623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10624 shlibpath_var=LD_LIBRARY_PATH 10625 shlibpath_overrides_runpath=no 10626 hardcode_into_libs=yes 10627 ;; 10628 10629uts4*) 10630 version_type=linux # correct to gnu/linux during the next big refactor 10631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10632 soname_spec='${libname}${release}${shared_ext}$major' 10633 shlibpath_var=LD_LIBRARY_PATH 10634 ;; 10635 10636*) 10637 dynamic_linker=no 10638 ;; 10639esac 10640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10641$as_echo "$dynamic_linker" >&6; } 10642test "$dynamic_linker" = no && can_build_shared=no 10643 10644variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10645if test "$GCC" = yes; then 10646 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10647fi 10648 10649if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10650 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10651fi 10652if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10653 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10654fi 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10748$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10749hardcode_action= 10750if test -n "$hardcode_libdir_flag_spec" || 10751 test -n "$runpath_var" || 10752 test "X$hardcode_automatic" = "Xyes" ; then 10753 10754 # We can hardcode non-existent directories. 10755 if test "$hardcode_direct" != no && 10756 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10757 # have to relink, otherwise we might link with an installed library 10758 # when we should be linking with a yet-to-be-installed one 10759 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10760 test "$hardcode_minus_L" != no; then 10761 # Linking always hardcodes the temporary library directory. 10762 hardcode_action=relink 10763 else 10764 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10765 hardcode_action=immediate 10766 fi 10767else 10768 # We cannot hardcode anything, or else we can only hardcode existing 10769 # directories. 10770 hardcode_action=unsupported 10771fi 10772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10773$as_echo "$hardcode_action" >&6; } 10774 10775if test "$hardcode_action" = relink || 10776 test "$inherit_rpath" = yes; then 10777 # Fast installation is not supported 10778 enable_fast_install=no 10779elif test "$shlibpath_overrides_runpath" = yes || 10780 test "$enable_shared" = no; then 10781 # Fast installation is not necessary 10782 enable_fast_install=needless 10783fi 10784 10785 10786 10787 10788 10789 10790 if test "x$enable_dlopen" != xyes; then 10791 enable_dlopen=unknown 10792 enable_dlopen_self=unknown 10793 enable_dlopen_self_static=unknown 10794else 10795 lt_cv_dlopen=no 10796 lt_cv_dlopen_libs= 10797 10798 case $host_os in 10799 beos*) 10800 lt_cv_dlopen="load_add_on" 10801 lt_cv_dlopen_libs= 10802 lt_cv_dlopen_self=yes 10803 ;; 10804 10805 mingw* | pw32* | cegcc*) 10806 lt_cv_dlopen="LoadLibrary" 10807 lt_cv_dlopen_libs= 10808 ;; 10809 10810 cygwin*) 10811 lt_cv_dlopen="dlopen" 10812 lt_cv_dlopen_libs= 10813 ;; 10814 10815 darwin*) 10816 # if libdl is installed we need to link against it 10817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10818$as_echo_n "checking for dlopen in -ldl... " >&6; } 10819if ${ac_cv_lib_dl_dlopen+:} false; then : 10820 $as_echo_n "(cached) " >&6 10821else 10822 ac_check_lib_save_LIBS=$LIBS 10823LIBS="-ldl $LIBS" 10824cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10825/* end confdefs.h. */ 10826 10827/* Override any GCC internal prototype to avoid an error. 10828 Use char because int might match the return type of a GCC 10829 builtin and then its argument prototype would still apply. */ 10830#ifdef __cplusplus 10831extern "C" 10832#endif 10833char dlopen (); 10834int 10835main () 10836{ 10837return dlopen (); 10838 ; 10839 return 0; 10840} 10841_ACEOF 10842if ac_fn_c_try_link "$LINENO"; then : 10843 ac_cv_lib_dl_dlopen=yes 10844else 10845 ac_cv_lib_dl_dlopen=no 10846fi 10847rm -f core conftest.err conftest.$ac_objext \ 10848 conftest$ac_exeext conftest.$ac_ext 10849LIBS=$ac_check_lib_save_LIBS 10850fi 10851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10852$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10853if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10854 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10855else 10856 10857 lt_cv_dlopen="dyld" 10858 lt_cv_dlopen_libs= 10859 lt_cv_dlopen_self=yes 10860 10861fi 10862 10863 ;; 10864 10865 *) 10866 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10867if test "x$ac_cv_func_shl_load" = xyes; then : 10868 lt_cv_dlopen="shl_load" 10869else 10870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10871$as_echo_n "checking for shl_load in -ldld... " >&6; } 10872if ${ac_cv_lib_dld_shl_load+:} false; then : 10873 $as_echo_n "(cached) " >&6 10874else 10875 ac_check_lib_save_LIBS=$LIBS 10876LIBS="-ldld $LIBS" 10877cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10878/* end confdefs.h. */ 10879 10880/* Override any GCC internal prototype to avoid an error. 10881 Use char because int might match the return type of a GCC 10882 builtin and then its argument prototype would still apply. */ 10883#ifdef __cplusplus 10884extern "C" 10885#endif 10886char shl_load (); 10887int 10888main () 10889{ 10890return shl_load (); 10891 ; 10892 return 0; 10893} 10894_ACEOF 10895if ac_fn_c_try_link "$LINENO"; then : 10896 ac_cv_lib_dld_shl_load=yes 10897else 10898 ac_cv_lib_dld_shl_load=no 10899fi 10900rm -f core conftest.err conftest.$ac_objext \ 10901 conftest$ac_exeext conftest.$ac_ext 10902LIBS=$ac_check_lib_save_LIBS 10903fi 10904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10905$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10906if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 10907 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10908else 10909 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10910if test "x$ac_cv_func_dlopen" = xyes; then : 10911 lt_cv_dlopen="dlopen" 10912else 10913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10914$as_echo_n "checking for dlopen in -ldl... " >&6; } 10915if ${ac_cv_lib_dl_dlopen+:} false; then : 10916 $as_echo_n "(cached) " >&6 10917else 10918 ac_check_lib_save_LIBS=$LIBS 10919LIBS="-ldl $LIBS" 10920cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10921/* end confdefs.h. */ 10922 10923/* Override any GCC internal prototype to avoid an error. 10924 Use char because int might match the return type of a GCC 10925 builtin and then its argument prototype would still apply. */ 10926#ifdef __cplusplus 10927extern "C" 10928#endif 10929char dlopen (); 10930int 10931main () 10932{ 10933return dlopen (); 10934 ; 10935 return 0; 10936} 10937_ACEOF 10938if ac_fn_c_try_link "$LINENO"; then : 10939 ac_cv_lib_dl_dlopen=yes 10940else 10941 ac_cv_lib_dl_dlopen=no 10942fi 10943rm -f core conftest.err conftest.$ac_objext \ 10944 conftest$ac_exeext conftest.$ac_ext 10945LIBS=$ac_check_lib_save_LIBS 10946fi 10947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10948$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10949if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10950 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10951else 10952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10953$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10954if ${ac_cv_lib_svld_dlopen+:} false; then : 10955 $as_echo_n "(cached) " >&6 10956else 10957 ac_check_lib_save_LIBS=$LIBS 10958LIBS="-lsvld $LIBS" 10959cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10960/* end confdefs.h. */ 10961 10962/* Override any GCC internal prototype to avoid an error. 10963 Use char because int might match the return type of a GCC 10964 builtin and then its argument prototype would still apply. */ 10965#ifdef __cplusplus 10966extern "C" 10967#endif 10968char dlopen (); 10969int 10970main () 10971{ 10972return dlopen (); 10973 ; 10974 return 0; 10975} 10976_ACEOF 10977if ac_fn_c_try_link "$LINENO"; then : 10978 ac_cv_lib_svld_dlopen=yes 10979else 10980 ac_cv_lib_svld_dlopen=no 10981fi 10982rm -f core conftest.err conftest.$ac_objext \ 10983 conftest$ac_exeext conftest.$ac_ext 10984LIBS=$ac_check_lib_save_LIBS 10985fi 10986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 10987$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10988if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 10989 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10990else 10991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 10992$as_echo_n "checking for dld_link in -ldld... " >&6; } 10993if ${ac_cv_lib_dld_dld_link+:} false; then : 10994 $as_echo_n "(cached) " >&6 10995else 10996 ac_check_lib_save_LIBS=$LIBS 10997LIBS="-ldld $LIBS" 10998cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10999/* end confdefs.h. */ 11000 11001/* Override any GCC internal prototype to avoid an error. 11002 Use char because int might match the return type of a GCC 11003 builtin and then its argument prototype would still apply. */ 11004#ifdef __cplusplus 11005extern "C" 11006#endif 11007char dld_link (); 11008int 11009main () 11010{ 11011return dld_link (); 11012 ; 11013 return 0; 11014} 11015_ACEOF 11016if ac_fn_c_try_link "$LINENO"; then : 11017 ac_cv_lib_dld_dld_link=yes 11018else 11019 ac_cv_lib_dld_dld_link=no 11020fi 11021rm -f core conftest.err conftest.$ac_objext \ 11022 conftest$ac_exeext conftest.$ac_ext 11023LIBS=$ac_check_lib_save_LIBS 11024fi 11025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11026$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11027if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11028 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11029fi 11030 11031 11032fi 11033 11034 11035fi 11036 11037 11038fi 11039 11040 11041fi 11042 11043 11044fi 11045 11046 ;; 11047 esac 11048 11049 if test "x$lt_cv_dlopen" != xno; then 11050 enable_dlopen=yes 11051 else 11052 enable_dlopen=no 11053 fi 11054 11055 case $lt_cv_dlopen in 11056 dlopen) 11057 save_CPPFLAGS="$CPPFLAGS" 11058 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11059 11060 save_LDFLAGS="$LDFLAGS" 11061 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11062 11063 save_LIBS="$LIBS" 11064 LIBS="$lt_cv_dlopen_libs $LIBS" 11065 11066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11067$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11068if ${lt_cv_dlopen_self+:} false; then : 11069 $as_echo_n "(cached) " >&6 11070else 11071 if test "$cross_compiling" = yes; then : 11072 lt_cv_dlopen_self=cross 11073else 11074 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11075 lt_status=$lt_dlunknown 11076 cat > conftest.$ac_ext <<_LT_EOF 11077#line $LINENO "configure" 11078#include "confdefs.h" 11079 11080#if HAVE_DLFCN_H 11081#include <dlfcn.h> 11082#endif 11083 11084#include <stdio.h> 11085 11086#ifdef RTLD_GLOBAL 11087# define LT_DLGLOBAL RTLD_GLOBAL 11088#else 11089# ifdef DL_GLOBAL 11090# define LT_DLGLOBAL DL_GLOBAL 11091# else 11092# define LT_DLGLOBAL 0 11093# endif 11094#endif 11095 11096/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11097 find out it does not work in some platform. */ 11098#ifndef LT_DLLAZY_OR_NOW 11099# ifdef RTLD_LAZY 11100# define LT_DLLAZY_OR_NOW RTLD_LAZY 11101# else 11102# ifdef DL_LAZY 11103# define LT_DLLAZY_OR_NOW DL_LAZY 11104# else 11105# ifdef RTLD_NOW 11106# define LT_DLLAZY_OR_NOW RTLD_NOW 11107# else 11108# ifdef DL_NOW 11109# define LT_DLLAZY_OR_NOW DL_NOW 11110# else 11111# define LT_DLLAZY_OR_NOW 0 11112# endif 11113# endif 11114# endif 11115# endif 11116#endif 11117 11118/* When -fvisbility=hidden is used, assume the code has been annotated 11119 correspondingly for the symbols needed. */ 11120#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11121int fnord () __attribute__((visibility("default"))); 11122#endif 11123 11124int fnord () { return 42; } 11125int main () 11126{ 11127 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11128 int status = $lt_dlunknown; 11129 11130 if (self) 11131 { 11132 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11133 else 11134 { 11135 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11136 else puts (dlerror ()); 11137 } 11138 /* dlclose (self); */ 11139 } 11140 else 11141 puts (dlerror ()); 11142 11143 return status; 11144} 11145_LT_EOF 11146 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11147 (eval $ac_link) 2>&5 11148 ac_status=$? 11149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11150 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11151 (./conftest; exit; ) >&5 2>/dev/null 11152 lt_status=$? 11153 case x$lt_status in 11154 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11155 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11156 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11157 esac 11158 else : 11159 # compilation failed 11160 lt_cv_dlopen_self=no 11161 fi 11162fi 11163rm -fr conftest* 11164 11165 11166fi 11167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11168$as_echo "$lt_cv_dlopen_self" >&6; } 11169 11170 if test "x$lt_cv_dlopen_self" = xyes; then 11171 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11173$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11174if ${lt_cv_dlopen_self_static+:} false; then : 11175 $as_echo_n "(cached) " >&6 11176else 11177 if test "$cross_compiling" = yes; then : 11178 lt_cv_dlopen_self_static=cross 11179else 11180 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11181 lt_status=$lt_dlunknown 11182 cat > conftest.$ac_ext <<_LT_EOF 11183#line $LINENO "configure" 11184#include "confdefs.h" 11185 11186#if HAVE_DLFCN_H 11187#include <dlfcn.h> 11188#endif 11189 11190#include <stdio.h> 11191 11192#ifdef RTLD_GLOBAL 11193# define LT_DLGLOBAL RTLD_GLOBAL 11194#else 11195# ifdef DL_GLOBAL 11196# define LT_DLGLOBAL DL_GLOBAL 11197# else 11198# define LT_DLGLOBAL 0 11199# endif 11200#endif 11201 11202/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11203 find out it does not work in some platform. */ 11204#ifndef LT_DLLAZY_OR_NOW 11205# ifdef RTLD_LAZY 11206# define LT_DLLAZY_OR_NOW RTLD_LAZY 11207# else 11208# ifdef DL_LAZY 11209# define LT_DLLAZY_OR_NOW DL_LAZY 11210# else 11211# ifdef RTLD_NOW 11212# define LT_DLLAZY_OR_NOW RTLD_NOW 11213# else 11214# ifdef DL_NOW 11215# define LT_DLLAZY_OR_NOW DL_NOW 11216# else 11217# define LT_DLLAZY_OR_NOW 0 11218# endif 11219# endif 11220# endif 11221# endif 11222#endif 11223 11224/* When -fvisbility=hidden is used, assume the code has been annotated 11225 correspondingly for the symbols needed. */ 11226#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11227int fnord () __attribute__((visibility("default"))); 11228#endif 11229 11230int fnord () { return 42; } 11231int main () 11232{ 11233 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11234 int status = $lt_dlunknown; 11235 11236 if (self) 11237 { 11238 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11239 else 11240 { 11241 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11242 else puts (dlerror ()); 11243 } 11244 /* dlclose (self); */ 11245 } 11246 else 11247 puts (dlerror ()); 11248 11249 return status; 11250} 11251_LT_EOF 11252 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11253 (eval $ac_link) 2>&5 11254 ac_status=$? 11255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11256 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11257 (./conftest; exit; ) >&5 2>/dev/null 11258 lt_status=$? 11259 case x$lt_status in 11260 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11261 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11262 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11263 esac 11264 else : 11265 # compilation failed 11266 lt_cv_dlopen_self_static=no 11267 fi 11268fi 11269rm -fr conftest* 11270 11271 11272fi 11273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11274$as_echo "$lt_cv_dlopen_self_static" >&6; } 11275 fi 11276 11277 CPPFLAGS="$save_CPPFLAGS" 11278 LDFLAGS="$save_LDFLAGS" 11279 LIBS="$save_LIBS" 11280 ;; 11281 esac 11282 11283 case $lt_cv_dlopen_self in 11284 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11285 *) enable_dlopen_self=unknown ;; 11286 esac 11287 11288 case $lt_cv_dlopen_self_static in 11289 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11290 *) enable_dlopen_self_static=unknown ;; 11291 esac 11292fi 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310striplib= 11311old_striplib= 11312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11313$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11314if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11315 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11316 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11318$as_echo "yes" >&6; } 11319else 11320# FIXME - insert some real tests, host_os isn't really good enough 11321 case $host_os in 11322 darwin*) 11323 if test -n "$STRIP" ; then 11324 striplib="$STRIP -x" 11325 old_striplib="$STRIP -S" 11326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11327$as_echo "yes" >&6; } 11328 else 11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11330$as_echo "no" >&6; } 11331 fi 11332 ;; 11333 *) 11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11335$as_echo "no" >&6; } 11336 ;; 11337 esac 11338fi 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 # Report which library types will actually be built 11352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11353$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11355$as_echo "$can_build_shared" >&6; } 11356 11357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11358$as_echo_n "checking whether to build shared libraries... " >&6; } 11359 test "$can_build_shared" = "no" && enable_shared=no 11360 11361 # On AIX, shared libraries and static libraries use the same namespace, and 11362 # are all built from PIC. 11363 case $host_os in 11364 aix3*) 11365 test "$enable_shared" = yes && enable_static=no 11366 if test -n "$RANLIB"; then 11367 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11368 postinstall_cmds='$RANLIB $lib' 11369 fi 11370 ;; 11371 11372 aix[4-9]*) 11373 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11374 test "$enable_shared" = yes && enable_static=no 11375 fi 11376 ;; 11377 esac 11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11379$as_echo "$enable_shared" >&6; } 11380 11381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11382$as_echo_n "checking whether to build static libraries... " >&6; } 11383 # Make sure either enable_shared or enable_static is yes. 11384 test "$enable_shared" = yes || enable_static=yes 11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11386$as_echo "$enable_static" >&6; } 11387 11388 11389 11390 11391fi 11392ac_ext=c 11393ac_cpp='$CPP $CPPFLAGS' 11394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11396ac_compiler_gnu=$ac_cv_c_compiler_gnu 11397 11398CC="$lt_save_CC" 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 ac_config_commands="$ac_config_commands libtool" 11415 11416 11417 11418 11419# Only expand once: 11420 11421 11422 11423LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION 11424LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE` 11425LT_REVISION=$SDL_INTERFACE_AGE 11426LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE` 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436ac_ext=c 11437ac_cpp='$CPP $CPPFLAGS' 11438ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11439ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11440ac_compiler_gnu=$ac_cv_c_compiler_gnu 11441if test -n "$ac_tool_prefix"; then 11442 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 11443set dummy ${ac_tool_prefix}gcc; ac_word=$2 11444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11445$as_echo_n "checking for $ac_word... " >&6; } 11446if ${ac_cv_prog_CC+:} false; then : 11447 $as_echo_n "(cached) " >&6 11448else 11449 if test -n "$CC"; then 11450 ac_cv_prog_CC="$CC" # Let the user override the test. 11451else 11452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11453for as_dir in $PATH 11454do 11455 IFS=$as_save_IFS 11456 test -z "$as_dir" && as_dir=. 11457 for ac_exec_ext in '' $ac_executable_extensions; do 11458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11459 ac_cv_prog_CC="${ac_tool_prefix}gcc" 11460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11461 break 2 11462 fi 11463done 11464 done 11465IFS=$as_save_IFS 11466 11467fi 11468fi 11469CC=$ac_cv_prog_CC 11470if test -n "$CC"; then 11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11472$as_echo "$CC" >&6; } 11473else 11474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11475$as_echo "no" >&6; } 11476fi 11477 11478 11479fi 11480if test -z "$ac_cv_prog_CC"; then 11481 ac_ct_CC=$CC 11482 # Extract the first word of "gcc", so it can be a program name with args. 11483set dummy gcc; ac_word=$2 11484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11485$as_echo_n "checking for $ac_word... " >&6; } 11486if ${ac_cv_prog_ac_ct_CC+:} false; then : 11487 $as_echo_n "(cached) " >&6 11488else 11489 if test -n "$ac_ct_CC"; then 11490 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 11491else 11492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11493for as_dir in $PATH 11494do 11495 IFS=$as_save_IFS 11496 test -z "$as_dir" && as_dir=. 11497 for ac_exec_ext in '' $ac_executable_extensions; do 11498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11499 ac_cv_prog_ac_ct_CC="gcc" 11500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11501 break 2 11502 fi 11503done 11504 done 11505IFS=$as_save_IFS 11506 11507fi 11508fi 11509ac_ct_CC=$ac_cv_prog_ac_ct_CC 11510if test -n "$ac_ct_CC"; then 11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 11512$as_echo "$ac_ct_CC" >&6; } 11513else 11514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11515$as_echo "no" >&6; } 11516fi 11517 11518 if test "x$ac_ct_CC" = x; then 11519 CC="" 11520 else 11521 case $cross_compiling:$ac_tool_warned in 11522yes:) 11523{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11524$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11525ac_tool_warned=yes ;; 11526esac 11527 CC=$ac_ct_CC 11528 fi 11529else 11530 CC="$ac_cv_prog_CC" 11531fi 11532 11533if test -z "$CC"; then 11534 if test -n "$ac_tool_prefix"; then 11535 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 11536set dummy ${ac_tool_prefix}cc; ac_word=$2 11537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11538$as_echo_n "checking for $ac_word... " >&6; } 11539if ${ac_cv_prog_CC+:} false; then : 11540 $as_echo_n "(cached) " >&6 11541else 11542 if test -n "$CC"; then 11543 ac_cv_prog_CC="$CC" # Let the user override the test. 11544else 11545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11546for as_dir in $PATH 11547do 11548 IFS=$as_save_IFS 11549 test -z "$as_dir" && as_dir=. 11550 for ac_exec_ext in '' $ac_executable_extensions; do 11551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11552 ac_cv_prog_CC="${ac_tool_prefix}cc" 11553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11554 break 2 11555 fi 11556done 11557 done 11558IFS=$as_save_IFS 11559 11560fi 11561fi 11562CC=$ac_cv_prog_CC 11563if test -n "$CC"; then 11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11565$as_echo "$CC" >&6; } 11566else 11567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11568$as_echo "no" >&6; } 11569fi 11570 11571 11572 fi 11573fi 11574if test -z "$CC"; then 11575 # Extract the first word of "cc", so it can be a program name with args. 11576set dummy cc; ac_word=$2 11577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11578$as_echo_n "checking for $ac_word... " >&6; } 11579if ${ac_cv_prog_CC+:} false; then : 11580 $as_echo_n "(cached) " >&6 11581else 11582 if test -n "$CC"; then 11583 ac_cv_prog_CC="$CC" # Let the user override the test. 11584else 11585 ac_prog_rejected=no 11586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11587for as_dir in $PATH 11588do 11589 IFS=$as_save_IFS 11590 test -z "$as_dir" && as_dir=. 11591 for ac_exec_ext in '' $ac_executable_extensions; do 11592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11593 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 11594 ac_prog_rejected=yes 11595 continue 11596 fi 11597 ac_cv_prog_CC="cc" 11598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11599 break 2 11600 fi 11601done 11602 done 11603IFS=$as_save_IFS 11604 11605if test $ac_prog_rejected = yes; then 11606 # We found a bogon in the path, so make sure we never use it. 11607 set dummy $ac_cv_prog_CC 11608 shift 11609 if test $# != 0; then 11610 # We chose a different compiler from the bogus one. 11611 # However, it has the same basename, so the bogon will be chosen 11612 # first if we set CC to just the basename; use the full file name. 11613 shift 11614 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 11615 fi 11616fi 11617fi 11618fi 11619CC=$ac_cv_prog_CC 11620if test -n "$CC"; then 11621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11622$as_echo "$CC" >&6; } 11623else 11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11625$as_echo "no" >&6; } 11626fi 11627 11628 11629fi 11630if test -z "$CC"; then 11631 if test -n "$ac_tool_prefix"; then 11632 for ac_prog in cl.exe 11633 do 11634 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11635set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11637$as_echo_n "checking for $ac_word... " >&6; } 11638if ${ac_cv_prog_CC+:} false; then : 11639 $as_echo_n "(cached) " >&6 11640else 11641 if test -n "$CC"; then 11642 ac_cv_prog_CC="$CC" # Let the user override the test. 11643else 11644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11645for as_dir in $PATH 11646do 11647 IFS=$as_save_IFS 11648 test -z "$as_dir" && as_dir=. 11649 for ac_exec_ext in '' $ac_executable_extensions; do 11650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11651 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 11652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11653 break 2 11654 fi 11655done 11656 done 11657IFS=$as_save_IFS 11658 11659fi 11660fi 11661CC=$ac_cv_prog_CC 11662if test -n "$CC"; then 11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11664$as_echo "$CC" >&6; } 11665else 11666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11667$as_echo "no" >&6; } 11668fi 11669 11670 11671 test -n "$CC" && break 11672 done 11673fi 11674if test -z "$CC"; then 11675 ac_ct_CC=$CC 11676 for ac_prog in cl.exe 11677do 11678 # Extract the first word of "$ac_prog", so it can be a program name with args. 11679set dummy $ac_prog; ac_word=$2 11680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11681$as_echo_n "checking for $ac_word... " >&6; } 11682if ${ac_cv_prog_ac_ct_CC+:} false; then : 11683 $as_echo_n "(cached) " >&6 11684else 11685 if test -n "$ac_ct_CC"; then 11686 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 11687else 11688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11689for as_dir in $PATH 11690do 11691 IFS=$as_save_IFS 11692 test -z "$as_dir" && as_dir=. 11693 for ac_exec_ext in '' $ac_executable_extensions; do 11694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11695 ac_cv_prog_ac_ct_CC="$ac_prog" 11696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11697 break 2 11698 fi 11699done 11700 done 11701IFS=$as_save_IFS 11702 11703fi 11704fi 11705ac_ct_CC=$ac_cv_prog_ac_ct_CC 11706if test -n "$ac_ct_CC"; then 11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 11708$as_echo "$ac_ct_CC" >&6; } 11709else 11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11711$as_echo "no" >&6; } 11712fi 11713 11714 11715 test -n "$ac_ct_CC" && break 11716done 11717 11718 if test "x$ac_ct_CC" = x; then 11719 CC="" 11720 else 11721 case $cross_compiling:$ac_tool_warned in 11722yes:) 11723{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11724$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11725ac_tool_warned=yes ;; 11726esac 11727 CC=$ac_ct_CC 11728 fi 11729fi 11730 11731fi 11732 11733 11734test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11735$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11736as_fn_error $? "no acceptable C compiler found in \$PATH 11737See \`config.log' for more details" "$LINENO" 5; } 11738 11739# Provide some information about the compiler. 11740$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 11741set X $ac_compile 11742ac_compiler=$2 11743for ac_option in --version -v -V -qversion; do 11744 { { ac_try="$ac_compiler $ac_option >&5" 11745case "(($ac_try" in 11746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11747 *) ac_try_echo=$ac_try;; 11748esac 11749eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 11750$as_echo "$ac_try_echo"; } >&5 11751 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 11752 ac_status=$? 11753 if test -s conftest.err; then 11754 sed '10a\ 11755... rest of stderr output deleted ... 11756 10q' conftest.err >conftest.er1 11757 cat conftest.er1 >&5 11758 fi 11759 rm -f conftest.er1 conftest.err 11760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11761 test $ac_status = 0; } 11762done 11763 11764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 11765$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 11766if ${ac_cv_c_compiler_gnu+:} false; then : 11767 $as_echo_n "(cached) " >&6 11768else 11769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11770/* end confdefs.h. */ 11771 11772int 11773main () 11774{ 11775#ifndef __GNUC__ 11776 choke me 11777#endif 11778 11779 ; 11780 return 0; 11781} 11782_ACEOF 11783if ac_fn_c_try_compile "$LINENO"; then : 11784 ac_compiler_gnu=yes 11785else 11786 ac_compiler_gnu=no 11787fi 11788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11789ac_cv_c_compiler_gnu=$ac_compiler_gnu 11790 11791fi 11792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 11793$as_echo "$ac_cv_c_compiler_gnu" >&6; } 11794if test $ac_compiler_gnu = yes; then 11795 GCC=yes 11796else 11797 GCC= 11798fi 11799ac_test_CFLAGS=${CFLAGS+set} 11800ac_save_CFLAGS=$CFLAGS 11801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 11802$as_echo_n "checking whether $CC accepts -g... " >&6; } 11803if ${ac_cv_prog_cc_g+:} false; then : 11804 $as_echo_n "(cached) " >&6 11805else 11806 ac_save_c_werror_flag=$ac_c_werror_flag 11807 ac_c_werror_flag=yes 11808 ac_cv_prog_cc_g=no 11809 CFLAGS="-g" 11810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11811/* end confdefs.h. */ 11812 11813int 11814main () 11815{ 11816 11817 ; 11818 return 0; 11819} 11820_ACEOF 11821if ac_fn_c_try_compile "$LINENO"; then : 11822 ac_cv_prog_cc_g=yes 11823else 11824 CFLAGS="" 11825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11826/* end confdefs.h. */ 11827 11828int 11829main () 11830{ 11831 11832 ; 11833 return 0; 11834} 11835_ACEOF 11836if ac_fn_c_try_compile "$LINENO"; then : 11837 11838else 11839 ac_c_werror_flag=$ac_save_c_werror_flag 11840 CFLAGS="-g" 11841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11842/* end confdefs.h. */ 11843 11844int 11845main () 11846{ 11847 11848 ; 11849 return 0; 11850} 11851_ACEOF 11852if ac_fn_c_try_compile "$LINENO"; then : 11853 ac_cv_prog_cc_g=yes 11854fi 11855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11856fi 11857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11858fi 11859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11860 ac_c_werror_flag=$ac_save_c_werror_flag 11861fi 11862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 11863$as_echo "$ac_cv_prog_cc_g" >&6; } 11864if test "$ac_test_CFLAGS" = set; then 11865 CFLAGS=$ac_save_CFLAGS 11866elif test $ac_cv_prog_cc_g = yes; then 11867 if test "$GCC" = yes; then 11868 CFLAGS="-g -O2" 11869 else 11870 CFLAGS="-g" 11871 fi 11872else 11873 if test "$GCC" = yes; then 11874 CFLAGS="-O2" 11875 else 11876 CFLAGS= 11877 fi 11878fi 11879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 11880$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 11881if ${ac_cv_prog_cc_c89+:} false; then : 11882 $as_echo_n "(cached) " >&6 11883else 11884 ac_cv_prog_cc_c89=no 11885ac_save_CC=$CC 11886cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11887/* end confdefs.h. */ 11888#include <stdarg.h> 11889#include <stdio.h> 11890struct stat; 11891/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 11892struct buf { int x; }; 11893FILE * (*rcsopen) (struct buf *, struct stat *, int); 11894static char *e (p, i) 11895 char **p; 11896 int i; 11897{ 11898 return p[i]; 11899} 11900static char *f (char * (*g) (char **, int), char **p, ...) 11901{ 11902 char *s; 11903 va_list v; 11904 va_start (v,p); 11905 s = g (p, va_arg (v,int)); 11906 va_end (v); 11907 return s; 11908} 11909 11910/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 11911 function prototypes and stuff, but not '\xHH' hex character constants. 11912 These don't provoke an error unfortunately, instead are silently treated 11913 as 'x'. The following induces an error, until -std is added to get 11914 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 11915 array size at least. It's necessary to write '\x00'==0 to get something 11916 that's true only with -std. */ 11917int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 11918 11919/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 11920 inside strings and character constants. */ 11921#define FOO(x) 'x' 11922int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 11923 11924int test (int i, double x); 11925struct s1 {int (*f) (int a);}; 11926struct s2 {int (*f) (double a);}; 11927int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 11928int argc; 11929char **argv; 11930int 11931main () 11932{ 11933return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 11934 ; 11935 return 0; 11936} 11937_ACEOF 11938for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 11939 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 11940do 11941 CC="$ac_save_CC $ac_arg" 11942 if ac_fn_c_try_compile "$LINENO"; then : 11943 ac_cv_prog_cc_c89=$ac_arg 11944fi 11945rm -f core conftest.err conftest.$ac_objext 11946 test "x$ac_cv_prog_cc_c89" != "xno" && break 11947done 11948rm -f conftest.$ac_ext 11949CC=$ac_save_CC 11950 11951fi 11952# AC_CACHE_VAL 11953case "x$ac_cv_prog_cc_c89" in 11954 x) 11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 11956$as_echo "none needed" >&6; } ;; 11957 xno) 11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 11959$as_echo "unsupported" >&6; } ;; 11960 *) 11961 CC="$CC $ac_cv_prog_cc_c89" 11962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 11963$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 11964esac 11965if test "x$ac_cv_prog_cc_c89" != xno; then : 11966 11967fi 11968 11969ac_ext=c 11970ac_cpp='$CPP $CPPFLAGS' 11971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11973ac_compiler_gnu=$ac_cv_c_compiler_gnu 11974 11975ac_ext=cpp 11976ac_cpp='$CXXCPP $CPPFLAGS' 11977ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11978ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11979ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11980if test -z "$CXX"; then 11981 if test -n "$CCC"; then 11982 CXX=$CCC 11983 else 11984 if test -n "$ac_tool_prefix"; then 11985 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 11986 do 11987 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11988set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11990$as_echo_n "checking for $ac_word... " >&6; } 11991if ${ac_cv_prog_CXX+:} false; then : 11992 $as_echo_n "(cached) " >&6 11993else 11994 if test -n "$CXX"; then 11995 ac_cv_prog_CXX="$CXX" # Let the user override the test. 11996else 11997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11998for as_dir in $PATH 11999do 12000 IFS=$as_save_IFS 12001 test -z "$as_dir" && as_dir=. 12002 for ac_exec_ext in '' $ac_executable_extensions; do 12003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12004 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 12005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12006 break 2 12007 fi 12008done 12009 done 12010IFS=$as_save_IFS 12011 12012fi 12013fi 12014CXX=$ac_cv_prog_CXX 12015if test -n "$CXX"; then 12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 12017$as_echo "$CXX" >&6; } 12018else 12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12020$as_echo "no" >&6; } 12021fi 12022 12023 12024 test -n "$CXX" && break 12025 done 12026fi 12027if test -z "$CXX"; then 12028 ac_ct_CXX=$CXX 12029 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 12030do 12031 # Extract the first word of "$ac_prog", so it can be a program name with args. 12032set dummy $ac_prog; ac_word=$2 12033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12034$as_echo_n "checking for $ac_word... " >&6; } 12035if ${ac_cv_prog_ac_ct_CXX+:} false; then : 12036 $as_echo_n "(cached) " >&6 12037else 12038 if test -n "$ac_ct_CXX"; then 12039 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 12040else 12041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12042for as_dir in $PATH 12043do 12044 IFS=$as_save_IFS 12045 test -z "$as_dir" && as_dir=. 12046 for ac_exec_ext in '' $ac_executable_extensions; do 12047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12048 ac_cv_prog_ac_ct_CXX="$ac_prog" 12049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12050 break 2 12051 fi 12052done 12053 done 12054IFS=$as_save_IFS 12055 12056fi 12057fi 12058ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 12059if test -n "$ac_ct_CXX"; then 12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 12061$as_echo "$ac_ct_CXX" >&6; } 12062else 12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12064$as_echo "no" >&6; } 12065fi 12066 12067 12068 test -n "$ac_ct_CXX" && break 12069done 12070 12071 if test "x$ac_ct_CXX" = x; then 12072 CXX="g++" 12073 else 12074 case $cross_compiling:$ac_tool_warned in 12075yes:) 12076{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12077$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12078ac_tool_warned=yes ;; 12079esac 12080 CXX=$ac_ct_CXX 12081 fi 12082fi 12083 12084 fi 12085fi 12086# Provide some information about the compiler. 12087$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 12088set X $ac_compile 12089ac_compiler=$2 12090for ac_option in --version -v -V -qversion; do 12091 { { ac_try="$ac_compiler $ac_option >&5" 12092case "(($ac_try" in 12093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12094 *) ac_try_echo=$ac_try;; 12095esac 12096eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12097$as_echo "$ac_try_echo"; } >&5 12098 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 12099 ac_status=$? 12100 if test -s conftest.err; then 12101 sed '10a\ 12102... rest of stderr output deleted ... 12103 10q' conftest.err >conftest.er1 12104 cat conftest.er1 >&5 12105 fi 12106 rm -f conftest.er1 conftest.err 12107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12108 test $ac_status = 0; } 12109done 12110 12111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 12112$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 12113if ${ac_cv_cxx_compiler_gnu+:} false; then : 12114 $as_echo_n "(cached) " >&6 12115else 12116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12117/* end confdefs.h. */ 12118 12119int 12120main () 12121{ 12122#ifndef __GNUC__ 12123 choke me 12124#endif 12125 12126 ; 12127 return 0; 12128} 12129_ACEOF 12130if ac_fn_cxx_try_compile "$LINENO"; then : 12131 ac_compiler_gnu=yes 12132else 12133 ac_compiler_gnu=no 12134fi 12135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12136ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 12137 12138fi 12139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 12140$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 12141if test $ac_compiler_gnu = yes; then 12142 GXX=yes 12143else 12144 GXX= 12145fi 12146ac_test_CXXFLAGS=${CXXFLAGS+set} 12147ac_save_CXXFLAGS=$CXXFLAGS 12148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 12149$as_echo_n "checking whether $CXX accepts -g... " >&6; } 12150if ${ac_cv_prog_cxx_g+:} false; then : 12151 $as_echo_n "(cached) " >&6 12152else 12153 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 12154 ac_cxx_werror_flag=yes 12155 ac_cv_prog_cxx_g=no 12156 CXXFLAGS="-g" 12157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12158/* end confdefs.h. */ 12159 12160int 12161main () 12162{ 12163 12164 ; 12165 return 0; 12166} 12167_ACEOF 12168if ac_fn_cxx_try_compile "$LINENO"; then : 12169 ac_cv_prog_cxx_g=yes 12170else 12171 CXXFLAGS="" 12172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12173/* end confdefs.h. */ 12174 12175int 12176main () 12177{ 12178 12179 ; 12180 return 0; 12181} 12182_ACEOF 12183if ac_fn_cxx_try_compile "$LINENO"; then : 12184 12185else 12186 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 12187 CXXFLAGS="-g" 12188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12189/* end confdefs.h. */ 12190 12191int 12192main () 12193{ 12194 12195 ; 12196 return 0; 12197} 12198_ACEOF 12199if ac_fn_cxx_try_compile "$LINENO"; then : 12200 ac_cv_prog_cxx_g=yes 12201fi 12202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12203fi 12204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12205fi 12206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12207 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 12208fi 12209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 12210$as_echo "$ac_cv_prog_cxx_g" >&6; } 12211if test "$ac_test_CXXFLAGS" = set; then 12212 CXXFLAGS=$ac_save_CXXFLAGS 12213elif test $ac_cv_prog_cxx_g = yes; then 12214 if test "$GXX" = yes; then 12215 CXXFLAGS="-g -O2" 12216 else 12217 CXXFLAGS="-g" 12218 fi 12219else 12220 if test "$GXX" = yes; then 12221 CXXFLAGS="-O2" 12222 else 12223 CXXFLAGS= 12224 fi 12225fi 12226ac_ext=c 12227ac_cpp='$CPP $CPPFLAGS' 12228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12230ac_compiler_gnu=$ac_cv_c_compiler_gnu 12231 12232 12233 12234func_stripname_cnf () 12235{ 12236 case ${2} in 12237 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 12238 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 12239 esac 12240} # func_stripname_cnf 12241 12242 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 12243 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 12244 (test "X$CXX" != "Xg++"))) ; then 12245 ac_ext=cpp 12246ac_cpp='$CXXCPP $CPPFLAGS' 12247ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12248ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12249ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 12251$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 12252if test -z "$CXXCPP"; then 12253 if ${ac_cv_prog_CXXCPP+:} false; then : 12254 $as_echo_n "(cached) " >&6 12255else 12256 # Double quotes because CXXCPP needs to be expanded 12257 for CXXCPP in "$CXX -E" "/lib/cpp" 12258 do 12259 ac_preproc_ok=false 12260for ac_cxx_preproc_warn_flag in '' yes 12261do 12262 # Use a header file that comes with gcc, so configuring glibc 12263 # with a fresh cross-compiler works. 12264 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12265 # <limits.h> exists even on freestanding compilers. 12266 # On the NeXT, cc -E runs the code through the compiler's parser, 12267 # not just through cpp. "Syntax error" is here to catch this case. 12268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12269/* end confdefs.h. */ 12270#ifdef __STDC__ 12271# include <limits.h> 12272#else 12273# include <assert.h> 12274#endif 12275 Syntax error 12276_ACEOF 12277if ac_fn_cxx_try_cpp "$LINENO"; then : 12278 12279else 12280 # Broken: fails on valid input. 12281continue 12282fi 12283rm -f conftest.err conftest.i conftest.$ac_ext 12284 12285 # OK, works on sane cases. Now check whether nonexistent headers 12286 # can be detected and how. 12287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12288/* end confdefs.h. */ 12289#include <ac_nonexistent.h> 12290_ACEOF 12291if ac_fn_cxx_try_cpp "$LINENO"; then : 12292 # Broken: success on invalid input. 12293continue 12294else 12295 # Passes both tests. 12296ac_preproc_ok=: 12297break 12298fi 12299rm -f conftest.err conftest.i conftest.$ac_ext 12300 12301done 12302# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12303rm -f conftest.i conftest.err conftest.$ac_ext 12304if $ac_preproc_ok; then : 12305 break 12306fi 12307 12308 done 12309 ac_cv_prog_CXXCPP=$CXXCPP 12310 12311fi 12312 CXXCPP=$ac_cv_prog_CXXCPP 12313else 12314 ac_cv_prog_CXXCPP=$CXXCPP 12315fi 12316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 12317$as_echo "$CXXCPP" >&6; } 12318ac_preproc_ok=false 12319for ac_cxx_preproc_warn_flag in '' yes 12320do 12321 # Use a header file that comes with gcc, so configuring glibc 12322 # with a fresh cross-compiler works. 12323 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12324 # <limits.h> exists even on freestanding compilers. 12325 # On the NeXT, cc -E runs the code through the compiler's parser, 12326 # not just through cpp. "Syntax error" is here to catch this case. 12327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12328/* end confdefs.h. */ 12329#ifdef __STDC__ 12330# include <limits.h> 12331#else 12332# include <assert.h> 12333#endif 12334 Syntax error 12335_ACEOF 12336if ac_fn_cxx_try_cpp "$LINENO"; then : 12337 12338else 12339 # Broken: fails on valid input. 12340continue 12341fi 12342rm -f conftest.err conftest.i conftest.$ac_ext 12343 12344 # OK, works on sane cases. Now check whether nonexistent headers 12345 # can be detected and how. 12346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12347/* end confdefs.h. */ 12348#include <ac_nonexistent.h> 12349_ACEOF 12350if ac_fn_cxx_try_cpp "$LINENO"; then : 12351 # Broken: success on invalid input. 12352continue 12353else 12354 # Passes both tests. 12355ac_preproc_ok=: 12356break 12357fi 12358rm -f conftest.err conftest.i conftest.$ac_ext 12359 12360done 12361# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12362rm -f conftest.i conftest.err conftest.$ac_ext 12363if $ac_preproc_ok; then : 12364 12365else 12366 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12367$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12368as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 12369See \`config.log' for more details" "$LINENO" 5; } 12370fi 12371 12372ac_ext=c 12373ac_cpp='$CPP $CPPFLAGS' 12374ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12375ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12376ac_compiler_gnu=$ac_cv_c_compiler_gnu 12377 12378else 12379 _lt_caught_CXX_error=yes 12380fi 12381 12382ac_ext=cpp 12383ac_cpp='$CXXCPP $CPPFLAGS' 12384ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12385ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12386ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12387 12388archive_cmds_need_lc_CXX=no 12389allow_undefined_flag_CXX= 12390always_export_symbols_CXX=no 12391archive_expsym_cmds_CXX= 12392compiler_needs_object_CXX=no 12393export_dynamic_flag_spec_CXX= 12394hardcode_direct_CXX=no 12395hardcode_direct_absolute_CXX=no 12396hardcode_libdir_flag_spec_CXX= 12397hardcode_libdir_separator_CXX= 12398hardcode_minus_L_CXX=no 12399hardcode_shlibpath_var_CXX=unsupported 12400hardcode_automatic_CXX=no 12401inherit_rpath_CXX=no 12402module_cmds_CXX= 12403module_expsym_cmds_CXX= 12404link_all_deplibs_CXX=unknown 12405old_archive_cmds_CXX=$old_archive_cmds 12406reload_flag_CXX=$reload_flag 12407reload_cmds_CXX=$reload_cmds 12408no_undefined_flag_CXX= 12409whole_archive_flag_spec_CXX= 12410enable_shared_with_static_runtimes_CXX=no 12411 12412# Source file extension for C++ test sources. 12413ac_ext=cpp 12414 12415# Object file extension for compiled C++ test sources. 12416objext=o 12417objext_CXX=$objext 12418 12419# No sense in running all these tests if we already determined that 12420# the CXX compiler isn't working. Some variables (like enable_shared) 12421# are currently assumed to apply to all compilers on this platform, 12422# and will be corrupted by setting them based on a non-working compiler. 12423if test "$_lt_caught_CXX_error" != yes; then 12424 # Code to be used in simple compile tests 12425 lt_simple_compile_test_code="int some_variable = 0;" 12426 12427 # Code to be used in simple link tests 12428 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 12429 12430 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 12431 12432 12433 12434 12435 12436 12437# If no C compiler was specified, use CC. 12438LTCC=${LTCC-"$CC"} 12439 12440# If no C compiler flags were specified, use CFLAGS. 12441LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12442 12443# Allow CC to be a program name with arguments. 12444compiler=$CC 12445 12446 12447 # save warnings/boilerplate of simple test code 12448 ac_outfile=conftest.$ac_objext 12449echo "$lt_simple_compile_test_code" >conftest.$ac_ext 12450eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12451_lt_compiler_boilerplate=`cat conftest.err` 12452$RM conftest* 12453 12454 ac_outfile=conftest.$ac_objext 12455echo "$lt_simple_link_test_code" >conftest.$ac_ext 12456eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12457_lt_linker_boilerplate=`cat conftest.err` 12458$RM -r conftest* 12459 12460 12461 # Allow CC to be a program name with arguments. 12462 lt_save_CC=$CC 12463 lt_save_CFLAGS=$CFLAGS 12464 lt_save_LD=$LD 12465 lt_save_GCC=$GCC 12466 GCC=$GXX 12467 lt_save_with_gnu_ld=$with_gnu_ld 12468 lt_save_path_LD=$lt_cv_path_LD 12469 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 12470 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 12471 else 12472 $as_unset lt_cv_prog_gnu_ld 12473 fi 12474 if test -n "${lt_cv_path_LDCXX+set}"; then 12475 lt_cv_path_LD=$lt_cv_path_LDCXX 12476 else 12477 $as_unset lt_cv_path_LD 12478 fi 12479 test -z "${LDCXX+set}" || LD=$LDCXX 12480 CC=${CXX-"c++"} 12481 CFLAGS=$CXXFLAGS 12482 compiler=$CC 12483 compiler_CXX=$CC 12484 for cc_temp in $compiler""; do 12485 case $cc_temp in 12486 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12487 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12488 \-*) ;; 12489 *) break;; 12490 esac 12491done 12492cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 12493 12494 12495 if test -n "$compiler"; then 12496 # We don't want -fno-exception when compiling C++ code, so set the 12497 # no_builtin_flag separately 12498 if test "$GXX" = yes; then 12499 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 12500 else 12501 lt_prog_compiler_no_builtin_flag_CXX= 12502 fi 12503 12504 if test "$GXX" = yes; then 12505 # Set up default GNU C++ configuration 12506 12507 12508 12509# Check whether --with-gnu-ld was given. 12510if test "${with_gnu_ld+set}" = set; then : 12511 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 12512else 12513 with_gnu_ld=no 12514fi 12515 12516ac_prog=ld 12517if test "$GCC" = yes; then 12518 # Check if gcc -print-prog-name=ld gives a path. 12519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 12520$as_echo_n "checking for ld used by $CC... " >&6; } 12521 case $host in 12522 *-*-mingw*) 12523 # gcc leaves a trailing carriage return which upsets mingw 12524 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12525 *) 12526 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12527 esac 12528 case $ac_prog in 12529 # Accept absolute paths. 12530 [\\/]* | ?:[\\/]*) 12531 re_direlt='/[^/][^/]*/\.\./' 12532 # Canonicalize the pathname of ld 12533 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 12534 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 12535 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 12536 done 12537 test -z "$LD" && LD="$ac_prog" 12538 ;; 12539 "") 12540 # If it fails, then pretend we aren't using GCC. 12541 ac_prog=ld 12542 ;; 12543 *) 12544 # If it is relative, then search for the first ld in PATH. 12545 with_gnu_ld=unknown 12546 ;; 12547 esac 12548elif test "$with_gnu_ld" = yes; then 12549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 12550$as_echo_n "checking for GNU ld... " >&6; } 12551else 12552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 12553$as_echo_n "checking for non-GNU ld... " >&6; } 12554fi 12555if ${lt_cv_path_LD+:} false; then : 12556 $as_echo_n "(cached) " >&6 12557else 12558 if test -z "$LD"; then 12559 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 12560 for ac_dir in $PATH; do 12561 IFS="$lt_save_ifs" 12562 test -z "$ac_dir" && ac_dir=. 12563 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12564 lt_cv_path_LD="$ac_dir/$ac_prog" 12565 # Check to see if the program is GNU ld. I'd rather use --version, 12566 # but apparently some variants of GNU ld only accept -v. 12567 # Break only if it was the GNU/non-GNU ld that we prefer. 12568 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12569 *GNU* | *'with BFD'*) 12570 test "$with_gnu_ld" != no && break 12571 ;; 12572 *) 12573 test "$with_gnu_ld" != yes && break 12574 ;; 12575 esac 12576 fi 12577 done 12578 IFS="$lt_save_ifs" 12579else 12580 lt_cv_path_LD="$LD" # Let the user override the test with a path. 12581fi 12582fi 12583 12584LD="$lt_cv_path_LD" 12585if test -n "$LD"; then 12586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 12587$as_echo "$LD" >&6; } 12588else 12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12590$as_echo "no" >&6; } 12591fi 12592test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 12593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 12594$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 12595if ${lt_cv_prog_gnu_ld+:} false; then : 12596 $as_echo_n "(cached) " >&6 12597else 12598 # I'd rather use --version here, but apparently some GNU lds only accept -v. 12599case `$LD -v 2>&1 </dev/null` in 12600*GNU* | *'with BFD'*) 12601 lt_cv_prog_gnu_ld=yes 12602 ;; 12603*) 12604 lt_cv_prog_gnu_ld=no 12605 ;; 12606esac 12607fi 12608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 12609$as_echo "$lt_cv_prog_gnu_ld" >&6; } 12610with_gnu_ld=$lt_cv_prog_gnu_ld 12611 12612 12613 12614 12615 12616 12617 12618 # Check if GNU C++ uses GNU ld as the underlying linker, since the 12619 # archiving commands below assume that GNU ld is being used. 12620 if test "$with_gnu_ld" = yes; then 12621 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12622 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12623 12624 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12625 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12626 12627 # If archive_cmds runs LD, not CC, wlarc should be empty 12628 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 12629 # investigate it a little bit more. (MM) 12630 wlarc='${wl}' 12631 12632 # ancient GNU ld didn't support --whole-archive et. al. 12633 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 12634 $GREP 'no-whole-archive' > /dev/null; then 12635 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12636 else 12637 whole_archive_flag_spec_CXX= 12638 fi 12639 else 12640 with_gnu_ld=no 12641 wlarc= 12642 12643 # A generic and very simple default shared library creation 12644 # command for GNU C++ for the case where it uses the native 12645 # linker, instead of GNU ld. If possible, this setting should 12646 # overridden to take advantage of the native linker features on 12647 # the platform it is being used on. 12648 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12649 fi 12650 12651 # Commands to make compiler produce verbose output that lists 12652 # what "hidden" libraries, object files and flags are used when 12653 # linking a shared library. 12654 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 12655 12656 else 12657 GXX=no 12658 with_gnu_ld=no 12659 wlarc= 12660 fi 12661 12662 # PORTME: fill in a description of your system's C++ link characteristics 12663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12664$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 12665 ld_shlibs_CXX=yes 12666 case $host_os in 12667 aix3*) 12668 # FIXME: insert proper C++ library support 12669 ld_shlibs_CXX=no 12670 ;; 12671 aix[4-9]*) 12672 if test "$host_cpu" = ia64; then 12673 # On IA64, the linker does run time linking by default, so we don't 12674 # have to do anything special. 12675 aix_use_runtimelinking=no 12676 exp_sym_flag='-Bexport' 12677 no_entry_flag="" 12678 else 12679 aix_use_runtimelinking=no 12680 12681 # Test if we are trying to use run time linking or normal 12682 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12683 # need to do runtime linking. 12684 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 12685 for ld_flag in $LDFLAGS; do 12686 case $ld_flag in 12687 *-brtl*) 12688 aix_use_runtimelinking=yes 12689 break 12690 ;; 12691 esac 12692 done 12693 ;; 12694 esac 12695 12696 exp_sym_flag='-bexport' 12697 no_entry_flag='-bnoentry' 12698 fi 12699 12700 # When large executables or shared objects are built, AIX ld can 12701 # have problems creating the table of contents. If linking a library 12702 # or program results in "error TOC overflow" add -mminimal-toc to 12703 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12704 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12705 12706 archive_cmds_CXX='' 12707 hardcode_direct_CXX=yes 12708 hardcode_direct_absolute_CXX=yes 12709 hardcode_libdir_separator_CXX=':' 12710 link_all_deplibs_CXX=yes 12711 file_list_spec_CXX='${wl}-f,' 12712 12713 if test "$GXX" = yes; then 12714 case $host_os in aix4.[012]|aix4.[012].*) 12715 # We only want to do this on AIX 4.2 and lower, the check 12716 # below for broken collect2 doesn't work under 4.3+ 12717 collect2name=`${CC} -print-prog-name=collect2` 12718 if test -f "$collect2name" && 12719 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 12720 then 12721 # We have reworked collect2 12722 : 12723 else 12724 # We have old collect2 12725 hardcode_direct_CXX=unsupported 12726 # It fails to find uninstalled libraries when the uninstalled 12727 # path is not listed in the libpath. Setting hardcode_minus_L 12728 # to unsupported forces relinking 12729 hardcode_minus_L_CXX=yes 12730 hardcode_libdir_flag_spec_CXX='-L$libdir' 12731 hardcode_libdir_separator_CXX= 12732 fi 12733 esac 12734 shared_flag='-shared' 12735 if test "$aix_use_runtimelinking" = yes; then 12736 shared_flag="$shared_flag "'${wl}-G' 12737 fi 12738 else 12739 # not using gcc 12740 if test "$host_cpu" = ia64; then 12741 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12742 # chokes on -Wl,-G. The following line is correct: 12743 shared_flag='-G' 12744 else 12745 if test "$aix_use_runtimelinking" = yes; then 12746 shared_flag='${wl}-G' 12747 else 12748 shared_flag='${wl}-bM:SRE' 12749 fi 12750 fi 12751 fi 12752 12753 export_dynamic_flag_spec_CXX='${wl}-bexpall' 12754 # It seems that -bexpall does not export symbols beginning with 12755 # underscore (_), so it is better to generate a list of symbols to 12756 # export. 12757 always_export_symbols_CXX=yes 12758 if test "$aix_use_runtimelinking" = yes; then 12759 # Warning - without using the other runtime loading flags (-brtl), 12760 # -berok will link without error, but may produce a broken library. 12761 allow_undefined_flag_CXX='-berok' 12762 # Determine the default libpath from the value encoded in an empty 12763 # executable. 12764 if test "${lt_cv_aix_libpath+set}" = set; then 12765 aix_libpath=$lt_cv_aix_libpath 12766else 12767 if ${lt_cv_aix_libpath__CXX+:} false; then : 12768 $as_echo_n "(cached) " >&6 12769else 12770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12771/* end confdefs.h. */ 12772 12773int 12774main () 12775{ 12776 12777 ; 12778 return 0; 12779} 12780_ACEOF 12781if ac_fn_cxx_try_link "$LINENO"; then : 12782 12783 lt_aix_libpath_sed=' 12784 /Import File Strings/,/^$/ { 12785 /^0/ { 12786 s/^0 *\([^ ]*\) *$/\1/ 12787 p 12788 } 12789 }' 12790 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12791 # Check for a 64-bit object if we didn't find anything. 12792 if test -z "$lt_cv_aix_libpath__CXX"; then 12793 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12794 fi 12795fi 12796rm -f core conftest.err conftest.$ac_objext \ 12797 conftest$ac_exeext conftest.$ac_ext 12798 if test -z "$lt_cv_aix_libpath__CXX"; then 12799 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 12800 fi 12801 12802fi 12803 12804 aix_libpath=$lt_cv_aix_libpath__CXX 12805fi 12806 12807 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12808 12809 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 12810 else 12811 if test "$host_cpu" = ia64; then 12812 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 12813 allow_undefined_flag_CXX="-z nodefs" 12814 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 12815 else 12816 # Determine the default libpath from the value encoded in an 12817 # empty executable. 12818 if test "${lt_cv_aix_libpath+set}" = set; then 12819 aix_libpath=$lt_cv_aix_libpath 12820else 12821 if ${lt_cv_aix_libpath__CXX+:} false; then : 12822 $as_echo_n "(cached) " >&6 12823else 12824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12825/* end confdefs.h. */ 12826 12827int 12828main () 12829{ 12830 12831 ; 12832 return 0; 12833} 12834_ACEOF 12835if ac_fn_cxx_try_link "$LINENO"; then : 12836 12837 lt_aix_libpath_sed=' 12838 /Import File Strings/,/^$/ { 12839 /^0/ { 12840 s/^0 *\([^ ]*\) *$/\1/ 12841 p 12842 } 12843 }' 12844 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12845 # Check for a 64-bit object if we didn't find anything. 12846 if test -z "$lt_cv_aix_libpath__CXX"; then 12847 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12848 fi 12849fi 12850rm -f core conftest.err conftest.$ac_objext \ 12851 conftest$ac_exeext conftest.$ac_ext 12852 if test -z "$lt_cv_aix_libpath__CXX"; then 12853 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 12854 fi 12855 12856fi 12857 12858 aix_libpath=$lt_cv_aix_libpath__CXX 12859fi 12860 12861 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12862 # Warning - without using the other run time loading flags, 12863 # -berok will link without error, but may produce a broken library. 12864 no_undefined_flag_CXX=' ${wl}-bernotok' 12865 allow_undefined_flag_CXX=' ${wl}-berok' 12866 if test "$with_gnu_ld" = yes; then 12867 # We only use this code for GNU lds that support --whole-archive. 12868 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12869 else 12870 # Exported symbols can be pulled into shared objects from archives 12871 whole_archive_flag_spec_CXX='$convenience' 12872 fi 12873 archive_cmds_need_lc_CXX=yes 12874 # This is similar to how AIX traditionally builds its shared 12875 # libraries. 12876 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 12877 fi 12878 fi 12879 ;; 12880 12881 beos*) 12882 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12883 allow_undefined_flag_CXX=unsupported 12884 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 12885 # support --undefined. This deserves some investigation. FIXME 12886 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12887 else 12888 ld_shlibs_CXX=no 12889 fi 12890 ;; 12891 12892 chorus*) 12893 case $cc_basename in 12894 *) 12895 # FIXME: insert proper C++ library support 12896 ld_shlibs_CXX=no 12897 ;; 12898 esac 12899 ;; 12900 12901 cygwin* | mingw* | pw32* | cegcc*) 12902 case $GXX,$cc_basename in 12903 ,cl* | no,cl*) 12904 # Native MSVC 12905 # hardcode_libdir_flag_spec is actually meaningless, as there is 12906 # no search path for DLLs. 12907 hardcode_libdir_flag_spec_CXX=' ' 12908 allow_undefined_flag_CXX=unsupported 12909 always_export_symbols_CXX=yes 12910 file_list_spec_CXX='@' 12911 # Tell ltmain to make .lib files, not .a files. 12912 libext=lib 12913 # Tell ltmain to make .dll files, not .so files. 12914 shrext_cmds=".dll" 12915 # FIXME: Setting linknames here is a bad hack. 12916 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 12917 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12918 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 12919 else 12920 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 12921 fi~ 12922 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 12923 linknames=' 12924 # The linker will not automatically build a static lib if we build a DLL. 12925 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 12926 enable_shared_with_static_runtimes_CXX=yes 12927 # Don't use ranlib 12928 old_postinstall_cmds_CXX='chmod 644 $oldlib' 12929 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 12930 lt_tool_outputfile="@TOOL_OUTPUT@"~ 12931 case $lt_outputfile in 12932 *.exe|*.EXE) ;; 12933 *) 12934 lt_outputfile="$lt_outputfile.exe" 12935 lt_tool_outputfile="$lt_tool_outputfile.exe" 12936 ;; 12937 esac~ 12938 func_to_tool_file "$lt_outputfile"~ 12939 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 12940 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 12941 $RM "$lt_outputfile.manifest"; 12942 fi' 12943 ;; 12944 *) 12945 # g++ 12946 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 12947 # as there is no search path for DLLs. 12948 hardcode_libdir_flag_spec_CXX='-L$libdir' 12949 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' 12950 allow_undefined_flag_CXX=unsupported 12951 always_export_symbols_CXX=no 12952 enable_shared_with_static_runtimes_CXX=yes 12953 12954 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 12955 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12956 # If the export-symbols file already is a .def file (1st line 12957 # is EXPORTS), use it as is; otherwise, prepend... 12958 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12959 cp $export_symbols $output_objdir/$soname.def; 12960 else 12961 echo EXPORTS > $output_objdir/$soname.def; 12962 cat $export_symbols >> $output_objdir/$soname.def; 12963 fi~ 12964 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12965 else 12966 ld_shlibs_CXX=no 12967 fi 12968 ;; 12969 esac 12970 ;; 12971 darwin* | rhapsody*) 12972 12973 12974 archive_cmds_need_lc_CXX=no 12975 hardcode_direct_CXX=no 12976 hardcode_automatic_CXX=yes 12977 hardcode_shlibpath_var_CXX=unsupported 12978 if test "$lt_cv_ld_force_load" = "yes"; then 12979 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 12980 12981 else 12982 whole_archive_flag_spec_CXX='' 12983 fi 12984 link_all_deplibs_CXX=yes 12985 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 12986 case $cc_basename in 12987 ifort*) _lt_dar_can_shared=yes ;; 12988 *) _lt_dar_can_shared=$GCC ;; 12989 esac 12990 if test "$_lt_dar_can_shared" = "yes"; then 12991 output_verbose_link_cmd=func_echo_all 12992 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 12993 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 12994 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 12995 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 12996 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 12997 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" 12998 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" 12999 fi 13000 13001 else 13002 ld_shlibs_CXX=no 13003 fi 13004 13005 ;; 13006 13007 dgux*) 13008 case $cc_basename in 13009 ec++*) 13010 # FIXME: insert proper C++ library support 13011 ld_shlibs_CXX=no 13012 ;; 13013 ghcx*) 13014 # Green Hills C++ Compiler 13015 # FIXME: insert proper C++ library support 13016 ld_shlibs_CXX=no 13017 ;; 13018 *) 13019 # FIXME: insert proper C++ library support 13020 ld_shlibs_CXX=no 13021 ;; 13022 esac 13023 ;; 13024 13025 freebsd2.*) 13026 # C++ shared libraries reported to be fairly broken before 13027 # switch to ELF 13028 ld_shlibs_CXX=no 13029 ;; 13030 13031 freebsd-elf*) 13032 archive_cmds_need_lc_CXX=no 13033 ;; 13034 13035 freebsd* | dragonfly*) 13036 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 13037 # conventions 13038 ld_shlibs_CXX=yes 13039 ;; 13040 13041 gnu*) 13042 ;; 13043 13044 haiku*) 13045 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13046 link_all_deplibs_CXX=yes 13047 ;; 13048 13049 hpux9*) 13050 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 13051 hardcode_libdir_separator_CXX=: 13052 export_dynamic_flag_spec_CXX='${wl}-E' 13053 hardcode_direct_CXX=yes 13054 hardcode_minus_L_CXX=yes # Not in the search PATH, 13055 # but as the default 13056 # location of the library. 13057 13058 case $cc_basename in 13059 CC*) 13060 # FIXME: insert proper C++ library support 13061 ld_shlibs_CXX=no 13062 ;; 13063 aCC*) 13064 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 13065 # Commands to make compiler produce verbose output that lists 13066 # what "hidden" libraries, object files and flags are used when 13067 # linking a shared library. 13068 # 13069 # There doesn't appear to be a way to prevent this compiler from 13070 # explicitly linking system object files so we need to strip them 13071 # from the output so that they don't get included in the library 13072 # dependencies. 13073 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 13074 ;; 13075 *) 13076 if test "$GXX" = yes; then 13077 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 13078 else 13079 # FIXME: insert proper C++ library support 13080 ld_shlibs_CXX=no 13081 fi 13082 ;; 13083 esac 13084 ;; 13085 13086 hpux10*|hpux11*) 13087 if test $with_gnu_ld = no; then 13088 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 13089 hardcode_libdir_separator_CXX=: 13090 13091 case $host_cpu in 13092 hppa*64*|ia64*) 13093 ;; 13094 *) 13095 export_dynamic_flag_spec_CXX='${wl}-E' 13096 ;; 13097 esac 13098 fi 13099 case $host_cpu in 13100 hppa*64*|ia64*) 13101 hardcode_direct_CXX=no 13102 hardcode_shlibpath_var_CXX=no 13103 ;; 13104 *) 13105 hardcode_direct_CXX=yes 13106 hardcode_direct_absolute_CXX=yes 13107 hardcode_minus_L_CXX=yes # Not in the search PATH, 13108 # but as the default 13109 # location of the library. 13110 ;; 13111 esac 13112 13113 case $cc_basename in 13114 CC*) 13115 # FIXME: insert proper C++ library support 13116 ld_shlibs_CXX=no 13117 ;; 13118 aCC*) 13119 case $host_cpu in 13120 hppa*64*) 13121 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13122 ;; 13123 ia64*) 13124 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13125 ;; 13126 *) 13127 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13128 ;; 13129 esac 13130 # Commands to make compiler produce verbose output that lists 13131 # what "hidden" libraries, object files and flags are used when 13132 # linking a shared library. 13133 # 13134 # There doesn't appear to be a way to prevent this compiler from 13135 # explicitly linking system object files so we need to strip them 13136 # from the output so that they don't get included in the library 13137 # dependencies. 13138 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 13139 ;; 13140 *) 13141 if test "$GXX" = yes; then 13142 if test $with_gnu_ld = no; then 13143 case $host_cpu in 13144 hppa*64*) 13145 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13146 ;; 13147 ia64*) 13148 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13149 ;; 13150 *) 13151 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13152 ;; 13153 esac 13154 fi 13155 else 13156 # FIXME: insert proper C++ library support 13157 ld_shlibs_CXX=no 13158 fi 13159 ;; 13160 esac 13161 ;; 13162 13163 interix[3-9]*) 13164 hardcode_direct_CXX=no 13165 hardcode_shlibpath_var_CXX=no 13166 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13167 export_dynamic_flag_spec_CXX='${wl}-E' 13168 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13169 # Instead, shared libraries are loaded at an image base (0x10000000 by 13170 # default) and relocated if they conflict, which is a slow very memory 13171 # consuming and fragmenting process. To avoid this, we pick a random, 13172 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13173 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13174 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 13175 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 13176 ;; 13177 irix5* | irix6*) 13178 case $cc_basename in 13179 CC*) 13180 # SGI C++ 13181 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 13182 13183 # Archives containing C++ object files must be created using 13184 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 13185 # necessary to make sure instantiated templates are included 13186 # in the archive. 13187 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 13188 ;; 13189 *) 13190 if test "$GXX" = yes; then 13191 if test "$with_gnu_ld" = no; then 13192 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 13193 else 13194 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' 13195 fi 13196 fi 13197 link_all_deplibs_CXX=yes 13198 ;; 13199 esac 13200 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13201 hardcode_libdir_separator_CXX=: 13202 inherit_rpath_CXX=yes 13203 ;; 13204 13205 linux* | k*bsd*-gnu | kopensolaris*-gnu) 13206 case $cc_basename in 13207 KCC*) 13208 # Kuck and Associates, Inc. (KAI) C++ Compiler 13209 13210 # KCC will only create a shared library if the output file 13211 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13212 # to its proper name (with version) after linking. 13213 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 13214 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' 13215 # Commands to make compiler produce verbose output that lists 13216 # what "hidden" libraries, object files and flags are used when 13217 # linking a shared library. 13218 # 13219 # There doesn't appear to be a way to prevent this compiler from 13220 # explicitly linking system object files so we need to strip them 13221 # from the output so that they don't get included in the library 13222 # dependencies. 13223 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 13224 13225 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13226 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13227 13228 # Archives containing C++ object files must be created using 13229 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 13230 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 13231 ;; 13232 icpc* | ecpc* ) 13233 # Intel C++ 13234 with_gnu_ld=yes 13235 # version 8.0 and above of icpc choke on multiply defined symbols 13236 # if we add $predep_objects and $postdep_objects, however 7.1 and 13237 # earlier do not add the objects themselves. 13238 case `$CC -V 2>&1` in 13239 *"Version 7."*) 13240 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13241 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13242 ;; 13243 *) # Version 8.0 or newer 13244 tmp_idyn= 13245 case $host_cpu in 13246 ia64*) tmp_idyn=' -i_dynamic';; 13247 esac 13248 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13249 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13250 ;; 13251 esac 13252 archive_cmds_need_lc_CXX=no 13253 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13254 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13255 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 13256 ;; 13257 pgCC* | pgcpp*) 13258 # Portland Group C++ compiler 13259 case `$CC -V` in 13260 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 13261 prelink_cmds_CXX='tpldir=Template.dir~ 13262 rm -rf $tpldir~ 13263 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 13264 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 13265 old_archive_cmds_CXX='tpldir=Template.dir~ 13266 rm -rf $tpldir~ 13267 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 13268 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 13269 $RANLIB $oldlib' 13270 archive_cmds_CXX='tpldir=Template.dir~ 13271 rm -rf $tpldir~ 13272 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13273 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 13274 archive_expsym_cmds_CXX='tpldir=Template.dir~ 13275 rm -rf $tpldir~ 13276 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13277 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 13278 ;; 13279 *) # Version 6 and above use weak symbols 13280 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 13281 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 13282 ;; 13283 esac 13284 13285 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 13286 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13287 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 13288 ;; 13289 cxx*) 13290 # Compaq C++ 13291 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13292 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' 13293 13294 runpath_var=LD_RUN_PATH 13295 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13296 hardcode_libdir_separator_CXX=: 13297 13298 # Commands to make compiler produce verbose output that lists 13299 # what "hidden" libraries, object files and flags are used when 13300 # linking a shared library. 13301 # 13302 # There doesn't appear to be a way to prevent this compiler from 13303 # explicitly linking system object files so we need to strip them 13304 # from the output so that they don't get included in the library 13305 # dependencies. 13306 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' 13307 ;; 13308 xl* | mpixl* | bgxl*) 13309 # IBM XL 8.0 on PPC, with GNU ld 13310 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13311 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13312 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13313 if test "x$supports_anon_versioning" = xyes; then 13314 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 13315 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13316 echo "local: *; };" >> $output_objdir/$libname.ver~ 13317 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 13318 fi 13319 ;; 13320 *) 13321 case `$CC -V 2>&1 | sed 5q` in 13322 *Sun\ C*) 13323 # Sun C++ 5.9 13324 no_undefined_flag_CXX=' -zdefs' 13325 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13326 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 13327 hardcode_libdir_flag_spec_CXX='-R$libdir' 13328 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 13329 compiler_needs_object_CXX=yes 13330 13331 # Not sure whether something based on 13332 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 13333 # would be better. 13334 output_verbose_link_cmd='func_echo_all' 13335 13336 # Archives containing C++ object files must be created using 13337 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13338 # necessary to make sure instantiated templates are included 13339 # in the archive. 13340 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13341 ;; 13342 esac 13343 ;; 13344 esac 13345 ;; 13346 13347 lynxos*) 13348 # FIXME: insert proper C++ library support 13349 ld_shlibs_CXX=no 13350 ;; 13351 13352 m88k*) 13353 # FIXME: insert proper C++ library support 13354 ld_shlibs_CXX=no 13355 ;; 13356 13357 mvs*) 13358 case $cc_basename in 13359 cxx*) 13360 # FIXME: insert proper C++ library support 13361 ld_shlibs_CXX=no 13362 ;; 13363 *) 13364 # FIXME: insert proper C++ library support 13365 ld_shlibs_CXX=no 13366 ;; 13367 esac 13368 ;; 13369 13370 netbsd*) 13371 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13372 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 13373 wlarc= 13374 hardcode_libdir_flag_spec_CXX='-R$libdir' 13375 hardcode_direct_CXX=yes 13376 hardcode_shlibpath_var_CXX=no 13377 fi 13378 # Workaround some broken pre-1.5 toolchains 13379 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 13380 ;; 13381 13382 *nto* | *qnx*) 13383 ld_shlibs_CXX=yes 13384 ;; 13385 13386 openbsd2*) 13387 # C++ shared libraries are fairly broken 13388 ld_shlibs_CXX=no 13389 ;; 13390 13391 openbsd*) 13392 if test -f /usr/libexec/ld.so; then 13393 hardcode_direct_CXX=yes 13394 hardcode_shlibpath_var_CXX=no 13395 hardcode_direct_absolute_CXX=yes 13396 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13397 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13398 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13399 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 13400 export_dynamic_flag_spec_CXX='${wl}-E' 13401 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13402 fi 13403 output_verbose_link_cmd=func_echo_all 13404 else 13405 ld_shlibs_CXX=no 13406 fi 13407 ;; 13408 13409 osf3* | osf4* | osf5*) 13410 case $cc_basename in 13411 KCC*) 13412 # Kuck and Associates, Inc. (KAI) C++ Compiler 13413 13414 # KCC will only create a shared library if the output file 13415 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13416 # to its proper name (with version) after linking. 13417 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 13418 13419 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13420 hardcode_libdir_separator_CXX=: 13421 13422 # Archives containing C++ object files must be created using 13423 # the KAI C++ compiler. 13424 case $host in 13425 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 13426 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 13427 esac 13428 ;; 13429 RCC*) 13430 # Rational C++ 2.4.1 13431 # FIXME: insert proper C++ library support 13432 ld_shlibs_CXX=no 13433 ;; 13434 cxx*) 13435 case $host in 13436 osf3*) 13437 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13438 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 13439 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13440 ;; 13441 *) 13442 allow_undefined_flag_CXX=' -expect_unresolved \*' 13443 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 13444 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 13445 echo "-hidden">> $lib.exp~ 13446 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~ 13447 $RM $lib.exp' 13448 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13449 ;; 13450 esac 13451 13452 hardcode_libdir_separator_CXX=: 13453 13454 # Commands to make compiler produce verbose output that lists 13455 # what "hidden" libraries, object files and flags are used when 13456 # linking a shared library. 13457 # 13458 # There doesn't appear to be a way to prevent this compiler from 13459 # explicitly linking system object files so we need to strip them 13460 # from the output so that they don't get included in the library 13461 # dependencies. 13462 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 13463 ;; 13464 *) 13465 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13466 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13467 case $host in 13468 osf3*) 13469 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 13470 ;; 13471 *) 13472 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 13473 ;; 13474 esac 13475 13476 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13477 hardcode_libdir_separator_CXX=: 13478 13479 # Commands to make compiler produce verbose output that lists 13480 # what "hidden" libraries, object files and flags are used when 13481 # linking a shared library. 13482 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13483 13484 else 13485 # FIXME: insert proper C++ library support 13486 ld_shlibs_CXX=no 13487 fi 13488 ;; 13489 esac 13490 ;; 13491 13492 psos*) 13493 # FIXME: insert proper C++ library support 13494 ld_shlibs_CXX=no 13495 ;; 13496 13497 sunos4*) 13498 case $cc_basename in 13499 CC*) 13500 # Sun C++ 4.x 13501 # FIXME: insert proper C++ library support 13502 ld_shlibs_CXX=no 13503 ;; 13504 lcc*) 13505 # Lucid 13506 # FIXME: insert proper C++ library support 13507 ld_shlibs_CXX=no 13508 ;; 13509 *) 13510 # FIXME: insert proper C++ library support 13511 ld_shlibs_CXX=no 13512 ;; 13513 esac 13514 ;; 13515 13516 solaris*) 13517 case $cc_basename in 13518 CC* | sunCC*) 13519 # Sun C++ 4.2, 5.x and Centerline C++ 13520 archive_cmds_need_lc_CXX=yes 13521 no_undefined_flag_CXX=' -zdefs' 13522 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13523 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13524 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13525 13526 hardcode_libdir_flag_spec_CXX='-R$libdir' 13527 hardcode_shlibpath_var_CXX=no 13528 case $host_os in 13529 solaris2.[0-5] | solaris2.[0-5].*) ;; 13530 *) 13531 # The compiler driver will combine and reorder linker options, 13532 # but understands `-z linker_flag'. 13533 # Supported since Solaris 2.6 (maybe 2.5.1?) 13534 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 13535 ;; 13536 esac 13537 link_all_deplibs_CXX=yes 13538 13539 output_verbose_link_cmd='func_echo_all' 13540 13541 # Archives containing C++ object files must be created using 13542 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13543 # necessary to make sure instantiated templates are included 13544 # in the archive. 13545 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13546 ;; 13547 gcx*) 13548 # Green Hills C++ Compiler 13549 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13550 13551 # The C++ compiler must be used to create the archive. 13552 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 13553 ;; 13554 *) 13555 # GNU C++ compiler with Solaris linker 13556 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13557 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 13558 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 13559 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13560 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13561 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13562 13563 # Commands to make compiler produce verbose output that lists 13564 # what "hidden" libraries, object files and flags are used when 13565 # linking a shared library. 13566 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13567 else 13568 # g++ 2.7 appears to require `-G' NOT `-shared' on this 13569 # platform. 13570 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13571 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13572 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13573 13574 # Commands to make compiler produce verbose output that lists 13575 # what "hidden" libraries, object files and flags are used when 13576 # linking a shared library. 13577 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13578 fi 13579 13580 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 13581 case $host_os in 13582 solaris2.[0-5] | solaris2.[0-5].*) ;; 13583 *) 13584 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 13585 ;; 13586 esac 13587 fi 13588 ;; 13589 esac 13590 ;; 13591 13592 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13593 no_undefined_flag_CXX='${wl}-z,text' 13594 archive_cmds_need_lc_CXX=no 13595 hardcode_shlibpath_var_CXX=no 13596 runpath_var='LD_RUN_PATH' 13597 13598 case $cc_basename in 13599 CC*) 13600 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13601 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13602 ;; 13603 *) 13604 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13605 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13606 ;; 13607 esac 13608 ;; 13609 13610 sysv5* | sco3.2v5* | sco5v6*) 13611 # Note: We can NOT use -z defs as we might desire, because we do not 13612 # link with -lc, and that would cause any symbols used from libc to 13613 # always be unresolved, which means just about no library would 13614 # ever link correctly. If we're not using GNU ld we use -z text 13615 # though, which does catch some bad symbols but isn't as heavy-handed 13616 # as -z defs. 13617 no_undefined_flag_CXX='${wl}-z,text' 13618 allow_undefined_flag_CXX='${wl}-z,nodefs' 13619 archive_cmds_need_lc_CXX=no 13620 hardcode_shlibpath_var_CXX=no 13621 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 13622 hardcode_libdir_separator_CXX=':' 13623 link_all_deplibs_CXX=yes 13624 export_dynamic_flag_spec_CXX='${wl}-Bexport' 13625 runpath_var='LD_RUN_PATH' 13626 13627 case $cc_basename in 13628 CC*) 13629 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13630 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13631 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 13632 '"$old_archive_cmds_CXX" 13633 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 13634 '"$reload_cmds_CXX" 13635 ;; 13636 *) 13637 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13638 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13639 ;; 13640 esac 13641 ;; 13642 13643 tandem*) 13644 case $cc_basename in 13645 NCC*) 13646 # NonStop-UX NCC 3.20 13647 # FIXME: insert proper C++ library support 13648 ld_shlibs_CXX=no 13649 ;; 13650 *) 13651 # FIXME: insert proper C++ library support 13652 ld_shlibs_CXX=no 13653 ;; 13654 esac 13655 ;; 13656 13657 vxworks*) 13658 # FIXME: insert proper C++ library support 13659 ld_shlibs_CXX=no 13660 ;; 13661 13662 *) 13663 # FIXME: insert proper C++ library support 13664 ld_shlibs_CXX=no 13665 ;; 13666 esac 13667 13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 13669$as_echo "$ld_shlibs_CXX" >&6; } 13670 test "$ld_shlibs_CXX" = no && can_build_shared=no 13671 13672 GCC_CXX="$GXX" 13673 LD_CXX="$LD" 13674 13675 ## CAVEAT EMPTOR: 13676 ## There is no encapsulation within the following macros, do not change 13677 ## the running order or otherwise move them around unless you know exactly 13678 ## what you are doing... 13679 # Dependencies to place before and after the object being linked: 13680predep_objects_CXX= 13681postdep_objects_CXX= 13682predeps_CXX= 13683postdeps_CXX= 13684compiler_lib_search_path_CXX= 13685 13686cat > conftest.$ac_ext <<_LT_EOF 13687class Foo 13688{ 13689public: 13690 Foo (void) { a = 0; } 13691private: 13692 int a; 13693}; 13694_LT_EOF 13695 13696 13697_lt_libdeps_save_CFLAGS=$CFLAGS 13698case "$CC $CFLAGS " in #( 13699*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 13700*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 13701*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 13702esac 13703 13704if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13705 (eval $ac_compile) 2>&5 13706 ac_status=$? 13707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13708 test $ac_status = 0; }; then 13709 # Parse the compiler output and extract the necessary 13710 # objects, libraries and library flags. 13711 13712 # Sentinel used to keep track of whether or not we are before 13713 # the conftest object file. 13714 pre_test_object_deps_done=no 13715 13716 for p in `eval "$output_verbose_link_cmd"`; do 13717 case ${prev}${p} in 13718 13719 -L* | -R* | -l*) 13720 # Some compilers place space between "-{L,R}" and the path. 13721 # Remove the space. 13722 if test $p = "-L" || 13723 test $p = "-R"; then 13724 prev=$p 13725 continue 13726 fi 13727 13728 # Expand the sysroot to ease extracting the directories later. 13729 if test -z "$prev"; then 13730 case $p in 13731 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 13732 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 13733 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 13734 esac 13735 fi 13736 case $p in 13737 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 13738 esac 13739 if test "$pre_test_object_deps_done" = no; then 13740 case ${prev} in 13741 -L | -R) 13742 # Internal compiler library paths should come after those 13743 # provided the user. The postdeps already come after the 13744 # user supplied libs so there is no need to process them. 13745 if test -z "$compiler_lib_search_path_CXX"; then 13746 compiler_lib_search_path_CXX="${prev}${p}" 13747 else 13748 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 13749 fi 13750 ;; 13751 # The "-l" case would never come before the object being 13752 # linked, so don't bother handling this case. 13753 esac 13754 else 13755 if test -z "$postdeps_CXX"; then 13756 postdeps_CXX="${prev}${p}" 13757 else 13758 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 13759 fi 13760 fi 13761 prev= 13762 ;; 13763 13764 *.lto.$objext) ;; # Ignore GCC LTO objects 13765 *.$objext) 13766 # This assumes that the test object file only shows up 13767 # once in the compiler output. 13768 if test "$p" = "conftest.$objext"; then 13769 pre_test_object_deps_done=yes 13770 continue 13771 fi 13772 13773 if test "$pre_test_object_deps_done" = no; then 13774 if test -z "$predep_objects_CXX"; then 13775 predep_objects_CXX="$p" 13776 else 13777 predep_objects_CXX="$predep_objects_CXX $p" 13778 fi 13779 else 13780 if test -z "$postdep_objects_CXX"; then 13781 postdep_objects_CXX="$p" 13782 else 13783 postdep_objects_CXX="$postdep_objects_CXX $p" 13784 fi 13785 fi 13786 ;; 13787 13788 *) ;; # Ignore the rest. 13789 13790 esac 13791 done 13792 13793 # Clean up. 13794 rm -f a.out a.exe 13795else 13796 echo "libtool.m4: error: problem compiling CXX test program" 13797fi 13798 13799$RM -f confest.$objext 13800CFLAGS=$_lt_libdeps_save_CFLAGS 13801 13802# PORTME: override above test on systems where it is broken 13803case $host_os in 13804interix[3-9]*) 13805 # Interix 3.5 installs completely hosed .la files for C++, so rather than 13806 # hack all around it, let's just trust "g++" to DTRT. 13807 predep_objects_CXX= 13808 postdep_objects_CXX= 13809 postdeps_CXX= 13810 ;; 13811 13812linux*) 13813 case `$CC -V 2>&1 | sed 5q` in 13814 *Sun\ C*) 13815 # Sun C++ 5.9 13816 13817 # The more standards-conforming stlport4 library is 13818 # incompatible with the Cstd library. Avoid specifying 13819 # it if it's in CXXFLAGS. Ignore libCrun as 13820 # -library=stlport4 depends on it. 13821 case " $CXX $CXXFLAGS " in 13822 *" -library=stlport4 "*) 13823 solaris_use_stlport4=yes 13824 ;; 13825 esac 13826 13827 if test "$solaris_use_stlport4" != yes; then 13828 postdeps_CXX='-library=Cstd -library=Crun' 13829 fi 13830 ;; 13831 esac 13832 ;; 13833 13834solaris*) 13835 case $cc_basename in 13836 CC* | sunCC*) 13837 # The more standards-conforming stlport4 library is 13838 # incompatible with the Cstd library. Avoid specifying 13839 # it if it's in CXXFLAGS. Ignore libCrun as 13840 # -library=stlport4 depends on it. 13841 case " $CXX $CXXFLAGS " in 13842 *" -library=stlport4 "*) 13843 solaris_use_stlport4=yes 13844 ;; 13845 esac 13846 13847 # Adding this requires a known-good setup of shared libraries for 13848 # Sun compiler versions before 5.6, else PIC objects from an old 13849 # archive will be linked into the output, leading to subtle bugs. 13850 if test "$solaris_use_stlport4" != yes; then 13851 postdeps_CXX='-library=Cstd -library=Crun' 13852 fi 13853 ;; 13854 esac 13855 ;; 13856esac 13857 13858 13859case " $postdeps_CXX " in 13860*" -lc "*) archive_cmds_need_lc_CXX=no ;; 13861esac 13862 compiler_lib_search_dirs_CXX= 13863if test -n "${compiler_lib_search_path_CXX}"; then 13864 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 13865fi 13866 13867 13868 13869 13870 13871 13872 13873 13874 13875 13876 13877 13878 13879 13880 13881 13882 13883 13884 13885 13886 13887 13888 13889 13890 13891 13892 13893 13894 13895 13896 13897 lt_prog_compiler_wl_CXX= 13898lt_prog_compiler_pic_CXX= 13899lt_prog_compiler_static_CXX= 13900 13901 13902 # C++ specific cases for pic, static, wl, etc. 13903 if test "$GXX" = yes; then 13904 lt_prog_compiler_wl_CXX='-Wl,' 13905 lt_prog_compiler_static_CXX='-static' 13906 13907 case $host_os in 13908 aix*) 13909 # All AIX code is PIC. 13910 if test "$host_cpu" = ia64; then 13911 # AIX 5 now supports IA64 processor 13912 lt_prog_compiler_static_CXX='-Bstatic' 13913 fi 13914 ;; 13915 13916 amigaos*) 13917 case $host_cpu in 13918 powerpc) 13919 # see comment about AmigaOS4 .so support 13920 lt_prog_compiler_pic_CXX='-fPIC' 13921 ;; 13922 m68k) 13923 # FIXME: we need at least 68020 code to build shared libraries, but 13924 # adding the `-m68020' flag to GCC prevents building anything better, 13925 # like `-m68040'. 13926 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 13927 ;; 13928 esac 13929 ;; 13930 13931 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13932 # PIC is the default for these OSes. 13933 ;; 13934 mingw* | cygwin* | os2* | pw32* | cegcc*) 13935 # This hack is so that the source file can tell whether it is being 13936 # built for inclusion in a dll (and should export symbols for example). 13937 # Although the cygwin gcc ignores -fPIC, still need this for old-style 13938 # (--disable-auto-import) libraries 13939 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 13940 ;; 13941 darwin* | rhapsody*) 13942 # PIC is the default on this platform 13943 # Common symbols not allowed in MH_DYLIB files 13944 lt_prog_compiler_pic_CXX='-fno-common' 13945 ;; 13946 *djgpp*) 13947 # DJGPP does not support shared libraries at all 13948 lt_prog_compiler_pic_CXX= 13949 ;; 13950 haiku*) 13951 # PIC is the default for Haiku. 13952 # The "-static" flag exists, but is broken. 13953 lt_prog_compiler_static_CXX= 13954 ;; 13955 interix[3-9]*) 13956 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13957 # Instead, we relocate shared libraries at runtime. 13958 ;; 13959 sysv4*MP*) 13960 if test -d /usr/nec; then 13961 lt_prog_compiler_pic_CXX=-Kconform_pic 13962 fi 13963 ;; 13964 hpux*) 13965 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 13966 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 13967 # sets the default TLS model and affects inlining. 13968 case $host_cpu in 13969 hppa*64*) 13970 ;; 13971 *) 13972 lt_prog_compiler_pic_CXX='-fPIC' 13973 ;; 13974 esac 13975 ;; 13976 *qnx* | *nto*) 13977 # QNX uses GNU C++, but need to define -shared option too, otherwise 13978 # it will coredump. 13979 lt_prog_compiler_pic_CXX='-fPIC -shared' 13980 ;; 13981 *) 13982 lt_prog_compiler_pic_CXX='-fPIC' 13983 ;; 13984 esac 13985 else 13986 case $host_os in 13987 aix[4-9]*) 13988 # All AIX code is PIC. 13989 if test "$host_cpu" = ia64; then 13990 # AIX 5 now supports IA64 processor 13991 lt_prog_compiler_static_CXX='-Bstatic' 13992 else 13993 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 13994 fi 13995 ;; 13996 chorus*) 13997 case $cc_basename in 13998 cxch68*) 13999 # Green Hills C++ Compiler 14000 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 14001 ;; 14002 esac 14003 ;; 14004 mingw* | cygwin* | os2* | pw32* | cegcc*) 14005 # This hack is so that the source file can tell whether it is being 14006 # built for inclusion in a dll (and should export symbols for example). 14007 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14008 ;; 14009 dgux*) 14010 case $cc_basename in 14011 ec++*) 14012 lt_prog_compiler_pic_CXX='-KPIC' 14013 ;; 14014 ghcx*) 14015 # Green Hills C++ Compiler 14016 lt_prog_compiler_pic_CXX='-pic' 14017 ;; 14018 *) 14019 ;; 14020 esac 14021 ;; 14022 freebsd* | dragonfly*) 14023 # FreeBSD uses GNU C++ 14024 ;; 14025 hpux9* | hpux10* | hpux11*) 14026 case $cc_basename in 14027 CC*) 14028 lt_prog_compiler_wl_CXX='-Wl,' 14029 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 14030 if test "$host_cpu" != ia64; then 14031 lt_prog_compiler_pic_CXX='+Z' 14032 fi 14033 ;; 14034 aCC*) 14035 lt_prog_compiler_wl_CXX='-Wl,' 14036 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 14037 case $host_cpu in 14038 hppa*64*|ia64*) 14039 # +Z the default 14040 ;; 14041 *) 14042 lt_prog_compiler_pic_CXX='+Z' 14043 ;; 14044 esac 14045 ;; 14046 *) 14047 ;; 14048 esac 14049 ;; 14050 interix*) 14051 # This is c89, which is MS Visual C++ (no shared libs) 14052 # Anyone wants to do a port? 14053 ;; 14054 irix5* | irix6* | nonstopux*) 14055 case $cc_basename in 14056 CC*) 14057 lt_prog_compiler_wl_CXX='-Wl,' 14058 lt_prog_compiler_static_CXX='-non_shared' 14059 # CC pic flag -KPIC is the default. 14060 ;; 14061 *) 14062 ;; 14063 esac 14064 ;; 14065 linux* | k*bsd*-gnu | kopensolaris*-gnu) 14066 case $cc_basename in 14067 KCC*) 14068 # KAI C++ Compiler 14069 lt_prog_compiler_wl_CXX='--backend -Wl,' 14070 lt_prog_compiler_pic_CXX='-fPIC' 14071 ;; 14072 ecpc* ) 14073 # old Intel C++ for x86_64 which still supported -KPIC. 14074 lt_prog_compiler_wl_CXX='-Wl,' 14075 lt_prog_compiler_pic_CXX='-KPIC' 14076 lt_prog_compiler_static_CXX='-static' 14077 ;; 14078 icpc* ) 14079 # Intel C++, used to be incompatible with GCC. 14080 # ICC 10 doesn't accept -KPIC any more. 14081 lt_prog_compiler_wl_CXX='-Wl,' 14082 lt_prog_compiler_pic_CXX='-fPIC' 14083 lt_prog_compiler_static_CXX='-static' 14084 ;; 14085 pgCC* | pgcpp*) 14086 # Portland Group C++ compiler 14087 lt_prog_compiler_wl_CXX='-Wl,' 14088 lt_prog_compiler_pic_CXX='-fpic' 14089 lt_prog_compiler_static_CXX='-Bstatic' 14090 ;; 14091 cxx*) 14092 # Compaq C++ 14093 # Make sure the PIC flag is empty. It appears that all Alpha 14094 # Linux and Compaq Tru64 Unix objects are PIC. 14095 lt_prog_compiler_pic_CXX= 14096 lt_prog_compiler_static_CXX='-non_shared' 14097 ;; 14098 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 14099 # IBM XL 8.0, 9.0 on PPC and BlueGene 14100 lt_prog_compiler_wl_CXX='-Wl,' 14101 lt_prog_compiler_pic_CXX='-qpic' 14102 lt_prog_compiler_static_CXX='-qstaticlink' 14103 ;; 14104 *) 14105 case `$CC -V 2>&1 | sed 5q` in 14106 *Sun\ C*) 14107 # Sun C++ 5.9 14108 lt_prog_compiler_pic_CXX='-KPIC' 14109 lt_prog_compiler_static_CXX='-Bstatic' 14110 lt_prog_compiler_wl_CXX='-Qoption ld ' 14111 ;; 14112 esac 14113 ;; 14114 esac 14115 ;; 14116 lynxos*) 14117 ;; 14118 m88k*) 14119 ;; 14120 mvs*) 14121 case $cc_basename in 14122 cxx*) 14123 lt_prog_compiler_pic_CXX='-W c,exportall' 14124 ;; 14125 *) 14126 ;; 14127 esac 14128 ;; 14129 netbsd*) 14130 ;; 14131 *qnx* | *nto*) 14132 # QNX uses GNU C++, but need to define -shared option too, otherwise 14133 # it will coredump. 14134 lt_prog_compiler_pic_CXX='-fPIC -shared' 14135 ;; 14136 osf3* | osf4* | osf5*) 14137 case $cc_basename in 14138 KCC*) 14139 lt_prog_compiler_wl_CXX='--backend -Wl,' 14140 ;; 14141 RCC*) 14142 # Rational C++ 2.4.1 14143 lt_prog_compiler_pic_CXX='-pic' 14144 ;; 14145 cxx*) 14146 # Digital/Compaq C++ 14147 lt_prog_compiler_wl_CXX='-Wl,' 14148 # Make sure the PIC flag is empty. It appears that all Alpha 14149 # Linux and Compaq Tru64 Unix objects are PIC. 14150 lt_prog_compiler_pic_CXX= 14151 lt_prog_compiler_static_CXX='-non_shared' 14152 ;; 14153 *) 14154 ;; 14155 esac 14156 ;; 14157 psos*) 14158 ;; 14159 solaris*) 14160 case $cc_basename in 14161 CC* | sunCC*) 14162 # Sun C++ 4.2, 5.x and Centerline C++ 14163 lt_prog_compiler_pic_CXX='-KPIC' 14164 lt_prog_compiler_static_CXX='-Bstatic' 14165 lt_prog_compiler_wl_CXX='-Qoption ld ' 14166 ;; 14167 gcx*) 14168 # Green Hills C++ Compiler 14169 lt_prog_compiler_pic_CXX='-PIC' 14170 ;; 14171 *) 14172 ;; 14173 esac 14174 ;; 14175 sunos4*) 14176 case $cc_basename in 14177 CC*) 14178 # Sun C++ 4.x 14179 lt_prog_compiler_pic_CXX='-pic' 14180 lt_prog_compiler_static_CXX='-Bstatic' 14181 ;; 14182 lcc*) 14183 # Lucid 14184 lt_prog_compiler_pic_CXX='-pic' 14185 ;; 14186 *) 14187 ;; 14188 esac 14189 ;; 14190 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14191 case $cc_basename in 14192 CC*) 14193 lt_prog_compiler_wl_CXX='-Wl,' 14194 lt_prog_compiler_pic_CXX='-KPIC' 14195 lt_prog_compiler_static_CXX='-Bstatic' 14196 ;; 14197 esac 14198 ;; 14199 tandem*) 14200 case $cc_basename in 14201 NCC*) 14202 # NonStop-UX NCC 3.20 14203 lt_prog_compiler_pic_CXX='-KPIC' 14204 ;; 14205 *) 14206 ;; 14207 esac 14208 ;; 14209 vxworks*) 14210 ;; 14211 *) 14212 lt_prog_compiler_can_build_shared_CXX=no 14213 ;; 14214 esac 14215 fi 14216 14217case $host_os in 14218 # For platforms which do not support PIC, -DPIC is meaningless: 14219 *djgpp*) 14220 lt_prog_compiler_pic_CXX= 14221 ;; 14222 *) 14223 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 14224 ;; 14225esac 14226 14227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 14228$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14229if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 14230 $as_echo_n "(cached) " >&6 14231else 14232 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 14233fi 14234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 14235$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 14236lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 14237 14238# 14239# Check to make sure the PIC flag actually works. 14240# 14241if test -n "$lt_prog_compiler_pic_CXX"; then 14242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 14243$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 14244if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 14245 $as_echo_n "(cached) " >&6 14246else 14247 lt_cv_prog_compiler_pic_works_CXX=no 14248 ac_outfile=conftest.$ac_objext 14249 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14250 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 14251 # Insert the option either (1) after the last *FLAGS variable, or 14252 # (2) before a word containing "conftest.", or (3) at the end. 14253 # Note that $ac_compile itself does not contain backslashes and begins 14254 # with a dollar sign (not a hyphen), so the echo should work correctly. 14255 # The option is referenced via a variable to avoid confusing sed. 14256 lt_compile=`echo "$ac_compile" | $SED \ 14257 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14258 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14259 -e 's:$: $lt_compiler_flag:'` 14260 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14261 (eval "$lt_compile" 2>conftest.err) 14262 ac_status=$? 14263 cat conftest.err >&5 14264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14265 if (exit $ac_status) && test -s "$ac_outfile"; then 14266 # The compiler can only warn and ignore the option if not recognized 14267 # So say no if there are warnings other than the usual output. 14268 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14269 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14270 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14271 lt_cv_prog_compiler_pic_works_CXX=yes 14272 fi 14273 fi 14274 $RM conftest* 14275 14276fi 14277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 14278$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 14279 14280if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 14281 case $lt_prog_compiler_pic_CXX in 14282 "" | " "*) ;; 14283 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 14284 esac 14285else 14286 lt_prog_compiler_pic_CXX= 14287 lt_prog_compiler_can_build_shared_CXX=no 14288fi 14289 14290fi 14291 14292 14293 14294 14295 14296# 14297# Check to make sure the static flag actually works. 14298# 14299wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 14300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14301$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14302if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 14303 $as_echo_n "(cached) " >&6 14304else 14305 lt_cv_prog_compiler_static_works_CXX=no 14306 save_LDFLAGS="$LDFLAGS" 14307 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14308 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14309 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14310 # The linker can only warn and ignore the option if not recognized 14311 # So say no if there are warnings 14312 if test -s conftest.err; then 14313 # Append any errors to the config.log. 14314 cat conftest.err 1>&5 14315 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 14316 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14317 if diff conftest.exp conftest.er2 >/dev/null; then 14318 lt_cv_prog_compiler_static_works_CXX=yes 14319 fi 14320 else 14321 lt_cv_prog_compiler_static_works_CXX=yes 14322 fi 14323 fi 14324 $RM -r conftest* 14325 LDFLAGS="$save_LDFLAGS" 14326 14327fi 14328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 14329$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 14330 14331if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 14332 : 14333else 14334 lt_prog_compiler_static_CXX= 14335fi 14336 14337 14338 14339 14340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14341$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14342if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14343 $as_echo_n "(cached) " >&6 14344else 14345 lt_cv_prog_compiler_c_o_CXX=no 14346 $RM -r conftest 2>/dev/null 14347 mkdir conftest 14348 cd conftest 14349 mkdir out 14350 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14351 14352 lt_compiler_flag="-o out/conftest2.$ac_objext" 14353 # Insert the option either (1) after the last *FLAGS variable, or 14354 # (2) before a word containing "conftest.", or (3) at the end. 14355 # Note that $ac_compile itself does not contain backslashes and begins 14356 # with a dollar sign (not a hyphen), so the echo should work correctly. 14357 lt_compile=`echo "$ac_compile" | $SED \ 14358 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14359 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14360 -e 's:$: $lt_compiler_flag:'` 14361 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14362 (eval "$lt_compile" 2>out/conftest.err) 14363 ac_status=$? 14364 cat out/conftest.err >&5 14365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14366 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14367 then 14368 # The compiler can only warn and ignore the option if not recognized 14369 # So say no if there are warnings 14370 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14371 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14372 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14373 lt_cv_prog_compiler_c_o_CXX=yes 14374 fi 14375 fi 14376 chmod u+w . 2>&5 14377 $RM conftest* 14378 # SGI C++ compiler will create directory out/ii_files/ for 14379 # template instantiation 14380 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14381 $RM out/* && rmdir out 14382 cd .. 14383 $RM -r conftest 14384 $RM conftest* 14385 14386fi 14387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14388$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14389 14390 14391 14392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14393$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14394if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14395 $as_echo_n "(cached) " >&6 14396else 14397 lt_cv_prog_compiler_c_o_CXX=no 14398 $RM -r conftest 2>/dev/null 14399 mkdir conftest 14400 cd conftest 14401 mkdir out 14402 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14403 14404 lt_compiler_flag="-o out/conftest2.$ac_objext" 14405 # Insert the option either (1) after the last *FLAGS variable, or 14406 # (2) before a word containing "conftest.", or (3) at the end. 14407 # Note that $ac_compile itself does not contain backslashes and begins 14408 # with a dollar sign (not a hyphen), so the echo should work correctly. 14409 lt_compile=`echo "$ac_compile" | $SED \ 14410 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14411 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14412 -e 's:$: $lt_compiler_flag:'` 14413 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14414 (eval "$lt_compile" 2>out/conftest.err) 14415 ac_status=$? 14416 cat out/conftest.err >&5 14417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14418 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14419 then 14420 # The compiler can only warn and ignore the option if not recognized 14421 # So say no if there are warnings 14422 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14423 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14424 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14425 lt_cv_prog_compiler_c_o_CXX=yes 14426 fi 14427 fi 14428 chmod u+w . 2>&5 14429 $RM conftest* 14430 # SGI C++ compiler will create directory out/ii_files/ for 14431 # template instantiation 14432 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14433 $RM out/* && rmdir out 14434 cd .. 14435 $RM -r conftest 14436 $RM conftest* 14437 14438fi 14439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14440$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14441 14442 14443 14444 14445hard_links="nottested" 14446if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 14447 # do not overwrite the value of need_locks provided by the user 14448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 14449$as_echo_n "checking if we can lock with hard links... " >&6; } 14450 hard_links=yes 14451 $RM conftest* 14452 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14453 touch conftest.a 14454 ln conftest.a conftest.b 2>&5 || hard_links=no 14455 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 14457$as_echo "$hard_links" >&6; } 14458 if test "$hard_links" = no; then 14459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14460$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14461 need_locks=warn 14462 fi 14463else 14464 need_locks=no 14465fi 14466 14467 14468 14469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14470$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14471 14472 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14473 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14474 case $host_os in 14475 aix[4-9]*) 14476 # If we're using GNU nm, then we don't want the "-C" option. 14477 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14478 # Also, AIX nm treats weak defined symbols like other global defined 14479 # symbols, whereas GNU nm marks them as "W". 14480 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 14481 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 14482 else 14483 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 14484 fi 14485 ;; 14486 pw32*) 14487 export_symbols_cmds_CXX="$ltdll_cmds" 14488 ;; 14489 cygwin* | mingw* | cegcc*) 14490 case $cc_basename in 14491 cl*) 14492 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 14493 ;; 14494 *) 14495 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 14496 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 14497 ;; 14498 esac 14499 ;; 14500 *) 14501 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14502 ;; 14503 esac 14504 14505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14506$as_echo "$ld_shlibs_CXX" >&6; } 14507test "$ld_shlibs_CXX" = no && can_build_shared=no 14508 14509with_gnu_ld_CXX=$with_gnu_ld 14510 14511 14512 14513 14514 14515 14516# 14517# Do we need to explicitly link libc? 14518# 14519case "x$archive_cmds_need_lc_CXX" in 14520x|xyes) 14521 # Assume -lc should be added 14522 archive_cmds_need_lc_CXX=yes 14523 14524 if test "$enable_shared" = yes && test "$GCC" = yes; then 14525 case $archive_cmds_CXX in 14526 *'~'*) 14527 # FIXME: we may have to deal with multi-command sequences. 14528 ;; 14529 '$CC '*) 14530 # Test whether the compiler implicitly links with -lc since on some 14531 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14532 # to ld, don't add -lc before -lgcc. 14533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 14534$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 14535if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 14536 $as_echo_n "(cached) " >&6 14537else 14538 $RM conftest* 14539 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14540 14541 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14542 (eval $ac_compile) 2>&5 14543 ac_status=$? 14544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14545 test $ac_status = 0; } 2>conftest.err; then 14546 soname=conftest 14547 lib=conftest 14548 libobjs=conftest.$ac_objext 14549 deplibs= 14550 wl=$lt_prog_compiler_wl_CXX 14551 pic_flag=$lt_prog_compiler_pic_CXX 14552 compiler_flags=-v 14553 linker_flags=-v 14554 verstring= 14555 output_objdir=. 14556 libname=conftest 14557 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 14558 allow_undefined_flag_CXX= 14559 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 14560 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 14561 ac_status=$? 14562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14563 test $ac_status = 0; } 14564 then 14565 lt_cv_archive_cmds_need_lc_CXX=no 14566 else 14567 lt_cv_archive_cmds_need_lc_CXX=yes 14568 fi 14569 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 14570 else 14571 cat conftest.err 1>&5 14572 fi 14573 $RM conftest* 14574 14575fi 14576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 14577$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 14578 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 14579 ;; 14580 esac 14581 fi 14582 ;; 14583esac 14584 14585 14586 14587 14588 14589 14590 14591 14592 14593 14594 14595 14596 14597 14598 14599 14600 14601 14602 14603 14604 14605 14606 14607 14608 14609 14610 14611 14612 14613 14614 14615 14616 14617 14618 14619 14620 14621 14622 14623 14624 14625 14626 14627 14628 14629 14630 14631 14632 14633 14634 14635 14636 14637 14638 14639 14640 14641 14642 14643 14644 14645 14646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 14647$as_echo_n "checking dynamic linker characteristics... " >&6; } 14648 14649library_names_spec= 14650libname_spec='lib$name' 14651soname_spec= 14652shrext_cmds=".so" 14653postinstall_cmds= 14654postuninstall_cmds= 14655finish_cmds= 14656finish_eval= 14657shlibpath_var= 14658shlibpath_overrides_runpath=unknown 14659version_type=none 14660dynamic_linker="$host_os ld.so" 14661sys_lib_dlsearch_path_spec="/lib /usr/lib" 14662need_lib_prefix=unknown 14663hardcode_into_libs=no 14664 14665# when you set need_version to no, make sure it does not cause -set_version 14666# flags to be left without arguments 14667need_version=unknown 14668 14669case $host_os in 14670aix3*) 14671 version_type=linux # correct to gnu/linux during the next big refactor 14672 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14673 shlibpath_var=LIBPATH 14674 14675 # AIX 3 has no versioning support, so we append a major version to the name. 14676 soname_spec='${libname}${release}${shared_ext}$major' 14677 ;; 14678 14679aix[4-9]*) 14680 version_type=linux # correct to gnu/linux during the next big refactor 14681 need_lib_prefix=no 14682 need_version=no 14683 hardcode_into_libs=yes 14684 if test "$host_cpu" = ia64; then 14685 # AIX 5 supports IA64 14686 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14687 shlibpath_var=LD_LIBRARY_PATH 14688 else 14689 # With GCC up to 2.95.x, collect2 would create an import file 14690 # for dependence libraries. The import file would start with 14691 # the line `#! .'. This would cause the generated library to 14692 # depend on `.', always an invalid library. This was fixed in 14693 # development snapshots of GCC prior to 3.0. 14694 case $host_os in 14695 aix4 | aix4.[01] | aix4.[01].*) 14696 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14697 echo ' yes ' 14698 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 14699 : 14700 else 14701 can_build_shared=no 14702 fi 14703 ;; 14704 esac 14705 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14706 # soname into executable. Probably we can add versioning support to 14707 # collect2, so additional links can be useful in future. 14708 if test "$aix_use_runtimelinking" = yes; then 14709 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14710 # instead of lib<name>.a to let people know that these are not 14711 # typical AIX shared libraries. 14712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14713 else 14714 # We preserve .a as extension for shared libraries through AIX4.2 14715 # and later when we are not doing run time linking. 14716 library_names_spec='${libname}${release}.a $libname.a' 14717 soname_spec='${libname}${release}${shared_ext}$major' 14718 fi 14719 shlibpath_var=LIBPATH 14720 fi 14721 ;; 14722 14723amigaos*) 14724 case $host_cpu in 14725 powerpc) 14726 # Since July 2007 AmigaOS4 officially supports .so libraries. 14727 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 14728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14729 ;; 14730 m68k) 14731 library_names_spec='$libname.ixlibrary $libname.a' 14732 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14733 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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' 14734 ;; 14735 esac 14736 ;; 14737 14738beos*) 14739 library_names_spec='${libname}${shared_ext}' 14740 dynamic_linker="$host_os ld.so" 14741 shlibpath_var=LIBRARY_PATH 14742 ;; 14743 14744bsdi[45]*) 14745 version_type=linux # correct to gnu/linux during the next big refactor 14746 need_version=no 14747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14748 soname_spec='${libname}${release}${shared_ext}$major' 14749 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14750 shlibpath_var=LD_LIBRARY_PATH 14751 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14752 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14753 # the default ld.so.conf also contains /usr/contrib/lib and 14754 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14755 # libtool to hard-code these into programs 14756 ;; 14757 14758cygwin* | mingw* | pw32* | cegcc*) 14759 version_type=windows 14760 shrext_cmds=".dll" 14761 need_version=no 14762 need_lib_prefix=no 14763 14764 case $GCC,$cc_basename in 14765 yes,*) 14766 # gcc 14767 library_names_spec='$libname.dll.a' 14768 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14769 postinstall_cmds='base_file=`basename \${file}`~ 14770 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 14771 dldir=$destdir/`dirname \$dlpath`~ 14772 test -d \$dldir || mkdir -p \$dldir~ 14773 $install_prog $dir/$dlname \$dldir/$dlname~ 14774 chmod a+x \$dldir/$dlname~ 14775 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 14776 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 14777 fi' 14778 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14779 dlpath=$dir/\$dldll~ 14780 $RM \$dlpath' 14781 shlibpath_overrides_runpath=yes 14782 14783 case $host_os in 14784 cygwin*) 14785 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14786 #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 14787 soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}' 14788 14789 ;; 14790 mingw* | cegcc*) 14791 # MinGW DLLs use traditional 'lib' prefix 14792 #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 14793 soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}' 14794 ;; 14795 pw32*) 14796 # pw32 DLLs use 'pw' prefix rather than 'lib' 14797 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14798 ;; 14799 esac 14800 dynamic_linker='Win32 ld.exe' 14801 ;; 14802 14803 *,cl*) 14804 # Native MSVC 14805 libname_spec='$name' 14806 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14807 library_names_spec='${libname}.dll.lib' 14808 14809 case $build_os in 14810 mingw*) 14811 sys_lib_search_path_spec= 14812 lt_save_ifs=$IFS 14813 IFS=';' 14814 for lt_path in $LIB 14815 do 14816 IFS=$lt_save_ifs 14817 # Let DOS variable expansion print the short 8.3 style file name. 14818 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 14819 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 14820 done 14821 IFS=$lt_save_ifs 14822 # Convert to MSYS style. 14823 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 14824 ;; 14825 cygwin*) 14826 # Convert to unix form, then to dos form, then back to unix form 14827 # but this time dos style (no spaces!) so that the unix form looks 14828 # like /cygdrive/c/PROGRA~1:/cygdr... 14829 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 14830 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 14831 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14832 ;; 14833 *) 14834 sys_lib_search_path_spec="$LIB" 14835 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 14836 # It is most probably a Windows format PATH. 14837 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14838 else 14839 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14840 fi 14841 # FIXME: find the short name or the path components, as spaces are 14842 # common. (e.g. "Program Files" -> "PROGRA~1") 14843 ;; 14844 esac 14845 14846 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14847 postinstall_cmds='base_file=`basename \${file}`~ 14848 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 14849 dldir=$destdir/`dirname \$dlpath`~ 14850 test -d \$dldir || mkdir -p \$dldir~ 14851 $install_prog $dir/$dlname \$dldir/$dlname' 14852 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14853 dlpath=$dir/\$dldll~ 14854 $RM \$dlpath' 14855 shlibpath_overrides_runpath=yes 14856 dynamic_linker='Win32 link.exe' 14857 ;; 14858 14859 *) 14860 # Assume MSVC wrapper 14861 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14862 dynamic_linker='Win32 ld.exe' 14863 ;; 14864 esac 14865 # FIXME: first we should search . and the directory the executable is in 14866 shlibpath_var=PATH 14867 ;; 14868 14869darwin* | rhapsody*) 14870 dynamic_linker="$host_os dyld" 14871 version_type=darwin 14872 need_lib_prefix=no 14873 need_version=no 14874 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14875 soname_spec='${libname}${release}${major}$shared_ext' 14876 shlibpath_overrides_runpath=yes 14877 shlibpath_var=DYLD_LIBRARY_PATH 14878 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14879 14880 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14881 ;; 14882 14883dgux*) 14884 version_type=linux # correct to gnu/linux during the next big refactor 14885 need_lib_prefix=no 14886 need_version=no 14887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14888 soname_spec='${libname}${release}${shared_ext}$major' 14889 shlibpath_var=LD_LIBRARY_PATH 14890 ;; 14891 14892freebsd* | dragonfly*) 14893 # DragonFly does not have aout. When/if they implement a new 14894 # versioning mechanism, adjust this. 14895 if test -x /usr/bin/objformat; then 14896 objformat=`/usr/bin/objformat` 14897 else 14898 case $host_os in 14899 freebsd[23].*) objformat=aout ;; 14900 *) objformat=elf ;; 14901 esac 14902 fi 14903 version_type=freebsd-$objformat 14904 case $version_type in 14905 freebsd-elf*) 14906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14907 need_version=no 14908 need_lib_prefix=no 14909 ;; 14910 freebsd-*) 14911 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14912 need_version=yes 14913 ;; 14914 esac 14915 shlibpath_var=LD_LIBRARY_PATH 14916 case $host_os in 14917 freebsd2.*) 14918 shlibpath_overrides_runpath=yes 14919 ;; 14920 freebsd3.[01]* | freebsdelf3.[01]*) 14921 shlibpath_overrides_runpath=yes 14922 hardcode_into_libs=yes 14923 ;; 14924 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14925 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14926 shlibpath_overrides_runpath=no 14927 hardcode_into_libs=yes 14928 ;; 14929 *) # from 4.6 on, and DragonFly 14930 shlibpath_overrides_runpath=yes 14931 hardcode_into_libs=yes 14932 ;; 14933 esac 14934 ;; 14935 14936gnu*) 14937 version_type=linux # correct to gnu/linux during the next big refactor 14938 need_lib_prefix=no 14939 need_version=no 14940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14941 soname_spec='${libname}${release}${shared_ext}$major' 14942 shlibpath_var=LD_LIBRARY_PATH 14943 shlibpath_overrides_runpath=no 14944 hardcode_into_libs=yes 14945 ;; 14946 14947haiku*) 14948 version_type=linux # correct to gnu/linux during the next big refactor 14949 need_lib_prefix=no 14950 need_version=no 14951 dynamic_linker="$host_os runtime_loader" 14952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14953 soname_spec='${libname}${release}${shared_ext}$major' 14954 shlibpath_var=LIBRARY_PATH 14955 shlibpath_overrides_runpath=yes 14956 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 14957 hardcode_into_libs=yes 14958 ;; 14959 14960hpux9* | hpux10* | hpux11*) 14961 # Give a soname corresponding to the major version so that dld.sl refuses to 14962 # link against other versions. 14963 version_type=sunos 14964 need_lib_prefix=no 14965 need_version=no 14966 case $host_cpu in 14967 ia64*) 14968 shrext_cmds='.so' 14969 hardcode_into_libs=yes 14970 dynamic_linker="$host_os dld.so" 14971 shlibpath_var=LD_LIBRARY_PATH 14972 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14974 soname_spec='${libname}${release}${shared_ext}$major' 14975 if test "X$HPUX_IA64_MODE" = X32; then 14976 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14977 else 14978 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14979 fi 14980 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14981 ;; 14982 hppa*64*) 14983 shrext_cmds='.sl' 14984 hardcode_into_libs=yes 14985 dynamic_linker="$host_os dld.sl" 14986 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14987 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14989 soname_spec='${libname}${release}${shared_ext}$major' 14990 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14991 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14992 ;; 14993 *) 14994 shrext_cmds='.sl' 14995 dynamic_linker="$host_os dld.sl" 14996 shlibpath_var=SHLIB_PATH 14997 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14999 soname_spec='${libname}${release}${shared_ext}$major' 15000 ;; 15001 esac 15002 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 15003 postinstall_cmds='chmod 555 $lib' 15004 # or fails outright, so override atomically: 15005 install_override_mode=555 15006 ;; 15007 15008interix[3-9]*) 15009 version_type=linux # correct to gnu/linux during the next big refactor 15010 need_lib_prefix=no 15011 need_version=no 15012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15013 soname_spec='${libname}${release}${shared_ext}$major' 15014 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15015 shlibpath_var=LD_LIBRARY_PATH 15016 shlibpath_overrides_runpath=no 15017 hardcode_into_libs=yes 15018 ;; 15019 15020irix5* | irix6* | nonstopux*) 15021 case $host_os in 15022 nonstopux*) version_type=nonstopux ;; 15023 *) 15024 if test "$lt_cv_prog_gnu_ld" = yes; then 15025 version_type=linux # correct to gnu/linux during the next big refactor 15026 else 15027 version_type=irix 15028 fi ;; 15029 esac 15030 need_lib_prefix=no 15031 need_version=no 15032 soname_spec='${libname}${release}${shared_ext}$major' 15033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15034 case $host_os in 15035 irix5* | nonstopux*) 15036 libsuff= shlibsuff= 15037 ;; 15038 *) 15039 case $LD in # libtool.m4 will add one of these switches to LD 15040 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15041 libsuff= shlibsuff= libmagic=32-bit;; 15042 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15043 libsuff=32 shlibsuff=N32 libmagic=N32;; 15044 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15045 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15046 *) libsuff= shlibsuff= libmagic=never-match;; 15047 esac 15048 ;; 15049 esac 15050 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15051 shlibpath_overrides_runpath=no 15052 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15053 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15054 hardcode_into_libs=yes 15055 ;; 15056 15057# No shared lib support for Linux oldld, aout, or coff. 15058linux*oldld* | linux*aout* | linux*coff*) 15059 dynamic_linker=no 15060 ;; 15061 15062# This must be glibc/ELF. 15063linux* | k*bsd*-gnu | kopensolaris*-gnu) 15064 version_type=linux # correct to gnu/linux during the next big refactor 15065 need_lib_prefix=no 15066 need_version=no 15067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15068 soname_spec='${libname}${release}${shared_ext}$major' 15069 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15070 shlibpath_var=LD_LIBRARY_PATH 15071 shlibpath_overrides_runpath=no 15072 15073 # Some binutils ld are patched to set DT_RUNPATH 15074 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 15075 $as_echo_n "(cached) " >&6 15076else 15077 lt_cv_shlibpath_overrides_runpath=no 15078 save_LDFLAGS=$LDFLAGS 15079 save_libdir=$libdir 15080 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 15081 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 15082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15083/* end confdefs.h. */ 15084 15085int 15086main () 15087{ 15088 15089 ; 15090 return 0; 15091} 15092_ACEOF 15093if ac_fn_cxx_try_link "$LINENO"; then : 15094 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 15095 lt_cv_shlibpath_overrides_runpath=yes 15096fi 15097fi 15098rm -f core conftest.err conftest.$ac_objext \ 15099 conftest$ac_exeext conftest.$ac_ext 15100 LDFLAGS=$save_LDFLAGS 15101 libdir=$save_libdir 15102 15103fi 15104 15105 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 15106 15107 # This implies no fast_install, which is unacceptable. 15108 # Some rework will be needed to allow for fast_install 15109 # before this can be enabled. 15110 hardcode_into_libs=yes 15111 15112 # Append ld.so.conf contents to the search path 15113 if test -f /etc/ld.so.conf; then 15114 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 15115 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15116 fi 15117 15118 # We used to test for /lib/ld.so.1 and disable shared libraries on 15119 # powerpc, because MkLinux only supported shared libraries with the 15120 # GNU dynamic linker. Since this was broken with cross compilers, 15121 # most powerpc-linux boxes support dynamic linking these days and 15122 # people can always --disable-shared, the test was removed, and we 15123 # assume the GNU/Linux dynamic linker is in use. 15124 dynamic_linker='GNU/Linux ld.so' 15125 ;; 15126 15127netbsd*) 15128 version_type=sunos 15129 need_lib_prefix=no 15130 need_version=no 15131 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15133 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15134 dynamic_linker='NetBSD (a.out) ld.so' 15135 else 15136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15137 soname_spec='${libname}${release}${shared_ext}$major' 15138 dynamic_linker='NetBSD ld.elf_so' 15139 fi 15140 shlibpath_var=LD_LIBRARY_PATH 15141 shlibpath_overrides_runpath=yes 15142 hardcode_into_libs=yes 15143 ;; 15144 15145newsos6) 15146 version_type=linux # correct to gnu/linux during the next big refactor 15147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15148 shlibpath_var=LD_LIBRARY_PATH 15149 shlibpath_overrides_runpath=yes 15150 ;; 15151 15152*nto* | *qnx*) 15153 version_type=qnx 15154 need_lib_prefix=no 15155 need_version=no 15156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15157 soname_spec='${libname}${release}${shared_ext}$major' 15158 shlibpath_var=LD_LIBRARY_PATH 15159 shlibpath_overrides_runpath=no 15160 hardcode_into_libs=yes 15161 dynamic_linker='ldqnx.so' 15162 ;; 15163 15164openbsd*) 15165 version_type=sunos 15166 sys_lib_dlsearch_path_spec="/usr/lib" 15167 need_lib_prefix=no 15168 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15169 case $host_os in 15170 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15171 *) need_version=no ;; 15172 esac 15173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15174 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15175 shlibpath_var=LD_LIBRARY_PATH 15176 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15177 case $host_os in 15178 openbsd2.[89] | openbsd2.[89].*) 15179 shlibpath_overrides_runpath=no 15180 ;; 15181 *) 15182 shlibpath_overrides_runpath=yes 15183 ;; 15184 esac 15185 else 15186 shlibpath_overrides_runpath=yes 15187 fi 15188 ;; 15189 15190os2*) 15191 libname_spec='$name' 15192 shrext_cmds=".dll" 15193 need_lib_prefix=no 15194 library_names_spec='$libname${shared_ext} $libname.a' 15195 dynamic_linker='OS/2 ld.exe' 15196 shlibpath_var=LIBPATH 15197 ;; 15198 15199osf3* | osf4* | osf5*) 15200 version_type=osf 15201 need_lib_prefix=no 15202 need_version=no 15203 soname_spec='${libname}${release}${shared_ext}$major' 15204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15205 shlibpath_var=LD_LIBRARY_PATH 15206 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15207 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15208 ;; 15209 15210rdos*) 15211 dynamic_linker=no 15212 ;; 15213 15214solaris*) 15215 version_type=linux # correct to gnu/linux during the next big refactor 15216 need_lib_prefix=no 15217 need_version=no 15218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15219 soname_spec='${libname}${release}${shared_ext}$major' 15220 shlibpath_var=LD_LIBRARY_PATH 15221 shlibpath_overrides_runpath=yes 15222 hardcode_into_libs=yes 15223 # ldd complains unless libraries are executable 15224 postinstall_cmds='chmod +x $lib' 15225 ;; 15226 15227sunos4*) 15228 version_type=sunos 15229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15230 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15231 shlibpath_var=LD_LIBRARY_PATH 15232 shlibpath_overrides_runpath=yes 15233 if test "$with_gnu_ld" = yes; then 15234 need_lib_prefix=no 15235 fi 15236 need_version=yes 15237 ;; 15238 15239sysv4 | sysv4.3*) 15240 version_type=linux # correct to gnu/linux during the next big refactor 15241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15242 soname_spec='${libname}${release}${shared_ext}$major' 15243 shlibpath_var=LD_LIBRARY_PATH 15244 case $host_vendor in 15245 sni) 15246 shlibpath_overrides_runpath=no 15247 need_lib_prefix=no 15248 runpath_var=LD_RUN_PATH 15249 ;; 15250 siemens) 15251 need_lib_prefix=no 15252 ;; 15253 motorola) 15254 need_lib_prefix=no 15255 need_version=no 15256 shlibpath_overrides_runpath=no 15257 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15258 ;; 15259 esac 15260 ;; 15261 15262sysv4*MP*) 15263 if test -d /usr/nec ;then 15264 version_type=linux # correct to gnu/linux during the next big refactor 15265 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15266 soname_spec='$libname${shared_ext}.$major' 15267 shlibpath_var=LD_LIBRARY_PATH 15268 fi 15269 ;; 15270 15271sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15272 version_type=freebsd-elf 15273 need_lib_prefix=no 15274 need_version=no 15275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15276 soname_spec='${libname}${release}${shared_ext}$major' 15277 shlibpath_var=LD_LIBRARY_PATH 15278 shlibpath_overrides_runpath=yes 15279 hardcode_into_libs=yes 15280 if test "$with_gnu_ld" = yes; then 15281 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15282 else 15283 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15284 case $host_os in 15285 sco3.2v5*) 15286 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15287 ;; 15288 esac 15289 fi 15290 sys_lib_dlsearch_path_spec='/usr/lib' 15291 ;; 15292 15293tpf*) 15294 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 15295 version_type=linux # correct to gnu/linux during the next big refactor 15296 need_lib_prefix=no 15297 need_version=no 15298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15299 shlibpath_var=LD_LIBRARY_PATH 15300 shlibpath_overrides_runpath=no 15301 hardcode_into_libs=yes 15302 ;; 15303 15304uts4*) 15305 version_type=linux # correct to gnu/linux during the next big refactor 15306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15307 soname_spec='${libname}${release}${shared_ext}$major' 15308 shlibpath_var=LD_LIBRARY_PATH 15309 ;; 15310 15311*) 15312 dynamic_linker=no 15313 ;; 15314esac 15315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 15316$as_echo "$dynamic_linker" >&6; } 15317test "$dynamic_linker" = no && can_build_shared=no 15318 15319variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15320if test "$GCC" = yes; then 15321 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15322fi 15323 15324if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 15325 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 15326fi 15327if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 15328 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 15329fi 15330 15331 15332 15333 15334 15335 15336 15337 15338 15339 15340 15341 15342 15343 15344 15345 15346 15347 15348 15349 15350 15351 15352 15353 15354 15355 15356 15357 15358 15359 15360 15361 15362 15363 15364 15365 15366 15367 15368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 15369$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 15370hardcode_action_CXX= 15371if test -n "$hardcode_libdir_flag_spec_CXX" || 15372 test -n "$runpath_var_CXX" || 15373 test "X$hardcode_automatic_CXX" = "Xyes" ; then 15374 15375 # We can hardcode non-existent directories. 15376 if test "$hardcode_direct_CXX" != no && 15377 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15378 # have to relink, otherwise we might link with an installed library 15379 # when we should be linking with a yet-to-be-installed one 15380 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 15381 test "$hardcode_minus_L_CXX" != no; then 15382 # Linking always hardcodes the temporary library directory. 15383 hardcode_action_CXX=relink 15384 else 15385 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15386 hardcode_action_CXX=immediate 15387 fi 15388else 15389 # We cannot hardcode anything, or else we can only hardcode existing 15390 # directories. 15391 hardcode_action_CXX=unsupported 15392fi 15393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 15394$as_echo "$hardcode_action_CXX" >&6; } 15395 15396if test "$hardcode_action_CXX" = relink || 15397 test "$inherit_rpath_CXX" = yes; then 15398 # Fast installation is not supported 15399 enable_fast_install=no 15400elif test "$shlibpath_overrides_runpath" = yes || 15401 test "$enable_shared" = no; then 15402 # Fast installation is not necessary 15403 enable_fast_install=needless 15404fi 15405 15406 15407 15408 15409 15410 15411 15412 fi # test -n "$compiler" 15413 15414 CC=$lt_save_CC 15415 CFLAGS=$lt_save_CFLAGS 15416 LDCXX=$LD 15417 LD=$lt_save_LD 15418 GCC=$lt_save_GCC 15419 with_gnu_ld=$lt_save_with_gnu_ld 15420 lt_cv_path_LDCXX=$lt_cv_path_LD 15421 lt_cv_path_LD=$lt_save_path_LD 15422 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 15423 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 15424fi # test "$_lt_caught_CXX_error" != yes 15425 15426ac_ext=c 15427ac_cpp='$CPP $CPPFLAGS' 15428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15430ac_compiler_gnu=$ac_cv_c_compiler_gnu 15431 15432 15433# Find a good install program. We prefer a C program (faster), 15434# so one script is as good as another. But avoid the broken or 15435# incompatible versions: 15436# SysV /etc/install, /usr/sbin/install 15437# SunOS /usr/etc/install 15438# IRIX /sbin/install 15439# AIX /bin/install 15440# AmigaOS /C/install, which installs bootblocks on floppy discs 15441# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 15442# AFS /usr/afsws/bin/install, which mishandles nonexistent args 15443# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 15444# OS/2's system install, which has a completely different semantic 15445# ./install, which can be erroneously created by make from ./install.sh. 15446# Reject install programs that cannot install multiple files. 15447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 15448$as_echo_n "checking for a BSD-compatible install... " >&6; } 15449if test -z "$INSTALL"; then 15450if ${ac_cv_path_install+:} false; then : 15451 $as_echo_n "(cached) " >&6 15452else 15453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15454for as_dir in $PATH 15455do 15456 IFS=$as_save_IFS 15457 test -z "$as_dir" && as_dir=. 15458 # Account for people who put trailing slashes in PATH elements. 15459case $as_dir/ in #(( 15460 ./ | .// | /[cC]/* | \ 15461 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 15462 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 15463 /usr/ucb/* ) ;; 15464 *) 15465 # OSF1 and SCO ODT 3.0 have their own names for install. 15466 # Don't use installbsd from OSF since it installs stuff as root 15467 # by default. 15468 for ac_prog in ginstall scoinst install; do 15469 for ac_exec_ext in '' $ac_executable_extensions; do 15470 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 15471 if test $ac_prog = install && 15472 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 15473 # AIX install. It has an incompatible calling convention. 15474 : 15475 elif test $ac_prog = install && 15476 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 15477 # program-specific install script used by HP pwplus--don't use. 15478 : 15479 else 15480 rm -rf conftest.one conftest.two conftest.dir 15481 echo one > conftest.one 15482 echo two > conftest.two 15483 mkdir conftest.dir 15484 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 15485 test -s conftest.one && test -s conftest.two && 15486 test -s conftest.dir/conftest.one && 15487 test -s conftest.dir/conftest.two 15488 then 15489 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 15490 break 3 15491 fi 15492 fi 15493 fi 15494 done 15495 done 15496 ;; 15497esac 15498 15499 done 15500IFS=$as_save_IFS 15501 15502rm -rf conftest.one conftest.two conftest.dir 15503 15504fi 15505 if test "${ac_cv_path_install+set}" = set; then 15506 INSTALL=$ac_cv_path_install 15507 else 15508 # As a last resort, use the slow shell script. Don't cache a 15509 # value for INSTALL within a source directory, because that will 15510 # break other packages using the cache if that directory is 15511 # removed, or if the value is a relative name. 15512 INSTALL=$ac_install_sh 15513 fi 15514fi 15515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 15516$as_echo "$INSTALL" >&6; } 15517 15518# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 15519# It thinks the first close brace ends the variable substitution. 15520test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 15521 15522test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 15523 15524test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 15525 15526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 15527$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 15528set x ${MAKE-make} 15529ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 15530if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 15531 $as_echo_n "(cached) " >&6 15532else 15533 cat >conftest.make <<\_ACEOF 15534SHELL = /bin/sh 15535all: 15536 @echo '@@@%%%=$(MAKE)=@@@%%%' 15537_ACEOF 15538# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 15539case `${MAKE-make} -f conftest.make 2>/dev/null` in 15540 *@@@%%%=?*=@@@%%%*) 15541 eval ac_cv_prog_make_${ac_make}_set=yes;; 15542 *) 15543 eval ac_cv_prog_make_${ac_make}_set=no;; 15544esac 15545rm -f conftest.make 15546fi 15547if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 15548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15549$as_echo "yes" >&6; } 15550 SET_MAKE= 15551else 15552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15553$as_echo "no" >&6; } 15554 SET_MAKE="MAKE=${MAKE-make}" 15555fi 15556 15557if test -n "$ac_tool_prefix"; then 15558 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. 15559set dummy ${ac_tool_prefix}windres; ac_word=$2 15560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15561$as_echo_n "checking for $ac_word... " >&6; } 15562if ${ac_cv_prog_WINDRES+:} false; then : 15563 $as_echo_n "(cached) " >&6 15564else 15565 if test -n "$WINDRES"; then 15566 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. 15567else 15568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15569for as_dir in $PATH 15570do 15571 IFS=$as_save_IFS 15572 test -z "$as_dir" && as_dir=. 15573 for ac_exec_ext in '' $ac_executable_extensions; do 15574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15575 ac_cv_prog_WINDRES="${ac_tool_prefix}windres" 15576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15577 break 2 15578 fi 15579done 15580 done 15581IFS=$as_save_IFS 15582 15583fi 15584fi 15585WINDRES=$ac_cv_prog_WINDRES 15586if test -n "$WINDRES"; then 15587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 15588$as_echo "$WINDRES" >&6; } 15589else 15590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15591$as_echo "no" >&6; } 15592fi 15593 15594 15595fi 15596if test -z "$ac_cv_prog_WINDRES"; then 15597 ac_ct_WINDRES=$WINDRES 15598 # Extract the first word of "windres", so it can be a program name with args. 15599set dummy windres; ac_word=$2 15600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15601$as_echo_n "checking for $ac_word... " >&6; } 15602if ${ac_cv_prog_ac_ct_WINDRES+:} false; then : 15603 $as_echo_n "(cached) " >&6 15604else 15605 if test -n "$ac_ct_WINDRES"; then 15606 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. 15607else 15608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15609for as_dir in $PATH 15610do 15611 IFS=$as_save_IFS 15612 test -z "$as_dir" && as_dir=. 15613 for ac_exec_ext in '' $ac_executable_extensions; do 15614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15615 ac_cv_prog_ac_ct_WINDRES="windres" 15616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15617 break 2 15618 fi 15619done 15620 done 15621IFS=$as_save_IFS 15622 15623fi 15624fi 15625ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES 15626if test -n "$ac_ct_WINDRES"; then 15627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 15628$as_echo "$ac_ct_WINDRES" >&6; } 15629else 15630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15631$as_echo "no" >&6; } 15632fi 15633 15634 if test "x$ac_ct_WINDRES" = x; then 15635 WINDRES=":" 15636 else 15637 case $cross_compiling:$ac_tool_warned in 15638yes:) 15639{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15640$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15641ac_tool_warned=yes ;; 15642esac 15643 WINDRES=$ac_ct_WINDRES 15644 fi 15645else 15646 WINDRES="$ac_cv_prog_WINDRES" 15647fi 15648 15649 15650case "$host" in 15651 *-*-mingw32*) 15652 # Except on msys, where make can't handle full pathnames (bug 1972) 15653 ;; 15654 *) 15655 srcdir=`cd $srcdir && pwd` 15656 ;; 15657esac 15658 15659INCLUDE="-I$srcdir/include" 15660if test x$srcdir != x.; then 15661 INCLUDE="-Iinclude $INCLUDE" 15662elif test -d .hg; then 15663 as_fn_error $? " 15664*** When building from Mercurial you should configure and build in a 15665 separate directory so you don't clobber SDL_config.h, SDL_revision.h 15666" "$LINENO" 5 15667fi 15668BASE_CFLAGS="" 15669BASE_LDFLAGS="" 15670case "$host" in 15671 *-*-cygwin*) 15672 # We build SDL on cygwin without the UNIX emulation layer 15673 save_CFLAGS="$CFLAGS" 15674 have_no_cygwin=no 15675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5 15676$as_echo_n "checking for GCC -mno-cygwin option... " >&6; } 15677 CFLAGS="$save_CFLAGS -mno-cygwin" 15678 15679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15680/* end confdefs.h. */ 15681 15682 15683int 15684main () 15685{ 15686 15687 15688 ; 15689 return 0; 15690} 15691_ACEOF 15692if ac_fn_c_try_compile "$LINENO"; then : 15693 15694 have_no_cygwin=yes 15695 15696fi 15697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5 15699$as_echo "$have_no_cygwin" >&6; } 15700 CFLAGS="$save_CFLAGS" 15701 15702 if test x$have_no_cygwin = xyes; then 15703 BASE_CFLAGS="-mno-cygwin" 15704 BASE_LDFLAGS="-mno-cygwin" 15705 fi 15706 BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw" 15707 ;; 15708esac 15709# Uncomment the following line if you want to force SDL and applications 15710# built with it to be compiled for a particular architecture. 15711#AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]") 15712BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H" 15713# The default optimization for SDL is -O3 (Bug #31) 15714if test "x$orig_CFLAGS" = x; then 15715 BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'` 15716fi 15717EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS" 15718BUILD_LDFLAGS="$LDFLAGS" 15719EXTRA_LDFLAGS="$BASE_LDFLAGS" 15720## These are common directories to find software packages 15721#for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do 15722# if test -d $path/include; then 15723# EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include" 15724# fi 15725# if test -d $path/lib; then 15726# EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib" 15727# fi 15728#done 15729SDL_CFLAGS="$BASE_CFLAGS" 15730SDL_LIBS="-lSDL2 $BASE_LDFLAGS" 15731CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS" 15732CFLAGS="$CFLAGS $EXTRA_CFLAGS" 15733LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS" 15734 15735base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'` 15736 15737find_lib() 15738{ 15739 gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'` 15740 gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'` 15741 env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'` 15742 if test "$cross_compiling" = yes; then 15743 host_lib_path="" 15744 else 15745 host_lib_path="/usr/$base_libdir /usr/local/$base_libdir" 15746 fi 15747 for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do 15748 lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1` 15749 if test x$lib != x; then 15750 echo $lib 15751 return 15752 fi 15753 done 15754} 15755 15756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 15757$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 15758if ${ac_cv_c_const+:} false; then : 15759 $as_echo_n "(cached) " >&6 15760else 15761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15762/* end confdefs.h. */ 15763 15764int 15765main () 15766{ 15767 15768#ifndef __cplusplus 15769 /* Ultrix mips cc rejects this sort of thing. */ 15770 typedef int charset[2]; 15771 const charset cs = { 0, 0 }; 15772 /* SunOS 4.1.1 cc rejects this. */ 15773 char const *const *pcpcc; 15774 char **ppc; 15775 /* NEC SVR4.0.2 mips cc rejects this. */ 15776 struct point {int x, y;}; 15777 static struct point const zero = {0,0}; 15778 /* AIX XL C 1.02.0.0 rejects this. 15779 It does not let you subtract one const X* pointer from another in 15780 an arm of an if-expression whose if-part is not a constant 15781 expression */ 15782 const char *g = "string"; 15783 pcpcc = &g + (g ? g-g : 0); 15784 /* HPUX 7.0 cc rejects these. */ 15785 ++pcpcc; 15786 ppc = (char**) pcpcc; 15787 pcpcc = (char const *const *) ppc; 15788 { /* SCO 3.2v4 cc rejects this sort of thing. */ 15789 char tx; 15790 char *t = &tx; 15791 char const *s = 0 ? (char *) 0 : (char const *) 0; 15792 15793 *t++ = 0; 15794 if (s) return 0; 15795 } 15796 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 15797 int x[] = {25, 17}; 15798 const int *foo = &x[0]; 15799 ++foo; 15800 } 15801 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 15802 typedef const int *iptr; 15803 iptr p = 0; 15804 ++p; 15805 } 15806 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 15807 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 15808 struct s { int j; const int *ap[3]; } bx; 15809 struct s *b = &bx; b->j = 5; 15810 } 15811 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 15812 const int foo = 10; 15813 if (!foo) return 0; 15814 } 15815 return !cs[0] && !zero.x; 15816#endif 15817 15818 ; 15819 return 0; 15820} 15821_ACEOF 15822if ac_fn_c_try_compile "$LINENO"; then : 15823 ac_cv_c_const=yes 15824else 15825 ac_cv_c_const=no 15826fi 15827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15828fi 15829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 15830$as_echo "$ac_cv_c_const" >&6; } 15831if test $ac_cv_c_const = no; then 15832 15833$as_echo "#define const /**/" >>confdefs.h 15834 15835fi 15836 15837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 15838$as_echo_n "checking for inline... " >&6; } 15839if ${ac_cv_c_inline+:} false; then : 15840 $as_echo_n "(cached) " >&6 15841else 15842 ac_cv_c_inline=no 15843for ac_kw in inline __inline__ __inline; do 15844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15845/* end confdefs.h. */ 15846#ifndef __cplusplus 15847typedef int foo_t; 15848static $ac_kw foo_t static_foo () {return 0; } 15849$ac_kw foo_t foo () {return 0; } 15850#endif 15851 15852_ACEOF 15853if ac_fn_c_try_compile "$LINENO"; then : 15854 ac_cv_c_inline=$ac_kw 15855fi 15856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15857 test "$ac_cv_c_inline" != no && break 15858done 15859 15860fi 15861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 15862$as_echo "$ac_cv_c_inline" >&6; } 15863 15864case $ac_cv_c_inline in 15865 inline | yes) ;; 15866 *) 15867 case $ac_cv_c_inline in 15868 no) ac_val=;; 15869 *) ac_val=$ac_cv_c_inline;; 15870 esac 15871 cat >>confdefs.h <<_ACEOF 15872#ifndef __cplusplus 15873#define inline $ac_val 15874#endif 15875_ACEOF 15876 ;; 15877esac 15878 15879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 15880$as_echo_n "checking for working volatile... " >&6; } 15881if ${ac_cv_c_volatile+:} false; then : 15882 $as_echo_n "(cached) " >&6 15883else 15884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15885/* end confdefs.h. */ 15886 15887int 15888main () 15889{ 15890 15891volatile int x; 15892int * volatile y = (int *) 0; 15893return !x && !y; 15894 ; 15895 return 0; 15896} 15897_ACEOF 15898if ac_fn_c_try_compile "$LINENO"; then : 15899 ac_cv_c_volatile=yes 15900else 15901 ac_cv_c_volatile=no 15902fi 15903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15904fi 15905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 15906$as_echo "$ac_cv_c_volatile" >&6; } 15907if test $ac_cv_c_volatile = no; then 15908 15909$as_echo "#define volatile /**/" >>confdefs.h 15910 15911fi 15912 15913 15914# Check whether --enable-assertions was given. 15915if test "${enable_assertions+set}" = set; then : 15916 enableval=$enable_assertions; 15917else 15918 enable_assertions=auto 15919fi 15920 15921case "$enable_assertions" in 15922 auto) # Use optimization settings to determine assertion level 15923 ;; 15924 disabled) 15925 15926$as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h 15927 15928 ;; 15929 release) 15930 15931$as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h 15932 15933 ;; 15934 enabled) 15935 15936$as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h 15937 15938 ;; 15939 paranoid) 15940 15941$as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h 15942 15943 ;; 15944 *) 15945 as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5 15946 ;; 15947esac 15948 15949# Check whether --enable-dependency-tracking was given. 15950if test "${enable_dependency_tracking+set}" = set; then : 15951 enableval=$enable_dependency_tracking; 15952else 15953 enable_dependency_tracking=yes 15954fi 15955 15956if test x$enable_dependency_tracking = xyes; then 15957 have_gcc_mmd_mt=no 15958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5 15959$as_echo_n "checking for GCC -MMD -MT option... " >&6; } 15960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15961/* end confdefs.h. */ 15962 15963 #if !defined(__GNUC__) || __GNUC__ < 3 15964 #error Dependency tracking requires GCC 3.0 or newer 15965 #endif 15966 15967int 15968main () 15969{ 15970 15971 15972 ; 15973 return 0; 15974} 15975_ACEOF 15976if ac_fn_c_try_compile "$LINENO"; then : 15977 15978 have_gcc_mmd_mt=yes 15979 15980fi 15981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5 15983$as_echo "$have_gcc_mmd_mt" >&6; } 15984 15985 if test x$have_gcc_mmd_mt = xyes; then 15986 DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@" 15987 fi 15988fi 15989 15990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5 15991$as_echo_n "checking for linker option --no-undefined... " >&6; } 15992have_no_undefined=no 15993case "$host" in 15994 *-*-openbsd*) 15995 ;; 15996 15997 *) 15998 save_LDFLAGS="$LDFLAGS" 15999 LDFLAGS="$LDFLAGS -Wl,--no-undefined" 16000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16001/* end confdefs.h. */ 16002 16003 16004int 16005main () 16006{ 16007 16008 16009 ; 16010 return 0; 16011} 16012_ACEOF 16013if ac_fn_c_try_link "$LINENO"; then : 16014 16015 have_no_undefined=yes 16016 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined" 16017 16018fi 16019rm -f core conftest.err conftest.$ac_objext \ 16020 conftest$ac_exeext conftest.$ac_ext 16021 LDFLAGS="$save_LDFLAGS" 16022 ;; 16023esac 16024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5 16025$as_echo "$have_no_undefined" >&6; } 16026 16027# Check whether --enable-libc was given. 16028if test "${enable_libc+set}" = set; then : 16029 enableval=$enable_libc; 16030else 16031 enable_libc=yes 16032fi 16033 16034if test x$enable_libc = xyes; then 16035 16036$as_echo "#define HAVE_LIBC 1" >>confdefs.h 16037 16038 16039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 16040$as_echo_n "checking for ANSI C header files... " >&6; } 16041if ${ac_cv_header_stdc+:} false; then : 16042 $as_echo_n "(cached) " >&6 16043else 16044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16045/* end confdefs.h. */ 16046#include <stdlib.h> 16047#include <stdarg.h> 16048#include <string.h> 16049#include <float.h> 16050 16051int 16052main () 16053{ 16054 16055 ; 16056 return 0; 16057} 16058_ACEOF 16059if ac_fn_c_try_compile "$LINENO"; then : 16060 ac_cv_header_stdc=yes 16061else 16062 ac_cv_header_stdc=no 16063fi 16064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16065 16066if test $ac_cv_header_stdc = yes; then 16067 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 16068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16069/* end confdefs.h. */ 16070#include <string.h> 16071 16072_ACEOF 16073if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16074 $EGREP "memchr" >/dev/null 2>&1; then : 16075 16076else 16077 ac_cv_header_stdc=no 16078fi 16079rm -f conftest* 16080 16081fi 16082 16083if test $ac_cv_header_stdc = yes; then 16084 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 16085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16086/* end confdefs.h. */ 16087#include <stdlib.h> 16088 16089_ACEOF 16090if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16091 $EGREP "free" >/dev/null 2>&1; then : 16092 16093else 16094 ac_cv_header_stdc=no 16095fi 16096rm -f conftest* 16097 16098fi 16099 16100if test $ac_cv_header_stdc = yes; then 16101 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 16102 if test "$cross_compiling" = yes; then : 16103 : 16104else 16105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16106/* end confdefs.h. */ 16107#include <ctype.h> 16108#include <stdlib.h> 16109#if ((' ' & 0x0FF) == 0x020) 16110# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 16111# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 16112#else 16113# define ISLOWER(c) \ 16114 (('a' <= (c) && (c) <= 'i') \ 16115 || ('j' <= (c) && (c) <= 'r') \ 16116 || ('s' <= (c) && (c) <= 'z')) 16117# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 16118#endif 16119 16120#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 16121int 16122main () 16123{ 16124 int i; 16125 for (i = 0; i < 256; i++) 16126 if (XOR (islower (i), ISLOWER (i)) 16127 || toupper (i) != TOUPPER (i)) 16128 return 2; 16129 return 0; 16130} 16131_ACEOF 16132if ac_fn_c_try_run "$LINENO"; then : 16133 16134else 16135 ac_cv_header_stdc=no 16136fi 16137rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16138 conftest.$ac_objext conftest.beam conftest.$ac_ext 16139fi 16140 16141fi 16142fi 16143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 16144$as_echo "$ac_cv_header_stdc" >&6; } 16145if test $ac_cv_header_stdc = yes; then 16146 16147$as_echo "#define STDC_HEADERS 1" >>confdefs.h 16148 16149fi 16150 16151 for ac_header in sys/types.h stdio.h stdlib.h stddef.h stdarg.h malloc.h memory.h string.h strings.h inttypes.h stdint.h ctype.h math.h iconv.h signal.h 16152do : 16153 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16154ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16155if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16156 cat >>confdefs.h <<_ACEOF 16157#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16158_ACEOF 16159 16160fi 16161 16162done 16163 16164 16165 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 16166if test "x$ac_cv_type_size_t" = xyes; then : 16167 16168else 16169 16170cat >>confdefs.h <<_ACEOF 16171#define size_t unsigned int 16172_ACEOF 16173 16174fi 16175 16176 16177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5 16178$as_echo_n "checking for M_PI in math.h... " >&6; } 16179if ${ac_cv_define_M_PI+:} false; then : 16180 $as_echo_n "(cached) " >&6 16181else 16182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16183/* end confdefs.h. */ 16184 16185#include <math.h> 16186#ifdef M_PI 16187YES_IS_DEFINED 16188#endif 16189 16190_ACEOF 16191if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16192 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then : 16193 ac_cv_define_M_PI=yes 16194else 16195 ac_cv_define_M_PI=no 16196fi 16197rm -f conftest* 16198 16199 16200fi 16201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5 16202$as_echo "$ac_cv_define_M_PI" >&6; } 16203 if test "$ac_cv_define_M_PI" = "yes" ; then 16204 16205$as_echo "#define HAVE_M_PI /**/" >>confdefs.h 16206 16207 fi 16208 16209 16210 case "$host" in 16211 *-*-cygwin* | *-*-mingw32*) 16212 ;; 16213 *) 16214 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 16215# for constant arguments. Useless! 16216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 16217$as_echo_n "checking for working alloca.h... " >&6; } 16218if ${ac_cv_working_alloca_h+:} false; then : 16219 $as_echo_n "(cached) " >&6 16220else 16221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16222/* end confdefs.h. */ 16223#include <alloca.h> 16224int 16225main () 16226{ 16227char *p = (char *) alloca (2 * sizeof (int)); 16228 if (p) return 0; 16229 ; 16230 return 0; 16231} 16232_ACEOF 16233if ac_fn_c_try_link "$LINENO"; then : 16234 ac_cv_working_alloca_h=yes 16235else 16236 ac_cv_working_alloca_h=no 16237fi 16238rm -f core conftest.err conftest.$ac_objext \ 16239 conftest$ac_exeext conftest.$ac_ext 16240fi 16241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 16242$as_echo "$ac_cv_working_alloca_h" >&6; } 16243if test $ac_cv_working_alloca_h = yes; then 16244 16245$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 16246 16247fi 16248 16249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 16250$as_echo_n "checking for alloca... " >&6; } 16251if ${ac_cv_func_alloca_works+:} false; then : 16252 $as_echo_n "(cached) " >&6 16253else 16254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16255/* end confdefs.h. */ 16256#ifdef __GNUC__ 16257# define alloca __builtin_alloca 16258#else 16259# ifdef _MSC_VER 16260# include <malloc.h> 16261# define alloca _alloca 16262# else 16263# ifdef HAVE_ALLOCA_H 16264# include <alloca.h> 16265# else 16266# ifdef _AIX 16267 #pragma alloca 16268# else 16269# ifndef alloca /* predefined by HP cc +Olibcalls */ 16270void *alloca (size_t); 16271# endif 16272# endif 16273# endif 16274# endif 16275#endif 16276 16277int 16278main () 16279{ 16280char *p = (char *) alloca (1); 16281 if (p) return 0; 16282 ; 16283 return 0; 16284} 16285_ACEOF 16286if ac_fn_c_try_link "$LINENO"; then : 16287 ac_cv_func_alloca_works=yes 16288else 16289 ac_cv_func_alloca_works=no 16290fi 16291rm -f core conftest.err conftest.$ac_objext \ 16292 conftest$ac_exeext conftest.$ac_ext 16293fi 16294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 16295$as_echo "$ac_cv_func_alloca_works" >&6; } 16296 16297if test $ac_cv_func_alloca_works = yes; then 16298 16299$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 16300 16301else 16302 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 16303# that cause trouble. Some versions do not even contain alloca or 16304# contain a buggy version. If you still want to use their alloca, 16305# use ar to extract alloca.o from them instead of compiling alloca.c. 16306 16307ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 16308 16309$as_echo "#define C_ALLOCA 1" >>confdefs.h 16310 16311 16312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 16313$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 16314if ${ac_cv_os_cray+:} false; then : 16315 $as_echo_n "(cached) " >&6 16316else 16317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16318/* end confdefs.h. */ 16319#if defined CRAY && ! defined CRAY2 16320webecray 16321#else 16322wenotbecray 16323#endif 16324 16325_ACEOF 16326if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16327 $EGREP "webecray" >/dev/null 2>&1; then : 16328 ac_cv_os_cray=yes 16329else 16330 ac_cv_os_cray=no 16331fi 16332rm -f conftest* 16333 16334fi 16335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 16336$as_echo "$ac_cv_os_cray" >&6; } 16337if test $ac_cv_os_cray = yes; then 16338 for ac_func in _getb67 GETB67 getb67; do 16339 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16340ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16341if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 16342 16343cat >>confdefs.h <<_ACEOF 16344#define CRAY_STACKSEG_END $ac_func 16345_ACEOF 16346 16347 break 16348fi 16349 16350 done 16351fi 16352 16353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 16354$as_echo_n "checking stack direction for C alloca... " >&6; } 16355if ${ac_cv_c_stack_direction+:} false; then : 16356 $as_echo_n "(cached) " >&6 16357else 16358 if test "$cross_compiling" = yes; then : 16359 ac_cv_c_stack_direction=0 16360else 16361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16362/* end confdefs.h. */ 16363$ac_includes_default 16364int 16365find_stack_direction (int *addr, int depth) 16366{ 16367 int dir, dummy = 0; 16368 if (! addr) 16369 addr = &dummy; 16370 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; 16371 dir = depth ? find_stack_direction (addr, depth - 1) : 0; 16372 return dir + dummy; 16373} 16374 16375int 16376main (int argc, char **argv) 16377{ 16378 return find_stack_direction (0, argc + !argv + 20) < 0; 16379} 16380_ACEOF 16381if ac_fn_c_try_run "$LINENO"; then : 16382 ac_cv_c_stack_direction=1 16383else 16384 ac_cv_c_stack_direction=-1 16385fi 16386rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16387 conftest.$ac_objext conftest.beam conftest.$ac_ext 16388fi 16389 16390fi 16391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 16392$as_echo "$ac_cv_c_stack_direction" >&6; } 16393cat >>confdefs.h <<_ACEOF 16394#define STACK_DIRECTION $ac_cv_c_stack_direction 16395_ACEOF 16396 16397 16398fi 16399 16400 ;; 16401 esac 16402 16403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 16404$as_echo_n "checking for working memcmp... " >&6; } 16405if ${ac_cv_func_memcmp_working+:} false; then : 16406 $as_echo_n "(cached) " >&6 16407else 16408 if test "$cross_compiling" = yes; then : 16409 ac_cv_func_memcmp_working=no 16410else 16411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16412/* end confdefs.h. */ 16413$ac_includes_default 16414int 16415main () 16416{ 16417 16418 /* Some versions of memcmp are not 8-bit clean. */ 16419 char c0 = '\100', c1 = '\200', c2 = '\201'; 16420 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) 16421 return 1; 16422 16423 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes 16424 or more and with at least one buffer not starting on a 4-byte boundary. 16425 William Lewis provided this test program. */ 16426 { 16427 char foo[21]; 16428 char bar[21]; 16429 int i; 16430 for (i = 0; i < 4; i++) 16431 { 16432 char *a = foo + i; 16433 char *b = bar + i; 16434 strcpy (a, "--------01111111"); 16435 strcpy (b, "--------10000000"); 16436 if (memcmp (a, b, 16) >= 0) 16437 return 1; 16438 } 16439 return 0; 16440 } 16441 16442 ; 16443 return 0; 16444} 16445_ACEOF 16446if ac_fn_c_try_run "$LINENO"; then : 16447 ac_cv_func_memcmp_working=yes 16448else 16449 ac_cv_func_memcmp_working=no 16450fi 16451rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16452 conftest.$ac_objext conftest.beam conftest.$ac_ext 16453fi 16454 16455fi 16456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 16457$as_echo "$ac_cv_func_memcmp_working" >&6; } 16458test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in 16459 *" memcmp.$ac_objext "* ) ;; 16460 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 16461 ;; 16462esac 16463 16464 16465 if test x$ac_cv_func_memcmp_working = xyes; then 16466 16467$as_echo "#define HAVE_MEMCMP 1" >>confdefs.h 16468 16469 fi 16470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5 16471$as_echo_n "checking for working strtod... " >&6; } 16472if ${ac_cv_func_strtod+:} false; then : 16473 $as_echo_n "(cached) " >&6 16474else 16475 if test "$cross_compiling" = yes; then : 16476 ac_cv_func_strtod=no 16477else 16478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16479/* end confdefs.h. */ 16480 16481$ac_includes_default 16482#ifndef strtod 16483double strtod (); 16484#endif 16485int 16486main() 16487{ 16488 { 16489 /* Some versions of Linux strtod mis-parse strings with leading '+'. */ 16490 char *string = " +69"; 16491 char *term; 16492 double value; 16493 value = strtod (string, &term); 16494 if (value != 69 || term != (string + 4)) 16495 return 1; 16496 } 16497 16498 { 16499 /* Under Solaris 2.4, strtod returns the wrong value for the 16500 terminating character under some conditions. */ 16501 char *string = "NaN"; 16502 char *term; 16503 strtod (string, &term); 16504 if (term != string && *(term - 1) == 0) 16505 return 1; 16506 } 16507 return 0; 16508} 16509 16510_ACEOF 16511if ac_fn_c_try_run "$LINENO"; then : 16512 ac_cv_func_strtod=yes 16513else 16514 ac_cv_func_strtod=no 16515fi 16516rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16517 conftest.$ac_objext conftest.beam conftest.$ac_ext 16518fi 16519 16520fi 16521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5 16522$as_echo "$ac_cv_func_strtod" >&6; } 16523if test $ac_cv_func_strtod = no; then 16524 case " $LIBOBJS " in 16525 *" strtod.$ac_objext "* ) ;; 16526 *) LIBOBJS="$LIBOBJS strtod.$ac_objext" 16527 ;; 16528esac 16529 16530ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow" 16531if test "x$ac_cv_func_pow" = xyes; then : 16532 16533fi 16534 16535if test $ac_cv_func_pow = no; then 16536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 16537$as_echo_n "checking for pow in -lm... " >&6; } 16538if ${ac_cv_lib_m_pow+:} false; then : 16539 $as_echo_n "(cached) " >&6 16540else 16541 ac_check_lib_save_LIBS=$LIBS 16542LIBS="-lm $LIBS" 16543cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16544/* end confdefs.h. */ 16545 16546/* Override any GCC internal prototype to avoid an error. 16547 Use char because int might match the return type of a GCC 16548 builtin and then its argument prototype would still apply. */ 16549#ifdef __cplusplus 16550extern "C" 16551#endif 16552char pow (); 16553int 16554main () 16555{ 16556return pow (); 16557 ; 16558 return 0; 16559} 16560_ACEOF 16561if ac_fn_c_try_link "$LINENO"; then : 16562 ac_cv_lib_m_pow=yes 16563else 16564 ac_cv_lib_m_pow=no 16565fi 16566rm -f core conftest.err conftest.$ac_objext \ 16567 conftest$ac_exeext conftest.$ac_ext 16568LIBS=$ac_check_lib_save_LIBS 16569fi 16570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 16571$as_echo "$ac_cv_lib_m_pow" >&6; } 16572if test "x$ac_cv_lib_m_pow" = xyes; then : 16573 POW_LIB=-lm 16574else 16575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5 16576$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} 16577fi 16578 16579fi 16580 16581fi 16582 16583 if test x$ac_cv_func_strtod = xyes; then 16584 16585$as_echo "#define HAVE_STRTOD 1" >>confdefs.h 16586 16587 fi 16588 ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect" 16589if test "x$ac_cv_func_mprotect" = xyes; then : 16590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16591/* end confdefs.h. */ 16592 16593 #include <sys/types.h> 16594 #include <sys/mman.h> 16595 16596int 16597main () 16598{ 16599 16600 16601 ; 16602 return 0; 16603} 16604_ACEOF 16605if ac_fn_c_try_compile "$LINENO"; then : 16606 16607 16608$as_echo "#define HAVE_MPROTECT 1" >>confdefs.h 16609 16610 16611fi 16612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16613fi 16614 16615 for ac_func in malloc calloc realloc free getenv setenv putenv unsetenv qsort abs bcopy memset memcpy memmove strlen strlcpy strlcat strdup _strrev _strupr _strlwr strchr strrchr strstr itoa _ltoa _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp vsscanf vsnprintf fseeko fseeko64 sigaction setjmp nanosleep sysconf sysctlbyname 16616do : 16617 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16618ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16619if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 16620 cat >>confdefs.h <<_ACEOF 16621#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 16622_ACEOF 16623 16624fi 16625done 16626 16627 16628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 16629$as_echo_n "checking for pow in -lm... " >&6; } 16630if ${ac_cv_lib_m_pow+:} false; then : 16631 $as_echo_n "(cached) " >&6 16632else 16633 ac_check_lib_save_LIBS=$LIBS 16634LIBS="-lm $LIBS" 16635cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16636/* end confdefs.h. */ 16637 16638/* Override any GCC internal prototype to avoid an error. 16639 Use char because int might match the return type of a GCC 16640 builtin and then its argument prototype would still apply. */ 16641#ifdef __cplusplus 16642extern "C" 16643#endif 16644char pow (); 16645int 16646main () 16647{ 16648return pow (); 16649 ; 16650 return 0; 16651} 16652_ACEOF 16653if ac_fn_c_try_link "$LINENO"; then : 16654 ac_cv_lib_m_pow=yes 16655else 16656 ac_cv_lib_m_pow=no 16657fi 16658rm -f core conftest.err conftest.$ac_objext \ 16659 conftest$ac_exeext conftest.$ac_ext 16660LIBS=$ac_check_lib_save_LIBS 16661fi 16662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 16663$as_echo "$ac_cv_lib_m_pow" >&6; } 16664if test "x$ac_cv_lib_m_pow" = xyes; then : 16665 LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm" 16666fi 16667 16668 for ac_func in atan atan2 acos asin ceil copysign cos cosf fabs floor log pow scalbn sin sinf sqrt sqrtf tan tanf 16669do : 16670 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16671ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16672if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 16673 cat >>confdefs.h <<_ACEOF 16674#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 16675_ACEOF 16676 16677fi 16678done 16679 16680 16681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5 16682$as_echo_n "checking for iconv_open in -liconv... " >&6; } 16683if ${ac_cv_lib_iconv_iconv_open+:} false; then : 16684 $as_echo_n "(cached) " >&6 16685else 16686 ac_check_lib_save_LIBS=$LIBS 16687LIBS="-liconv $LIBS" 16688cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16689/* end confdefs.h. */ 16690 16691/* Override any GCC internal prototype to avoid an error. 16692 Use char because int might match the return type of a GCC 16693 builtin and then its argument prototype would still apply. */ 16694#ifdef __cplusplus 16695extern "C" 16696#endif 16697char iconv_open (); 16698int 16699main () 16700{ 16701return iconv_open (); 16702 ; 16703 return 0; 16704} 16705_ACEOF 16706if ac_fn_c_try_link "$LINENO"; then : 16707 ac_cv_lib_iconv_iconv_open=yes 16708else 16709 ac_cv_lib_iconv_iconv_open=no 16710fi 16711rm -f core conftest.err conftest.$ac_objext \ 16712 conftest$ac_exeext conftest.$ac_ext 16713LIBS=$ac_check_lib_save_LIBS 16714fi 16715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5 16716$as_echo "$ac_cv_lib_iconv_iconv_open" >&6; } 16717if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then : 16718 LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv" 16719fi 16720 16721 for ac_func in iconv 16722do : 16723 ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv" 16724if test "x$ac_cv_func_iconv" = xyes; then : 16725 cat >>confdefs.h <<_ACEOF 16726#define HAVE_ICONV 1 16727_ACEOF 16728 16729fi 16730done 16731 16732 16733 ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h> 16734" 16735if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then : 16736 $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h 16737 16738fi 16739 16740fi 16741 16742 16743# Check whether --enable-gcc-atomics was given. 16744if test "${enable_gcc_atomics+set}" = set; then : 16745 enableval=$enable_gcc_atomics; 16746else 16747 enable_gcc_atomics=yes 16748fi 16749 16750if test x$enable_gcc_atomics = xyes; then 16751 have_gcc_atomics=no 16752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5 16753$as_echo_n "checking for GCC builtin atomic operations... " >&6; } 16754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16755/* end confdefs.h. */ 16756 16757 16758int 16759main () 16760{ 16761 16762 int a; 16763 void *x, *y, *z; 16764 __sync_lock_test_and_set(&a, 4); 16765 __sync_lock_test_and_set(&x, y); 16766 __sync_fetch_and_add(&a, 1); 16767 __sync_bool_compare_and_swap(&a, 5, 10); 16768 __sync_bool_compare_and_swap(&x, y, z); 16769 16770 ; 16771 return 0; 16772} 16773_ACEOF 16774if ac_fn_c_try_link "$LINENO"; then : 16775 16776 have_gcc_atomics=yes 16777 16778fi 16779rm -f core conftest.err conftest.$ac_objext \ 16780 conftest$ac_exeext conftest.$ac_ext 16781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5 16782$as_echo "$have_gcc_atomics" >&6; } 16783 16784 if test x$have_gcc_atomics = xyes; then 16785 16786$as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h 16787 16788 else 16789 # See if we have the minimum operation needed for GCC atomics 16790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16791/* end confdefs.h. */ 16792 16793 16794int 16795main () 16796{ 16797 16798 int a; 16799 __sync_lock_test_and_set(&a, 1); 16800 __sync_lock_release(&a); 16801 16802 ; 16803 return 0; 16804} 16805_ACEOF 16806if ac_fn_c_try_link "$LINENO"; then : 16807 16808 have_gcc_sync_lock_test_and_set=yes 16809 16810fi 16811rm -f core conftest.err conftest.$ac_objext \ 16812 conftest$ac_exeext conftest.$ac_ext 16813 if test x$have_gcc_sync_lock_test_and_set = xyes; then 16814 16815$as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h 16816 16817 fi 16818 fi 16819fi 16820 16821# Standard C sources 16822SOURCES="$SOURCES $srcdir/src/*.c" 16823SOURCES="$SOURCES $srcdir/src/atomic/*.c" 16824SOURCES="$SOURCES $srcdir/src/audio/*.c" 16825SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c" 16826SOURCES="$SOURCES $srcdir/src/dynapi/*.c" 16827SOURCES="$SOURCES $srcdir/src/events/*.c" 16828SOURCES="$SOURCES $srcdir/src/file/*.c" 16829SOURCES="$SOURCES $srcdir/src/haptic/*.c" 16830SOURCES="$SOURCES $srcdir/src/joystick/*.c" 16831SOURCES="$SOURCES $srcdir/src/libm/*.c" 16832SOURCES="$SOURCES $srcdir/src/power/*.c" 16833#SOURCES="$SOURCES $srcdir/src/filesystem/*.c" 16834SOURCES="$SOURCES $srcdir/src/render/*.c" 16835SOURCES="$SOURCES $srcdir/src/render/*/*.c" 16836SOURCES="$SOURCES $srcdir/src/stdlib/*.c" 16837SOURCES="$SOURCES $srcdir/src/thread/*.c" 16838SOURCES="$SOURCES $srcdir/src/timer/*.c" 16839SOURCES="$SOURCES $srcdir/src/video/*.c" 16840 16841 16842# Check whether --enable-atomic was given. 16843if test "${enable_atomic+set}" = set; then : 16844 enableval=$enable_atomic; 16845else 16846 enable_atomic=yes 16847fi 16848 16849if test x$enable_atomic != xyes; then 16850 16851$as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h 16852 16853else 16854 SUMMARY_modules="${SUMMARY_modules} atomic" 16855fi 16856# Check whether --enable-audio was given. 16857if test "${enable_audio+set}" = set; then : 16858 enableval=$enable_audio; 16859else 16860 enable_audio=yes 16861fi 16862 16863if test x$enable_audio != xyes; then 16864 16865$as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h 16866 16867else 16868 SUMMARY_modules="${SUMMARY_modules} audio" 16869fi 16870# Check whether --enable-video was given. 16871if test "${enable_video+set}" = set; then : 16872 enableval=$enable_video; 16873else 16874 enable_video=yes 16875fi 16876 16877if test x$enable_video != xyes; then 16878 16879$as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h 16880 16881else 16882 SUMMARY_modules="${SUMMARY_modules} video" 16883fi 16884# Check whether --enable-render was given. 16885if test "${enable_render+set}" = set; then : 16886 enableval=$enable_render; 16887else 16888 enable_render=yes 16889fi 16890 16891if test x$enable_render != xyes; then 16892 16893$as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h 16894 16895else 16896 SUMMARY_modules="${SUMMARY_modules} render" 16897fi 16898# Check whether --enable-events was given. 16899if test "${enable_events+set}" = set; then : 16900 enableval=$enable_events; 16901else 16902 enable_events=yes 16903fi 16904 16905if test x$enable_events != xyes; then 16906 16907$as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h 16908 16909else 16910 SUMMARY_modules="${SUMMARY_modules} events" 16911fi 16912# Check whether --enable-joystick was given. 16913if test "${enable_joystick+set}" = set; then : 16914 enableval=$enable_joystick; 16915else 16916 enable_joystick=yes 16917fi 16918 16919if test x$enable_joystick != xyes; then 16920 16921$as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h 16922 16923else 16924 SUMMARY_modules="${SUMMARY_modules} joystick" 16925fi 16926# Check whether --enable-haptic was given. 16927if test "${enable_haptic+set}" = set; then : 16928 enableval=$enable_haptic; 16929else 16930 enable_haptic=yes 16931fi 16932 16933if test x$enable_haptic != xyes; then 16934 16935$as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h 16936 16937else 16938 SUMMARY_modules="${SUMMARY_modules} haptic" 16939fi 16940# Check whether --enable-power was given. 16941if test "${enable_power+set}" = set; then : 16942 enableval=$enable_power; 16943else 16944 enable_power=yes 16945fi 16946 16947if test x$enable_power != xyes; then 16948 16949$as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h 16950 16951else 16952 SUMMARY_modules="${SUMMARY_modules} power" 16953fi 16954# Check whether --enable-filesystem was given. 16955if test "${enable_filesystem+set}" = set; then : 16956 enableval=$enable_filesystem; 16957else 16958 enable_filesystem=yes 16959fi 16960 16961if test x$enable_filesystem != xyes; then 16962 16963$as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h 16964 16965else 16966 SUMMARY_modules="${SUMMARY_modules} filesystem" 16967fi 16968# Check whether --enable-threads was given. 16969if test "${enable_threads+set}" = set; then : 16970 enableval=$enable_threads; 16971else 16972 enable_threads=yes 16973fi 16974 16975if test x$enable_threads != xyes; then 16976 16977$as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h 16978 16979else 16980 SUMMARY_modules="${SUMMARY_modules} threads" 16981fi 16982# Check whether --enable-timers was given. 16983if test "${enable_timers+set}" = set; then : 16984 enableval=$enable_timers; 16985else 16986 enable_timers=yes 16987fi 16988 16989if test x$enable_timers != xyes; then 16990 16991$as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h 16992 16993else 16994 SUMMARY_modules="${SUMMARY_modules} timers" 16995fi 16996# Check whether --enable-file was given. 16997if test "${enable_file+set}" = set; then : 16998 enableval=$enable_file; 16999else 17000 enable_file=yes 17001fi 17002 17003if test x$enable_file != xyes; then 17004 17005$as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h 17006 17007else 17008 SUMMARY_modules="${SUMMARY_modules} file" 17009fi 17010# Check whether --enable-loadso was given. 17011if test "${enable_loadso+set}" = set; then : 17012 enableval=$enable_loadso; 17013else 17014 enable_loadso=yes 17015fi 17016 17017if test x$enable_loadso != xyes; then 17018 17019$as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h 17020 17021else 17022 SUMMARY_modules="${SUMMARY_modules} loadso" 17023fi 17024# Check whether --enable-cpuinfo was given. 17025if test "${enable_cpuinfo+set}" = set; then : 17026 enableval=$enable_cpuinfo; 17027else 17028 enable_cpuinfo=yes 17029fi 17030 17031if test x$enable_cpuinfo != xyes; then 17032 17033$as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h 17034 17035else 17036 SUMMARY_modules="${SUMMARY_modules} cpuinfo" 17037fi 17038# Check whether --enable-assembly was given. 17039if test "${enable_assembly+set}" = set; then : 17040 enableval=$enable_assembly; 17041else 17042 enable_assembly=yes 17043fi 17044 17045if test x$enable_assembly = xyes; then 17046 SUMMARY_modules="${SUMMARY_modules} assembly" 17047 17048 17049$as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h 17050 17051 17052 # Make sure that we don't generate floating point code that would 17053 # cause illegal instruction exceptions on older processors 17054 case "$host" in 17055 *-*-darwin*) 17056 # Don't need to worry about Apple hardware, it's all SSE capable 17057 default_ssemath=yes 17058 ;; 17059 *64-*-*) 17060 # x86 64-bit architectures all have SSE instructions 17061 default_ssemath=yes 17062 ;; 17063 *) 17064 default_ssemath=no 17065 ;; 17066 esac 17067 # Check whether --enable-ssemath was given. 17068if test "${enable_ssemath+set}" = set; then : 17069 enableval=$enable_ssemath; 17070else 17071 enable_ssemath=$default_ssemath 17072fi 17073 17074 if test x$enable_ssemath = xno; then 17075 if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes; then 17076 EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387" 17077 fi 17078 fi 17079 17080 # Check whether --enable-mmx was given. 17081if test "${enable_mmx+set}" = set; then : 17082 enableval=$enable_mmx; 17083else 17084 enable_mmx=yes 17085fi 17086 17087 if test x$enable_mmx = xyes; then 17088 save_CFLAGS="$CFLAGS" 17089 have_gcc_mmx=no 17090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5 17091$as_echo_n "checking for GCC -mmmx option... " >&6; } 17092 mmx_CFLAGS="-mmmx" 17093 CFLAGS="$save_CFLAGS $mmx_CFLAGS" 17094 17095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17096/* end confdefs.h. */ 17097 17098 #ifdef __MINGW32__ 17099 #include <_mingw.h> 17100 #ifdef __MINGW64_VERSION_MAJOR 17101 #include <intrin.h> 17102 #else 17103 #include <mmintrin.h> 17104 #endif 17105 #else 17106 #include <mmintrin.h> 17107 #endif 17108 #ifndef __MMX__ 17109 #error Assembler CPP flag not enabled 17110 #endif 17111 17112int 17113main () 17114{ 17115 17116 17117 ; 17118 return 0; 17119} 17120_ACEOF 17121if ac_fn_c_try_compile "$LINENO"; then : 17122 17123 have_gcc_mmx=yes 17124 17125fi 17126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5 17128$as_echo "$have_gcc_mmx" >&6; } 17129 CFLAGS="$save_CFLAGS" 17130 17131 if test x$have_gcc_mmx = xyes; then 17132 EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS" 17133 SUMMARY_math="${SUMMARY_math} mmx" 17134 fi 17135 fi 17136 17137 # Check whether --enable-3dnow was given. 17138if test "${enable_3dnow+set}" = set; then : 17139 enableval=$enable_3dnow; 17140else 17141 enable_3dnow=yes 17142fi 17143 17144 if test x$enable_3dnow = xyes; then 17145 save_CFLAGS="$CFLAGS" 17146 have_gcc_3dnow=no 17147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5 17148$as_echo_n "checking for GCC -m3dnow option... " >&6; } 17149 amd3dnow_CFLAGS="-m3dnow" 17150 CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS" 17151 17152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17153/* end confdefs.h. */ 17154 17155 #include <mm3dnow.h> 17156 #ifndef __3dNOW__ 17157 #error Assembler CPP flag not enabled 17158 #endif 17159 17160int 17161main () 17162{ 17163 17164 void *p = 0; 17165 _m_prefetch(p); 17166 17167 ; 17168 return 0; 17169} 17170_ACEOF 17171if ac_fn_c_try_link "$LINENO"; then : 17172 17173 have_gcc_3dnow=yes 17174 17175fi 17176rm -f core conftest.err conftest.$ac_objext \ 17177 conftest$ac_exeext conftest.$ac_ext 17178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5 17179$as_echo "$have_gcc_3dnow" >&6; } 17180 CFLAGS="$save_CFLAGS" 17181 17182 if test x$have_gcc_3dnow = xyes; then 17183 EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS" 17184 SUMMARY_math="${SUMMARY_math} 3dnow" 17185 fi 17186 fi 17187 17188 # Check whether --enable-sse was given. 17189if test "${enable_sse+set}" = set; then : 17190 enableval=$enable_sse; 17191else 17192 enable_sse=yes 17193fi 17194 17195 if test x$enable_sse = xyes; then 17196 save_CFLAGS="$CFLAGS" 17197 have_gcc_sse=no 17198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5 17199$as_echo_n "checking for GCC -msse option... " >&6; } 17200 sse_CFLAGS="-msse" 17201 CFLAGS="$save_CFLAGS $sse_CFLAGS" 17202 17203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17204/* end confdefs.h. */ 17205 17206 #ifdef __MINGW32__ 17207 #include <_mingw.h> 17208 #ifdef __MINGW64_VERSION_MAJOR 17209 #include <intrin.h> 17210 #else 17211 #include <xmmintrin.h> 17212 #endif 17213 #else 17214 #include <xmmintrin.h> 17215 #endif 17216 #ifndef __SSE__ 17217 #error Assembler CPP flag not enabled 17218 #endif 17219 17220int 17221main () 17222{ 17223 17224 17225 ; 17226 return 0; 17227} 17228_ACEOF 17229if ac_fn_c_try_compile "$LINENO"; then : 17230 17231 have_gcc_sse=yes 17232 17233fi 17234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5 17236$as_echo "$have_gcc_sse" >&6; } 17237 CFLAGS="$save_CFLAGS" 17238 17239 if test x$have_gcc_sse = xyes; then 17240 EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS" 17241 SUMMARY_math="${SUMMARY_math} sse" 17242 fi 17243 fi 17244 17245 # Check whether --enable-sse2 was given. 17246if test "${enable_sse2+set}" = set; then : 17247 enableval=$enable_sse2; 17248else 17249 enable_sse2=$default_ssemath 17250fi 17251 17252 if test x$enable_sse2 = xyes; then 17253 save_CFLAGS="$CFLAGS" 17254 have_gcc_sse2=no 17255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5 17256$as_echo_n "checking for GCC -msse2 option... " >&6; } 17257 sse2_CFLAGS="-msse2" 17258 CFLAGS="$save_CFLAGS $sse2_CFLAGS" 17259 17260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17261/* end confdefs.h. */ 17262 17263 #ifdef __MINGW32__ 17264 #include <_mingw.h> 17265 #ifdef __MINGW64_VERSION_MAJOR 17266 #include <intrin.h> 17267 #else 17268 #include <emmintrin.h> 17269 #endif 17270 #else 17271 #include <emmintrin.h> 17272 #endif 17273 #ifndef __SSE2__ 17274 #error Assembler CPP flag not enabled 17275 #endif 17276 17277int 17278main () 17279{ 17280 17281 17282 ; 17283 return 0; 17284} 17285_ACEOF 17286if ac_fn_c_try_compile "$LINENO"; then : 17287 17288 have_gcc_sse2=yes 17289 17290fi 17291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5 17293$as_echo "$have_gcc_sse2" >&6; } 17294 CFLAGS="$save_CFLAGS" 17295 17296 if test x$have_gcc_sse2 = xyes; then 17297 EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS" 17298 SUMMARY_math="${SUMMARY_math} sse2" 17299 fi 17300 fi 17301 17302 # Check whether --enable-altivec was given. 17303if test "${enable_altivec+set}" = set; then : 17304 enableval=$enable_altivec; 17305else 17306 enable_altivec=yes 17307fi 17308 17309 if test x$enable_altivec = xyes; then 17310 save_CFLAGS="$CFLAGS" 17311 have_gcc_altivec=no 17312 have_altivec_h_hdr=no 17313 altivec_CFLAGS="-maltivec" 17314 CFLAGS="$save_CFLAGS $altivec_CFLAGS" 17315 17316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5 17317$as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; } 17318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17319/* end confdefs.h. */ 17320 17321 #include <altivec.h> 17322 vector unsigned int vzero() { 17323 return vec_splat_u32(0); 17324 } 17325 17326int 17327main () 17328{ 17329 17330 17331 ; 17332 return 0; 17333} 17334_ACEOF 17335if ac_fn_c_try_compile "$LINENO"; then : 17336 17337 have_gcc_altivec=yes 17338 have_altivec_h_hdr=yes 17339 17340fi 17341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5 17343$as_echo "$have_gcc_altivec" >&6; } 17344 17345 if test x$have_gcc_altivec = xno; then 17346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5 17347$as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; } 17348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17349/* end confdefs.h. */ 17350 17351 vector unsigned int vzero() { 17352 return vec_splat_u32(0); 17353 } 17354 17355int 17356main () 17357{ 17358 17359 17360 ; 17361 return 0; 17362} 17363_ACEOF 17364if ac_fn_c_try_compile "$LINENO"; then : 17365 17366 have_gcc_altivec=yes 17367 17368fi 17369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5 17371$as_echo "$have_gcc_altivec" >&6; } 17372 fi 17373 17374 if test x$have_gcc_altivec = xno; then 17375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5 17376$as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; } 17377 altivec_CFLAGS="-faltivec" 17378 CFLAGS="$save_CFLAGS $altivec_CFLAGS" 17379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17380/* end confdefs.h. */ 17381 17382 #include <altivec.h> 17383 vector unsigned int vzero() { 17384 return vec_splat_u32(0); 17385 } 17386 17387int 17388main () 17389{ 17390 17391 17392 ; 17393 return 0; 17394} 17395_ACEOF 17396if ac_fn_c_try_compile "$LINENO"; then : 17397 17398 have_gcc_altivec=yes 17399 have_altivec_h_hdr=yes 17400 17401fi 17402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5 17404$as_echo "$have_gcc_altivec" >&6; } 17405 fi 17406 17407 if test x$have_gcc_altivec = xno; then 17408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5 17409$as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; } 17410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17411/* end confdefs.h. */ 17412 17413 vector unsigned int vzero() { 17414 return vec_splat_u32(0); 17415 } 17416 17417int 17418main () 17419{ 17420 17421 17422 ; 17423 return 0; 17424} 17425_ACEOF 17426if ac_fn_c_try_compile "$LINENO"; then : 17427 17428 have_gcc_altivec=yes 17429 17430fi 17431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5 17433$as_echo "$have_gcc_altivec" >&6; } 17434 fi 17435 CFLAGS="$save_CFLAGS" 17436 17437 if test x$have_gcc_altivec = xyes; then 17438 17439$as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h 17440 17441 if test x$have_altivec_h_hdr = xyes; then 17442 17443$as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h 17444 17445 fi 17446 EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS" 17447 SUMMARY_math="${SUMMARY_math} altivec" 17448 fi 17449 fi 17450fi 17451 17452CheckOSS() 17453{ 17454 # Check whether --enable-oss was given. 17455if test "${enable_oss+set}" = set; then : 17456 enableval=$enable_oss; 17457else 17458 enable_oss=maybe 17459fi 17460 17461 17462 # OpenBSD "has" OSS, but it's not really for app use. They want you to 17463 # use sndio instead. So on there, we default to disabled. You can force 17464 # it on if you really want, though. 17465 if test x$enable_oss = xmaybe; then 17466 enable_oss=yes 17467 case "$host" in 17468 *-*-openbsd*) 17469 enable_oss=no;; 17470 esac 17471 fi 17472 17473 if test x$enable_audio = xyes -a x$enable_oss = xyes; then 17474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5 17475$as_echo_n "checking for OSS audio support... " >&6; } 17476 have_oss=no 17477 if test x$have_oss != xyes; then 17478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17479/* end confdefs.h. */ 17480 17481 #include <sys/soundcard.h> 17482 17483int 17484main () 17485{ 17486 17487 int arg = SNDCTL_DSP_SETFRAGMENT; 17488 17489 ; 17490 return 0; 17491} 17492_ACEOF 17493if ac_fn_c_try_compile "$LINENO"; then : 17494 17495 have_oss=yes 17496 17497fi 17498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17499 fi 17500 if test x$have_oss != xyes; then 17501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17502/* end confdefs.h. */ 17503 17504 #include <soundcard.h> 17505 17506int 17507main () 17508{ 17509 17510 int arg = SNDCTL_DSP_SETFRAGMENT; 17511 17512 ; 17513 return 0; 17514} 17515_ACEOF 17516if ac_fn_c_try_compile "$LINENO"; then : 17517 17518 have_oss=yes 17519 17520$as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h 17521 17522 17523fi 17524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17525 fi 17526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5 17527$as_echo "$have_oss" >&6; } 17528 if test x$have_oss = xyes; then 17529 SUMMARY_audio="${SUMMARY_audio} oss" 17530 17531$as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h 17532 17533 SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c" 17534 have_audio=yes 17535 17536 # We may need to link with ossaudio emulation library 17537 case "$host" in 17538 *-*-openbsd*|*-*-netbsd*) 17539 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";; 17540 esac 17541 fi 17542 fi 17543} 17544 17545CheckALSA() 17546{ 17547 # Check whether --enable-alsa was given. 17548if test "${enable_alsa+set}" = set; then : 17549 enableval=$enable_alsa; 17550else 17551 enable_alsa=yes 17552fi 17553 17554 if test x$enable_audio = xyes -a x$enable_alsa = xyes; then 17555 alsa_save_CFLAGS="$CFLAGS" 17556alsa_save_LDFLAGS="$LDFLAGS" 17557alsa_save_LIBS="$LIBS" 17558alsa_found=yes 17559 17560 17561# Check whether --with-alsa-prefix was given. 17562if test "${with_alsa_prefix+set}" = set; then : 17563 withval=$with_alsa_prefix; alsa_prefix="$withval" 17564else 17565 alsa_prefix="" 17566fi 17567 17568 17569 17570# Check whether --with-alsa-inc-prefix was given. 17571if test "${with_alsa_inc_prefix+set}" = set; then : 17572 withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval" 17573else 17574 alsa_inc_prefix="" 17575fi 17576 17577 17578# Check whether --enable-alsatest was given. 17579if test "${enable_alsatest+set}" = set; then : 17580 enableval=$enable_alsatest; enable_alsatest="$enableval" 17581else 17582 enable_alsatest=yes 17583fi 17584 17585 17586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5 17587$as_echo_n "checking for ALSA CFLAGS... " >&6; } 17588if test "$alsa_inc_prefix" != "" ; then 17589 ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix" 17590 CFLAGS="$CFLAGS -I$alsa_inc_prefix" 17591fi 17592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5 17593$as_echo "$ALSA_CFLAGS" >&6; } 17594 17595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5 17596$as_echo_n "checking for ALSA LDFLAGS... " >&6; } 17597if test "$alsa_prefix" != "" ; then 17598 ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix" 17599 LDFLAGS="$LDFLAGS $ALSA_LIBS" 17600fi 17601 17602ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread" 17603LIBS=`echo $LIBS | sed 's/-lm//'` 17604LIBS=`echo $LIBS | sed 's/-ldl//'` 17605LIBS=`echo $LIBS | sed 's/-lpthread//'` 17606LIBS=`echo $LIBS | sed 's/ //'` 17607LIBS="$ALSA_LIBS $LIBS" 17608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5 17609$as_echo "$ALSA_LIBS" >&6; } 17610 17611min_alsa_version=1.0.11 17612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5 17613$as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; } 17614no_alsa="" 17615 alsa_min_major_version=`echo $min_alsa_version | \ 17616 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 17617 alsa_min_minor_version=`echo $min_alsa_version | \ 17618 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 17619 alsa_min_micro_version=`echo $min_alsa_version | \ 17620 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 17621 17622 17623ac_ext=c 17624ac_cpp='$CPP $CPPFLAGS' 17625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17627ac_compiler_gnu=$ac_cv_c_compiler_gnu 17628 17629cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17630/* end confdefs.h. */ 17631 17632#include <alsa/asoundlib.h> 17633 17634int 17635main () 17636{ 17637 17638/* ensure backward compatibility */ 17639#if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR) 17640#define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR 17641#endif 17642#if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR) 17643#define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR 17644#endif 17645#if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR) 17646#define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR 17647#endif 17648 17649# if(SND_LIB_MAJOR > $alsa_min_major_version) 17650 exit(0); 17651# else 17652# if(SND_LIB_MAJOR < $alsa_min_major_version) 17653# error not present 17654# endif 17655 17656# if(SND_LIB_MINOR > $alsa_min_minor_version) 17657 exit(0); 17658# else 17659# if(SND_LIB_MINOR < $alsa_min_minor_version) 17660# error not present 17661# endif 17662 17663# if(SND_LIB_SUBMINOR < $alsa_min_micro_version) 17664# error not present 17665# endif 17666# endif 17667# endif 17668exit(0); 17669 17670 ; 17671 return 0; 17672} 17673_ACEOF 17674if ac_fn_c_try_compile "$LINENO"; then : 17675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5 17676$as_echo "found." >&6; } 17677else 17678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5 17679$as_echo "not present." >&6; } 17680 17681 alsa_found=no 17682 17683fi 17684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17685ac_ext=c 17686ac_cpp='$CPP $CPPFLAGS' 17687ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17688ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17689ac_compiler_gnu=$ac_cv_c_compiler_gnu 17690 17691 17692if test "x$enable_alsatest" = "xyes"; then 17693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5 17694$as_echo_n "checking for snd_ctl_open in -lasound... " >&6; } 17695if ${ac_cv_lib_asound_snd_ctl_open+:} false; then : 17696 $as_echo_n "(cached) " >&6 17697else 17698 ac_check_lib_save_LIBS=$LIBS 17699LIBS="-lasound $LIBS" 17700cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17701/* end confdefs.h. */ 17702 17703/* Override any GCC internal prototype to avoid an error. 17704 Use char because int might match the return type of a GCC 17705 builtin and then its argument prototype would still apply. */ 17706#ifdef __cplusplus 17707extern "C" 17708#endif 17709char snd_ctl_open (); 17710int 17711main () 17712{ 17713return snd_ctl_open (); 17714 ; 17715 return 0; 17716} 17717_ACEOF 17718if ac_fn_c_try_link "$LINENO"; then : 17719 ac_cv_lib_asound_snd_ctl_open=yes 17720else 17721 ac_cv_lib_asound_snd_ctl_open=no 17722fi 17723rm -f core conftest.err conftest.$ac_objext \ 17724 conftest$ac_exeext conftest.$ac_ext 17725LIBS=$ac_check_lib_save_LIBS 17726fi 17727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5 17728$as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; } 17729if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then : 17730 cat >>confdefs.h <<_ACEOF 17731#define HAVE_LIBASOUND 1 17732_ACEOF 17733 17734 LIBS="-lasound $LIBS" 17735 17736else 17737 17738 alsa_found=no 17739 17740fi 17741 17742fi 17743 17744if test "x$alsa_found" = "xyes" ; then 17745 have_alsa=yes 17746 LIBS=`echo $LIBS | sed 's/-lasound//g'` 17747 LIBS=`echo $LIBS | sed 's/ //'` 17748 LIBS="-lasound $LIBS" 17749fi 17750if test "x$alsa_found" = "xno" ; then 17751 have_alsa=no 17752 CFLAGS="$alsa_save_CFLAGS" 17753 LDFLAGS="$alsa_save_LDFLAGS" 17754 LIBS="$alsa_save_LIBS" 17755 ALSA_CFLAGS="" 17756 ALSA_LIBS="" 17757fi 17758 17759 17760 17761 17762 # Restore all flags from before the ALSA detection runs 17763 CFLAGS="$alsa_save_CFLAGS" 17764 LDFLAGS="$alsa_save_LDFLAGS" 17765 LIBS="$alsa_save_LIBS" 17766 if test x$have_alsa = xyes; then 17767 # Check whether --enable-alsa-shared was given. 17768if test "${enable_alsa_shared+set}" = set; then : 17769 enableval=$enable_alsa_shared; 17770else 17771 enable_alsa_shared=yes 17772fi 17773 17774 alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'` 17775 17776 17777$as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h 17778 17779 SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c" 17780 EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS" 17781 if test x$have_loadso != xyes && \ 17782 test x$enable_alsa_shared = xyes; then 17783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5 17784$as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;} 17785 fi 17786 if test x$have_loadso = xyes && \ 17787 test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then 17788 echo "-- dynamic libasound -> $alsa_lib" 17789 17790cat >>confdefs.h <<_ACEOF 17791#define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib" 17792_ACEOF 17793 17794 SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)" 17795 else 17796 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS" 17797 SUMMARY_audio="${SUMMARY_audio} alsa" 17798 fi 17799 have_audio=yes 17800 fi 17801 fi 17802} 17803 17804CheckESD() 17805{ 17806 # Check whether --enable-esd was given. 17807if test "${enable_esd+set}" = set; then : 17808 enableval=$enable_esd; 17809else 17810 enable_esd=yes 17811fi 17812 17813 if test x$enable_audio = xyes -a x$enable_esd = xyes; then 17814 17815# Check whether --with-esd-prefix was given. 17816if test "${with_esd_prefix+set}" = set; then : 17817 withval=$with_esd_prefix; esd_prefix="$withval" 17818else 17819 esd_prefix="" 17820fi 17821 17822 17823# Check whether --with-esd-exec-prefix was given. 17824if test "${with_esd_exec_prefix+set}" = set; then : 17825 withval=$with_esd_exec_prefix; esd_exec_prefix="$withval" 17826else 17827 esd_exec_prefix="" 17828fi 17829 17830# Check whether --enable-esdtest was given. 17831if test "${enable_esdtest+set}" = set; then : 17832 enableval=$enable_esdtest; 17833else 17834 enable_esdtest=yes 17835fi 17836 17837 17838 if test x$esd_exec_prefix != x ; then 17839 esd_args="$esd_args --exec-prefix=$esd_exec_prefix" 17840 if test x${ESD_CONFIG+set} != xset ; then 17841 ESD_CONFIG=$esd_exec_prefix/bin/esd-config 17842 fi 17843 fi 17844 if test x$esd_prefix != x ; then 17845 esd_args="$esd_args --prefix=$esd_prefix" 17846 if test x${ESD_CONFIG+set} != xset ; then 17847 ESD_CONFIG=$esd_prefix/bin/esd-config 17848 fi 17849 fi 17850 17851 # Extract the first word of "esd-config", so it can be a program name with args. 17852set dummy esd-config; ac_word=$2 17853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17854$as_echo_n "checking for $ac_word... " >&6; } 17855if ${ac_cv_path_ESD_CONFIG+:} false; then : 17856 $as_echo_n "(cached) " >&6 17857else 17858 case $ESD_CONFIG in 17859 [\\/]* | ?:[\\/]*) 17860 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path. 17861 ;; 17862 *) 17863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17864for as_dir in $PATH 17865do 17866 IFS=$as_save_IFS 17867 test -z "$as_dir" && as_dir=. 17868 for ac_exec_ext in '' $ac_executable_extensions; do 17869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17870 ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext" 17871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17872 break 2 17873 fi 17874done 17875 done 17876IFS=$as_save_IFS 17877 17878 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no" 17879 ;; 17880esac 17881fi 17882ESD_CONFIG=$ac_cv_path_ESD_CONFIG 17883if test -n "$ESD_CONFIG"; then 17884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5 17885$as_echo "$ESD_CONFIG" >&6; } 17886else 17887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17888$as_echo "no" >&6; } 17889fi 17890 17891 17892 min_esd_version=0.2.8 17893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5 17894$as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; } 17895 no_esd="" 17896 if test "$ESD_CONFIG" = "no" ; then 17897 no_esd=yes 17898 else 17899 ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags` 17900 ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs` 17901 17902 esd_major_version=`$ESD_CONFIG $esd_args --version | \ 17903 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 17904 esd_minor_version=`$ESD_CONFIG $esd_args --version | \ 17905 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 17906 esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \ 17907 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 17908 if test "x$enable_esdtest" = "xyes" ; then 17909 ac_save_CFLAGS="$CFLAGS" 17910 ac_save_LIBS="$LIBS" 17911 CFLAGS="$CFLAGS $ESD_CFLAGS" 17912 LIBS="$LIBS $ESD_LIBS" 17913 rm -f conf.esdtest 17914 if test "$cross_compiling" = yes; then : 17915 echo $ac_n "cross compiling; assumed OK... $ac_c" 17916else 17917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17918/* end confdefs.h. */ 17919 17920#include <stdio.h> 17921#include <stdlib.h> 17922#include <string.h> 17923#include <esd.h> 17924 17925char* 17926my_strdup (char *str) 17927{ 17928 char *new_str; 17929 17930 if (str) 17931 { 17932 new_str = malloc ((strlen (str) + 1) * sizeof(char)); 17933 strcpy (new_str, str); 17934 } 17935 else 17936 new_str = NULL; 17937 17938 return new_str; 17939} 17940 17941int main () 17942{ 17943 int major, minor, micro; 17944 char *tmp_version; 17945 17946 system ("touch conf.esdtest"); 17947 17948 /* HP/UX 9 (%@#!) writes to sscanf strings */ 17949 tmp_version = my_strdup("$min_esd_version"); 17950 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 17951 printf("%s, bad version string\n", "$min_esd_version"); 17952 exit(1); 17953 } 17954 17955 if (($esd_major_version > major) || 17956 (($esd_major_version == major) && ($esd_minor_version > minor)) || 17957 (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro))) 17958 { 17959 return 0; 17960 } 17961 else 17962 { 17963 printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version); 17964 printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro); 17965 printf("*** best to upgrade to the required version.\n"); 17966 printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n"); 17967 printf("*** to point to the correct copy of esd-config, and remove the file\n"); 17968 printf("*** config.cache before re-running configure\n"); 17969 return 1; 17970 } 17971} 17972 17973 17974_ACEOF 17975if ac_fn_c_try_run "$LINENO"; then : 17976 17977else 17978 no_esd=yes 17979fi 17980rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17981 conftest.$ac_objext conftest.beam conftest.$ac_ext 17982fi 17983 17984 CFLAGS="$ac_save_CFLAGS" 17985 LIBS="$ac_save_LIBS" 17986 fi 17987 fi 17988 if test "x$no_esd" = x ; then 17989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17990$as_echo "yes" >&6; } 17991 have_esd=yes 17992 else 17993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17994$as_echo "no" >&6; } 17995 if test "$ESD_CONFIG" = "no" ; then 17996 echo "*** The esd-config script installed by ESD could not be found" 17997 echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in" 17998 echo "*** your path, or set the ESD_CONFIG environment variable to the" 17999 echo "*** full path to esd-config." 18000 else 18001 if test -f conf.esdtest ; then 18002 : 18003 else 18004 echo "*** Could not run ESD test program, checking why..." 18005 CFLAGS="$CFLAGS $ESD_CFLAGS" 18006 LIBS="$LIBS $ESD_LIBS" 18007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18008/* end confdefs.h. */ 18009 18010#include <stdio.h> 18011#include <esd.h> 18012 18013int 18014main () 18015{ 18016 return 0; 18017 ; 18018 return 0; 18019} 18020_ACEOF 18021if ac_fn_c_try_link "$LINENO"; then : 18022 echo "*** The test program compiled, but did not run. This usually means" 18023 echo "*** that the run-time linker is not finding ESD or finding the wrong" 18024 echo "*** version of ESD. If it is not finding ESD, you'll need to set your" 18025 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 18026 echo "*** to the installed location Also, make sure you have run ldconfig if that" 18027 echo "*** is required on your system" 18028 echo "***" 18029 echo "*** If you have an old version installed, it is best to remove it, although" 18030 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 18031else 18032 echo "*** The test program failed to compile or link. See the file config.log for the" 18033 echo "*** exact error that occured. This usually means ESD was incorrectly installed" 18034 echo "*** or that you have moved ESD since it was installed. In the latter case, you" 18035 echo "*** may want to edit the esd-config script: $ESD_CONFIG" 18036fi 18037rm -f core conftest.err conftest.$ac_objext \ 18038 conftest$ac_exeext conftest.$ac_ext 18039 CFLAGS="$ac_save_CFLAGS" 18040 LIBS="$ac_save_LIBS" 18041 fi 18042 fi 18043 ESD_CFLAGS="" 18044 ESD_LIBS="" 18045 have_esd=no 18046 fi 18047 18048 18049 rm -f conf.esdtest 18050 18051 if test x$have_esd = xyes; then 18052 # Check whether --enable-esd-shared was given. 18053if test "${enable_esd_shared+set}" = set; then : 18054 enableval=$enable_esd_shared; 18055else 18056 enable_esd_shared=yes 18057fi 18058 18059 esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'` 18060 18061 18062$as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h 18063 18064 SOURCES="$SOURCES $srcdir/src/audio/esd/*.c" 18065 EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS" 18066 if test x$have_loadso != xyes && \ 18067 test x$enable_esd_shared = xyes; then 18068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5 18069$as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;} 18070 fi 18071 if test x$have_loadso = xyes && \ 18072 test x$enable_esd_shared = xyes && test x$esd_lib != x; then 18073 echo "-- dynamic libesd -> $esd_lib" 18074 18075cat >>confdefs.h <<_ACEOF 18076#define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib" 18077_ACEOF 18078 18079 SUMMARY_audio="${SUMMARY_audio} esd(dynamic)" 18080 else 18081 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS" 18082 SUMMARY_audio="${SUMMARY_audio} esd" 18083 fi 18084 have_audio=yes 18085 fi 18086 fi 18087} 18088 18089CheckPulseAudio() 18090{ 18091 # Check whether --enable-pulseaudio was given. 18092if test "${enable_pulseaudio+set}" = set; then : 18093 enableval=$enable_pulseaudio; 18094else 18095 enable_pulseaudio=yes 18096fi 18097 18098 if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then 18099 audio_pulseaudio=no 18100 18101 PULSEAUDIO_REQUIRED_VERSION=0.9 18102 18103 # Extract the first word of "pkg-config", so it can be a program name with args. 18104set dummy pkg-config; ac_word=$2 18105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18106$as_echo_n "checking for $ac_word... " >&6; } 18107if ${ac_cv_path_PKG_CONFIG+:} false; then : 18108 $as_echo_n "(cached) " >&6 18109else 18110 case $PKG_CONFIG in 18111 [\\/]* | ?:[\\/]*) 18112 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 18113 ;; 18114 *) 18115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18116for as_dir in $PATH 18117do 18118 IFS=$as_save_IFS 18119 test -z "$as_dir" && as_dir=. 18120 for ac_exec_ext in '' $ac_executable_extensions; do 18121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18122 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 18123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18124 break 2 18125 fi 18126done 18127 done 18128IFS=$as_save_IFS 18129 18130 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 18131 ;; 18132esac 18133fi 18134PKG_CONFIG=$ac_cv_path_PKG_CONFIG 18135if test -n "$PKG_CONFIG"; then 18136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 18137$as_echo "$PKG_CONFIG" >&6; } 18138else 18139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18140$as_echo "no" >&6; } 18141fi 18142 18143 18144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support" >&5 18145$as_echo_n "checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support... " >&6; } 18146 if test x$PKG_CONFIG != xno; then 18147 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $PULSEAUDIO_REQUIRED_VERSION libpulse-simple; then 18148 PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags libpulse-simple` 18149 PULSEAUDIO_LIBS=`$PKG_CONFIG --libs libpulse-simple` 18150 audio_pulseaudio=yes 18151 fi 18152 fi 18153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_pulseaudio" >&5 18154$as_echo "$audio_pulseaudio" >&6; } 18155 18156 if test x$audio_pulseaudio = xyes; then 18157 # Check whether --enable-pulseaudio-shared was given. 18158if test "${enable_pulseaudio_shared+set}" = set; then : 18159 enableval=$enable_pulseaudio_shared; 18160else 18161 enable_pulseaudio_shared=yes 18162fi 18163 18164 pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'` 18165 18166 18167$as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h 18168 18169 SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c" 18170 EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS" 18171 if test x$have_loadso != xyes && \ 18172 test x$enable_pulseaudio_shared = xyes; then 18173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5 18174$as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;} 18175 fi 18176 if test x$have_loadso = xyes && \ 18177 test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then 18178 echo "-- dynamic libpulse-simple -> $pulseaudio_lib" 18179 18180cat >>confdefs.h <<_ACEOF 18181#define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib" 18182_ACEOF 18183 18184 SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)" 18185 18186 case "$host" in 18187 # On Solaris, pulseaudio must be linked deferred explicitly 18188 # to prevent undefined symbol failures. 18189 *-*-solaris*) 18190 PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'` 18191 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred" 18192 esac 18193 else 18194 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS" 18195 SUMMARY_audio="${SUMMARY_audio} pulse" 18196 fi 18197 have_audio=yes 18198 fi 18199 fi 18200} 18201 18202CheckARTSC() 18203{ 18204 # Check whether --enable-arts was given. 18205if test "${enable_arts+set}" = set; then : 18206 enableval=$enable_arts; 18207else 18208 enable_arts=yes 18209fi 18210 18211 if test x$enable_audio = xyes -a x$enable_arts = xyes; then 18212 # Extract the first word of "artsc-config", so it can be a program name with args. 18213set dummy artsc-config; ac_word=$2 18214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18215$as_echo_n "checking for $ac_word... " >&6; } 18216if ${ac_cv_path_ARTSCONFIG+:} false; then : 18217 $as_echo_n "(cached) " >&6 18218else 18219 case $ARTSCONFIG in 18220 [\\/]* | ?:[\\/]*) 18221 ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path. 18222 ;; 18223 *) 18224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18225for as_dir in $PATH 18226do 18227 IFS=$as_save_IFS 18228 test -z "$as_dir" && as_dir=. 18229 for ac_exec_ext in '' $ac_executable_extensions; do 18230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18231 ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext" 18232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18233 break 2 18234 fi 18235done 18236 done 18237IFS=$as_save_IFS 18238 18239 ;; 18240esac 18241fi 18242ARTSCONFIG=$ac_cv_path_ARTSCONFIG 18243if test -n "$ARTSCONFIG"; then 18244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5 18245$as_echo "$ARTSCONFIG" >&6; } 18246else 18247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18248$as_echo "no" >&6; } 18249fi 18250 18251 18252 if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then 18253 : # arts isn't installed 18254 else 18255 ARTS_CFLAGS=`$ARTSCONFIG --cflags` 18256 ARTS_LIBS=`$ARTSCONFIG --libs` 18257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5 18258$as_echo_n "checking for aRts development environment... " >&6; } 18259 audio_arts=no 18260 save_CFLAGS="$CFLAGS" 18261 CFLAGS="$CFLAGS $ARTS_CFLAGS" 18262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18263/* end confdefs.h. */ 18264 18265 #include <artsc.h> 18266 18267int 18268main () 18269{ 18270 18271 arts_stream_t stream; 18272 18273 ; 18274 return 0; 18275} 18276_ACEOF 18277if ac_fn_c_try_compile "$LINENO"; then : 18278 18279 audio_arts=yes 18280 18281fi 18282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18283 CFLAGS="$save_CFLAGS" 18284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5 18285$as_echo "$audio_arts" >&6; } 18286 if test x$audio_arts = xyes; then 18287 # Check whether --enable-arts-shared was given. 18288if test "${enable_arts_shared+set}" = set; then : 18289 enableval=$enable_arts_shared; 18290else 18291 enable_arts_shared=yes 18292fi 18293 18294 arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'` 18295 18296 18297$as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h 18298 18299 SOURCES="$SOURCES $srcdir/src/audio/arts/*.c" 18300 EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS" 18301 if test x$have_loadso != xyes && \ 18302 test x$enable_arts_shared = xyes; then 18303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5 18304$as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;} 18305 fi 18306 if test x$have_loadso = xyes && \ 18307 test x$enable_arts_shared = xyes && test x$arts_lib != x; then 18308 echo "-- dynamic libartsc -> $arts_lib" 18309 18310cat >>confdefs.h <<_ACEOF 18311#define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib" 18312_ACEOF 18313 18314 SUMMARY_audio="${SUMMARY_audio} arts(dynamic)" 18315 else 18316 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS" 18317 SUMMARY_audio="${SUMMARY_audio} arts" 18318 fi 18319 have_audio=yes 18320 fi 18321 fi 18322 fi 18323} 18324 18325CheckNAS() 18326{ 18327 # Check whether --enable-nas was given. 18328if test "${enable_nas+set}" = set; then : 18329 enableval=$enable_nas; 18330else 18331 enable_nas=yes 18332fi 18333 18334 if test x$enable_audio = xyes -a x$enable_nas = xyes; then 18335 ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default" 18336if test "x$ac_cv_header_audio_audiolib_h" = xyes; then : 18337 have_nas_hdr=yes 18338fi 18339 18340 18341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5 18342$as_echo_n "checking for AuOpenServer in -laudio... " >&6; } 18343if ${ac_cv_lib_audio_AuOpenServer+:} false; then : 18344 $as_echo_n "(cached) " >&6 18345else 18346 ac_check_lib_save_LIBS=$LIBS 18347LIBS="-laudio $LIBS" 18348cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18349/* end confdefs.h. */ 18350 18351/* Override any GCC internal prototype to avoid an error. 18352 Use char because int might match the return type of a GCC 18353 builtin and then its argument prototype would still apply. */ 18354#ifdef __cplusplus 18355extern "C" 18356#endif 18357char AuOpenServer (); 18358int 18359main () 18360{ 18361return AuOpenServer (); 18362 ; 18363 return 0; 18364} 18365_ACEOF 18366if ac_fn_c_try_link "$LINENO"; then : 18367 ac_cv_lib_audio_AuOpenServer=yes 18368else 18369 ac_cv_lib_audio_AuOpenServer=no 18370fi 18371rm -f core conftest.err conftest.$ac_objext \ 18372 conftest$ac_exeext conftest.$ac_ext 18373LIBS=$ac_check_lib_save_LIBS 18374fi 18375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5 18376$as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; } 18377if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then : 18378 have_nas_lib=yes 18379fi 18380 18381 18382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5 18383$as_echo_n "checking for NAS audio support... " >&6; } 18384 have_nas=no 18385 18386 if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then 18387 have_nas=yes 18388 NAS_LIBS="-laudio" 18389 18390 elif test -r /usr/X11R6/include/audio/audiolib.h; then 18391 have_nas=yes 18392 NAS_CFLAGS="-I/usr/X11R6/include/" 18393 NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt" 18394 18395 fi 18396 18397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5 18398$as_echo "$have_nas" >&6; } 18399 18400 if test x$have_nas = xyes; then 18401 # Check whether --enable-nas-shared was given. 18402if test "${enable_nas_shared+set}" = set; then : 18403 enableval=$enable_nas_shared; 18404else 18405 enable_nas_shared=yes 18406fi 18407 18408 nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'` 18409 18410 if test x$have_loadso != xyes && \ 18411 test x$enable_nas_shared = xyes; then 18412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5 18413$as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;} 18414 fi 18415 if test x$have_loadso = xyes && \ 18416 test x$enable_nas_shared = xyes && test x$nas_lib != x; then 18417 echo "-- dynamic libaudio -> $nas_lib" 18418 18419cat >>confdefs.h <<_ACEOF 18420#define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib" 18421_ACEOF 18422 18423 SUMMARY_audio="${SUMMARY_audio} nas(dynamic)" 18424 else 18425 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS" 18426 SUMMARY_audio="${SUMMARY_audio} nas" 18427 fi 18428 18429 18430$as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h 18431 18432 SOURCES="$SOURCES $srcdir/src/audio/nas/*.c" 18433 EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS" 18434 have_audio=yes 18435 fi 18436 fi 18437} 18438 18439CheckSNDIO() 18440{ 18441 # Check whether --enable-sndio was given. 18442if test "${enable_sndio+set}" = set; then : 18443 enableval=$enable_sndio; 18444else 18445 enable_sndio=yes 18446fi 18447 18448 if test x$enable_audio = xyes -a x$enable_sndio = xyes; then 18449 ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default" 18450if test "x$ac_cv_header_sndio_h" = xyes; then : 18451 have_sndio_hdr=yes 18452fi 18453 18454 18455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5 18456$as_echo_n "checking for sio_open in -lsndio... " >&6; } 18457if ${ac_cv_lib_sndio_sio_open+:} false; then : 18458 $as_echo_n "(cached) " >&6 18459else 18460 ac_check_lib_save_LIBS=$LIBS 18461LIBS="-lsndio $LIBS" 18462cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18463/* end confdefs.h. */ 18464 18465/* Override any GCC internal prototype to avoid an error. 18466 Use char because int might match the return type of a GCC 18467 builtin and then its argument prototype would still apply. */ 18468#ifdef __cplusplus 18469extern "C" 18470#endif 18471char sio_open (); 18472int 18473main () 18474{ 18475return sio_open (); 18476 ; 18477 return 0; 18478} 18479_ACEOF 18480if ac_fn_c_try_link "$LINENO"; then : 18481 ac_cv_lib_sndio_sio_open=yes 18482else 18483 ac_cv_lib_sndio_sio_open=no 18484fi 18485rm -f core conftest.err conftest.$ac_objext \ 18486 conftest$ac_exeext conftest.$ac_ext 18487LIBS=$ac_check_lib_save_LIBS 18488fi 18489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5 18490$as_echo "$ac_cv_lib_sndio_sio_open" >&6; } 18491if test "x$ac_cv_lib_sndio_sio_open" = xyes; then : 18492 have_sndio_lib=yes 18493fi 18494 18495 18496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5 18497$as_echo_n "checking for sndio audio support... " >&6; } 18498 have_sndio=no 18499 18500 if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then 18501 have_sndio=yes 18502 SNDIO_LIBS="-lsndio" 18503 fi 18504 18505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5 18506$as_echo "$have_sndio" >&6; } 18507 18508 if test x$have_sndio = xyes; then 18509 # Check whether --enable-sndio-shared was given. 18510if test "${enable_sndio_shared+set}" = set; then : 18511 enableval=$enable_sndio_shared; 18512else 18513 enable_sndio_shared=yes 18514fi 18515 18516 sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'` 18517 18518 if test x$have_loadso != xyes && \ 18519 test x$enable_sndio_shared = xyes; then 18520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5 18521$as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;} 18522 fi 18523 if test x$have_loadso = xyes && \ 18524 test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then 18525 echo "-- dynamic libsndio -> $sndio_lib" 18526 18527cat >>confdefs.h <<_ACEOF 18528#define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib" 18529_ACEOF 18530 18531 SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)" 18532 else 18533 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS" 18534 SUMMARY_audio="${SUMMARY_audio} sndio" 18535 fi 18536 18537 18538$as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h 18539 18540 SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c" 18541 EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS" 18542 have_audio=yes 18543 fi 18544 fi 18545} 18546 18547CheckDiskAudio() 18548{ 18549 # Check whether --enable-diskaudio was given. 18550if test "${enable_diskaudio+set}" = set; then : 18551 enableval=$enable_diskaudio; 18552else 18553 enable_diskaudio=yes 18554fi 18555 18556 if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then 18557 18558$as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h 18559 18560 SOURCES="$SOURCES $srcdir/src/audio/disk/*.c" 18561 SUMMARY_audio="${SUMMARY_audio} disk" 18562 fi 18563} 18564 18565CheckDummyAudio() 18566{ 18567 # Check whether --enable-dummyaudio was given. 18568if test "${enable_dummyaudio+set}" = set; then : 18569 enableval=$enable_dummyaudio; 18570else 18571 enable_dummyaudio=yes 18572fi 18573 18574 if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then 18575 18576$as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h 18577 18578 SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c" 18579 SUMMARY_audio="${SUMMARY_audio} dummy" 18580 fi 18581} 18582 18583CheckVisibilityHidden() 18584{ 18585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5 18586$as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; } 18587 have_gcc_fvisibility=no 18588 18589 visibility_CFLAGS="-fvisibility=hidden" 18590 save_CFLAGS="$CFLAGS" 18591 CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror" 18592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18593/* end confdefs.h. */ 18594 18595 #if !defined(__GNUC__) || __GNUC__ < 4 18596 #error SDL only uses visibility attributes in GCC 4 or newer 18597 #endif 18598 18599int 18600main () 18601{ 18602 18603 18604 ; 18605 return 0; 18606} 18607_ACEOF 18608if ac_fn_c_try_compile "$LINENO"; then : 18609 18610 have_gcc_fvisibility=yes 18611 18612fi 18613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5 18615$as_echo "$have_gcc_fvisibility" >&6; } 18616 CFLAGS="$save_CFLAGS" 18617 18618 if test x$have_gcc_fvisibility = xyes; then 18619 EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS" 18620 fi 18621} 18622 18623CheckStackBoundary() 18624{ 18625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5 18626$as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; } 18627 have_gcc_preferred_stack_boundary=no 18628 18629 save_CFLAGS="$CFLAGS" 18630 CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2" 18631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18632/* end confdefs.h. */ 18633 18634 int x = 0; 18635 18636int 18637main () 18638{ 18639 18640 18641 ; 18642 return 0; 18643} 18644_ACEOF 18645if ac_fn_c_try_compile "$LINENO"; then : 18646 18647 have_gcc_preferred_stack_boundary=yes 18648 18649fi 18650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5 18652$as_echo "$have_gcc_preferred_stack_boundary" >&6; } 18653 CFLAGS="$save_CFLAGS" 18654 18655 if test x$have_gcc_preferred_stack_boundary = xyes; then 18656 EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2" 18657 fi 18658} 18659 18660CheckDeclarationAfterStatement() 18661{ 18662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5 18663$as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; } 18664 have_gcc_declaration_after_statement=no 18665 18666 save_CFLAGS="$CFLAGS" 18667 CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement" 18668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18669/* end confdefs.h. */ 18670 18671 int x = 0; 18672 18673int 18674main () 18675{ 18676 18677 18678 ; 18679 return 0; 18680} 18681_ACEOF 18682if ac_fn_c_try_compile "$LINENO"; then : 18683 18684 have_gcc_declaration_after_statement=yes 18685 18686fi 18687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5 18689$as_echo "$have_gcc_declaration_after_statement" >&6; } 18690 CFLAGS="$save_CFLAGS" 18691 18692 if test x$have_gcc_declaration_after_statement = xyes; then 18693 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement" 18694 fi 18695} 18696 18697CheckWarnAll() 18698{ 18699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5 18700$as_echo_n "checking for GCC -Wall option... " >&6; } 18701 have_gcc_Wall=no 18702 18703 save_CFLAGS="$CFLAGS" 18704 CFLAGS="$save_CFLAGS -Wall" 18705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18706/* end confdefs.h. */ 18707 18708 int x = 0; 18709 18710int 18711main () 18712{ 18713 18714 18715 ; 18716 return 0; 18717} 18718_ACEOF 18719if ac_fn_c_try_compile "$LINENO"; then : 18720 18721 have_gcc_Wall=yes 18722 18723fi 18724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5 18726$as_echo "$have_gcc_Wall" >&6; } 18727 CFLAGS="$save_CFLAGS" 18728 18729 if test x$have_gcc_Wall = xyes; then 18730 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall" 18731 18732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5 18733$as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; } 18734 need_gcc_Wno_multichar=no 18735 case "$host" in 18736 *-*-haiku*) 18737 need_gcc_Wno_multichar=yes 18738 ;; 18739 esac 18740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5 18741$as_echo "$need_gcc_Wno_multichar" >&6; } 18742 if test x$need_gcc_Wno_multichar = xyes; then 18743 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar" 18744 fi 18745 fi 18746} 18747 18748CheckWayland() 18749{ 18750 # Check whether --enable-video-wayland was given. 18751if test "${enable_video_wayland+set}" = set; then : 18752 enableval=$enable_video_wayland; 18753else 18754 enable_video_wayland=yes 18755fi 18756 18757 18758 # Check whether --enable-video-wayland-qt-touch was given. 18759if test "${enable_video_wayland_qt_touch+set}" = set; then : 18760 enableval=$enable_video_wayland_qt_touch; 18761else 18762 enable_video_wayland_qt_touch=yes 18763fi 18764 18765 18766 if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then 18767 # Extract the first word of "pkg-config", so it can be a program name with args. 18768set dummy pkg-config; ac_word=$2 18769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18770$as_echo_n "checking for $ac_word... " >&6; } 18771if ${ac_cv_path_PKG_CONFIG+:} false; then : 18772 $as_echo_n "(cached) " >&6 18773else 18774 case $PKG_CONFIG in 18775 [\\/]* | ?:[\\/]*) 18776 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 18777 ;; 18778 *) 18779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18780for as_dir in $PATH 18781do 18782 IFS=$as_save_IFS 18783 test -z "$as_dir" && as_dir=. 18784 for ac_exec_ext in '' $ac_executable_extensions; do 18785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18786 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 18787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18788 break 2 18789 fi 18790done 18791 done 18792IFS=$as_save_IFS 18793 18794 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 18795 ;; 18796esac 18797fi 18798PKG_CONFIG=$ac_cv_path_PKG_CONFIG 18799if test -n "$PKG_CONFIG"; then 18800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 18801$as_echo "$PKG_CONFIG" >&6; } 18802else 18803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18804$as_echo "no" >&6; } 18805fi 18806 18807 18808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5 18809$as_echo_n "checking for Wayland support... " >&6; } 18810 video_wayland=no 18811 if test x$PKG_CONFIG != xno && \ 18812 test x$video_opengl_egl = xyes && \ 18813 test x$video_opengles_v2 = xyes; then 18814 if $PKG_CONFIG --exists wayland-client wayland-scanner wayland-protocols wayland-egl wayland-cursor egl xkbcommon ; then 18815 WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon` 18816 WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon` 18817 WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner` 18818 WAYLAND_CORE_PROTOCOL_DIR=`$PKG_CONFIG --variable=pkgdatadir wayland-client` 18819 WAYLAND_PROTOCOLS_DIR=`$PKG_CONFIG --variable=pkgdatadir wayland-protocols` 18820 video_wayland=yes 18821 fi 18822 fi 18823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5 18824$as_echo "$video_wayland" >&6; } 18825 18826 if test x$video_wayland = xyes; then 18827 18828$as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h 18829 18830 if test x$enable_video_wayland_qt_touch = xyes; then 18831 18832$as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h 18833 18834 fi 18835 18836 WAYLAND_PROTOCOLS_UNSTABLE="relative-pointer-unstable-v1 pointer-constraints-unstable-v1" 18837 18838 SOURCES="$SOURCES $srcdir/src/video/wayland/*.c" 18839 EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)" 18840 # Check whether --enable-wayland-shared was given. 18841if test "${enable_wayland_shared+set}" = set; then : 18842 enableval=$enable_wayland_shared; 18843else 18844 enable_wayland_shared=maybe 18845fi 18846 18847 18848 case "$host" in 18849 *) 18850 wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'` 18851 wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'` 18852 if test x$wayland_egl_lib = x; then 18853 wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'` 18854 fi 18855 wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'` 18856 xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'` 18857 ;; 18858 esac 18859 18860 if test x$enable_wayland_shared = xmaybe; then 18861 enable_wayland_shared=yes 18862 fi 18863 if test x$have_loadso != xyes && \ 18864 test x$enable_wayland_shared = xyes; then 18865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5 18866$as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;} 18867 enable_wayland_shared=no 18868 fi 18869 if test x$have_loadso = xyes && \ 18870 test x$enable_wayland_shared = xyes && \ 18871 test x$wayland_client_lib != x && \ 18872 test x$wayland_egl_lib != x && \ 18873 test x$wayland_cursor_lib != x && \ 18874 test x$xkbcommon_lib != x; then 18875 echo "-- dynamic libwayland-client -> $wayland_client_lib" 18876 echo "-- dynamic libwayland-egl -> $wayland_egl_lib" 18877 echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib" 18878 echo "-- dynamic libxkbcommon -> $xkbcommon_lib" 18879 18880cat >>confdefs.h <<_ACEOF 18881#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib" 18882_ACEOF 18883 18884 18885cat >>confdefs.h <<_ACEOF 18886#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib" 18887_ACEOF 18888 18889 18890cat >>confdefs.h <<_ACEOF 18891#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib" 18892_ACEOF 18893 18894 18895cat >>confdefs.h <<_ACEOF 18896#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib" 18897_ACEOF 18898 18899 SUMMARY_video="${SUMMARY_video} wayland(dynamic)" 18900 else 18901 enable_wayland_shared=no 18902 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS" 18903 SUMMARY_video="${SUMMARY_video} wayland" 18904 fi 18905 have_video=yes 18906 fi 18907 fi 18908} 18909 18910CheckMir() 18911{ 18912 # Check whether --enable-video-mir was given. 18913if test "${enable_video_mir+set}" = set; then : 18914 enableval=$enable_video_mir; 18915else 18916 enable_video_mir=yes 18917fi 18918 18919 18920 if test x$enable_video = xyes -a x$enable_video_mir = xyes; then 18921 # Extract the first word of "pkg-config", so it can be a program name with args. 18922set dummy pkg-config; ac_word=$2 18923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18924$as_echo_n "checking for $ac_word... " >&6; } 18925if ${ac_cv_path_PKG_CONFIG+:} false; then : 18926 $as_echo_n "(cached) " >&6 18927else 18928 case $PKG_CONFIG in 18929 [\\/]* | ?:[\\/]*) 18930 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 18931 ;; 18932 *) 18933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18934for as_dir in $PATH 18935do 18936 IFS=$as_save_IFS 18937 test -z "$as_dir" && as_dir=. 18938 for ac_exec_ext in '' $ac_executable_extensions; do 18939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18940 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 18941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18942 break 2 18943 fi 18944done 18945 done 18946IFS=$as_save_IFS 18947 18948 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 18949 ;; 18950esac 18951fi 18952PKG_CONFIG=$ac_cv_path_PKG_CONFIG 18953if test -n "$PKG_CONFIG"; then 18954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 18955$as_echo "$PKG_CONFIG" >&6; } 18956else 18957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18958$as_echo "no" >&6; } 18959fi 18960 18961 18962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mir support" >&5 18963$as_echo_n "checking for Mir support... " >&6; } 18964 video_mir=no 18965 if test x$PKG_CONFIG != xno; then 18966 if $PKG_CONFIG --exists mirclient egl xkbcommon ; then 18967 MIR_CFLAGS=`$PKG_CONFIG --cflags mirclient egl xkbcommon` 18968 MIR_LIBS=`$PKG_CONFIG --libs mirclient egl xkbcommon` 18969 save_CFLAGS="$CFLAGS" 18970 CFLAGS="$save_CFLAGS $MIR_CFLAGS" 18971 18972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18973/* end confdefs.h. */ 18974 18975 #include <mir_toolkit/mir_client_library.h> 18976 18977int 18978main () 18979{ 18980 18981 MirTouchAction actions = mir_touch_actions 18982 18983 ; 18984 return 0; 18985} 18986_ACEOF 18987if ac_fn_c_try_compile "$LINENO"; then : 18988 18989 video_mir=yes 18990 18991fi 18992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18993 CFLAGS="$save_CFLAGS" 18994 fi 18995 fi 18996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_mir" >&5 18997$as_echo "$video_mir" >&6; } 18998 18999 if test x$video_mir = xyes; then 19000 19001$as_echo "#define SDL_VIDEO_DRIVER_MIR 1" >>confdefs.h 19002 19003 SOURCES="$SOURCES $srcdir/src/video/mir/*.c" 19004 EXTRA_CFLAGS="$EXTRA_CFLAGS $MIR_CFLAGS" 19005 # Check whether --enable-mir-shared was given. 19006if test "${enable_mir_shared+set}" = set; then : 19007 enableval=$enable_mir_shared; 19008else 19009 enable_mir_shared=maybe 19010fi 19011 19012 19013 case "$host" in 19014 *) 19015 mirclient_lib=`find_lib "libmirclient.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'` 19016 xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'` 19017 ;; 19018 esac 19019 19020 if test x$enable_mir_shared = xmaybe; then 19021 enable_mir_shared=yes 19022 fi 19023 if test x$have_loadso != xyes && \ 19024 test x$enable_mir_shared = xyes; then 19025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&5 19026$as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&2;} 19027 enable_mir_shared=no 19028 fi 19029 if test x$have_loadso = xyes && \ 19030 test x$enable_mir_shared = xyes && \ 19031 test x$mirclient_lib != x && \ 19032 test x$xkbcommon_lib != x; then 19033 echo "-- dynamic libmirclient -> $mirclient_lib" 19034 echo "-- dynamic libxkbcommon -> $xkbcommon_lib" 19035 19036cat >>confdefs.h <<_ACEOF 19037#define SDL_VIDEO_DRIVER_MIR_DYNAMIC "$mirclient_lib" 19038_ACEOF 19039 19040 19041cat >>confdefs.h <<_ACEOF 19042#define SDL_VIDEO_DRIVER_MIR_DYNAMIC_XKBCOMMON "$xkbcommon_lib" 19043_ACEOF 19044 19045 SUMMARY_video="${SUMMARY_video} mir(dynamic)" 19046 else 19047 enable_mir_shared=no 19048 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $MIR_LIBS" 19049 SUMMARY_video="${SUMMARY_video} mir" 19050 fi 19051 have_video=yes 19052 fi 19053 fi 19054} 19055 19056CheckNativeClient() 19057{ 19058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19059/* end confdefs.h. */ 19060 19061 #if !defined(__native_client__) 19062 #error "NO NACL" 19063 #endif 19064 19065int 19066main () 19067{ 19068 19069 19070 ; 19071 return 0; 19072} 19073_ACEOF 19074if ac_fn_c_try_compile "$LINENO"; then : 19075 19076 $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h 19077 19078 $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h 19079 19080 19081$as_echo "#define HAVE_POW 1" >>confdefs.h 19082 19083 19084$as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h 19085 19086 19087$as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h 19088 19089 19090$as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h 19091 19092 19093 SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS" 19094 19095 SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c" 19096 SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c" 19097 SUMMARY_audio="${SUMMARY_audio} nacl" 19098 SOURCES="$SOURCES $srcdir/src/video/nacl/*.c" 19099 SUMMARY_video="${SUMMARY_video} nacl opengles2" 19100 19101fi 19102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19103} 19104 19105 19106CheckX11() 19107{ 19108 19109 19110 # Check whether --enable-video-x11 was given. 19111if test "${enable_video_x11+set}" = set; then : 19112 enableval=$enable_video_x11; 19113else 19114 enable_video_x11=yes 19115fi 19116 19117 if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then 19118 case "$host" in 19119 *-*-darwin*) 19120 # This isn't necessary for X11, but fixes GLX detection 19121 if test "x$x_includes" = xNONE && \ 19122 test "x$x_libraries" = xNONE && \ 19123 test -d /usr/X11R6/include && \ 19124 test -d /usr/X11R6/lib; then 19125 x_includes="/usr/X11R6/include" 19126 x_libraries="/usr/X11R6/lib" 19127 fi 19128 ;; 19129 esac 19130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 19131$as_echo_n "checking for X... " >&6; } 19132 19133 19134# Check whether --with-x was given. 19135if test "${with_x+set}" = set; then : 19136 withval=$with_x; 19137fi 19138 19139# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 19140if test "x$with_x" = xno; then 19141 # The user explicitly disabled X. 19142 have_x=disabled 19143else 19144 case $x_includes,$x_libraries in #( 19145 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 19146 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 19147 $as_echo_n "(cached) " >&6 19148else 19149 # One or both of the vars are not set, and there is no cached value. 19150ac_x_includes=no ac_x_libraries=no 19151rm -f -r conftest.dir 19152if mkdir conftest.dir; then 19153 cd conftest.dir 19154 cat >Imakefile <<'_ACEOF' 19155incroot: 19156 @echo incroot='${INCROOT}' 19157usrlibdir: 19158 @echo usrlibdir='${USRLIBDIR}' 19159libdir: 19160 @echo libdir='${LIBDIR}' 19161_ACEOF 19162 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 19163 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 19164 for ac_var in incroot usrlibdir libdir; do 19165 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 19166 done 19167 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 19168 for ac_extension in a so sl dylib la dll; do 19169 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 19170 test -f "$ac_im_libdir/libX11.$ac_extension"; then 19171 ac_im_usrlibdir=$ac_im_libdir; break 19172 fi 19173 done 19174 # Screen out bogus values from the imake configuration. They are 19175 # bogus both because they are the default anyway, and because 19176 # using them would break gcc on systems where it needs fixed includes. 19177 case $ac_im_incroot in 19178 /usr/include) ac_x_includes= ;; 19179 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 19180 esac 19181 case $ac_im_usrlibdir in 19182 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 19183 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 19184 esac 19185 fi 19186 cd .. 19187 rm -f -r conftest.dir 19188fi 19189 19190# Standard set of common directories for X headers. 19191# Check X11 before X11Rn because it is often a symlink to the current release. 19192ac_x_header_dirs=' 19193/usr/X11/include 19194/usr/X11R7/include 19195/usr/X11R6/include 19196/usr/X11R5/include 19197/usr/X11R4/include 19198 19199/usr/include/X11 19200/usr/include/X11R7 19201/usr/include/X11R6 19202/usr/include/X11R5 19203/usr/include/X11R4 19204 19205/usr/local/X11/include 19206/usr/local/X11R7/include 19207/usr/local/X11R6/include 19208/usr/local/X11R5/include 19209/usr/local/X11R4/include 19210 19211/usr/local/include/X11 19212/usr/local/include/X11R7 19213/usr/local/include/X11R6 19214/usr/local/include/X11R5 19215/usr/local/include/X11R4 19216 19217/usr/X386/include 19218/usr/x386/include 19219/usr/XFree86/include/X11 19220 19221/usr/include 19222/usr/local/include 19223/usr/unsupported/include 19224/usr/athena/include 19225/usr/local/x11r5/include 19226/usr/lpp/Xamples/include 19227 19228/usr/openwin/include 19229/usr/openwin/share/include' 19230 19231if test "$ac_x_includes" = no; then 19232 # Guess where to find include files, by looking for Xlib.h. 19233 # First, try using that file with no special directory specified. 19234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19235/* end confdefs.h. */ 19236#include <X11/Xlib.h> 19237_ACEOF 19238if ac_fn_c_try_cpp "$LINENO"; then : 19239 # We can compile using X headers with no special include directory. 19240ac_x_includes= 19241else 19242 for ac_dir in $ac_x_header_dirs; do 19243 if test -r "$ac_dir/X11/Xlib.h"; then 19244 ac_x_includes=$ac_dir 19245 break 19246 fi 19247done 19248fi 19249rm -f conftest.err conftest.i conftest.$ac_ext 19250fi # $ac_x_includes = no 19251 19252if test "$ac_x_libraries" = no; then 19253 # Check for the libraries. 19254 # See if we find them without any special options. 19255 # Don't add to $LIBS permanently. 19256 ac_save_LIBS=$LIBS 19257 LIBS="-lX11 $LIBS" 19258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19259/* end confdefs.h. */ 19260#include <X11/Xlib.h> 19261int 19262main () 19263{ 19264XrmInitialize () 19265 ; 19266 return 0; 19267} 19268_ACEOF 19269if ac_fn_c_try_link "$LINENO"; then : 19270 LIBS=$ac_save_LIBS 19271# We can link X programs with no special library path. 19272ac_x_libraries= 19273else 19274 LIBS=$ac_save_LIBS 19275for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 19276do 19277 # Don't even attempt the hair of trying to link an X program! 19278 for ac_extension in a so sl dylib la dll; do 19279 if test -r "$ac_dir/libX11.$ac_extension"; then 19280 ac_x_libraries=$ac_dir 19281 break 2 19282 fi 19283 done 19284done 19285fi 19286rm -f core conftest.err conftest.$ac_objext \ 19287 conftest$ac_exeext conftest.$ac_ext 19288fi # $ac_x_libraries = no 19289 19290case $ac_x_includes,$ac_x_libraries in #( 19291 no,* | *,no | *\'*) 19292 # Didn't find X, or a directory has "'" in its name. 19293 ac_cv_have_x="have_x=no";; #( 19294 *) 19295 # Record where we found X for the cache. 19296 ac_cv_have_x="have_x=yes\ 19297 ac_x_includes='$ac_x_includes'\ 19298 ac_x_libraries='$ac_x_libraries'" 19299esac 19300fi 19301;; #( 19302 *) have_x=yes;; 19303 esac 19304 eval "$ac_cv_have_x" 19305fi # $with_x != no 19306 19307if test "$have_x" != yes; then 19308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 19309$as_echo "$have_x" >&6; } 19310 no_x=yes 19311else 19312 # If each of the values was on the command line, it overrides each guess. 19313 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 19314 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 19315 # Update the cache value to reflect the command line values. 19316 ac_cv_have_x="have_x=yes\ 19317 ac_x_includes='$x_includes'\ 19318 ac_x_libraries='$x_libraries'" 19319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 19320$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 19321fi 19322 19323 if test "$no_x" = yes; then 19324 # Not all programs may use this symbol, but it does not hurt to define it. 19325 19326$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 19327 19328 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 19329else 19330 if test -n "$x_includes"; then 19331 X_CFLAGS="$X_CFLAGS -I$x_includes" 19332 fi 19333 19334 # It would also be nice to do this for all -L options, not just this one. 19335 if test -n "$x_libraries"; then 19336 X_LIBS="$X_LIBS -L$x_libraries" 19337 # For Solaris; some versions of Sun CC require a space after -R and 19338 # others require no space. Words are not sufficient . . . . 19339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 19340$as_echo_n "checking whether -R must be followed by a space... " >&6; } 19341 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 19342 ac_xsave_c_werror_flag=$ac_c_werror_flag 19343 ac_c_werror_flag=yes 19344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19345/* end confdefs.h. */ 19346 19347int 19348main () 19349{ 19350 19351 ; 19352 return 0; 19353} 19354_ACEOF 19355if ac_fn_c_try_link "$LINENO"; then : 19356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19357$as_echo "no" >&6; } 19358 X_LIBS="$X_LIBS -R$x_libraries" 19359else 19360 LIBS="$ac_xsave_LIBS -R $x_libraries" 19361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19362/* end confdefs.h. */ 19363 19364int 19365main () 19366{ 19367 19368 ; 19369 return 0; 19370} 19371_ACEOF 19372if ac_fn_c_try_link "$LINENO"; then : 19373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19374$as_echo "yes" >&6; } 19375 X_LIBS="$X_LIBS -R $x_libraries" 19376else 19377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 19378$as_echo "neither works" >&6; } 19379fi 19380rm -f core conftest.err conftest.$ac_objext \ 19381 conftest$ac_exeext conftest.$ac_ext 19382fi 19383rm -f core conftest.err conftest.$ac_objext \ 19384 conftest$ac_exeext conftest.$ac_ext 19385 ac_c_werror_flag=$ac_xsave_c_werror_flag 19386 LIBS=$ac_xsave_LIBS 19387 fi 19388 19389 # Check for system-dependent libraries X programs must link with. 19390 # Do this before checking for the system-independent R6 libraries 19391 # (-lICE), since we may need -lsocket or whatever for X linking. 19392 19393 if test "$ISC" = yes; then 19394 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 19395 else 19396 # Martyn Johnson says this is needed for Ultrix, if the X 19397 # libraries were built with DECnet support. And Karl Berry says 19398 # the Alpha needs dnet_stub (dnet does not exist). 19399 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 19400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19401/* end confdefs.h. */ 19402 19403/* Override any GCC internal prototype to avoid an error. 19404 Use char because int might match the return type of a GCC 19405 builtin and then its argument prototype would still apply. */ 19406#ifdef __cplusplus 19407extern "C" 19408#endif 19409char XOpenDisplay (); 19410int 19411main () 19412{ 19413return XOpenDisplay (); 19414 ; 19415 return 0; 19416} 19417_ACEOF 19418if ac_fn_c_try_link "$LINENO"; then : 19419 19420else 19421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 19422$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 19423if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 19424 $as_echo_n "(cached) " >&6 19425else 19426 ac_check_lib_save_LIBS=$LIBS 19427LIBS="-ldnet $LIBS" 19428cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19429/* end confdefs.h. */ 19430 19431/* Override any GCC internal prototype to avoid an error. 19432 Use char because int might match the return type of a GCC 19433 builtin and then its argument prototype would still apply. */ 19434#ifdef __cplusplus 19435extern "C" 19436#endif 19437char dnet_ntoa (); 19438int 19439main () 19440{ 19441return dnet_ntoa (); 19442 ; 19443 return 0; 19444} 19445_ACEOF 19446if ac_fn_c_try_link "$LINENO"; then : 19447 ac_cv_lib_dnet_dnet_ntoa=yes 19448else 19449 ac_cv_lib_dnet_dnet_ntoa=no 19450fi 19451rm -f core conftest.err conftest.$ac_objext \ 19452 conftest$ac_exeext conftest.$ac_ext 19453LIBS=$ac_check_lib_save_LIBS 19454fi 19455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 19456$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 19457if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 19458 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 19459fi 19460 19461 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 19462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 19463$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 19464if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 19465 $as_echo_n "(cached) " >&6 19466else 19467 ac_check_lib_save_LIBS=$LIBS 19468LIBS="-ldnet_stub $LIBS" 19469cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19470/* end confdefs.h. */ 19471 19472/* Override any GCC internal prototype to avoid an error. 19473 Use char because int might match the return type of a GCC 19474 builtin and then its argument prototype would still apply. */ 19475#ifdef __cplusplus 19476extern "C" 19477#endif 19478char dnet_ntoa (); 19479int 19480main () 19481{ 19482return dnet_ntoa (); 19483 ; 19484 return 0; 19485} 19486_ACEOF 19487if ac_fn_c_try_link "$LINENO"; then : 19488 ac_cv_lib_dnet_stub_dnet_ntoa=yes 19489else 19490 ac_cv_lib_dnet_stub_dnet_ntoa=no 19491fi 19492rm -f core conftest.err conftest.$ac_objext \ 19493 conftest$ac_exeext conftest.$ac_ext 19494LIBS=$ac_check_lib_save_LIBS 19495fi 19496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 19497$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 19498if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 19499 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 19500fi 19501 19502 fi 19503fi 19504rm -f core conftest.err conftest.$ac_objext \ 19505 conftest$ac_exeext conftest.$ac_ext 19506 LIBS="$ac_xsave_LIBS" 19507 19508 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 19509 # to get the SysV transport functions. 19510 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 19511 # needs -lnsl. 19512 # The nsl library prevents programs from opening the X display 19513 # on Irix 5.2, according to T.E. Dickey. 19514 # The functions gethostbyname, getservbyname, and inet_addr are 19515 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 19516 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 19517if test "x$ac_cv_func_gethostbyname" = xyes; then : 19518 19519fi 19520 19521 if test $ac_cv_func_gethostbyname = no; then 19522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 19523$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 19524if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 19525 $as_echo_n "(cached) " >&6 19526else 19527 ac_check_lib_save_LIBS=$LIBS 19528LIBS="-lnsl $LIBS" 19529cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19530/* end confdefs.h. */ 19531 19532/* Override any GCC internal prototype to avoid an error. 19533 Use char because int might match the return type of a GCC 19534 builtin and then its argument prototype would still apply. */ 19535#ifdef __cplusplus 19536extern "C" 19537#endif 19538char gethostbyname (); 19539int 19540main () 19541{ 19542return gethostbyname (); 19543 ; 19544 return 0; 19545} 19546_ACEOF 19547if ac_fn_c_try_link "$LINENO"; then : 19548 ac_cv_lib_nsl_gethostbyname=yes 19549else 19550 ac_cv_lib_nsl_gethostbyname=no 19551fi 19552rm -f core conftest.err conftest.$ac_objext \ 19553 conftest$ac_exeext conftest.$ac_ext 19554LIBS=$ac_check_lib_save_LIBS 19555fi 19556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 19557$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 19558if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 19559 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 19560fi 19561 19562 if test $ac_cv_lib_nsl_gethostbyname = no; then 19563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 19564$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 19565if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 19566 $as_echo_n "(cached) " >&6 19567else 19568 ac_check_lib_save_LIBS=$LIBS 19569LIBS="-lbsd $LIBS" 19570cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19571/* end confdefs.h. */ 19572 19573/* Override any GCC internal prototype to avoid an error. 19574 Use char because int might match the return type of a GCC 19575 builtin and then its argument prototype would still apply. */ 19576#ifdef __cplusplus 19577extern "C" 19578#endif 19579char gethostbyname (); 19580int 19581main () 19582{ 19583return gethostbyname (); 19584 ; 19585 return 0; 19586} 19587_ACEOF 19588if ac_fn_c_try_link "$LINENO"; then : 19589 ac_cv_lib_bsd_gethostbyname=yes 19590else 19591 ac_cv_lib_bsd_gethostbyname=no 19592fi 19593rm -f core conftest.err conftest.$ac_objext \ 19594 conftest$ac_exeext conftest.$ac_ext 19595LIBS=$ac_check_lib_save_LIBS 19596fi 19597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 19598$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 19599if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 19600 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 19601fi 19602 19603 fi 19604 fi 19605 19606 # lieder@skyler.mavd.honeywell.com says without -lsocket, 19607 # socket/setsockopt and other routines are undefined under SCO ODT 19608 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 19609 # on later versions), says Simon Leinen: it contains gethostby* 19610 # variants that don't use the name server (or something). -lsocket 19611 # must be given before -lnsl if both are needed. We assume that 19612 # if connect needs -lnsl, so does gethostbyname. 19613 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 19614if test "x$ac_cv_func_connect" = xyes; then : 19615 19616fi 19617 19618 if test $ac_cv_func_connect = no; then 19619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 19620$as_echo_n "checking for connect in -lsocket... " >&6; } 19621if ${ac_cv_lib_socket_connect+:} false; then : 19622 $as_echo_n "(cached) " >&6 19623else 19624 ac_check_lib_save_LIBS=$LIBS 19625LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 19626cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19627/* end confdefs.h. */ 19628 19629/* Override any GCC internal prototype to avoid an error. 19630 Use char because int might match the return type of a GCC 19631 builtin and then its argument prototype would still apply. */ 19632#ifdef __cplusplus 19633extern "C" 19634#endif 19635char connect (); 19636int 19637main () 19638{ 19639return connect (); 19640 ; 19641 return 0; 19642} 19643_ACEOF 19644if ac_fn_c_try_link "$LINENO"; then : 19645 ac_cv_lib_socket_connect=yes 19646else 19647 ac_cv_lib_socket_connect=no 19648fi 19649rm -f core conftest.err conftest.$ac_objext \ 19650 conftest$ac_exeext conftest.$ac_ext 19651LIBS=$ac_check_lib_save_LIBS 19652fi 19653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 19654$as_echo "$ac_cv_lib_socket_connect" >&6; } 19655if test "x$ac_cv_lib_socket_connect" = xyes; then : 19656 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 19657fi 19658 19659 fi 19660 19661 # Guillermo Gomez says -lposix is necessary on A/UX. 19662 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" 19663if test "x$ac_cv_func_remove" = xyes; then : 19664 19665fi 19666 19667 if test $ac_cv_func_remove = no; then 19668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 19669$as_echo_n "checking for remove in -lposix... " >&6; } 19670if ${ac_cv_lib_posix_remove+:} false; then : 19671 $as_echo_n "(cached) " >&6 19672else 19673 ac_check_lib_save_LIBS=$LIBS 19674LIBS="-lposix $LIBS" 19675cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19676/* end confdefs.h. */ 19677 19678/* Override any GCC internal prototype to avoid an error. 19679 Use char because int might match the return type of a GCC 19680 builtin and then its argument prototype would still apply. */ 19681#ifdef __cplusplus 19682extern "C" 19683#endif 19684char remove (); 19685int 19686main () 19687{ 19688return remove (); 19689 ; 19690 return 0; 19691} 19692_ACEOF 19693if ac_fn_c_try_link "$LINENO"; then : 19694 ac_cv_lib_posix_remove=yes 19695else 19696 ac_cv_lib_posix_remove=no 19697fi 19698rm -f core conftest.err conftest.$ac_objext \ 19699 conftest$ac_exeext conftest.$ac_ext 19700LIBS=$ac_check_lib_save_LIBS 19701fi 19702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 19703$as_echo "$ac_cv_lib_posix_remove" >&6; } 19704if test "x$ac_cv_lib_posix_remove" = xyes; then : 19705 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 19706fi 19707 19708 fi 19709 19710 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 19711 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 19712if test "x$ac_cv_func_shmat" = xyes; then : 19713 19714fi 19715 19716 if test $ac_cv_func_shmat = no; then 19717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 19718$as_echo_n "checking for shmat in -lipc... " >&6; } 19719if ${ac_cv_lib_ipc_shmat+:} false; then : 19720 $as_echo_n "(cached) " >&6 19721else 19722 ac_check_lib_save_LIBS=$LIBS 19723LIBS="-lipc $LIBS" 19724cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19725/* end confdefs.h. */ 19726 19727/* Override any GCC internal prototype to avoid an error. 19728 Use char because int might match the return type of a GCC 19729 builtin and then its argument prototype would still apply. */ 19730#ifdef __cplusplus 19731extern "C" 19732#endif 19733char shmat (); 19734int 19735main () 19736{ 19737return shmat (); 19738 ; 19739 return 0; 19740} 19741_ACEOF 19742if ac_fn_c_try_link "$LINENO"; then : 19743 ac_cv_lib_ipc_shmat=yes 19744else 19745 ac_cv_lib_ipc_shmat=no 19746fi 19747rm -f core conftest.err conftest.$ac_objext \ 19748 conftest$ac_exeext conftest.$ac_ext 19749LIBS=$ac_check_lib_save_LIBS 19750fi 19751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 19752$as_echo "$ac_cv_lib_ipc_shmat" >&6; } 19753if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 19754 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 19755fi 19756 19757 fi 19758 fi 19759 19760 # Check for libraries that X11R6 Xt/Xaw programs need. 19761 ac_save_LDFLAGS=$LDFLAGS 19762 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 19763 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 19764 # check for ICE first), but we must link in the order -lSM -lICE or 19765 # we get undefined symbols. So assume we have SM if we have ICE. 19766 # These have to be linked with before -lX11, unlike the other 19767 # libraries we check for below, so use a different variable. 19768 # John Interrante, Karl Berry 19769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 19770$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 19771if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 19772 $as_echo_n "(cached) " >&6 19773else 19774 ac_check_lib_save_LIBS=$LIBS 19775LIBS="-lICE $X_EXTRA_LIBS $LIBS" 19776cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19777/* end confdefs.h. */ 19778 19779/* Override any GCC internal prototype to avoid an error. 19780 Use char because int might match the return type of a GCC 19781 builtin and then its argument prototype would still apply. */ 19782#ifdef __cplusplus 19783extern "C" 19784#endif 19785char IceConnectionNumber (); 19786int 19787main () 19788{ 19789return IceConnectionNumber (); 19790 ; 19791 return 0; 19792} 19793_ACEOF 19794if ac_fn_c_try_link "$LINENO"; then : 19795 ac_cv_lib_ICE_IceConnectionNumber=yes 19796else 19797 ac_cv_lib_ICE_IceConnectionNumber=no 19798fi 19799rm -f core conftest.err conftest.$ac_objext \ 19800 conftest$ac_exeext conftest.$ac_ext 19801LIBS=$ac_check_lib_save_LIBS 19802fi 19803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 19804$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 19805if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 19806 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 19807fi 19808 19809 LDFLAGS=$ac_save_LDFLAGS 19810 19811fi 19812 19813 if test x$have_x = xyes; then 19814 # Check whether --enable-x11-shared was given. 19815if test "${enable_x11_shared+set}" = set; then : 19816 enableval=$enable_x11_shared; 19817else 19818 enable_x11_shared=maybe 19819fi 19820 19821 19822 case "$host" in 19823 *-*-darwin*) 19824 x11_lib='/usr/X11R6/lib/libX11.6.dylib' 19825 x11ext_lib='/usr/X11R6/lib/libXext.6.dylib' 19826 xcursor_lib='/usr/X11R6/lib/libXcursor.1.dylib' 19827 xinerama_lib='/usr/X11R6/lib/libXinerama.1.dylib' 19828 xinput_lib='/usr/X11R6/lib/libXi.6.dylib' 19829 xrandr_lib='/usr/X11R6/lib/libXrandr.2.dylib' 19830 xrender_lib='/usr/X11R6/lib/libXrender.1.dylib' 19831 xss_lib='/usr/X11R6/lib/libXss.1.dylib' 19832 xvidmode_lib='/usr/X11R6/lib/libXxf86vm.1.dylib' 19833 ;; 19834 *-*-openbsd*) 19835 x11_lib='libX11.so' 19836 x11ext_lib='libXext.so' 19837 xcursor_lib='libXcursor.so' 19838 xinerama_lib='libXinerama.so' 19839 xinput_lib='libXi.so' 19840 xrandr_lib='libXrandr.so' 19841 xrender_lib='libXrender.so' 19842 xss_lib='libXss.so' 19843 xvidmode_lib='libXxf86vm.so' 19844 ;; 19845 *) 19846 x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'` 19847 x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'` 19848 xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'` 19849 xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'` 19850 xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'` 19851 xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'` 19852 xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'` 19853 xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'` 19854 xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'` 19855 ;; 19856 esac 19857 19858 if test x$ac_cv_func_shmat != xyes; then 19859 X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY" 19860 fi 19861 CFLAGS="$CFLAGS $X_CFLAGS" 19862 LDFLAGS="$LDFLAGS $X_LIBS" 19863 19864 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h> 19865 #include <X11/Xproto.h> 19866 19867" 19868if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then : 19869 have_xext_h_hdr=yes 19870else 19871 have_xext_h_hdr=no 19872fi 19873 19874 19875 if test x$have_xext_h_hdr != xyes; then 19876 as_fn_error $? " 19877*** Missing Xext.h, maybe you need to install the libxext-dev package? 19878 " "$LINENO" 5 19879 fi 19880 19881 19882$as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h 19883 19884 SOURCES="$SOURCES $srcdir/src/video/x11/*.c" 19885 EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS" 19886 19887 # Needed so SDL applications can include SDL_syswm.h 19888 SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS" 19889 19890 if test x$enable_x11_shared = xmaybe; then 19891 enable_x11_shared=yes 19892 fi 19893 if test x$have_loadso != xyes && \ 19894 test x$enable_x11_shared = xyes; then 19895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5 19896$as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;} 19897 enable_x11_shared=no 19898 fi 19899 if test x$have_loadso = xyes && \ 19900 test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then 19901 echo "-- dynamic libX11 -> $x11_lib" 19902 echo "-- dynamic libX11ext -> $x11ext_lib" 19903 19904cat >>confdefs.h <<_ACEOF 19905#define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib" 19906_ACEOF 19907 19908 19909cat >>confdefs.h <<_ACEOF 19910#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib" 19911_ACEOF 19912 19913 SUMMARY_video="${SUMMARY_video} x11(dynamic)" 19914 else 19915 enable_x11_shared=no 19916 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext" 19917 SUMMARY_video="${SUMMARY_video} x11" 19918 fi 19919 have_video=yes 19920 19921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5 19922$as_echo_n "checking for const parameter to XextAddDisplay... " >&6; } 19923 have_const_param_XextAddDisplay=no 19924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19925/* end confdefs.h. */ 19926 19927 #include <X11/Xlib.h> 19928 #include <X11/Xproto.h> 19929 #include <X11/extensions/Xext.h> 19930 #include <X11/extensions/extutil.h> 19931 extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f); 19932 19933int 19934main () 19935{ 19936 19937 19938 ; 19939 return 0; 19940} 19941_ACEOF 19942if ac_fn_c_try_compile "$LINENO"; then : 19943 19944 have_const_param_XextAddDisplay=yes 19945 $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h 19946 19947 19948fi 19949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5 19951$as_echo "$have_const_param_XextAddDisplay" >&6; } 19952 19953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5 19954$as_echo_n "checking for XGenericEvent... " >&6; } 19955 have_XGenericEvent=no 19956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19957/* end confdefs.h. */ 19958 19959 #include <X11/Xlib.h> 19960 19961int 19962main () 19963{ 19964 19965Display *display; 19966XEvent event; 19967XGenericEventCookie *cookie = &event.xcookie; 19968XNextEvent(display, &event); 19969XGetEventData(display, cookie); 19970XFreeEventData(display, cookie); 19971 19972 ; 19973 return 0; 19974} 19975_ACEOF 19976if ac_fn_c_try_compile "$LINENO"; then : 19977 19978 have_XGenericEvent=yes 19979 $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h 19980 19981 19982fi 19983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5 19985$as_echo "$have_XGenericEvent" >&6; } 19986 19987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5 19988$as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; } 19989if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then : 19990 $as_echo_n "(cached) " >&6 19991else 19992 ac_check_lib_save_LIBS=$LIBS 19993LIBS="-lX11 $LIBS" 19994cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19995/* end confdefs.h. */ 19996 19997/* Override any GCC internal prototype to avoid an error. 19998 Use char because int might match the return type of a GCC 19999 builtin and then its argument prototype would still apply. */ 20000#ifdef __cplusplus 20001extern "C" 20002#endif 20003char XkbKeycodeToKeysym (); 20004int 20005main () 20006{ 20007return XkbKeycodeToKeysym (); 20008 ; 20009 return 0; 20010} 20011_ACEOF 20012if ac_fn_c_try_link "$LINENO"; then : 20013 ac_cv_lib_X11_XkbKeycodeToKeysym=yes 20014else 20015 ac_cv_lib_X11_XkbKeycodeToKeysym=no 20016fi 20017rm -f core conftest.err conftest.$ac_objext \ 20018 conftest$ac_exeext conftest.$ac_ext 20019LIBS=$ac_check_lib_save_LIBS 20020fi 20021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5 20022$as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; } 20023if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then : 20024 20025$as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h 20026 20027fi 20028 20029 20030 # Check whether --enable-video-x11-xcursor was given. 20031if test "${enable_video_x11_xcursor+set}" = set; then : 20032 enableval=$enable_video_x11_xcursor; 20033else 20034 enable_video_x11_xcursor=yes 20035fi 20036 20037 if test x$enable_video_x11_xcursor = xyes; then 20038 definitely_enable_video_x11_xcursor=no 20039 ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h> 20040 20041" 20042if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then : 20043 have_xcursor_h_hdr=yes 20044else 20045 have_xcursor_h_hdr=no 20046fi 20047 20048 20049 if test x$have_xcursor_h_hdr = xyes; then 20050 if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then 20051 echo "-- dynamic libXcursor -> $xcursor_lib" 20052 20053cat >>confdefs.h <<_ACEOF 20054#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib" 20055_ACEOF 20056 20057 definitely_enable_video_x11_xcursor=yes 20058 else 20059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5 20060$as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; } 20061if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then : 20062 $as_echo_n "(cached) " >&6 20063else 20064 ac_check_lib_save_LIBS=$LIBS 20065LIBS="-lXcursor $LIBS" 20066cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20067/* end confdefs.h. */ 20068 20069/* Override any GCC internal prototype to avoid an error. 20070 Use char because int might match the return type of a GCC 20071 builtin and then its argument prototype would still apply. */ 20072#ifdef __cplusplus 20073extern "C" 20074#endif 20075char XcursorImageCreate (); 20076int 20077main () 20078{ 20079return XcursorImageCreate (); 20080 ; 20081 return 0; 20082} 20083_ACEOF 20084if ac_fn_c_try_link "$LINENO"; then : 20085 ac_cv_lib_Xcursor_XcursorImageCreate=yes 20086else 20087 ac_cv_lib_Xcursor_XcursorImageCreate=no 20088fi 20089rm -f core conftest.err conftest.$ac_objext \ 20090 conftest$ac_exeext conftest.$ac_ext 20091LIBS=$ac_check_lib_save_LIBS 20092fi 20093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5 20094$as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; } 20095if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then : 20096 have_xcursor_lib=yes 20097fi 20098 20099 if test x$have_xcursor_lib = xyes ; then 20100 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor" 20101 definitely_enable_video_x11_xcursor=yes 20102 fi 20103 fi 20104 fi 20105 fi 20106 if test x$definitely_enable_video_x11_xcursor = xyes; then 20107 20108$as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h 20109 20110 SUMMARY_video_x11="${SUMMARY_video_x11} xcursor" 20111 fi 20112 # Check whether --enable-video-x11-xdbe was given. 20113if test "${enable_video_x11_xdbe+set}" = set; then : 20114 enableval=$enable_video_x11_xdbe; 20115else 20116 enable_video_x11_xdbe=yes 20117fi 20118 20119 if test x$enable_video_x11_xdbe = xyes; then 20120 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h> 20121 20122" 20123if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then : 20124 have_dbe_h_hdr=yes 20125else 20126 have_dbe_h_hdr=no 20127fi 20128 20129 20130 if test x$have_dbe_h_hdr = xyes; then 20131 20132$as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h 20133 20134 SUMMARY_video_x11="${SUMMARY_video_x11} xdbe" 20135 fi 20136 fi 20137 # Check whether --enable-video-x11-xinerama was given. 20138if test "${enable_video_x11_xinerama+set}" = set; then : 20139 enableval=$enable_video_x11_xinerama; 20140else 20141 enable_video_x11_xinerama=yes 20142fi 20143 20144 if test x$enable_video_x11_xinerama = xyes; then 20145 definitely_enable_video_x11_xinerama=no 20146 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h> 20147 20148" 20149if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then : 20150 have_xinerama_h_hdr=yes 20151else 20152 have_xinerama_h_hdr=no 20153fi 20154 20155 20156 if test x$have_xinerama_h_hdr = xyes; then 20157 if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then 20158 echo "-- dynamic libXinerama -> $xinerama_lib" 20159 20160cat >>confdefs.h <<_ACEOF 20161#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib" 20162_ACEOF 20163 20164 definitely_enable_video_x11_xinerama=yes 20165 else 20166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5 20167$as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; } 20168if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then : 20169 $as_echo_n "(cached) " >&6 20170else 20171 ac_check_lib_save_LIBS=$LIBS 20172LIBS="-lXinerama $LIBS" 20173cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20174/* end confdefs.h. */ 20175 20176/* Override any GCC internal prototype to avoid an error. 20177 Use char because int might match the return type of a GCC 20178 builtin and then its argument prototype would still apply. */ 20179#ifdef __cplusplus 20180extern "C" 20181#endif 20182char XineramaQueryExtension (); 20183int 20184main () 20185{ 20186return XineramaQueryExtension (); 20187 ; 20188 return 0; 20189} 20190_ACEOF 20191if ac_fn_c_try_link "$LINENO"; then : 20192 ac_cv_lib_Xinerama_XineramaQueryExtension=yes 20193else 20194 ac_cv_lib_Xinerama_XineramaQueryExtension=no 20195fi 20196rm -f core conftest.err conftest.$ac_objext \ 20197 conftest$ac_exeext conftest.$ac_ext 20198LIBS=$ac_check_lib_save_LIBS 20199fi 20200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5 20201$as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; } 20202if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then : 20203 have_xinerama_lib=yes 20204fi 20205 20206 if test x$have_xinerama_lib = xyes ; then 20207 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama" 20208 definitely_enable_video_x11_xinerama=yes 20209 fi 20210 fi 20211 fi 20212 fi 20213 if test x$definitely_enable_video_x11_xinerama = xyes; then 20214 20215$as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h 20216 20217 SUMMARY_video_x11="${SUMMARY_video_x11} xinerama" 20218 fi 20219 # Check whether --enable-video-x11-xinput was given. 20220if test "${enable_video_x11_xinput+set}" = set; then : 20221 enableval=$enable_video_x11_xinput; 20222else 20223 enable_video_x11_xinput=yes 20224fi 20225 20226 if test x$enable_video_x11_xinput = xyes; then 20227 definitely_enable_video_x11_xinput=no 20228 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h> 20229 20230" 20231if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then : 20232 have_xinput_h_hdr=yes 20233else 20234 have_xinput_h_hdr=no 20235fi 20236 20237 20238 if test x$have_xinput_h_hdr = xyes; then 20239 if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then 20240 echo "-- dynamic libXi -> $xinput_lib" 20241 20242cat >>confdefs.h <<_ACEOF 20243#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib" 20244_ACEOF 20245 20246 definitely_enable_video_x11_xinput=yes 20247 else 20248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5 20249$as_echo_n "checking for XOpenDevice in -lXi... " >&6; } 20250if ${ac_cv_lib_Xi_XOpenDevice+:} false; then : 20251 $as_echo_n "(cached) " >&6 20252else 20253 ac_check_lib_save_LIBS=$LIBS 20254LIBS="-lXi $LIBS" 20255cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20256/* end confdefs.h. */ 20257 20258/* Override any GCC internal prototype to avoid an error. 20259 Use char because int might match the return type of a GCC 20260 builtin and then its argument prototype would still apply. */ 20261#ifdef __cplusplus 20262extern "C" 20263#endif 20264char XOpenDevice (); 20265int 20266main () 20267{ 20268return XOpenDevice (); 20269 ; 20270 return 0; 20271} 20272_ACEOF 20273if ac_fn_c_try_link "$LINENO"; then : 20274 ac_cv_lib_Xi_XOpenDevice=yes 20275else 20276 ac_cv_lib_Xi_XOpenDevice=no 20277fi 20278rm -f core conftest.err conftest.$ac_objext \ 20279 conftest$ac_exeext conftest.$ac_ext 20280LIBS=$ac_check_lib_save_LIBS 20281fi 20282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5 20283$as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; } 20284if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then : 20285 have_xinput_lib=yes 20286fi 20287 20288 if test x$have_xinput_lib = xyes ; then 20289 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi" 20290 definitely_enable_video_x11_xinput=yes 20291 fi 20292 fi 20293 fi 20294 fi 20295 if test x$definitely_enable_video_x11_xinput = xyes; then 20296 SUMMARY_video_x11="${SUMMARY_video_x11} xinput2" 20297 20298$as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h 20299 20300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5 20301$as_echo_n "checking for xinput2 multitouch... " >&6; } 20302 have_xinput2_multitouch=no 20303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20304/* end confdefs.h. */ 20305 20306 #include <X11/Xlib.h> 20307 #include <X11/Xproto.h> 20308 #include <X11/extensions/XInput2.h> 20309 20310int 20311main () 20312{ 20313 20314int event_type = XI_TouchBegin; 20315XITouchClassInfo *t; 20316 20317 ; 20318 return 0; 20319} 20320_ACEOF 20321if ac_fn_c_try_compile "$LINENO"; then : 20322 20323 have_xinput2_multitouch=yes 20324 $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h 20325 20326 SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch" 20327 20328fi 20329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5 20331$as_echo "$have_xinput2_multitouch" >&6; } 20332 fi 20333 # Check whether --enable-video-x11-xrandr was given. 20334if test "${enable_video_x11_xrandr+set}" = set; then : 20335 enableval=$enable_video_x11_xrandr; 20336else 20337 enable_video_x11_xrandr=yes 20338fi 20339 20340 if test x$enable_video_x11_xrandr = xyes; then 20341 definitely_enable_video_x11_xrandr=no 20342 have_xrandr_h_hdr=no 20343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20344/* end confdefs.h. */ 20345 20346 #include <X11/Xlib.h> 20347 #include <X11/extensions/Xrandr.h> 20348 20349int 20350main () 20351{ 20352 20353 XRRScreenResources *res = NULL; 20354 20355 ; 20356 return 0; 20357} 20358_ACEOF 20359if ac_fn_c_try_compile "$LINENO"; then : 20360 20361 have_xrandr_h_hdr=yes 20362 20363fi 20364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20365 if test x$have_xrandr_h_hdr = xyes; then 20366 if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then 20367 echo "-- dynamic libXrandr -> $xrandr_lib" 20368 20369cat >>confdefs.h <<_ACEOF 20370#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib" 20371_ACEOF 20372 20373 definitely_enable_video_x11_xrandr=yes 20374 else 20375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5 20376$as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; } 20377if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then : 20378 $as_echo_n "(cached) " >&6 20379else 20380 ac_check_lib_save_LIBS=$LIBS 20381LIBS="-lXrandr $LIBS" 20382cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20383/* end confdefs.h. */ 20384 20385/* Override any GCC internal prototype to avoid an error. 20386 Use char because int might match the return type of a GCC 20387 builtin and then its argument prototype would still apply. */ 20388#ifdef __cplusplus 20389extern "C" 20390#endif 20391char XRRQueryExtension (); 20392int 20393main () 20394{ 20395return XRRQueryExtension (); 20396 ; 20397 return 0; 20398} 20399_ACEOF 20400if ac_fn_c_try_link "$LINENO"; then : 20401 ac_cv_lib_Xrandr_XRRQueryExtension=yes 20402else 20403 ac_cv_lib_Xrandr_XRRQueryExtension=no 20404fi 20405rm -f core conftest.err conftest.$ac_objext \ 20406 conftest$ac_exeext conftest.$ac_ext 20407LIBS=$ac_check_lib_save_LIBS 20408fi 20409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5 20410$as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; } 20411if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then : 20412 have_xrandr_lib=yes 20413fi 20414 20415 if test x$have_xrandr_lib = xyes ; then 20416 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr" 20417 definitely_enable_video_x11_xrandr=yes 20418 fi 20419 fi 20420 fi 20421 fi 20422 if test x$definitely_enable_video_x11_xrandr = xyes; then 20423 20424$as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h 20425 20426 SUMMARY_video_x11="${SUMMARY_video_x11} xrandr" 20427 fi 20428 # Check whether --enable-video-x11-scrnsaver was given. 20429if test "${enable_video_x11_scrnsaver+set}" = set; then : 20430 enableval=$enable_video_x11_scrnsaver; 20431else 20432 enable_video_x11_scrnsaver=yes 20433fi 20434 20435 if test x$enable_video_x11_scrnsaver = xyes; then 20436 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h> 20437 20438" 20439if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then : 20440 have_scrnsaver_h_hdr=yes 20441else 20442 have_scrnsaver_h_hdr=no 20443fi 20444 20445 20446 if test x$have_scrnsaver_h_hdr = xyes; then 20447 if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then 20448 echo "-- dynamic libXss -> $xss_lib" 20449 20450cat >>confdefs.h <<_ACEOF 20451#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib" 20452_ACEOF 20453 20454 definitely_enable_video_x11_scrnsaver=yes 20455 else 20456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5 20457$as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; } 20458if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then : 20459 $as_echo_n "(cached) " >&6 20460else 20461 ac_check_lib_save_LIBS=$LIBS 20462LIBS="-lXss $LIBS" 20463cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20464/* end confdefs.h. */ 20465 20466/* Override any GCC internal prototype to avoid an error. 20467 Use char because int might match the return type of a GCC 20468 builtin and then its argument prototype would still apply. */ 20469#ifdef __cplusplus 20470extern "C" 20471#endif 20472char XScreenSaverSuspend (); 20473int 20474main () 20475{ 20476return XScreenSaverSuspend (); 20477 ; 20478 return 0; 20479} 20480_ACEOF 20481if ac_fn_c_try_link "$LINENO"; then : 20482 ac_cv_lib_Xss_XScreenSaverSuspend=yes 20483else 20484 ac_cv_lib_Xss_XScreenSaverSuspend=no 20485fi 20486rm -f core conftest.err conftest.$ac_objext \ 20487 conftest$ac_exeext conftest.$ac_ext 20488LIBS=$ac_check_lib_save_LIBS 20489fi 20490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5 20491$as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; } 20492if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then : 20493 have_xss_lib=yes 20494fi 20495 20496 if test x$have_xss_lib = xyes ; then 20497 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss" 20498 definitely_enable_video_x11_scrnsaver=yes 20499 fi 20500 fi 20501 fi 20502 fi 20503 if test x$definitely_enable_video_x11_scrnsaver = xyes; then 20504 20505$as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h 20506 20507 SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver" 20508 fi 20509 # Check whether --enable-video-x11-xshape was given. 20510if test "${enable_video_x11_xshape+set}" = set; then : 20511 enableval=$enable_video_x11_xshape; 20512else 20513 enable_video_x11_xshape=yes 20514fi 20515 20516 if test x$enable_video_x11_xshape = xyes; then 20517 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h> 20518 20519" 20520if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then : 20521 have_shape_h_hdr=yes 20522else 20523 have_shape_h_hdr=no 20524fi 20525 20526 20527 if test x$have_shape_h_hdr = xyes; then 20528 20529$as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h 20530 20531 SUMMARY_video_x11="${SUMMARY_video_x11} xshape" 20532 fi 20533 fi 20534 # Check whether --enable-video-x11-vm was given. 20535if test "${enable_video_x11_vm+set}" = set; then : 20536 enableval=$enable_video_x11_vm; 20537else 20538 enable_video_x11_vm=yes 20539fi 20540 20541 if test x$enable_video_x11_vm = xyes; then 20542 definitely_enable_video_x11_vm=no 20543 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h> 20544 20545" 20546if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then : 20547 have_vm_h_hdr=yes 20548else 20549 have_vm_h_hdr=no 20550fi 20551 20552 20553 if test x$have_vm_h_hdr = xyes; then 20554 if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then 20555 echo "-- dynamic libXxf86vm -> $xvidmode_lib" 20556 20557cat >>confdefs.h <<_ACEOF 20558#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib" 20559_ACEOF 20560 20561 definitely_enable_video_x11_vm=yes 20562 else 20563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5 20564$as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; } 20565if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then : 20566 $as_echo_n "(cached) " >&6 20567else 20568 ac_check_lib_save_LIBS=$LIBS 20569LIBS="-lXxf86vm $LIBS" 20570cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20571/* end confdefs.h. */ 20572 20573/* Override any GCC internal prototype to avoid an error. 20574 Use char because int might match the return type of a GCC 20575 builtin and then its argument prototype would still apply. */ 20576#ifdef __cplusplus 20577extern "C" 20578#endif 20579char XF86VidModeQueryVersion (); 20580int 20581main () 20582{ 20583return XF86VidModeQueryVersion (); 20584 ; 20585 return 0; 20586} 20587_ACEOF 20588if ac_fn_c_try_link "$LINENO"; then : 20589 ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes 20590else 20591 ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no 20592fi 20593rm -f core conftest.err conftest.$ac_objext \ 20594 conftest$ac_exeext conftest.$ac_ext 20595LIBS=$ac_check_lib_save_LIBS 20596fi 20597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5 20598$as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; } 20599if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then : 20600 have_vm_lib=yes 20601fi 20602 20603 if test x$have_vm_lib = xyes ; then 20604 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm" 20605 definitely_enable_video_x11_vm=yes 20606 fi 20607 fi 20608 fi 20609 fi 20610 if test x$definitely_enable_video_x11_vm = xyes; then 20611 20612$as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h 20613 20614 SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode" 20615 fi 20616 fi 20617 fi 20618} 20619 20620CheckVivanteVideo() 20621{ 20622 # Check whether --enable-video-vivante was given. 20623if test "${enable_video_vivante+set}" = set; then : 20624 enableval=$enable_video_vivante; 20625else 20626 enable_video_vivante=yes 20627fi 20628 20629 if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then 20630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5 20631$as_echo_n "checking for Vivante VDK API... " >&6; } 20632 have_vivante_vdk=no 20633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20634/* end confdefs.h. */ 20635 20636 #define LINUX 20637 #define EGL_API_FB 20638 #include <gc_vdk.h> 20639 20640int 20641main () 20642{ 20643 20644 20645 ; 20646 return 0; 20647} 20648_ACEOF 20649if ac_fn_c_try_compile "$LINENO"; then : 20650 20651 have_vivante_vdk=yes 20652 20653fi 20654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5 20656$as_echo "$have_vivante_vdk" >&6; } 20657 20658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5 20659$as_echo_n "checking for Vivante FB API... " >&6; } 20660 have_vivante_egl=no 20661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20662/* end confdefs.h. */ 20663 20664 #define LINUX 20665 #define EGL_API_FB 20666 #include <EGL/eglvivante.h> 20667 20668int 20669main () 20670{ 20671 20672 20673 ; 20674 return 0; 20675} 20676_ACEOF 20677if ac_fn_c_try_compile "$LINENO"; then : 20678 20679 have_vivante_egl=yes 20680 20681fi 20682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5 20684$as_echo "$have_vivante_egl" >&6; } 20685 20686 if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then 20687 20688$as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h 20689 20690 EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB" 20691 if test x$have_vivante_vdk = xyes; then 20692 20693$as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h 20694 20695 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK" 20696 fi 20697 SOURCES="$SOURCES $srcdir/src/video/vivante/*.c" 20698 SUMMARY_video="${SUMMARY_video} vivante" 20699 have_video=yes 20700 fi 20701 fi 20702} 20703 20704CheckHaikuVideo() 20705{ 20706 if test x$enable_video = xyes; then 20707 20708$as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h 20709 20710 SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc" 20711 have_video=yes 20712 SUMMARY_video="${SUMMARY_video} haiku" 20713 fi 20714} 20715 20716CheckCOCOA() 20717{ 20718 # Check whether --enable-video-cocoa was given. 20719if test "${enable_video_cocoa+set}" = set; then : 20720 enableval=$enable_video_cocoa; 20721else 20722 enable_video_cocoa=yes 20723fi 20724 20725 if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then 20726 save_CFLAGS="$CFLAGS" 20727 CFLAGS="$CFLAGS -x objective-c" 20728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5 20729$as_echo_n "checking for Cocoa framework... " >&6; } 20730 have_cocoa=no 20731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20732/* end confdefs.h. */ 20733 20734 #import <Cocoa/Cocoa.h> 20735 20736int 20737main () 20738{ 20739 20740 20741 ; 20742 return 0; 20743} 20744_ACEOF 20745if ac_fn_c_try_compile "$LINENO"; then : 20746 20747 have_cocoa=yes 20748 20749fi 20750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5 20752$as_echo "$have_cocoa" >&6; } 20753 CFLAGS="$save_CFLAGS" 20754 if test x$have_cocoa = xyes; then 20755 20756$as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h 20757 20758 SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m" 20759 SUMMARY_video="${SUMMARY_video} cocoa" 20760 have_video=yes 20761 fi 20762 fi 20763} 20764 20765CheckDirectFB() 20766{ 20767 # Check whether --enable-video-directfb was given. 20768if test "${enable_video_directfb+set}" = set; then : 20769 enableval=$enable_video_directfb; 20770else 20771 enable_video_directfb=no 20772fi 20773 20774 if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then 20775 video_directfb=no 20776 20777 DIRECTFB_REQUIRED_VERSION=1.0.0 20778 for ac_prog in directfb-config 20779do 20780 # Extract the first word of "$ac_prog", so it can be a program name with args. 20781set dummy $ac_prog; ac_word=$2 20782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20783$as_echo_n "checking for $ac_word... " >&6; } 20784if ${ac_cv_path_DIRECTFBCONFIG+:} false; then : 20785 $as_echo_n "(cached) " >&6 20786else 20787 case $DIRECTFBCONFIG in 20788 [\\/]* | ?:[\\/]*) 20789 ac_cv_path_DIRECTFBCONFIG="$DIRECTFBCONFIG" # Let the user override the test with a path. 20790 ;; 20791 *) 20792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20793as_dummy="$prefix/bin:$PATH" 20794for as_dir in $as_dummy 20795do 20796 IFS=$as_save_IFS 20797 test -z "$as_dir" && as_dir=. 20798 for ac_exec_ext in '' $ac_executable_extensions; do 20799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20800 ac_cv_path_DIRECTFBCONFIG="$as_dir/$ac_word$ac_exec_ext" 20801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20802 break 2 20803 fi 20804done 20805 done 20806IFS=$as_save_IFS 20807 20808 ;; 20809esac 20810fi 20811DIRECTFBCONFIG=$ac_cv_path_DIRECTFBCONFIG 20812if test -n "$DIRECTFBCONFIG"; then 20813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRECTFBCONFIG" >&5 20814$as_echo "$DIRECTFBCONFIG" >&6; } 20815else 20816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20817$as_echo "no" >&6; } 20818fi 20819 20820 20821 test -n "$DIRECTFBCONFIG" && break 20822done 20823test -n "$DIRECTFBCONFIG" || DIRECTFBCONFIG="no" 20824 20825 if test x$DIRECTFBCONFIG = xno; then 20826 # Extract the first word of "pkg-config", so it can be a program name with args. 20827set dummy pkg-config; ac_word=$2 20828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20829$as_echo_n "checking for $ac_word... " >&6; } 20830if ${ac_cv_path_PKG_CONFIG+:} false; then : 20831 $as_echo_n "(cached) " >&6 20832else 20833 case $PKG_CONFIG in 20834 [\\/]* | ?:[\\/]*) 20835 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 20836 ;; 20837 *) 20838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20839for as_dir in $PATH 20840do 20841 IFS=$as_save_IFS 20842 test -z "$as_dir" && as_dir=. 20843 for ac_exec_ext in '' $ac_executable_extensions; do 20844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20845 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 20846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20847 break 2 20848 fi 20849done 20850 done 20851IFS=$as_save_IFS 20852 20853 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 20854 ;; 20855esac 20856fi 20857PKG_CONFIG=$ac_cv_path_PKG_CONFIG 20858if test -n "$PKG_CONFIG"; then 20859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 20860$as_echo "$PKG_CONFIG" >&6; } 20861else 20862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20863$as_echo "no" >&6; } 20864fi 20865 20866 20867 if test x$PKG_CONFIG != xno; then 20868 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb; then 20869 DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb` 20870 DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb` 20871 DIRECTFB_PREFIX=`$PKG_CONFIG --variable=prefix directfb` 20872 video_directfb=yes 20873 fi 20874 fi 20875 else 20876 set -- `echo $DIRECTFB_REQUIRED_VERSION | sed 's/\./ /g'` 20877 NEED_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3` 20878 set -- `$DIRECTFBCONFIG --version | sed 's/\./ /g'` 20879 HAVE_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3` 20880 if test $HAVE_VERSION -ge $NEED_VERSION; then 20881 DIRECTFB_CFLAGS=`$DIRECTFBCONFIG --cflags` 20882 DIRECTFB_LIBS=`$DIRECTFBCONFIG --libs` 20883 DIRECTFB_PREFIX=`$DIRECTFBCONFIG --prefix` 20884 video_directfb=yes 20885 fi 20886 fi 20887 if test x$video_directfb = xyes; then 20888 # SuSE 11.1 installs directfb-config without directfb-devel 20889 save_CPPFLAGS="$CPPFLAGS" 20890 CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS" 20891 ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default" 20892if test "x$ac_cv_header_directfb_h" = xyes; then : 20893 have_directfb_hdr=yes 20894else 20895 have_directfb_hdr=no 20896fi 20897 20898 20899 CPPFLAGS="$save_CPPFLAGS" 20900 video_directfb=$have_directfb_hdr 20901 fi 20902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DirectFB $DIRECTFB_REQUIRED_VERSION support" >&5 20903$as_echo_n "checking for DirectFB $DIRECTFB_REQUIRED_VERSION support... " >&6; } 20904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_directfb" >&5 20905$as_echo "$video_directfb" >&6; } 20906 20907 if test x$video_directfb = xyes; then 20908 # Check whether --enable-directfb-shared was given. 20909if test "${enable_directfb_shared+set}" = set; then : 20910 enableval=$enable_directfb_shared; 20911else 20912 enable_directfb_shared=yes 20913fi 20914 20915 20916 20917$as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h 20918 20919 20920$as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h 20921 20922 SOURCES="$SOURCES $srcdir/src/video/directfb/*.c" 20923 EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS" 20924 20925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb dynamic loading support" >&5 20926$as_echo_n "checking for directfb dynamic loading support... " >&6; } 20927 directfb_shared=no 20928 directfb_lib=`find_lib "libdirectfb.so.*" "$DIRECTFB_LIBS"` 20929 # | sed 's/.*\/\(.*\)/\1/; q'`] 20930{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"directfb $directfb_lib\"" >&5 20931$as_echo "$as_me: WARNING: \"directfb $directfb_lib\"" >&2;} 20932 if test x$have_loadso != xyes && \ 20933 test x$enable_directfb_shared = xyes; then 20934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5 20935$as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;} 20936 fi 20937 if test x$have_loadso = xyes && \ 20938 test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then 20939 directfb_shared=yes 20940 echo "-- $directfb_lib_spec -> $directfb_lib" 20941 20942cat >>confdefs.h <<_ACEOF 20943#define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib" 20944_ACEOF 20945 20946 SUMMARY_video="${SUMMARY_video} directfb(dynamic)" 20947 else 20948 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS" 20949 SUMMARY_video="${SUMMARY_video} directfb" 20950 fi 20951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $directfb_shared" >&5 20952$as_echo "$directfb_shared" >&6; } 20953 SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS" 20954 have_video=yes 20955 fi 20956 fi 20957} 20958 20959CheckFusionSound() 20960{ 20961 # Check whether --enable-fusionsound was given. 20962if test "${enable_fusionsound+set}" = set; then : 20963 enableval=$enable_fusionsound; 20964else 20965 enable_fusionsound=no 20966fi 20967 20968 if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then 20969 fusionsound=no 20970 20971 FUSIONSOUND_REQUIRED_VERSION=1.1.1 20972 20973 # Extract the first word of "pkg-config", so it can be a program name with args. 20974set dummy pkg-config; ac_word=$2 20975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20976$as_echo_n "checking for $ac_word... " >&6; } 20977if ${ac_cv_path_PKG_CONFIG+:} false; then : 20978 $as_echo_n "(cached) " >&6 20979else 20980 case $PKG_CONFIG in 20981 [\\/]* | ?:[\\/]*) 20982 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 20983 ;; 20984 *) 20985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20986for as_dir in $PATH 20987do 20988 IFS=$as_save_IFS 20989 test -z "$as_dir" && as_dir=. 20990 for ac_exec_ext in '' $ac_executable_extensions; do 20991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20992 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 20993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20994 break 2 20995 fi 20996done 20997 done 20998IFS=$as_save_IFS 20999 21000 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 21001 ;; 21002esac 21003fi 21004PKG_CONFIG=$ac_cv_path_PKG_CONFIG 21005if test -n "$PKG_CONFIG"; then 21006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 21007$as_echo "$PKG_CONFIG" >&6; } 21008else 21009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21010$as_echo "no" >&6; } 21011fi 21012 21013 21014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support" >&5 21015$as_echo_n "checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support... " >&6; } 21016 if test x$PKG_CONFIG != xno; then 21017 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $FUSIONSOUND_REQUIRED_VERSION fusionsound; then 21018 FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags fusionsound` 21019 FUSIONSOUND_LIBS=`$PKG_CONFIG --libs fusionsound` 21020 fusionsound=yes 21021 fi 21022 fi 21023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound" >&5 21024$as_echo "$fusionsound" >&6; } 21025 21026 if test x$fusionsound = xyes; then 21027 21028$as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h 21029 21030 SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c" 21031 EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS" 21032 21033 # Check whether --enable-fusionsound-shared was given. 21034if test "${enable_fusionsound_shared+set}" = set; then : 21035 enableval=$enable_fusionsound_shared; 21036else 21037 enable_fusionsound_shared=yes 21038fi 21039 21040 fusionsound_shared=no 21041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5 21042$as_echo_n "checking for FusionSound dynamic loading support... " >&6; } 21043 if test x$have_loadso != xyes && \ 21044 test x$enable_fusionsound_shared = xyes; then 21045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5 21046$as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;} 21047 fi 21048 if test x$have_loadso = xyes && \ 21049 test x$enable_fusionsound_shared = xyes; then 21050 21051cat >>confdefs.h <<_ACEOF 21052#define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so" 21053_ACEOF 21054 21055 fusionsound_shared=yes 21056 SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)" 21057 else 21058 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS" 21059 SUMMARY_audio="${SUMMARY_audio} fusionsound" 21060 fi 21061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5 21062$as_echo "$fusionsound_shared" >&6; } 21063 21064 have_audio=yes 21065 fi 21066 fi 21067} 21068 21069CheckDummyVideo() 21070{ 21071 # Check whether --enable-video-dummy was given. 21072if test "${enable_video_dummy+set}" = set; then : 21073 enableval=$enable_video_dummy; 21074else 21075 enable_video_dummy=yes 21076fi 21077 21078 if test x$enable_video_dummy = xyes; then 21079 21080$as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h 21081 21082 SOURCES="$SOURCES $srcdir/src/video/dummy/*.c" 21083 have_video=yes 21084 SUMMARY_video="${SUMMARY_video} dummy" 21085 fi 21086} 21087 21088# Check whether --enable-video-opengl was given. 21089if test "${enable_video_opengl+set}" = set; then : 21090 enableval=$enable_video_opengl; 21091else 21092 enable_video_opengl=yes 21093fi 21094 21095 21096CheckOpenGLX11() 21097{ 21098 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then 21099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5 21100$as_echo_n "checking for OpenGL (GLX) support... " >&6; } 21101 video_opengl=no 21102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21103/* end confdefs.h. */ 21104 21105 #include <GL/gl.h> 21106 #include <GL/glx.h> 21107 21108int 21109main () 21110{ 21111 21112 21113 ; 21114 return 0; 21115} 21116_ACEOF 21117if ac_fn_c_try_compile "$LINENO"; then : 21118 21119 video_opengl=yes 21120 21121fi 21122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5 21124$as_echo "$video_opengl" >&6; } 21125 if test x$video_opengl = xyes; then 21126 21127$as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h 21128 21129 21130$as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h 21131 21132 21133$as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h 21134 21135 SUMMARY_video="${SUMMARY_video} opengl" 21136 fi 21137 fi 21138} 21139 21140# Check whether --enable-video-opengles was given. 21141if test "${enable_video_opengles+set}" = set; then : 21142 enableval=$enable_video_opengles; 21143else 21144 enable_video_opengles=yes 21145fi 21146 21147# Check whether --enable-video-opengles1 was given. 21148if test "${enable_video_opengles1+set}" = set; then : 21149 enableval=$enable_video_opengles1; 21150else 21151 enable_video_opengles1=yes 21152fi 21153 21154# Check whether --enable-video-opengles2 was given. 21155if test "${enable_video_opengles2+set}" = set; then : 21156 enableval=$enable_video_opengles2; 21157else 21158 enable_video_opengles2=yes 21159fi 21160 21161 21162CheckOpenGLESX11() 21163{ 21164 if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then 21165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5 21166$as_echo_n "checking for EGL support... " >&6; } 21167 video_opengl_egl=no 21168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21169/* end confdefs.h. */ 21170 21171 #define LINUX 21172 #define EGL_API_FB 21173 #include <EGL/egl.h> 21174 #include <EGL/eglext.h> 21175 21176int 21177main () 21178{ 21179 21180 21181 ; 21182 return 0; 21183} 21184_ACEOF 21185if ac_fn_c_try_compile "$LINENO"; then : 21186 21187 video_opengl_egl=yes 21188 21189fi 21190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5 21192$as_echo "$video_opengl_egl" >&6; } 21193 if test x$video_opengl_egl = xyes; then 21194 21195$as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h 21196 21197 fi 21198 21199 if test x$enable_video_opengles1 = xyes; then 21200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5 21201$as_echo_n "checking for OpenGL ES v1 headers... " >&6; } 21202 video_opengles_v1=no 21203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21204/* end confdefs.h. */ 21205 21206 #include <GLES/gl.h> 21207 #include <GLES/glext.h> 21208 21209int 21210main () 21211{ 21212 21213 21214 ; 21215 return 0; 21216} 21217_ACEOF 21218if ac_fn_c_try_compile "$LINENO"; then : 21219 21220 video_opengles_v1=yes 21221 21222fi 21223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5 21225$as_echo "$video_opengles_v1" >&6; } 21226 if test x$video_opengles_v1 = xyes; then 21227 21228$as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h 21229 21230 21231$as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h 21232 21233 SUMMARY_video="${SUMMARY_video} opengl_es1" 21234 fi 21235 fi 21236 21237 if test x$enable_video_opengles2 = xyes; then 21238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5 21239$as_echo_n "checking for OpenGL ES v2 headers... " >&6; } 21240 video_opengles_v2=no 21241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21242/* end confdefs.h. */ 21243 21244 #include <GLES2/gl2.h> 21245 #include <GLES2/gl2ext.h> 21246 21247int 21248main () 21249{ 21250 21251 21252 ; 21253 return 0; 21254} 21255_ACEOF 21256if ac_fn_c_try_compile "$LINENO"; then : 21257 21258 video_opengles_v2=yes 21259 21260fi 21261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5 21263$as_echo "$video_opengles_v2" >&6; } 21264 if test x$video_opengles_v2 = xyes; then 21265 21266$as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h 21267 21268 21269$as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h 21270 21271 SUMMARY_video="${SUMMARY_video} opengl_es2" 21272 fi 21273 fi 21274 fi 21275} 21276 21277CheckWINDOWSGL() 21278{ 21279 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then 21280 21281$as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h 21282 21283 21284$as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h 21285 21286 21287$as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h 21288 21289 SUMMARY_video="${SUMMARY_video} opengl" 21290 fi 21291} 21292 21293CheckWINDOWSGLES() 21294{ 21295 if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then 21296 21297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5 21298$as_echo_n "checking for EGL support... " >&6; } 21299 video_opengl_egl=no 21300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21301/* end confdefs.h. */ 21302 21303 #include <EGL/egl.h> 21304 21305int 21306main () 21307{ 21308 21309 21310 ; 21311 return 0; 21312} 21313_ACEOF 21314if ac_fn_c_try_compile "$LINENO"; then : 21315 21316 video_opengl_egl=yes 21317 21318fi 21319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5 21321$as_echo "$video_opengl_egl" >&6; } 21322 if test x$video_opengl_egl = xyes; then 21323 21324$as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h 21325 21326 21327$as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h 21328 21329 SUMMARY_video="${SUMMARY_video} opengl_es1" 21330 fi 21331 21332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5 21333$as_echo_n "checking for OpenGL ES v2 headers... " >&6; } 21334 video_opengles_v2=no 21335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21336/* end confdefs.h. */ 21337 21338 #include <GLES2/gl2.h> 21339 #include <GLES2/gl2ext.h> 21340 21341int 21342main () 21343{ 21344 21345 21346 ; 21347 return 0; 21348} 21349_ACEOF 21350if ac_fn_c_try_compile "$LINENO"; then : 21351 21352 video_opengles_v2=yes 21353 21354fi 21355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5 21357$as_echo "$video_opengles_v2" >&6; } 21358 if test x$video_opengles_v2 = xyes; then 21359 21360$as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h 21361 21362 21363$as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h 21364 21365 21366$as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h 21367 21368 SUMMARY_video="${SUMMARY_video} opengl_es2" 21369 fi 21370 fi 21371} 21372 21373CheckHaikuGL() 21374{ 21375 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then 21376 21377$as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h 21378 21379 21380$as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h 21381 21382 21383$as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h 21384 21385 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL" 21386 SUMMARY_video="${SUMMARY_video} opengl" 21387 fi 21388} 21389 21390CheckMacGL() 21391{ 21392 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then 21393 21394$as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h 21395 21396 21397$as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h 21398 21399 21400$as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h 21401 21402 SUMMARY_video="${SUMMARY_video} opengl" 21403 fi 21404} 21405 21406CheckEmscriptenGLES() 21407{ 21408 if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then 21409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5 21410$as_echo_n "checking for EGL support... " >&6; } 21411 video_opengl_egl=no 21412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21413/* end confdefs.h. */ 21414 21415 #include <EGL/egl.h> 21416 21417int 21418main () 21419{ 21420 21421 21422 ; 21423 return 0; 21424} 21425_ACEOF 21426if ac_fn_c_try_compile "$LINENO"; then : 21427 21428 video_opengl_egl=yes 21429 21430fi 21431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5 21433$as_echo "$video_opengl_egl" >&6; } 21434 if test x$video_opengl_egl = xyes; then 21435 21436$as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h 21437 21438 fi 21439 21440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5 21441$as_echo_n "checking for OpenGL ES v2 headers... " >&6; } 21442 video_opengles_v2=no 21443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21444/* end confdefs.h. */ 21445 21446 #include <GLES2/gl2.h> 21447 #include <GLES2/gl2ext.h> 21448 21449int 21450main () 21451{ 21452 21453 21454 ; 21455 return 0; 21456} 21457_ACEOF 21458if ac_fn_c_try_compile "$LINENO"; then : 21459 21460 video_opengles_v2=yes 21461 21462fi 21463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5 21465$as_echo "$video_opengles_v2" >&6; } 21466 if test x$video_opengles_v2 = xyes; then 21467 21468$as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h 21469 21470 21471$as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h 21472 21473 SUMMARY_video="${SUMMARY_video} opengl_es2" 21474 fi 21475 fi 21476} 21477 21478CheckInputEvents() 21479{ 21480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5 21481$as_echo_n "checking for Linux 2.4 unified input interface... " >&6; } 21482 use_input_events=no 21483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21484/* end confdefs.h. */ 21485 21486 #include <linux/input.h> 21487 21488int 21489main () 21490{ 21491 21492 #ifndef EVIOCGNAME 21493 #error EVIOCGNAME() ioctl not available 21494 #endif 21495 21496 ; 21497 return 0; 21498} 21499_ACEOF 21500if ac_fn_c_try_compile "$LINENO"; then : 21501 21502 use_input_events=yes 21503 21504fi 21505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5 21507$as_echo "$use_input_events" >&6; } 21508 if test x$use_input_events = xyes; then 21509 21510$as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h 21511 21512 SUMMARY_input="${SUMMARY_input} linuxev" 21513 fi 21514} 21515 21516CheckInputKD() 21517{ 21518 21519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5 21520$as_echo_n "checking for Linux kd.h... " >&6; } 21521 use_input_kd=no 21522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21523/* end confdefs.h. */ 21524 21525 #include <linux/kd.h> 21526 #include <linux/keyboard.h> 21527 21528int 21529main () 21530{ 21531 21532 struct kbentry kbe; 21533 kbe.kb_table = KG_CTRL; 21534 ioctl(0, KDGKBENT, &kbe); 21535 21536 ; 21537 return 0; 21538} 21539_ACEOF 21540if ac_fn_c_try_compile "$LINENO"; then : 21541 21542 use_input_kd=yes 21543 21544fi 21545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5 21547$as_echo "$use_input_kd" >&6; } 21548 if test x$use_input_kd = xyes; then 21549 21550$as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h 21551 21552 SUMMARY_input="${SUMMARY_input} linuxkd" 21553 fi 21554} 21555 21556CheckLibUDev() 21557{ 21558 # Check whether --enable-libudev was given. 21559if test "${enable_libudev+set}" = set; then : 21560 enableval=$enable_libudev; 21561else 21562 enable_libudev=yes 21563fi 21564 21565 if test x$enable_libudev = xyes; then 21566 ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default" 21567if test "x$ac_cv_header_libudev_h" = xyes; then : 21568 have_libudev_h_hdr=yes 21569else 21570 have_libudev_h_hdr=no 21571fi 21572 21573 21574 if test x$have_libudev_h_hdr = xyes; then 21575 21576$as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h 21577 21578 fi 21579 fi 21580} 21581 21582CheckDBus() 21583{ 21584 # Check whether --enable-dbus was given. 21585if test "${enable_dbus+set}" = set; then : 21586 enableval=$enable_dbus; 21587else 21588 enable_dbus=yes 21589fi 21590 21591 if test x$enable_dbus = xyes; then 21592 # Extract the first word of "pkg-config", so it can be a program name with args. 21593set dummy pkg-config; ac_word=$2 21594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21595$as_echo_n "checking for $ac_word... " >&6; } 21596if ${ac_cv_path_PKG_CONFIG+:} false; then : 21597 $as_echo_n "(cached) " >&6 21598else 21599 case $PKG_CONFIG in 21600 [\\/]* | ?:[\\/]*) 21601 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 21602 ;; 21603 *) 21604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21605for as_dir in $PATH 21606do 21607 IFS=$as_save_IFS 21608 test -z "$as_dir" && as_dir=. 21609 for ac_exec_ext in '' $ac_executable_extensions; do 21610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21611 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 21612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21613 break 2 21614 fi 21615done 21616 done 21617IFS=$as_save_IFS 21618 21619 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 21620 ;; 21621esac 21622fi 21623PKG_CONFIG=$ac_cv_path_PKG_CONFIG 21624if test -n "$PKG_CONFIG"; then 21625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 21626$as_echo "$PKG_CONFIG" >&6; } 21627else 21628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21629$as_echo "no" >&6; } 21630fi 21631 21632 21633 if test x$PKG_CONFIG != xno; then 21634 DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1` 21635 save_CFLAGS="$CFLAGS" 21636 CFLAGS="$save_CFLAGS $DBUS_CFLAGS" 21637 ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default" 21638if test "x$ac_cv_header_dbus_dbus_h" = xyes; then : 21639 have_dbus_dbus_h_hdr=yes 21640else 21641 have_dbus_dbus_h_hdr=no 21642fi 21643 21644 21645 CFLAGS="$save_CFLAGS" 21646 if test x$have_dbus_dbus_h_hdr = xyes; then 21647 21648$as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h 21649 21650 EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS" 21651 SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c" 21652 fi 21653 fi 21654 fi 21655} 21656 21657CheckIME() 21658{ 21659 # Check whether --enable-ime was given. 21660if test "${enable_ime+set}" = set; then : 21661 enableval=$enable_ime; 21662else 21663 enable_ime=yes 21664fi 21665 21666 if test x$enable_ime = xyes; then 21667 21668$as_echo "#define SDL_USE_IME 1" >>confdefs.h 21669 21670 SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c" 21671 fi 21672} 21673 21674CheckIBus() 21675{ 21676 # Check whether --enable-ibus was given. 21677if test "${enable_ibus+set}" = set; then : 21678 enableval=$enable_ibus; 21679else 21680 enable_ibus=yes 21681fi 21682 21683 if test x$enable_ibus = xyes; then 21684 # Extract the first word of "pkg-config", so it can be a program name with args. 21685set dummy pkg-config; ac_word=$2 21686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21687$as_echo_n "checking for $ac_word... " >&6; } 21688if ${ac_cv_path_PKG_CONFIG+:} false; then : 21689 $as_echo_n "(cached) " >&6 21690else 21691 case $PKG_CONFIG in 21692 [\\/]* | ?:[\\/]*) 21693 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 21694 ;; 21695 *) 21696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21697for as_dir in $PATH 21698do 21699 IFS=$as_save_IFS 21700 test -z "$as_dir" && as_dir=. 21701 for ac_exec_ext in '' $ac_executable_extensions; do 21702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21703 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 21704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21705 break 2 21706 fi 21707done 21708 done 21709IFS=$as_save_IFS 21710 21711 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 21712 ;; 21713esac 21714fi 21715PKG_CONFIG=$ac_cv_path_PKG_CONFIG 21716if test -n "$PKG_CONFIG"; then 21717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 21718$as_echo "$PKG_CONFIG" >&6; } 21719else 21720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21721$as_echo "no" >&6; } 21722fi 21723 21724 21725 if test x$PKG_CONFIG != xno; then 21726 IBUS_CFLAGS=`$PKG_CONFIG --cflags ibus-1.0` 21727 save_CFLAGS="$CFLAGS" 21728 CFLAGS="$save_CFLAGS $IBUS_CFLAGS" 21729 ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default" 21730if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then : 21731 have_ibus_ibus_h_hdr=yes 21732else 21733 have_ibus_ibus_h_hdr=no 21734fi 21735 21736 21737 ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default" 21738if test "x$ac_cv_header_sys_inotify_h" = xyes; then : 21739 have_inotify_inotify_h_hdr=yes 21740else 21741 have_inotify_inotify_h_hdr=no 21742fi 21743 21744 21745 CFLAGS="$save_CFLAGS" 21746 if test x$have_ibus_ibus_h_hdr = xyes; then 21747 if test x$enable_ime != xyes; then 21748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5 21749$as_echo "$as_me: WARNING: IME support is required for IBus." >&2;} 21750 have_ibus_ibus_h_hdr=no 21751 elif test x$enable_dbus != xyes; then 21752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5 21753$as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;} 21754 have_ibus_ibus_h_hdr=no 21755 elif test x$have_inotify_inotify_h_hdr != xyes; then 21756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5 21757$as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;} 21758 have_ibus_ibus_h_hdr=no 21759 else 21760 21761$as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h 21762 21763 EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS" 21764 SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c" 21765 fi 21766 fi 21767 fi 21768 fi 21769} 21770 21771CheckFcitx() 21772{ 21773 # Check whether --enable-fcitx was given. 21774if test "${enable_fcitx+set}" = set; then : 21775 enableval=$enable_fcitx; 21776else 21777 enable_fcitx=yes 21778fi 21779 21780 if test x$enable_fcitx = xyes; then 21781 # Extract the first word of "pkg-config", so it can be a program name with args. 21782set dummy pkg-config; ac_word=$2 21783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21784$as_echo_n "checking for $ac_word... " >&6; } 21785if ${ac_cv_path_PKG_CONFIG+:} false; then : 21786 $as_echo_n "(cached) " >&6 21787else 21788 case $PKG_CONFIG in 21789 [\\/]* | ?:[\\/]*) 21790 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 21791 ;; 21792 *) 21793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21794for as_dir in $PATH 21795do 21796 IFS=$as_save_IFS 21797 test -z "$as_dir" && as_dir=. 21798 for ac_exec_ext in '' $ac_executable_extensions; do 21799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21800 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 21801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21802 break 2 21803 fi 21804done 21805 done 21806IFS=$as_save_IFS 21807 21808 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 21809 ;; 21810esac 21811fi 21812PKG_CONFIG=$ac_cv_path_PKG_CONFIG 21813if test -n "$PKG_CONFIG"; then 21814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 21815$as_echo "$PKG_CONFIG" >&6; } 21816else 21817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21818$as_echo "no" >&6; } 21819fi 21820 21821 21822 if test x$PKG_CONFIG != xno; then 21823 FCITX_CFLAGS=`$PKG_CONFIG --cflags fcitx` 21824 CFLAGS="$CFLAGS $FCITX_CFLAGS" 21825 ac_fn_c_check_header_mongrel "$LINENO" "fcitx/frontend.h" "ac_cv_header_fcitx_frontend_h" "$ac_includes_default" 21826if test "x$ac_cv_header_fcitx_frontend_h" = xyes; then : 21827 have_fcitx_frontend_h_hdr=yes 21828else 21829 have_fcitx_frontend_h_hdr=no 21830fi 21831 21832 21833 CFLAGS="$save_CFLAGS" 21834 if test x$have_fcitx_frontend_h_hdr = xyes; then 21835 if test x$enable_ime != xyes; then 21836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5 21837$as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;} 21838 have_fcitx_frontend_h_hdr=no 21839 elif test x$enable_dbus != xyes; then 21840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5 21841$as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;} 21842 have_fcitx_frontend_h_hdr=no 21843 else 21844 21845$as_echo "#define HAVE_FCITX_FRONTEND_H 1" >>confdefs.h 21846 21847 EXTRA_CFLAGS="$EXTRA_CFLAGS $FCITX_CFLAGS" 21848 SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c" 21849 fi 21850 fi 21851 fi 21852 fi 21853} 21854 21855CheckTslib() 21856{ 21857 # Check whether --enable-input-tslib was given. 21858if test "${enable_input_tslib+set}" = set; then : 21859 enableval=$enable_input_tslib; 21860else 21861 enable_input_tslib=yes 21862fi 21863 21864 if test x$enable_input_tslib = xyes; then 21865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Touchscreen library support" >&5 21866$as_echo_n "checking for Touchscreen library support... " >&6; } 21867 enable_input_tslib=no 21868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21869/* end confdefs.h. */ 21870 21871 #include "tslib.h" 21872 21873int 21874main () 21875{ 21876 21877 21878 ; 21879 return 0; 21880} 21881_ACEOF 21882if ac_fn_c_try_compile "$LINENO"; then : 21883 21884 enable_input_tslib=yes 21885 21886fi 21887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_input_tslib" >&5 21889$as_echo "$enable_input_tslib" >&6; } 21890 if test x$enable_input_tslib = xyes; then 21891 21892$as_echo "#define SDL_INPUT_TSLIB 1" >>confdefs.h 21893 21894 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts" 21895 SUMMARY_input="${SUMMARY_input} ts" 21896 fi 21897 fi 21898} 21899 21900CheckPTHREAD() 21901{ 21902 # Check whether --enable-pthreads was given. 21903if test "${enable_pthreads+set}" = set; then : 21904 enableval=$enable_pthreads; 21905else 21906 enable_pthreads=yes 21907fi 21908 21909 # Check whether --enable-pthread-sem was given. 21910if test "${enable_pthread_sem+set}" = set; then : 21911 enableval=$enable_pthread_sem; 21912else 21913 enable_pthread_sem=yes 21914fi 21915 21916 case "$host" in 21917 *-*-androideabi*) 21918 pthread_cflags="-D_REENTRANT -D_THREAD_SAFE" 21919 pthread_lib="" 21920 ;; 21921 *-*-linux*|*-*-uclinux*) 21922 pthread_cflags="-D_REENTRANT" 21923 pthread_lib="-lpthread" 21924 ;; 21925 *-*-bsdi*) 21926 pthread_cflags="-D_REENTRANT -D_THREAD_SAFE" 21927 pthread_lib="" 21928 ;; 21929 *-*-darwin*) 21930 pthread_cflags="-D_THREAD_SAFE" 21931# causes Carbon.p complaints? 21932# pthread_cflags="-D_REENTRANT -D_THREAD_SAFE" 21933 ;; 21934 *-*-freebsd*|*-*-dragonfly*) 21935 pthread_cflags="-D_REENTRANT -D_THREAD_SAFE" 21936 pthread_lib="-pthread" 21937 ;; 21938 *-*-netbsd*) 21939 pthread_cflags="-D_REENTRANT -D_THREAD_SAFE" 21940 pthread_lib="-lpthread" 21941 ;; 21942 *-*-openbsd*) 21943 pthread_cflags="-D_REENTRANT" 21944 pthread_lib="-pthread" 21945 ;; 21946 *-*-solaris2.9) 21947 # From Solaris 9+, posix4's preferred name is rt. 21948 pthread_cflags="-D_REENTRANT" 21949 pthread_lib="-lpthread -lrt" 21950 ;; 21951 *-*-solaris2.10) 21952 # Solaris 10+ merged pthread into libc. 21953 pthread_cflags="-D_REENTRANT" 21954 pthread_lib="-lrt" 21955 ;; 21956 *-*-solaris*) 21957 # Solaris 11+ merged rt into libc. 21958 pthread_cflags="-D_REENTRANT" 21959 pthread_lib="" 21960 ;; 21961 *-*-sysv5*) 21962 pthread_cflags="-D_REENTRANT -Kthread" 21963 pthread_lib="" 21964 ;; 21965 *-*-aix*) 21966 pthread_cflags="-D_REENTRANT -mthreads" 21967 pthread_lib="-lpthread" 21968 ;; 21969 *-*-hpux11*) 21970 pthread_cflags="-D_REENTRANT" 21971 pthread_lib="-L/usr/lib -lpthread" 21972 ;; 21973 *-*-haiku*) 21974 pthread_cflags="-D_REENTRANT" 21975 pthread_lib="" 21976 ;; 21977 *) 21978 pthread_cflags="-D_REENTRANT" 21979 pthread_lib="-lpthread" 21980 ;; 21981 esac 21982 if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then 21983 # Save the original compiler flags and libraries 21984 ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS" 21985 # Add the pthread compiler flags and libraries 21986 CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib" 21987 # Check to see if we have pthread support on this system 21988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5 21989$as_echo_n "checking for pthreads... " >&6; } 21990 use_pthreads=no 21991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21992/* end confdefs.h. */ 21993 21994 #include <pthread.h> 21995 21996int 21997main () 21998{ 21999 22000 pthread_attr_t type; 22001 pthread_attr_init(&type); 22002 22003 ; 22004 return 0; 22005} 22006_ACEOF 22007if ac_fn_c_try_link "$LINENO"; then : 22008 22009 use_pthreads=yes 22010 22011fi 22012rm -f core conftest.err conftest.$ac_objext \ 22013 conftest$ac_exeext conftest.$ac_ext 22014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5 22015$as_echo "$use_pthreads" >&6; } 22016 # Restore the compiler flags and libraries 22017 CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs" 22018 22019 # Do futher testing if we have pthread support... 22020 if test x$use_pthreads = xyes; then 22021 22022$as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h 22023 22024 EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags" 22025 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib" 22026 SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags" 22027 22028 # Save the original compiler flags and libraries 22029 ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS" 22030 # Add the pthread compiler flags and libraries 22031 CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib" 22032 22033 # Check to see if recursive mutexes are available 22034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5 22035$as_echo_n "checking for recursive mutexes... " >&6; } 22036 has_recursive_mutexes=no 22037 if test x$has_recursive_mutexes = xno; then 22038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22039/* end confdefs.h. */ 22040 22041 #define _GNU_SOURCE 1 22042 #include <pthread.h> 22043 22044int 22045main () 22046{ 22047 22048 pthread_mutexattr_t attr; 22049 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); 22050 22051 ; 22052 return 0; 22053} 22054_ACEOF 22055if ac_fn_c_try_link "$LINENO"; then : 22056 22057 has_recursive_mutexes=yes 22058 22059$as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h 22060 22061 22062fi 22063rm -f core conftest.err conftest.$ac_objext \ 22064 conftest$ac_exeext conftest.$ac_ext 22065 fi 22066 if test x$has_recursive_mutexes = xno; then 22067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22068/* end confdefs.h. */ 22069 22070 #define _GNU_SOURCE 1 22071 #include <pthread.h> 22072 22073int 22074main () 22075{ 22076 22077 pthread_mutexattr_t attr; 22078 pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP); 22079 22080 ; 22081 return 0; 22082} 22083_ACEOF 22084if ac_fn_c_try_link "$LINENO"; then : 22085 22086 has_recursive_mutexes=yes 22087 22088$as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h 22089 22090 22091fi 22092rm -f core conftest.err conftest.$ac_objext \ 22093 conftest$ac_exeext conftest.$ac_ext 22094 fi 22095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5 22096$as_echo "$has_recursive_mutexes" >&6; } 22097 22098 # Check to see if pthread semaphore support is missing 22099 if test x$enable_pthread_sem = xyes; then 22100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5 22101$as_echo_n "checking for pthread semaphores... " >&6; } 22102 have_pthread_sem=no 22103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22104/* end confdefs.h. */ 22105 22106 #include <pthread.h> 22107 #include <semaphore.h> 22108 22109int 22110main () 22111{ 22112 22113 22114 ; 22115 return 0; 22116} 22117_ACEOF 22118if ac_fn_c_try_compile "$LINENO"; then : 22119 22120 have_pthread_sem=yes 22121 22122fi 22123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5 22125$as_echo "$have_pthread_sem" >&6; } 22126 fi 22127 if test x$have_pthread_sem = xyes; then 22128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5 22129$as_echo_n "checking for sem_timedwait... " >&6; } 22130 have_sem_timedwait=no 22131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22132/* end confdefs.h. */ 22133 22134 #include <pthread.h> 22135 #include <semaphore.h> 22136 22137int 22138main () 22139{ 22140 22141 sem_timedwait(NULL, NULL); 22142 22143 ; 22144 return 0; 22145} 22146_ACEOF 22147if ac_fn_c_try_link "$LINENO"; then : 22148 22149 have_sem_timedwait=yes 22150 $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h 22151 22152 22153fi 22154rm -f core conftest.err conftest.$ac_objext \ 22155 conftest$ac_exeext conftest.$ac_ext 22156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5 22157$as_echo "$have_sem_timedwait" >&6; } 22158 fi 22159 22160 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h> 22161" 22162if test "x$ac_cv_header_pthread_np_h" = xyes; then : 22163 have_pthread_np_h=yes 22164else 22165 have_pthread_np_h=no 22166fi 22167 22168 22169 if test x$have_pthread_np_h = xyes; then 22170 22171$as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h 22172 22173 fi 22174 22175 # Check to see if pthread naming is available 22176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5 22177$as_echo_n "checking for pthread_setname_np... " >&6; } 22178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22179/* end confdefs.h. */ 22180 22181/* Override any GCC internal prototype to avoid an error. 22182 Use char because int might match the return type of a GCC 22183 builtin and then its argument prototype would still apply. */ 22184#ifdef __cplusplus 22185extern "C" 22186#endif 22187char pthread_setname_np (); 22188int 22189main () 22190{ 22191return pthread_setname_np (); 22192 ; 22193 return 0; 22194} 22195_ACEOF 22196if ac_fn_c_try_link "$LINENO"; then : 22197 22198 has_pthread_setname_np=yes 22199 22200$as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h 22201 22202 22203else 22204 22205 has_pthread_setname_np=no 22206 22207fi 22208rm -f core conftest.err conftest.$ac_objext \ 22209 conftest$ac_exeext conftest.$ac_ext 22210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5 22211$as_echo "$has_pthread_setname_np" >&6; } 22212 22213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5 22214$as_echo_n "checking for pthread_set_name_np... " >&6; } 22215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22216/* end confdefs.h. */ 22217 22218/* Override any GCC internal prototype to avoid an error. 22219 Use char because int might match the return type of a GCC 22220 builtin and then its argument prototype would still apply. */ 22221#ifdef __cplusplus 22222extern "C" 22223#endif 22224char pthread_set_name_np (); 22225int 22226main () 22227{ 22228return pthread_set_name_np (); 22229 ; 22230 return 0; 22231} 22232_ACEOF 22233if ac_fn_c_try_link "$LINENO"; then : 22234 22235 has_pthread_set_name_np=yes 22236 22237$as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h 22238 22239 22240else 22241 22242 has_pthread_set_name_np=no 22243 22244fi 22245rm -f core conftest.err conftest.$ac_objext \ 22246 conftest$ac_exeext conftest.$ac_ext 22247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5 22248$as_echo "$has_pthread_set_name_np" >&6; } 22249 22250 # Restore the compiler flags and libraries 22251 CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs" 22252 22253 # Basic thread creation functions 22254 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c" 22255 22256 # Semaphores 22257 # We can fake these with mutexes and condition variables if necessary 22258 if test x$have_pthread_sem = xyes; then 22259 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c" 22260 else 22261 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c" 22262 fi 22263 22264 # Mutexes 22265 # We can fake these with semaphores if necessary 22266 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c" 22267 22268 # Condition variables 22269 # We can fake these with semaphores and mutexes if necessary 22270 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c" 22271 22272 # Thread local storage 22273 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c" 22274 22275 have_threads=yes 22276 fi 22277 fi 22278} 22279 22280CheckWINDOWS() 22281{ 22282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5 22283$as_echo_n "checking Windows compiler... " >&6; } 22284 have_win32_gcc=no 22285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22286/* end confdefs.h. */ 22287 22288 #include <windows.h> 22289 22290int 22291main () 22292{ 22293 22294 22295 ; 22296 return 0; 22297} 22298_ACEOF 22299if ac_fn_c_try_compile "$LINENO"; then : 22300 22301 have_win32_gcc=yes 22302 22303fi 22304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5 22306$as_echo "$have_win32_gcc" >&6; } 22307 if test x$have_win32_gcc != xyes; then 22308 as_fn_error $? " 22309*** Your compiler ($CC) does not produce Windows executables! 22310 " "$LINENO" 5 22311 fi 22312 22313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5 22314$as_echo_n "checking Windows CE... " >&6; } 22315 have_wince=no 22316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22317/* end confdefs.h. */ 22318 22319#if !defined(_WIN32_WCE) && !defined(__MINGW32CE__) 22320#error This is not Windows CE 22321#endif 22322 22323int 22324main () 22325{ 22326 22327 22328 ; 22329 return 0; 22330} 22331_ACEOF 22332if ac_fn_c_try_compile "$LINENO"; then : 22333 22334 have_wince=yes 22335 as_fn_error $? " 22336*** Sorry, Windows CE is no longer supported. 22337 " "$LINENO" 5 22338 22339fi 22340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5 22342$as_echo "$have_wince" >&6; } 22343 22344 # This fixes Windows stack alignment with newer GCC 22345 CheckStackBoundary 22346} 22347 22348CheckDIRECTX() 22349{ 22350 # Check whether --enable-directx was given. 22351if test "${enable_directx+set}" = set; then : 22352 enableval=$enable_directx; 22353else 22354 enable_directx=yes 22355fi 22356 22357 if test x$enable_directx = xyes; then 22358 ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default" 22359if test "x$ac_cv_header_d3d9_h" = xyes; then : 22360 have_d3d=yes 22361fi 22362 22363 22364 ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default" 22365if test "x$ac_cv_header_d3d11_1_h" = xyes; then : 22366 have_d3d11=yes 22367fi 22368 22369 22370 ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default" 22371if test "x$ac_cv_header_ddraw_h" = xyes; then : 22372 have_ddraw=yes 22373fi 22374 22375 22376 ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default" 22377if test "x$ac_cv_header_dsound_h" = xyes; then : 22378 have_dsound=yes 22379fi 22380 22381 22382 ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default" 22383if test "x$ac_cv_header_dinput_h" = xyes; then : 22384 have_dinput=yes 22385fi 22386 22387 22388 ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default" 22389if test "x$ac_cv_header_dxgi_h" = xyes; then : 22390 have_dxgi=yes 22391fi 22392 22393 22394 ac_fn_c_check_header_mongrel "$LINENO" "xaudio2.h" "ac_cv_header_xaudio2_h" "$ac_includes_default" 22395if test "x$ac_cv_header_xaudio2_h" = xyes; then : 22396 have_xaudio2=yes 22397fi 22398 22399 22400 ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default" 22401if test "x$ac_cv_header_xinput_h" = xyes; then : 22402 have_xinput=yes 22403fi 22404 22405 22406 22407 if test x$have_ddraw = xyes; then 22408 22409$as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h 22410 22411 fi 22412 if test x$have_dinput = xyes; then 22413 22414$as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h 22415 22416 fi 22417 if test x$have_dsound = xyes; then 22418 22419$as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h 22420 22421 fi 22422 if test x$have_dxgi = xyes; then 22423 22424$as_echo "#define HAVE_DXGI_H 1" >>confdefs.h 22425 22426 fi 22427 if test x$have_xinput = xyes; then 22428 22429$as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h 22430 22431 fi 22432 22433 SUMMARY_video="${SUMMARY_video} directx" 22434 SUMMARY_audio="${SUMMARY_audio} directx" 22435 22436 # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers. 22437 # FIXME: ...so force it off for now. 22438 case "$host" in 22439 *-*-cygwin*) 22440 have_dinput=false 22441 ;; 22442 esac 22443 fi 22444} 22445 22446CheckDLOPEN() 22447{ 22448 # Check whether --enable-sdl-dlopen was given. 22449if test "${enable_sdl_dlopen+set}" = set; then : 22450 enableval=$enable_sdl_dlopen; 22451else 22452 enable_sdl_dlopen=yes 22453fi 22454 22455 if test x$enable_sdl_dlopen = xyes; then 22456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5 22457$as_echo_n "checking for dlopen... " >&6; } 22458 have_dlopen=no 22459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22460/* end confdefs.h. */ 22461 22462 #include <dlfcn.h> 22463 22464int 22465main () 22466{ 22467 22468 void *handle = dlopen("", RTLD_NOW); 22469 const char *loaderror = (char *) dlerror(); 22470 22471 ; 22472 return 0; 22473} 22474_ACEOF 22475if ac_fn_c_try_compile "$LINENO"; then : 22476 22477 have_dlopen=yes 22478 22479fi 22480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5 22482$as_echo "$have_dlopen" >&6; } 22483 22484 if test x$have_dlopen = xyes; then 22485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5 22486$as_echo_n "checking for dlopen in -lc... " >&6; } 22487if ${ac_cv_lib_c_dlopen+:} false; then : 22488 $as_echo_n "(cached) " >&6 22489else 22490 ac_check_lib_save_LIBS=$LIBS 22491LIBS="-lc $LIBS" 22492cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22493/* end confdefs.h. */ 22494 22495/* Override any GCC internal prototype to avoid an error. 22496 Use char because int might match the return type of a GCC 22497 builtin and then its argument prototype would still apply. */ 22498#ifdef __cplusplus 22499extern "C" 22500#endif 22501char dlopen (); 22502int 22503main () 22504{ 22505return dlopen (); 22506 ; 22507 return 0; 22508} 22509_ACEOF 22510if ac_fn_c_try_link "$LINENO"; then : 22511 ac_cv_lib_c_dlopen=yes 22512else 22513 ac_cv_lib_c_dlopen=no 22514fi 22515rm -f core conftest.err conftest.$ac_objext \ 22516 conftest$ac_exeext conftest.$ac_ext 22517LIBS=$ac_check_lib_save_LIBS 22518fi 22519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5 22520$as_echo "$ac_cv_lib_c_dlopen" >&6; } 22521if test "x$ac_cv_lib_c_dlopen" = xyes; then : 22522 EXTRA_LDFLAGS="$EXTRA_LDFLAGS" 22523else 22524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 22525$as_echo_n "checking for dlopen in -ldl... " >&6; } 22526if ${ac_cv_lib_dl_dlopen+:} false; then : 22527 $as_echo_n "(cached) " >&6 22528else 22529 ac_check_lib_save_LIBS=$LIBS 22530LIBS="-ldl $LIBS" 22531cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22532/* end confdefs.h. */ 22533 22534/* Override any GCC internal prototype to avoid an error. 22535 Use char because int might match the return type of a GCC 22536 builtin and then its argument prototype would still apply. */ 22537#ifdef __cplusplus 22538extern "C" 22539#endif 22540char dlopen (); 22541int 22542main () 22543{ 22544return dlopen (); 22545 ; 22546 return 0; 22547} 22548_ACEOF 22549if ac_fn_c_try_link "$LINENO"; then : 22550 ac_cv_lib_dl_dlopen=yes 22551else 22552 ac_cv_lib_dl_dlopen=no 22553fi 22554rm -f core conftest.err conftest.$ac_objext \ 22555 conftest$ac_exeext conftest.$ac_ext 22556LIBS=$ac_check_lib_save_LIBS 22557fi 22558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 22559$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 22560if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 22561 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl" 22562else 22563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5 22564$as_echo_n "checking for dlopen in -lltdl... " >&6; } 22565if ${ac_cv_lib_ltdl_dlopen+:} false; then : 22566 $as_echo_n "(cached) " >&6 22567else 22568 ac_check_lib_save_LIBS=$LIBS 22569LIBS="-lltdl $LIBS" 22570cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22571/* end confdefs.h. */ 22572 22573/* Override any GCC internal prototype to avoid an error. 22574 Use char because int might match the return type of a GCC 22575 builtin and then its argument prototype would still apply. */ 22576#ifdef __cplusplus 22577extern "C" 22578#endif 22579char dlopen (); 22580int 22581main () 22582{ 22583return dlopen (); 22584 ; 22585 return 0; 22586} 22587_ACEOF 22588if ac_fn_c_try_link "$LINENO"; then : 22589 ac_cv_lib_ltdl_dlopen=yes 22590else 22591 ac_cv_lib_ltdl_dlopen=no 22592fi 22593rm -f core conftest.err conftest.$ac_objext \ 22594 conftest$ac_exeext conftest.$ac_ext 22595LIBS=$ac_check_lib_save_LIBS 22596fi 22597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5 22598$as_echo "$ac_cv_lib_ltdl_dlopen" >&6; } 22599if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then : 22600 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl" 22601fi 22602 22603fi 22604 22605fi 22606 22607 22608$as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h 22609 22610 SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c" 22611 have_loadso=yes 22612 fi 22613 fi 22614} 22615 22616CheckUSBHID() 22617{ 22618 case "$host" in 22619 *-*-*bsd*) 22620 if test x$enable_joystick = xyes; then 22621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5 22622$as_echo_n "checking for hid_init in -lusbhid... " >&6; } 22623if ${ac_cv_lib_usbhid_hid_init+:} false; then : 22624 $as_echo_n "(cached) " >&6 22625else 22626 ac_check_lib_save_LIBS=$LIBS 22627LIBS="-lusbhid $LIBS" 22628cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22629/* end confdefs.h. */ 22630 22631/* Override any GCC internal prototype to avoid an error. 22632 Use char because int might match the return type of a GCC 22633 builtin and then its argument prototype would still apply. */ 22634#ifdef __cplusplus 22635extern "C" 22636#endif 22637char hid_init (); 22638int 22639main () 22640{ 22641return hid_init (); 22642 ; 22643 return 0; 22644} 22645_ACEOF 22646if ac_fn_c_try_link "$LINENO"; then : 22647 ac_cv_lib_usbhid_hid_init=yes 22648else 22649 ac_cv_lib_usbhid_hid_init=no 22650fi 22651rm -f core conftest.err conftest.$ac_objext \ 22652 conftest$ac_exeext conftest.$ac_ext 22653LIBS=$ac_check_lib_save_LIBS 22654fi 22655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5 22656$as_echo "$ac_cv_lib_usbhid_hid_init" >&6; } 22657if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then : 22658 have_libusbhid=yes 22659fi 22660 22661 if test x$have_libusbhid = xyes; then 22662 ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default" 22663if test "x$ac_cv_header_usbhid_h" = xyes; then : 22664 USB_CFLAGS="-DHAVE_USBHID_H" 22665fi 22666 22667 22668 ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default" 22669if test "x$ac_cv_header_libusbhid_h" = xyes; then : 22670 USB_CFLAGS="-DHAVE_LIBUSBHID_H" 22671fi 22672 22673 22674 USB_LIBS="$USB_LIBS -lusbhid" 22675 else 22676 ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default" 22677if test "x$ac_cv_header_usb_h" = xyes; then : 22678 USB_CFLAGS="-DHAVE_USB_H" 22679fi 22680 22681 22682 ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default" 22683if test "x$ac_cv_header_libusb_h" = xyes; then : 22684 USB_CFLAGS="-DHAVE_LIBUSB_H" 22685fi 22686 22687 22688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5 22689$as_echo_n "checking for hid_init in -lusb... " >&6; } 22690if ${ac_cv_lib_usb_hid_init+:} false; then : 22691 $as_echo_n "(cached) " >&6 22692else 22693 ac_check_lib_save_LIBS=$LIBS 22694LIBS="-lusb $LIBS" 22695cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22696/* end confdefs.h. */ 22697 22698/* Override any GCC internal prototype to avoid an error. 22699 Use char because int might match the return type of a GCC 22700 builtin and then its argument prototype would still apply. */ 22701#ifdef __cplusplus 22702extern "C" 22703#endif 22704char hid_init (); 22705int 22706main () 22707{ 22708return hid_init (); 22709 ; 22710 return 0; 22711} 22712_ACEOF 22713if ac_fn_c_try_link "$LINENO"; then : 22714 ac_cv_lib_usb_hid_init=yes 22715else 22716 ac_cv_lib_usb_hid_init=no 22717fi 22718rm -f core conftest.err conftest.$ac_objext \ 22719 conftest$ac_exeext conftest.$ac_ext 22720LIBS=$ac_check_lib_save_LIBS 22721fi 22722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5 22723$as_echo "$ac_cv_lib_usb_hid_init" >&6; } 22724if test "x$ac_cv_lib_usb_hid_init" = xyes; then : 22725 USB_LIBS="$USB_LIBS -lusb" 22726fi 22727 22728 fi 22729 22730 save_CFLAGS="$CFLAGS" 22731 CFLAGS="$CFLAGS $USB_CFLAGS" 22732 22733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5 22734$as_echo_n "checking for usbhid... " >&6; } 22735 have_usbhid=no 22736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22737/* end confdefs.h. */ 22738 22739 #include <sys/types.h> 22740 #if defined(HAVE_USB_H) 22741 #include <usb.h> 22742 #endif 22743 #ifdef __DragonFly__ 22744 # include <bus/usb/usb.h> 22745 # include <bus/usb/usbhid.h> 22746 #else 22747 # include <dev/usb/usb.h> 22748 # include <dev/usb/usbhid.h> 22749 #endif 22750 #if defined(HAVE_USBHID_H) 22751 #include <usbhid.h> 22752 #elif defined(HAVE_LIBUSB_H) 22753 #include <libusb.h> 22754 #elif defined(HAVE_LIBUSBHID_H) 22755 #include <libusbhid.h> 22756 #endif 22757 22758int 22759main () 22760{ 22761 22762 struct report_desc *repdesc; 22763 struct usb_ctl_report *repbuf; 22764 hid_kind_t hidkind; 22765 22766 ; 22767 return 0; 22768} 22769_ACEOF 22770if ac_fn_c_try_compile "$LINENO"; then : 22771 22772 have_usbhid=yes 22773 22774fi 22775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5 22777$as_echo "$have_usbhid" >&6; } 22778 22779 if test x$have_usbhid = xyes; then 22780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5 22781$as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; } 22782 have_usbhid_ucr_data=no 22783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22784/* end confdefs.h. */ 22785 22786 #include <sys/types.h> 22787 #if defined(HAVE_USB_H) 22788 #include <usb.h> 22789 #endif 22790 #ifdef __DragonFly__ 22791 # include <bus/usb/usb.h> 22792 # include <bus/usb/usbhid.h> 22793 #else 22794 # include <dev/usb/usb.h> 22795 # include <dev/usb/usbhid.h> 22796 #endif 22797 #if defined(HAVE_USBHID_H) 22798 #include <usbhid.h> 22799 #elif defined(HAVE_LIBUSB_H) 22800 #include <libusb.h> 22801 #elif defined(HAVE_LIBUSBHID_H) 22802 #include <libusbhid.h> 22803 #endif 22804 22805int 22806main () 22807{ 22808 22809 struct usb_ctl_report buf; 22810 if (buf.ucr_data) { } 22811 22812 ; 22813 return 0; 22814} 22815_ACEOF 22816if ac_fn_c_try_compile "$LINENO"; then : 22817 22818 have_usbhid_ucr_data=yes 22819 22820fi 22821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22822 if test x$have_usbhid_ucr_data = xyes; then 22823 USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA" 22824 fi 22825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5 22826$as_echo "$have_usbhid_ucr_data" >&6; } 22827 22828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5 22829$as_echo_n "checking for new usbhid API... " >&6; } 22830 have_usbhid_new=no 22831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22832/* end confdefs.h. */ 22833 22834 #include <sys/types.h> 22835 #if defined(HAVE_USB_H) 22836 #include <usb.h> 22837 #endif 22838 #ifdef __DragonFly__ 22839 #include <bus/usb/usb.h> 22840 #include <bus/usb/usbhid.h> 22841 #else 22842 #include <dev/usb/usb.h> 22843 #include <dev/usb/usbhid.h> 22844 #endif 22845 #if defined(HAVE_USBHID_H) 22846 #include <usbhid.h> 22847 #elif defined(HAVE_LIBUSB_H) 22848 #include <libusb.h> 22849 #elif defined(HAVE_LIBUSBHID_H) 22850 #include <libusbhid.h> 22851 #endif 22852 22853int 22854main () 22855{ 22856 22857 report_desc_t d; 22858 hid_start_parse(d, 1, 1); 22859 22860 ; 22861 return 0; 22862} 22863_ACEOF 22864if ac_fn_c_try_compile "$LINENO"; then : 22865 22866 have_usbhid_new=yes 22867 22868fi 22869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22870 if test x$have_usbhid_new = xyes; then 22871 USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW" 22872 fi 22873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5 22874$as_echo "$have_usbhid_new" >&6; } 22875 22876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5 22877$as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; } 22878 have_machine_joystick=no 22879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22880/* end confdefs.h. */ 22881 22882 #include <machine/joystick.h> 22883 22884int 22885main () 22886{ 22887 22888 struct joystick t; 22889 22890 ; 22891 return 0; 22892} 22893_ACEOF 22894if ac_fn_c_try_compile "$LINENO"; then : 22895 22896 have_machine_joystick=yes 22897 22898fi 22899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22900 if test x$have_machine_joystick = xyes; then 22901 22902$as_echo "#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h 22903 22904 fi 22905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5 22906$as_echo "$have_machine_joystick" >&6; } 22907 22908 22909$as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h 22910 22911 SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c" 22912 EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS" 22913 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS" 22914 have_joystick=yes 22915 fi 22916 CFLAGS="$save_CFLAGS" 22917 fi 22918 ;; 22919 esac 22920} 22921 22922CheckClockGettime() 22923{ 22924 # Check whether --enable-clock_gettime was given. 22925if test "${enable_clock_gettime+set}" = set; then : 22926 enableval=$enable_clock_gettime; 22927else 22928 enable_clock_gettime=yes 22929fi 22930 22931 if test x$enable_clock_gettime = xyes; then 22932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 22933$as_echo_n "checking for clock_gettime in -lrt... " >&6; } 22934if ${ac_cv_lib_rt_clock_gettime+:} false; then : 22935 $as_echo_n "(cached) " >&6 22936else 22937 ac_check_lib_save_LIBS=$LIBS 22938LIBS="-lrt $LIBS" 22939cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22940/* end confdefs.h. */ 22941 22942/* Override any GCC internal prototype to avoid an error. 22943 Use char because int might match the return type of a GCC 22944 builtin and then its argument prototype would still apply. */ 22945#ifdef __cplusplus 22946extern "C" 22947#endif 22948char clock_gettime (); 22949int 22950main () 22951{ 22952return clock_gettime (); 22953 ; 22954 return 0; 22955} 22956_ACEOF 22957if ac_fn_c_try_link "$LINENO"; then : 22958 ac_cv_lib_rt_clock_gettime=yes 22959else 22960 ac_cv_lib_rt_clock_gettime=no 22961fi 22962rm -f core conftest.err conftest.$ac_objext \ 22963 conftest$ac_exeext conftest.$ac_ext 22964LIBS=$ac_check_lib_save_LIBS 22965fi 22966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 22967$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } 22968if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : 22969 have_clock_gettime=yes 22970fi 22971 22972 if test x$have_clock_gettime = xyes; then 22973 22974$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h 22975 22976 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt" 22977 else 22978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5 22979$as_echo_n "checking for clock_gettime in -lc... " >&6; } 22980if ${ac_cv_lib_c_clock_gettime+:} false; then : 22981 $as_echo_n "(cached) " >&6 22982else 22983 ac_check_lib_save_LIBS=$LIBS 22984LIBS="-lc $LIBS" 22985cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22986/* end confdefs.h. */ 22987 22988/* Override any GCC internal prototype to avoid an error. 22989 Use char because int might match the return type of a GCC 22990 builtin and then its argument prototype would still apply. */ 22991#ifdef __cplusplus 22992extern "C" 22993#endif 22994char clock_gettime (); 22995int 22996main () 22997{ 22998return clock_gettime (); 22999 ; 23000 return 0; 23001} 23002_ACEOF 23003if ac_fn_c_try_link "$LINENO"; then : 23004 ac_cv_lib_c_clock_gettime=yes 23005else 23006 ac_cv_lib_c_clock_gettime=no 23007fi 23008rm -f core conftest.err conftest.$ac_objext \ 23009 conftest$ac_exeext conftest.$ac_ext 23010LIBS=$ac_check_lib_save_LIBS 23011fi 23012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5 23013$as_echo "$ac_cv_lib_c_clock_gettime" >&6; } 23014if test "x$ac_cv_lib_c_clock_gettime" = xyes; then : 23015 have_clock_gettime=yes 23016fi 23017 23018 if test x$have_clock_gettime = xyes; then 23019 23020$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h 23021 23022 EXTRA_LDFLAGS="$EXTRA_LDFLAGS" 23023 fi 23024 fi 23025 fi 23026} 23027 23028CheckLinuxVersion() 23029{ 23030 ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default" 23031if test "x$ac_cv_header_linux_version_h" = xyes; then : 23032 have_linux_version_h=yes 23033fi 23034 23035 23036 if test x$have_linux_version_h = xyes; then 23037 EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H" 23038 fi 23039} 23040 23041CheckRPATH() 23042{ 23043 # Check whether --enable-rpath was given. 23044if test "${enable_rpath+set}" = set; then : 23045 enableval=$enable_rpath; 23046else 23047 enable_rpath=yes 23048fi 23049 23050} 23051 23052CheckWarnAll 23053 23054case "$host" in 23055 *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*) 23056 case "$host" in 23057 *-raspberry-linux*) 23058 # Raspberry Pi 23059 ARCH=linux 23060 RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux" 23061 CFLAGS="$CFLAGS $RPI_CFLAGS" 23062 SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS" 23063 EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS" 23064 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L/opt/vc/lib -lbcm_host -ldl" 23065 23066 if test x$enable_video = xyes; then 23067 SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c" 23068 # FIXME: confdefs? Not AC_DEFINE? 23069 $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h 23070 SUMMARY_video="${SUMMARY_video} rpi" 23071 fi 23072 ;; 23073 *-*-androideabi*) 23074 # Android 23075 ARCH=android 23076 ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES" 23077 CFLAGS="$CFLAGS $ANDROID_CFLAGS" 23078 SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS" 23079 EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS" 23080 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid" 23081 23082 if test x$enable_video = xyes; then 23083 SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c" 23084 # FIXME: confdefs? Not AC_DEFINE? 23085 $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h 23086 SUMMARY_video="${SUMMARY_video} android" 23087 fi 23088 ;; 23089 *-*-linux*) ARCH=linux ;; 23090 *-*-uclinux*) ARCH=linux ;; 23091 *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;; 23092 *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;; 23093 *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;; 23094 *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants 23095 *-*-bsdi*) ARCH=bsdi ;; 23096 *-*-freebsd*) ARCH=freebsd ;; 23097 *-*-dragonfly*) ARCH=freebsd ;; 23098 *-raspberry-netbsd*) 23099 # Raspberry Pi 23100 ARCH=netbsd 23101 RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux" 23102 CFLAGS="$CFLAGS $RPI_CFLAGS" 23103 SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS" 23104 EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS" 23105 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host -ldl" 23106 23107 if test x$enable_video = xyes; then 23108 SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c" 23109 $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h 23110 SUMMARY_video="${SUMMARY_video} raspberry" 23111 fi 23112 ;; 23113 *-*-netbsd*) ARCH=netbsd ;; 23114 *-*-openbsd*) ARCH=openbsd ;; 23115 *-*-sysv5*) ARCH=sysv5 ;; 23116 *-*-solaris*) ARCH=solaris ;; 23117 *-*-hpux*) ARCH=hpux ;; 23118 *-*-aix*) ARCH=aix ;; 23119 *-*-minix*) ARCH=minix ;; 23120 esac 23121 CheckVisibilityHidden 23122 CheckDeclarationAfterStatement 23123 CheckDummyVideo 23124 CheckDiskAudio 23125 CheckDummyAudio 23126 CheckDLOPEN 23127 CheckOSS 23128 CheckALSA 23129 CheckPulseAudio 23130 CheckARTSC 23131 CheckESD 23132 CheckNAS 23133 CheckSNDIO 23134 CheckX11 23135 CheckDirectFB 23136 CheckFusionSound 23137 CheckOpenGLX11 23138 CheckOpenGLESX11 23139 CheckMir 23140 CheckWayland 23141 CheckLibUDev 23142 CheckDBus 23143 CheckIME 23144 CheckIBus 23145 CheckFcitx 23146 case $ARCH in 23147 linux) 23148 CheckInputEvents 23149 CheckInputKD 23150 ;; 23151 esac 23152 CheckTslib 23153 CheckUSBHID 23154 CheckPTHREAD 23155 CheckClockGettime 23156 CheckLinuxVersion 23157 CheckRPATH 23158 CheckVivanteVideo 23159 # Set up files for the audio library 23160 if test x$enable_audio = xyes; then 23161 case $ARCH in 23162 sysv5|solaris|hpux) 23163 23164$as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h 23165 23166 SOURCES="$SOURCES $srcdir/src/audio/sun/*.c" 23167 have_audio=yes 23168 ;; 23169 netbsd) # Don't use this on OpenBSD, it's busted. 23170 23171$as_echo "#define SDL_AUDIO_DRIVER_BSD 1" >>confdefs.h 23172 23173 SOURCES="$SOURCES $srcdir/src/audio/bsd/*.c" 23174 have_audio=yes 23175 ;; 23176 aix) 23177 23178$as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h 23179 23180 SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c" 23181 have_audio=yes 23182 ;; 23183 android) 23184 23185$as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h 23186 23187 SOURCES="$SOURCES $srcdir/src/audio/android/*.c" 23188 SUMMARY_audio="${SUMMARY_audio} android" 23189 have_audio=yes 23190 ;; 23191 esac 23192 fi 23193 # Set up files for the joystick library 23194 if test x$enable_joystick = xyes; then 23195 case $ARCH in 23196 linux) 23197 23198$as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h 23199 23200 SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c" 23201 have_joystick=yes 23202 ;; 23203 android) 23204 23205$as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h 23206 23207 SOURCES="$SOURCES $srcdir/src/joystick/android/*.c" 23208 have_joystick=yes 23209 ;; 23210 esac 23211 fi 23212 # Set up files for the haptic library 23213 if test x$enable_haptic = xyes; then 23214 if test x$use_input_events = xyes; then 23215 case $ARCH in 23216 linux) 23217 23218$as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h 23219 23220 SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c" 23221 have_haptic=yes 23222 ;; 23223 esac 23224 fi 23225 fi 23226 # Set up files for the power library 23227 if test x$enable_power = xyes; then 23228 case $ARCH in 23229 linux) 23230 23231$as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h 23232 23233 SOURCES="$SOURCES $srcdir/src/power/linux/*.c" 23234 have_power=yes 23235 ;; 23236 android) 23237 23238$as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h 23239 23240 SOURCES="$SOURCES $srcdir/src/power/android/*.c" 23241 have_power=yes 23242 ;; 23243 esac 23244 fi 23245 # Set up files for the filesystem library 23246 if test x$enable_filesystem = xyes; then 23247 case $ARCH in 23248 android) 23249 23250$as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h 23251 23252 SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c" 23253 have_filesystem=yes 23254 ;; 23255 *) 23256 23257$as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h 23258 23259 SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c" 23260 have_filesystem=yes 23261 ;; 23262 esac 23263 fi 23264 # Set up files for the timer library 23265 if test x$enable_timers = xyes; then 23266 23267$as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h 23268 23269 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c" 23270 have_timers=yes 23271 fi 23272 # Set up files for udev hotplugging support 23273 if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then 23274 SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c" 23275 fi 23276 # Set up files for evdev input 23277 if test x$use_input_events = xyes; then 23278 SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c" 23279 fi 23280 ;; 23281 *-*-cygwin* | *-*-mingw32*) 23282 ARCH=win32 23283 if test "$build" != "$host"; then # cross-compiling 23284 # Default cross-compile location 23285 ac_default_prefix=/usr/local/cross-tools/$host 23286 else 23287 # Look for the location of the tools and install there 23288 if test "$BUILD_PREFIX" != ""; then 23289 ac_default_prefix=$BUILD_PREFIX 23290 fi 23291 fi 23292 CheckDummyVideo 23293 CheckDiskAudio 23294 CheckDummyAudio 23295 CheckWINDOWS 23296 CheckWINDOWSGL 23297 CheckWINDOWSGLES 23298 CheckDIRECTX 23299 23300 # Set up the core platform files 23301 SOURCES="$SOURCES $srcdir/src/core/windows/*.c" 23302 23303 # Set up files for the video library 23304 if test x$enable_video = xyes; then 23305 23306$as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h 23307 23308 SOURCES="$SOURCES $srcdir/src/video/windows/*.c" 23309 have_video=yes 23310 # Check whether --enable-render-d3d was given. 23311if test "${enable_render_d3d+set}" = set; then : 23312 enableval=$enable_render_d3d; 23313else 23314 enable_render_d3d=yes 23315fi 23316 23317 if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then 23318 23319$as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h 23320 23321 fi 23322 if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then 23323 23324$as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h 23325 23326 fi 23327 fi 23328 # Set up files for the audio library 23329 if test x$enable_audio = xyes; then 23330 23331$as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h 23332 23333 SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c" 23334 if test x$have_dsound = xyes; then 23335 23336$as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h 23337 23338 SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c" 23339 fi 23340 if test x$have_xaudio2 = xyes; then 23341 23342$as_echo "#define SDL_AUDIO_DRIVER_XAUDIO2 1" >>confdefs.h 23343 23344 SOURCES="$SOURCES $srcdir/src/audio/xaudio2/*.c" 23345 fi 23346 have_audio=yes 23347 fi 23348 # Set up files for the joystick library 23349 if test x$enable_joystick = xyes; then 23350 if test x$have_dinput = xyes -o x$have_xinput = xyes; then 23351 if test x$have_xinput = xyes; then 23352 23353$as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h 23354 23355 fi 23356 if test x$have_dinput = xyes; then 23357 23358$as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h 23359 23360 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8" 23361 fi 23362 else 23363 23364$as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h 23365 23366 fi 23367 SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c" 23368 have_joystick=yes 23369 fi 23370 if test x$enable_haptic = xyes; then 23371 if test x$have_dinput = xyes -o x$have_xinput = xyes; then 23372 if test x$have_xinput = xyes; then 23373 23374$as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h 23375 23376 fi 23377 if test x$have_dinput = xyes; then 23378 23379$as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h 23380 23381 fi 23382 SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c" 23383 have_haptic=yes 23384 fi 23385 fi 23386 if test x$enable_power = xyes; then 23387 23388$as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h 23389 23390 SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c" 23391 have_power=yes 23392 fi 23393 if test x$enable_filesystem = xyes; then 23394 23395$as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h 23396 23397 SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c" 23398 have_filesystem=yes 23399 fi 23400 # Set up files for the thread library 23401 if test x$enable_threads = xyes; then 23402 23403$as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h 23404 23405 SOURCES="$SOURCES $srcdir/src/thread/windows/*.c" 23406 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c" 23407 have_threads=yes 23408 fi 23409 # Set up files for the timer library 23410 if test x$enable_timers = xyes; then 23411 23412$as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h 23413 23414 SOURCES="$SOURCES $srcdir/src/timer/windows/*.c" 23415 have_timers=yes 23416 fi 23417 # Set up files for the shared object loading library 23418 if test x$enable_loadso = xyes; then 23419 23420$as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h 23421 23422 SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c" 23423 have_loadso=yes 23424 fi 23425 # Set up the system libraries we need 23426 if test -f /lib/w32api/libuuid.a; then 23427 LIBUUID=/lib/w32api/libuuid.a 23428 else 23429 LIBUUID=-luuid 23430 fi 23431 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lversion $LIBUUID -static-libgcc" 23432 # The Windows platform requires special setup 23433 VERSION_SOURCES="$srcdir/src/main/windows/*.rc" 23434 SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c" 23435 SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main" 23436 SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows" 23437 23438 # Check to see if this is a mingw or cygwin build 23439 have_mingw32= 23440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5 23441$as_echo_n "checking for main in -lmingw32... " >&6; } 23442if ${ac_cv_lib_mingw32_main+:} false; then : 23443 $as_echo_n "(cached) " >&6 23444else 23445 ac_check_lib_save_LIBS=$LIBS 23446LIBS="-lmingw32 $LIBS" 23447cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23448/* end confdefs.h. */ 23449 23450 23451int 23452main () 23453{ 23454return main (); 23455 ; 23456 return 0; 23457} 23458_ACEOF 23459if ac_fn_c_try_link "$LINENO"; then : 23460 ac_cv_lib_mingw32_main=yes 23461else 23462 ac_cv_lib_mingw32_main=no 23463fi 23464rm -f core conftest.err conftest.$ac_objext \ 23465 conftest$ac_exeext conftest.$ac_ext 23466LIBS=$ac_check_lib_save_LIBS 23467fi 23468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5 23469$as_echo "$ac_cv_lib_mingw32_main" >&6; } 23470if test "x$ac_cv_lib_mingw32_main" = xyes; then : 23471 have_mingw32=yes 23472fi 23473 23474 if test x$have_mingw32 = xyes; then 23475 SDL_LIBS="-lmingw32 $SDL_LIBS" 23476 else 23477 SDL_LIBS="-lcygwin $SDL_LIBS" 23478 fi 23479 ;; 23480 23481 *-*-beos*) 23482 as_fn_error $? " 23483*** BeOS support has been removed as of SDL 2.0.2. 23484 " "$LINENO" 5 23485 ;; 23486 23487 *-*-haiku*) 23488 ARCH=haiku 23489 ac_default_prefix=/boot/system 23490 CheckDummyVideo 23491 CheckDiskAudio 23492 CheckDummyAudio 23493 CheckHaikuVideo 23494 CheckHaikuGL 23495 CheckPTHREAD 23496 23497 # Set up files for the audio library 23498 if test x$enable_audio = xyes; then 23499 23500$as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h 23501 23502 SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc" 23503 have_audio=yes 23504 fi 23505 # Set up files for the joystick library 23506 if test x$enable_joystick = xyes; then 23507 23508$as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h 23509 23510 SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc" 23511 have_joystick=yes 23512 fi 23513 # Set up files for the timer library 23514 if test x$enable_timers = xyes; then 23515 23516$as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h 23517 23518 SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c" 23519 have_timers=yes 23520 fi 23521 # Set up files for the shared object loading library 23522 if test x$enable_loadso = xyes; then 23523 23524$as_echo "#define SDL_LOADSO_HAIKU 1" >>confdefs.h 23525 23526 SOURCES="$SOURCES $srcdir/src/loadso/haiku/*.c" 23527 have_loadso=yes 23528 fi 23529 # Set up files for the system power library 23530 if test x$enable_power = xyes; then 23531 23532$as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h 23533 23534 SOURCES="$SOURCES $srcdir/src/power/haiku/*.c" 23535 have_power=yes 23536 fi 23537 # Set up files for the system filesystem library 23538 if test x$enable_filesystem = xyes; then 23539 23540$as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h 23541 23542 SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc" 23543 have_filesystem=yes 23544 fi 23545 # The Haiku platform requires special setup. 23546 SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES" 23547 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding" 23548 ;; 23549 arm*-apple-darwin*) 23550 # iOS - We are not writing anything to confdefs.h because you have to replace 23551 # SDL_config.h for SDL_config_iphoneos.h anyway 23552 ARCH=ios 23553 23554 CheckVisibilityHidden 23555 CheckDeclarationAfterStatement 23556 CheckDummyVideo 23557 CheckDiskAudio 23558 CheckDummyAudio 23559 CheckDLOPEN 23560 CheckCOCOA 23561 CheckPTHREAD 23562 23563 23564 # Set up files for the audio library 23565 if test x$enable_audio = xyes; then 23566 SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m" 23567 SUMMARY_audio="${SUMMARY_audio} coreaudio" 23568 have_audio=yes 23569 fi 23570 # Set up files for the joystick library 23571 if test x$enable_joystick = xyes; then 23572 SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m" 23573 have_joystick=yes 23574 fi 23575 # Set up files for the haptic library 23576 #if test x$enable_haptic = xyes; then 23577 # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c" 23578 # have_haptic=yes 23579 # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback" 23580 #fi 23581 # Set up files for the power library 23582 if test x$enable_power = xyes; then 23583 SOURCES="$SOURCES $srcdir/src/power/uikit/*.m" 23584 have_power=yes 23585 fi 23586 # Set up files for the filesystem library 23587 if test x$enable_filesystem = xyes; then 23588 SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m" 23589 have_filesystem=yes 23590 fi 23591 # Set up files for the timer library 23592 if test x$enable_timers = xyes; then 23593 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c" 23594 have_timers=yes 23595 fi 23596 # Set up additional files for the file library 23597 if test x$enable_file = xyes; then 23598 SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m" 23599 fi 23600 # The iOS platform requires special setup. 23601 SOURCES="$SOURCES $srcdir/src/video/uikit/*.m" 23602 EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings" 23603 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc" 23604 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation" 23605 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit" 23606 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES" 23607 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore" 23608 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio" 23609 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox" 23610 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics" 23611 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion" 23612 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController" 23613 ;; 23614 *-*-darwin* ) 23615 # This could be either full "Mac OS X", or plain "Darwin" which is 23616 # just the OS X kernel sans upper layers like Carbon and Cocoa. 23617 # Next line is broken, and a few files below require Mac OS X (full) 23618 ARCH=macosx 23619 23620 # Mac OS X builds with both the Carbon and OSX APIs at the moment 23621 EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON" 23622 EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX" 23623 23624 CheckVisibilityHidden 23625 CheckDeclarationAfterStatement 23626 CheckDummyVideo 23627 CheckDiskAudio 23628 CheckDummyAudio 23629 CheckDLOPEN 23630 CheckCOCOA 23631 CheckX11 23632 CheckMacGL 23633 CheckOpenGLX11 23634 CheckPTHREAD 23635 23636 # Set up files for the audio library 23637 if test x$enable_audio = xyes; then 23638 23639$as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h 23640 23641 SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m" 23642 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox" 23643 SUMMARY_audio="${SUMMARY_audio} coreaudio" 23644 have_audio=yes 23645 fi 23646 # Set up files for the joystick library 23647 if test x$enable_joystick = xyes; then 23648 23649$as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h 23650 23651 SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c" 23652 have_joystick=yes 23653 fi 23654 # Set up files for the haptic library 23655 if test x$enable_haptic = xyes; then 23656 23657$as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h 23658 23659 SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c" 23660 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback" 23661 have_haptic=yes 23662 fi 23663 # Set up files for the power library 23664 if test x$enable_power = xyes; then 23665 23666$as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h 23667 23668 SOURCES="$SOURCES $srcdir/src/power/macosx/*.c" 23669 have_power=yes 23670 fi 23671 # Set up files for the filesystem library 23672 if test x$enable_filesystem = xyes; then 23673 23674$as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h 23675 23676 SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m" 23677 have_filesystem=yes 23678 fi 23679 # Set up files for the timer library 23680 if test x$enable_timers = xyes; then 23681 23682$as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h 23683 23684 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c" 23685 have_timers=yes 23686 fi 23687 # Set up additional files for the file library 23688 if test x$enable_file = xyes; then 23689 SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m" 23690 fi 23691 # The Mac OS X platform requires special setup. 23692 EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings" 23693 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc" 23694 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo" 23695 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa" 23696 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon" 23697 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit" 23698 ;; 23699 *-nacl|*-pnacl) 23700 ARCH=nacl 23701 CheckNativeClient 23702 CheckDummyAudio 23703 CheckDummyVideo 23704 CheckInputEvents 23705 CheckPTHREAD 23706 23707 # Set up files for the timer library 23708 if test x$enable_timers = xyes; then 23709 $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h 23710 23711 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c" 23712 have_timers=yes 23713 fi 23714 23715 if test x$enable_filesystem = xyes; then 23716 23717$as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h 23718 23719 SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c" 23720 have_filesystem=yes 23721 fi 23722 ;; 23723 *-*-emscripten* ) 23724 if test x$enable_video = xyes; then 23725 23726$as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h 23727 23728 SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c" 23729 have_video=yes 23730 SUMMARY_video="${SUMMARY_video} emscripten" 23731 fi 23732 23733 if test x$enable_audio = xyes; then 23734 23735$as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h 23736 23737 SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c" 23738 have_audio=yes 23739 SUMMARY_audio="${SUMMARY_audio} emscripten" 23740 fi 23741 23742 CheckVisibilityHidden 23743 CheckDeclarationAfterStatement 23744 CheckDummyVideo 23745 CheckDiskAudio 23746 CheckDummyAudio 23747 CheckDLOPEN 23748 CheckClockGettime 23749 CheckEmscriptenGLES 23750 23751 # Set up files for the power library 23752 if test x$enable_power = xyes; then 23753 23754$as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h 23755 23756 SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c" 23757 have_power=yes 23758 fi 23759 23760 # Set up files for the power library 23761 if test x$enable_joystick = xyes; then 23762 23763$as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h 23764 23765 SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c" 23766 have_joystick=yes 23767 fi 23768 23769 # Set up files for the filesystem library 23770 if test x$enable_filesystem = xyes; then 23771 23772$as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h 23773 23774 SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c" 23775 have_filesystem=yes 23776 fi 23777 # Set up files for the timer library 23778 if test x$enable_timers = xyes; then 23779 23780$as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h 23781 23782 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c" 23783 have_timers=yes 23784 fi 23785 ;; 23786 *) 23787 as_fn_error $? " 23788*** Unsupported host: Please add to configure.in 23789 " "$LINENO" 5 23790 ;; 23791esac 23792 23793# Verify that we have all the platform specific files we need 23794 23795if test x$have_joystick != xyes; then 23796 if test x$enable_joystick = xyes; then 23797 23798$as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h 23799 23800 fi 23801 SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c" 23802fi 23803if test x$have_haptic != xyes; then 23804 if test x$enable_haptic = xyes; then 23805 23806$as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h 23807 23808 fi 23809 SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c" 23810fi 23811if test x$have_threads != xyes; then 23812 if test x$enable_threads = xyes; then 23813 23814$as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h 23815 23816 fi 23817 SOURCES="$SOURCES $srcdir/src/thread/generic/*.c" 23818fi 23819if test x$have_timers != xyes; then 23820 if test x$enable_timers = xyes; then 23821 23822$as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h 23823 23824 fi 23825 SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c" 23826fi 23827if test x$have_filesystem != xyes; then 23828 if test x$enable_filesystem = xyes; then 23829 23830$as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h 23831 23832 fi 23833 SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c" 23834fi 23835if test x$have_loadso != xyes; then 23836 if test x$enable_loadso = xyes; then 23837 23838$as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h 23839 23840 fi 23841 SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c" 23842fi 23843if test x$SDLMAIN_SOURCES = x; then 23844 SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c" 23845fi 23846SDLTEST_SOURCES="$srcdir/src/test/*.c" 23847 23848if test x$video_wayland = xyes; then 23849 WAYLAND_CORE_PROTOCOL_SOURCE='$(gen)/wayland-protocol.c' 23850 WAYLAND_CORE_PROTOCOL_HEADER='$(gen)/wayland-client-protocol.h' 23851 WAYLAND_PROTOCOLS_UNSTABLE_SOURCES=`echo $WAYLAND_PROTOCOLS_UNSTABLE |\ 23852 sed 's,[^ ]\+,\\$(gen)/&-protocol.c,g'` 23853 WAYLAND_PROTOCOLS_UNSTABLE_HEADERS=`echo $WAYLAND_PROTOCOLS_UNSTABLE |\ 23854 sed 's,[^ ]\+,\\$(gen)/&-client-protocol.h,g'` 23855 GEN_SOURCES="$GEN_SOURCES $WAYLAND_CORE_PROTOCOL_SOURCE $WAYLAND_PROTOCOLS_UNSTABLE_SOURCES" 23856 GEN_HEADERS="$GEN_HEADERS $WAYLAND_CORE_PROTOCOL_HEADER $WAYLAND_PROTOCOLS_UNSTABLE_HEADERS" 23857 23858 WAYLAND_CORE_PROTOCOL_SOURCE_DEPENDS=" 23859$WAYLAND_CORE_PROTOCOL_SOURCE: $WAYLAND_CORE_PROTOCOL_DIR/wayland.xml 23860 \$(SHELL) \$(auxdir)/mkinstalldirs \$(gen) 23861 \$(RUN_CMD_GEN)\$(WAYLAND_SCANNER) code \$< \$@" 23862 23863 WAYLAND_CORE_PROTOCOL_HEADER_DEPENDS=" 23864$WAYLAND_CORE_PROTOCOL_HEADER: $WAYLAND_CORE_PROTOCOL_DIR/wayland.xml 23865 \$(SHELL) \$(auxdir)/mkinstalldirs \$(gen) 23866 \$(RUN_CMD_GEN)\$(WAYLAND_SCANNER) client-header \$< \$@" 23867 23868 WAYLAND_CORE_PROTOCOL_OBJECT=" 23869\$(objects)/`echo $WAYLAND_CORE_PROTOCOL_SOURCE | sed 's/\$(gen)\/\(.*\).c$/\1.lo/'`: $WAYLAND_CORE_PROTOCOL_SOURCE 23870 \$(RUN_CMD_CC)\$(LIBTOOL) --tag=CC --mode=compile \$(CC) \$(CFLAGS) \$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \$< -o \$@" 23871 23872 WAYLAND_PROTOCOLS_CLIENT_HEADER_UNSTABLE_DEPENDS=`for p in $WAYLAND_PROTOCOLS_UNSTABLE;\ 23873 do echo ; echo \$p | sed\ 23874 "s,^\\([a-z\\-]\\+\\)-unstable-\\(v[0-9]\+\\)\$,\\$(gen)/&-client-protocol.h: $WAYLAND_PROTOCOLS_DIR/unstable/\1/&.xml\\\\ 23875 \\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)\\\\ 23876 \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@," ; done` 23877 23878 WAYLAND_PROTOCOLS_CODE_UNSTABLE_DEPENDS=`for p in $WAYLAND_PROTOCOLS_UNSTABLE;\ 23879 do echo ; echo \$p | sed\ 23880 "s,^\\([a-z\\-]\\+\\)-unstable-\\(v[0-9]\+\\)\$,\\$(gen)/&-protocol.c: $WAYLAND_PROTOCOLS_DIR/unstable/\1/&.xml\\\\ 23881 \\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)\\\\ 23882 \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) code \\$< \\$@," ; done` 23883 23884 WAYLAND_PROTOCOLS_OBJECTS_UNSTABLE=`for p in $WAYLAND_PROTOCOLS_UNSTABLE;\ 23885 do echo ; echo \$p | sed\ 23886 "s,^\\([a-z\\-]\\+\\)-unstable-\\(v[0-9]\+\\)\$,\\\$(objects)/&-protocol.lo: \\$(gen)/&-protocol.c \\$(gen)/&-client-protocol.h\\\\ 23887 \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@," ; done` 23888 23889 WAYLAND_PROTOCOLS_DEPENDS=" 23890$WAYLAND_CORE_PROTOCOL_SOURCE_DEPENDS 23891$WAYLAND_CORE_PROTOCOL_HEADER_DEPENDS 23892$WAYLAND_CORE_PROTOCOL_OBJECT 23893$WAYLAND_PROTOCOLS_CLIENT_HEADER_UNSTABLE_DEPENDS 23894$WAYLAND_PROTOCOLS_CODE_UNSTABLE_DEPENDS 23895$WAYLAND_PROTOCOLS_OBJECTS_UNSTABLE 23896" 23897fi 23898 23899OBJECTS=`echo $SOURCES` 23900DEPENDS=`echo $SOURCES | tr ' ' '\n'` 23901for EXT in asm cc m c S; do 23902 OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'` 23903 DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\ 23904\\$(objects)/\\2.lo: \\1/\\2.$EXT\\\\ 23905 \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"` 23906done 23907 23908GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'` 23909 23910VERSION_OBJECTS=`echo $VERSION_SOURCES` 23911VERSION_DEPENDS=`echo $VERSION_SOURCES` 23912VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.o,g'` 23913VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\ 23914\\$(objects)/\\2.o: \\1/\\2.rc\\\\ 23915 \\$(WINDRES) \\$< \\$@,g"` 23916 23917SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES` 23918SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES` 23919SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.o,g'` 23920SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\ 23921\\$(objects)/\\2.o: \\1/\\2.c\\\\ 23922 \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"` 23923 23924SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES` 23925SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES` 23926SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.o,g'` 23927SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\ 23928\\$(objects)/\\2.o: \\1/\\2.c\\\\ 23929 \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"` 23930 23931# Set runtime shared library paths as needed 23932 23933if test "x$enable_rpath" = "xyes"; then 23934 if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then 23935 SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}" 23936 23937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5 23938$as_echo_n "checking for linker option --enable-new-dtags... " >&6; } 23939 have_enable_new_dtags=no 23940 save_LDFLAGS="$LDFLAGS" 23941 LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags" 23942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23943/* end confdefs.h. */ 23944 23945 23946int 23947main () 23948{ 23949 23950 23951 ; 23952 return 0; 23953} 23954_ACEOF 23955if ac_fn_c_try_link "$LINENO"; then : 23956 23957 have_enable_new_dtags=yes 23958 SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags" 23959 23960fi 23961rm -f core conftest.err conftest.$ac_objext \ 23962 conftest$ac_exeext conftest.$ac_ext 23963 LDFLAGS="$save_LDFLAGS" 23964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5 23965$as_echo "$have_enable_new_dtags" >&6; } 23966 fi 23967 if test $ARCH = solaris; then 23968 SDL_RLD_FLAGS="-R\${libdir}" 23969 fi 23970else 23971 SDL_RLD_FLAGS="" 23972fi 23973 23974SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS" 23975 23976 23977 23978 23979 23980if test x$enable_shared = xyes; then 23981 ENABLE_SHARED_TRUE= 23982 ENABLE_SHARED_FALSE="#" 23983else 23984 ENABLE_SHARED_TRUE="#" 23985 ENABLE_SHARED_FALSE= 23986fi 23987if test x$enable_static = xyes; then 23988 ENABLE_STATIC_TRUE= 23989 ENABLE_STATIC_FALSE="#" 23990else 23991 ENABLE_STATIC_TRUE="#" 23992 ENABLE_STATIC_FALSE= 23993fi 23994 23995 23996 23997 23998 23999 24000 24001 24002 24003 24004 24005 24006 24007 24008 24009 24010 24011 24012 24013 24014cat >Makefile.rules <<__EOF__ 24015 24016# Build rules for objects 24017-include \$(OBJECTS:.lo=.d) 24018 24019# Special dependency for SDL.c, since it depends on SDL_revision.h 24020$srcdir/src/SDL.c: update-revision 24021$DEPENDS 24022$VERSION_DEPENDS 24023$SDLMAIN_DEPENDS 24024$SDLTEST_DEPENDS 24025$WAYLAND_PROTOCOLS_DEPENDS 24026__EOF__ 24027 24028ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake SDL2.spec sdl2.pc" 24029 24030ac_config_commands="$ac_config_commands sdl2_config" 24031 24032 24033SUMMARY="SDL2 Configure Summary:\n" 24034if test x$enable_shared = xyes; then 24035 SUMMARY="${SUMMARY}Building Shared Libraries\n" 24036fi 24037if test x$enable_static = xyes; then 24038 SUMMARY="${SUMMARY}Building Static Libraries\n" 24039fi 24040SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n" 24041SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n" 24042SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n" 24043SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n" 24044if test x$have_x = xyes; then 24045 SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n" 24046fi 24047SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n" 24048if test x$enable_libudev = xyes; then 24049 SUMMARY="${SUMMARY}Using libudev : YES\n" 24050else 24051 SUMMARY="${SUMMARY}Using libudev : NO\n" 24052fi 24053if test x$have_dbus_dbus_h_hdr = xyes; then 24054 SUMMARY="${SUMMARY}Using dbus : YES\n" 24055else 24056 SUMMARY="${SUMMARY}Using dbus : NO\n" 24057fi 24058if test x$enable_ime = xyes; then 24059 SUMMARY="${SUMMARY}Using ime : YES\n" 24060else 24061 SUMMARY="${SUMMARY}Using ime : NO\n" 24062fi 24063if test x$have_ibus_ibus_h_hdr = xyes; then 24064 SUMMARY="${SUMMARY}Using ibus : YES\n" 24065else 24066 SUMMARY="${SUMMARY}Using ibus : NO\n" 24067fi 24068if test x$have_fcitx_frontend_h_hdr = xyes; then 24069 SUMMARY="${SUMMARY}Using fcitx : YES\n" 24070else 24071 SUMMARY="${SUMMARY}Using fcitx : NO\n" 24072fi 24073ac_config_commands="$ac_config_commands summary" 24074 24075 24076cat >confcache <<\_ACEOF 24077# This file is a shell script that caches the results of configure 24078# tests run on this system so they can be shared between configure 24079# scripts and configure runs, see configure's option --config-cache. 24080# It is not useful on other systems. If it contains results you don't 24081# want to keep, you may remove or edit it. 24082# 24083# config.status only pays attention to the cache file if you give it 24084# the --recheck option to rerun configure. 24085# 24086# `ac_cv_env_foo' variables (set or unset) will be overridden when 24087# loading this file, other *unset* `ac_cv_foo' will be assigned the 24088# following values. 24089 24090_ACEOF 24091 24092# The following way of writing the cache mishandles newlines in values, 24093# but we know of no workaround that is simple, portable, and efficient. 24094# So, we kill variables containing newlines. 24095# Ultrix sh set writes to stderr and can't be redirected directly, 24096# and sets the high bit in the cache file unless we assign to the vars. 24097( 24098 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 24099 eval ac_val=\$$ac_var 24100 case $ac_val in #( 24101 *${as_nl}*) 24102 case $ac_var in #( 24103 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 24104$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 24105 esac 24106 case $ac_var in #( 24107 _ | IFS | as_nl) ;; #( 24108 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 24109 *) { eval $ac_var=; unset $ac_var;} ;; 24110 esac ;; 24111 esac 24112 done 24113 24114 (set) 2>&1 | 24115 case $as_nl`(ac_space=' '; set) 2>&1` in #( 24116 *${as_nl}ac_space=\ *) 24117 # `set' does not quote correctly, so add quotes: double-quote 24118 # substitution turns \\\\ into \\, and sed turns \\ into \. 24119 sed -n \ 24120 "s/'/'\\\\''/g; 24121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 24122 ;; #( 24123 *) 24124 # `set' quotes correctly as required by POSIX, so do not add quotes. 24125 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 24126 ;; 24127 esac | 24128 sort 24129) | 24130 sed ' 24131 /^ac_cv_env_/b end 24132 t clear 24133 :clear 24134 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 24135 t end 24136 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 24137 :end' >>confcache 24138if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 24139 if test -w "$cache_file"; then 24140 if test "x$cache_file" != "x/dev/null"; then 24141 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 24142$as_echo "$as_me: updating cache $cache_file" >&6;} 24143 if test ! -f "$cache_file" || test -h "$cache_file"; then 24144 cat confcache >"$cache_file" 24145 else 24146 case $cache_file in #( 24147 */* | ?:*) 24148 mv -f confcache "$cache_file"$$ && 24149 mv -f "$cache_file"$$ "$cache_file" ;; #( 24150 *) 24151 mv -f confcache "$cache_file" ;; 24152 esac 24153 fi 24154 fi 24155 else 24156 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 24157$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 24158 fi 24159fi 24160rm -f confcache 24161 24162test "x$prefix" = xNONE && prefix=$ac_default_prefix 24163# Let make expand exec_prefix. 24164test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 24165 24166DEFS=-DHAVE_CONFIG_H 24167 24168ac_libobjs= 24169ac_ltlibobjs= 24170U= 24171for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 24172 # 1. Remove the extension, and $U if already installed. 24173 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 24174 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 24175 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 24176 # will be set to the directory where LIBOBJS objects are built. 24177 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 24178 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 24179done 24180LIBOBJS=$ac_libobjs 24181 24182LTLIBOBJS=$ac_ltlibobjs 24183 24184 24185 24186: "${CONFIG_STATUS=./config.status}" 24187ac_write_fail=0 24188ac_clean_files_save=$ac_clean_files 24189ac_clean_files="$ac_clean_files $CONFIG_STATUS" 24190{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 24191$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 24192as_write_fail=0 24193cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 24194#! $SHELL 24195# Generated by $as_me. 24196# Run this file to recreate the current configuration. 24197# Compiler output produced by configure, useful for debugging 24198# configure, is in config.log if it exists. 24199 24200debug=false 24201ac_cs_recheck=false 24202ac_cs_silent=false 24203 24204SHELL=\${CONFIG_SHELL-$SHELL} 24205export SHELL 24206_ASEOF 24207cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 24208## -------------------- ## 24209## M4sh Initialization. ## 24210## -------------------- ## 24211 24212# Be more Bourne compatible 24213DUALCASE=1; export DUALCASE # for MKS sh 24214if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 24215 emulate sh 24216 NULLCMD=: 24217 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 24218 # is contrary to our usage. Disable this feature. 24219 alias -g '${1+"$@"}'='"$@"' 24220 setopt NO_GLOB_SUBST 24221else 24222 case `(set -o) 2>/dev/null` in #( 24223 *posix*) : 24224 set -o posix ;; #( 24225 *) : 24226 ;; 24227esac 24228fi 24229 24230 24231as_nl=' 24232' 24233export as_nl 24234# Printing a long string crashes Solaris 7 /usr/bin/printf. 24235as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 24236as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 24237as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 24238# Prefer a ksh shell builtin over an external printf program on Solaris, 24239# but without wasting forks for bash or zsh. 24240if test -z "$BASH_VERSION$ZSH_VERSION" \ 24241 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 24242 as_echo='print -r --' 24243 as_echo_n='print -rn --' 24244elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 24245 as_echo='printf %s\n' 24246 as_echo_n='printf %s' 24247else 24248 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 24249 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 24250 as_echo_n='/usr/ucb/echo -n' 24251 else 24252 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 24253 as_echo_n_body='eval 24254 arg=$1; 24255 case $arg in #( 24256 *"$as_nl"*) 24257 expr "X$arg" : "X\\(.*\\)$as_nl"; 24258 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 24259 esac; 24260 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 24261 ' 24262 export as_echo_n_body 24263 as_echo_n='sh -c $as_echo_n_body as_echo' 24264 fi 24265 export as_echo_body 24266 as_echo='sh -c $as_echo_body as_echo' 24267fi 24268 24269# The user is always right. 24270if test "${PATH_SEPARATOR+set}" != set; then 24271 PATH_SEPARATOR=: 24272 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 24273 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 24274 PATH_SEPARATOR=';' 24275 } 24276fi 24277 24278 24279# IFS 24280# We need space, tab and new line, in precisely that order. Quoting is 24281# there to prevent editors from complaining about space-tab. 24282# (If _AS_PATH_WALK were called with IFS unset, it would disable word 24283# splitting by setting IFS to empty value.) 24284IFS=" "" $as_nl" 24285 24286# Find who we are. Look in the path if we contain no directory separator. 24287as_myself= 24288case $0 in #(( 24289 *[\\/]* ) as_myself=$0 ;; 24290 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24291for as_dir in $PATH 24292do 24293 IFS=$as_save_IFS 24294 test -z "$as_dir" && as_dir=. 24295 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 24296 done 24297IFS=$as_save_IFS 24298 24299 ;; 24300esac 24301# We did not find ourselves, most probably we were run as `sh COMMAND' 24302# in which case we are not to be found in the path. 24303if test "x$as_myself" = x; then 24304 as_myself=$0 24305fi 24306if test ! -f "$as_myself"; then 24307 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 24308 exit 1 24309fi 24310 24311# Unset variables that we do not need and which cause bugs (e.g. in 24312# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 24313# suppresses any "Segmentation fault" message there. '((' could 24314# trigger a bug in pdksh 5.2.14. 24315for as_var in BASH_ENV ENV MAIL MAILPATH 24316do eval test x\${$as_var+set} = xset \ 24317 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 24318done 24319PS1='$ ' 24320PS2='> ' 24321PS4='+ ' 24322 24323# NLS nuisances. 24324LC_ALL=C 24325export LC_ALL 24326LANGUAGE=C 24327export LANGUAGE 24328 24329# CDPATH. 24330(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 24331 24332 24333# as_fn_error STATUS ERROR [LINENO LOG_FD] 24334# ---------------------------------------- 24335# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 24336# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 24337# script with STATUS, using 1 if that was 0. 24338as_fn_error () 24339{ 24340 as_status=$1; test $as_status -eq 0 && as_status=1 24341 if test "$4"; then 24342 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 24343 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 24344 fi 24345 $as_echo "$as_me: error: $2" >&2 24346 as_fn_exit $as_status 24347} # as_fn_error 24348 24349 24350# as_fn_set_status STATUS 24351# ----------------------- 24352# Set $? to STATUS, without forking. 24353as_fn_set_status () 24354{ 24355 return $1 24356} # as_fn_set_status 24357 24358# as_fn_exit STATUS 24359# ----------------- 24360# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 24361as_fn_exit () 24362{ 24363 set +e 24364 as_fn_set_status $1 24365 exit $1 24366} # as_fn_exit 24367 24368# as_fn_unset VAR 24369# --------------- 24370# Portably unset VAR. 24371as_fn_unset () 24372{ 24373 { eval $1=; unset $1;} 24374} 24375as_unset=as_fn_unset 24376# as_fn_append VAR VALUE 24377# ---------------------- 24378# Append the text in VALUE to the end of the definition contained in VAR. Take 24379# advantage of any shell optimizations that allow amortized linear growth over 24380# repeated appends, instead of the typical quadratic growth present in naive 24381# implementations. 24382if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 24383 eval 'as_fn_append () 24384 { 24385 eval $1+=\$2 24386 }' 24387else 24388 as_fn_append () 24389 { 24390 eval $1=\$$1\$2 24391 } 24392fi # as_fn_append 24393 24394# as_fn_arith ARG... 24395# ------------------ 24396# Perform arithmetic evaluation on the ARGs, and store the result in the 24397# global $as_val. Take advantage of shells that can avoid forks. The arguments 24398# must be portable across $(()) and expr. 24399if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 24400 eval 'as_fn_arith () 24401 { 24402 as_val=$(( $* )) 24403 }' 24404else 24405 as_fn_arith () 24406 { 24407 as_val=`expr "$@" || test $? -eq 1` 24408 } 24409fi # as_fn_arith 24410 24411 24412if expr a : '\(a\)' >/dev/null 2>&1 && 24413 test "X`expr 00001 : '.*\(...\)'`" = X001; then 24414 as_expr=expr 24415else 24416 as_expr=false 24417fi 24418 24419if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 24420 as_basename=basename 24421else 24422 as_basename=false 24423fi 24424 24425if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 24426 as_dirname=dirname 24427else 24428 as_dirname=false 24429fi 24430 24431as_me=`$as_basename -- "$0" || 24432$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 24433 X"$0" : 'X\(//\)$' \| \ 24434 X"$0" : 'X\(/\)' \| . 2>/dev/null || 24435$as_echo X/"$0" | 24436 sed '/^.*\/\([^/][^/]*\)\/*$/{ 24437 s//\1/ 24438 q 24439 } 24440 /^X\/\(\/\/\)$/{ 24441 s//\1/ 24442 q 24443 } 24444 /^X\/\(\/\).*/{ 24445 s//\1/ 24446 q 24447 } 24448 s/.*/./; q'` 24449 24450# Avoid depending upon Character Ranges. 24451as_cr_letters='abcdefghijklmnopqrstuvwxyz' 24452as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 24453as_cr_Letters=$as_cr_letters$as_cr_LETTERS 24454as_cr_digits='0123456789' 24455as_cr_alnum=$as_cr_Letters$as_cr_digits 24456 24457ECHO_C= ECHO_N= ECHO_T= 24458case `echo -n x` in #((((( 24459-n*) 24460 case `echo 'xy\c'` in 24461 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 24462 xy) ECHO_C='\c';; 24463 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 24464 ECHO_T=' ';; 24465 esac;; 24466*) 24467 ECHO_N='-n';; 24468esac 24469 24470rm -f conf$$ conf$$.exe conf$$.file 24471if test -d conf$$.dir; then 24472 rm -f conf$$.dir/conf$$.file 24473else 24474 rm -f conf$$.dir 24475 mkdir conf$$.dir 2>/dev/null 24476fi 24477if (echo >conf$$.file) 2>/dev/null; then 24478 if ln -s conf$$.file conf$$ 2>/dev/null; then 24479 as_ln_s='ln -s' 24480 # ... but there are two gotchas: 24481 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 24482 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 24483 # In both cases, we have to default to `cp -pR'. 24484 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 24485 as_ln_s='cp -pR' 24486 elif ln conf$$.file conf$$ 2>/dev/null; then 24487 as_ln_s=ln 24488 else 24489 as_ln_s='cp -pR' 24490 fi 24491else 24492 as_ln_s='cp -pR' 24493fi 24494rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 24495rmdir conf$$.dir 2>/dev/null 24496 24497 24498# as_fn_mkdir_p 24499# ------------- 24500# Create "$as_dir" as a directory, including parents if necessary. 24501as_fn_mkdir_p () 24502{ 24503 24504 case $as_dir in #( 24505 -*) as_dir=./$as_dir;; 24506 esac 24507 test -d "$as_dir" || eval $as_mkdir_p || { 24508 as_dirs= 24509 while :; do 24510 case $as_dir in #( 24511 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 24512 *) as_qdir=$as_dir;; 24513 esac 24514 as_dirs="'$as_qdir' $as_dirs" 24515 as_dir=`$as_dirname -- "$as_dir" || 24516$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24517 X"$as_dir" : 'X\(//\)[^/]' \| \ 24518 X"$as_dir" : 'X\(//\)$' \| \ 24519 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 24520$as_echo X"$as_dir" | 24521 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24522 s//\1/ 24523 q 24524 } 24525 /^X\(\/\/\)[^/].*/{ 24526 s//\1/ 24527 q 24528 } 24529 /^X\(\/\/\)$/{ 24530 s//\1/ 24531 q 24532 } 24533 /^X\(\/\).*/{ 24534 s//\1/ 24535 q 24536 } 24537 s/.*/./; q'` 24538 test -d "$as_dir" && break 24539 done 24540 test -z "$as_dirs" || eval "mkdir $as_dirs" 24541 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 24542 24543 24544} # as_fn_mkdir_p 24545if mkdir -p . 2>/dev/null; then 24546 as_mkdir_p='mkdir -p "$as_dir"' 24547else 24548 test -d ./-p && rmdir ./-p 24549 as_mkdir_p=false 24550fi 24551 24552 24553# as_fn_executable_p FILE 24554# ----------------------- 24555# Test if FILE is an executable regular file. 24556as_fn_executable_p () 24557{ 24558 test -f "$1" && test -x "$1" 24559} # as_fn_executable_p 24560as_test_x='test -x' 24561as_executable_p=as_fn_executable_p 24562 24563# Sed expression to map a string onto a valid CPP name. 24564as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 24565 24566# Sed expression to map a string onto a valid variable name. 24567as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 24568 24569 24570exec 6>&1 24571## ----------------------------------- ## 24572## Main body of $CONFIG_STATUS script. ## 24573## ----------------------------------- ## 24574_ASEOF 24575test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 24576 24577cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24578# Save the log message, to keep $0 and so on meaningful, and to 24579# report actual input values of CONFIG_FILES etc. instead of their 24580# values after options handling. 24581ac_log=" 24582This file was extended by $as_me, which was 24583generated by GNU Autoconf 2.69. Invocation command line was 24584 24585 CONFIG_FILES = $CONFIG_FILES 24586 CONFIG_HEADERS = $CONFIG_HEADERS 24587 CONFIG_LINKS = $CONFIG_LINKS 24588 CONFIG_COMMANDS = $CONFIG_COMMANDS 24589 $ $0 $@ 24590 24591on `(hostname || uname -n) 2>/dev/null | sed 1q` 24592" 24593 24594_ACEOF 24595 24596case $ac_config_files in *" 24597"*) set x $ac_config_files; shift; ac_config_files=$*;; 24598esac 24599 24600case $ac_config_headers in *" 24601"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 24602esac 24603 24604 24605cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24606# Files that config.status was made for. 24607config_files="$ac_config_files" 24608config_headers="$ac_config_headers" 24609config_commands="$ac_config_commands" 24610 24611_ACEOF 24612 24613cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24614ac_cs_usage="\ 24615\`$as_me' instantiates files and other configuration actions 24616from templates according to the current configuration. Unless the files 24617and actions are specified as TAGs, all are instantiated by default. 24618 24619Usage: $0 [OPTION]... [TAG]... 24620 24621 -h, --help print this help, then exit 24622 -V, --version print version number and configuration settings, then exit 24623 --config print configuration, then exit 24624 -q, --quiet, --silent 24625 do not print progress messages 24626 -d, --debug don't remove temporary files 24627 --recheck update $as_me by reconfiguring in the same conditions 24628 --file=FILE[:TEMPLATE] 24629 instantiate the configuration file FILE 24630 --header=FILE[:TEMPLATE] 24631 instantiate the configuration header FILE 24632 24633Configuration files: 24634$config_files 24635 24636Configuration headers: 24637$config_headers 24638 24639Configuration commands: 24640$config_commands 24641 24642Report bugs to the package provider." 24643 24644_ACEOF 24645cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24646ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 24647ac_cs_version="\\ 24648config.status 24649configured by $0, generated by GNU Autoconf 2.69, 24650 with options \\"\$ac_cs_config\\" 24651 24652Copyright (C) 2012 Free Software Foundation, Inc. 24653This config.status script is free software; the Free Software Foundation 24654gives unlimited permission to copy, distribute and modify it." 24655 24656ac_pwd='$ac_pwd' 24657srcdir='$srcdir' 24658INSTALL='$INSTALL' 24659AWK='$AWK' 24660test -n "\$AWK" || AWK=awk 24661_ACEOF 24662 24663cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24664# The default lists apply if the user does not specify any file. 24665ac_need_defaults=: 24666while test $# != 0 24667do 24668 case $1 in 24669 --*=?*) 24670 ac_option=`expr "X$1" : 'X\([^=]*\)='` 24671 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 24672 ac_shift=: 24673 ;; 24674 --*=) 24675 ac_option=`expr "X$1" : 'X\([^=]*\)='` 24676 ac_optarg= 24677 ac_shift=: 24678 ;; 24679 *) 24680 ac_option=$1 24681 ac_optarg=$2 24682 ac_shift=shift 24683 ;; 24684 esac 24685 24686 case $ac_option in 24687 # Handling of the options. 24688 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 24689 ac_cs_recheck=: ;; 24690 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 24691 $as_echo "$ac_cs_version"; exit ;; 24692 --config | --confi | --conf | --con | --co | --c ) 24693 $as_echo "$ac_cs_config"; exit ;; 24694 --debug | --debu | --deb | --de | --d | -d ) 24695 debug=: ;; 24696 --file | --fil | --fi | --f ) 24697 $ac_shift 24698 case $ac_optarg in 24699 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 24700 '') as_fn_error $? "missing file argument" ;; 24701 esac 24702 as_fn_append CONFIG_FILES " '$ac_optarg'" 24703 ac_need_defaults=false;; 24704 --header | --heade | --head | --hea ) 24705 $ac_shift 24706 case $ac_optarg in 24707 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 24708 esac 24709 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 24710 ac_need_defaults=false;; 24711 --he | --h) 24712 # Conflict between --help and --header 24713 as_fn_error $? "ambiguous option: \`$1' 24714Try \`$0 --help' for more information.";; 24715 --help | --hel | -h ) 24716 $as_echo "$ac_cs_usage"; exit ;; 24717 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 24718 | -silent | --silent | --silen | --sile | --sil | --si | --s) 24719 ac_cs_silent=: ;; 24720 24721 # This is an error. 24722 -*) as_fn_error $? "unrecognized option: \`$1' 24723Try \`$0 --help' for more information." ;; 24724 24725 *) as_fn_append ac_config_targets " $1" 24726 ac_need_defaults=false ;; 24727 24728 esac 24729 shift 24730done 24731 24732ac_configure_extra_args= 24733 24734if $ac_cs_silent; then 24735 exec 6>/dev/null 24736 ac_configure_extra_args="$ac_configure_extra_args --silent" 24737fi 24738 24739_ACEOF 24740cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24741if \$ac_cs_recheck; then 24742 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 24743 shift 24744 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 24745 CONFIG_SHELL='$SHELL' 24746 export CONFIG_SHELL 24747 exec "\$@" 24748fi 24749 24750_ACEOF 24751cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24752exec 5>>config.log 24753{ 24754 echo 24755 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 24756## Running $as_me. ## 24757_ASBOX 24758 $as_echo "$ac_log" 24759} >&5 24760 24761_ACEOF 24762cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24763# 24764# INIT-COMMANDS 24765# 24766 24767 24768# The HP-UX ksh and POSIX shell print the target directory to stdout 24769# if CDPATH is set. 24770(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 24771 24772sed_quote_subst='$sed_quote_subst' 24773double_quote_subst='$double_quote_subst' 24774delay_variable_subst='$delay_variable_subst' 24775macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 24776macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 24777AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 24778DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 24779OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 24780enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 24781enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 24782pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 24783enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 24784SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 24785ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 24786PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 24787host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 24788host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 24789host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 24790build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 24791build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 24792build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 24793SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 24794Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 24795GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 24796EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 24797FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 24798LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 24799NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 24800LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 24801max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 24802ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 24803exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 24804lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 24805lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 24806lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 24807lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 24808lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 24809reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 24810reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 24811deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 24812file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 24813file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 24814want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 24815sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 24816AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 24817AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 24818archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 24819STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 24820RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 24821old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 24822old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 24823old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 24824lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 24825CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 24826CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 24827compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 24828GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 24829lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 24830lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 24831lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 24832lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' 24833nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 24834lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 24835objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 24836MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 24837lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 24838lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 24839lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 24840lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 24841lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 24842need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 24843MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 24844DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 24845NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 24846LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 24847OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 24848OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 24849libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 24850shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 24851extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 24852archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 24853enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 24854export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 24855whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 24856compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 24857old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 24858old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 24859archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 24860archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 24861module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 24862module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 24863with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 24864allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 24865no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 24866hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 24867hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 24868hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 24869hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 24870hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 24871hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 24872hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 24873inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 24874link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 24875always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 24876export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 24877exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 24878include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 24879prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 24880postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 24881file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 24882variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 24883need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 24884need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 24885version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 24886runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 24887shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 24888shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 24889libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 24890library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 24891soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 24892install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 24893postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 24894postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 24895finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 24896finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 24897hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 24898sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 24899sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 24900hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 24901enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 24902enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 24903enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 24904old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 24905striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 24906compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 24907predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 24908postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 24909predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 24910postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 24911compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 24912LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 24913reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 24914reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 24915old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 24916compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 24917GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 24918lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 24919lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 24920lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 24921lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 24922lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 24923archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 24924enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 24925export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 24926whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 24927compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 24928old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 24929old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 24930archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 24931archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 24932module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 24933module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 24934with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 24935allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 24936no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 24937hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 24938hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 24939hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 24940hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 24941hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 24942hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 24943hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 24944inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 24945link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 24946always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 24947export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 24948exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 24949include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 24950prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 24951postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 24952file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 24953hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 24954compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 24955predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 24956postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 24957predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 24958postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 24959compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 24960 24961LTCC='$LTCC' 24962LTCFLAGS='$LTCFLAGS' 24963compiler='$compiler_DEFAULT' 24964 24965# A function that is used when there is no print builtin or printf. 24966func_fallback_echo () 24967{ 24968 eval 'cat <<_LTECHO_EOF 24969\$1 24970_LTECHO_EOF' 24971} 24972 24973# Quote evaled strings. 24974for var in AS \ 24975DLLTOOL \ 24976OBJDUMP \ 24977SHELL \ 24978ECHO \ 24979PATH_SEPARATOR \ 24980SED \ 24981GREP \ 24982EGREP \ 24983FGREP \ 24984LD \ 24985NM \ 24986LN_S \ 24987lt_SP2NL \ 24988lt_NL2SP \ 24989reload_flag \ 24990deplibs_check_method \ 24991file_magic_cmd \ 24992file_magic_glob \ 24993want_nocaseglob \ 24994sharedlib_from_linklib_cmd \ 24995AR \ 24996AR_FLAGS \ 24997archiver_list_spec \ 24998STRIP \ 24999RANLIB \ 25000CC \ 25001CFLAGS \ 25002compiler \ 25003lt_cv_sys_global_symbol_pipe \ 25004lt_cv_sys_global_symbol_to_cdecl \ 25005lt_cv_sys_global_symbol_to_c_name_address \ 25006lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 25007nm_file_list_spec \ 25008lt_prog_compiler_no_builtin_flag \ 25009lt_prog_compiler_pic \ 25010lt_prog_compiler_wl \ 25011lt_prog_compiler_static \ 25012lt_cv_prog_compiler_c_o \ 25013need_locks \ 25014MANIFEST_TOOL \ 25015DSYMUTIL \ 25016NMEDIT \ 25017LIPO \ 25018OTOOL \ 25019OTOOL64 \ 25020shrext_cmds \ 25021export_dynamic_flag_spec \ 25022whole_archive_flag_spec \ 25023compiler_needs_object \ 25024with_gnu_ld \ 25025allow_undefined_flag \ 25026no_undefined_flag \ 25027hardcode_libdir_flag_spec \ 25028hardcode_libdir_separator \ 25029exclude_expsyms \ 25030include_expsyms \ 25031file_list_spec \ 25032variables_saved_for_relink \ 25033libname_spec \ 25034library_names_spec \ 25035soname_spec \ 25036install_override_mode \ 25037finish_eval \ 25038old_striplib \ 25039striplib \ 25040compiler_lib_search_dirs \ 25041predep_objects \ 25042postdep_objects \ 25043predeps \ 25044postdeps \ 25045compiler_lib_search_path \ 25046LD_CXX \ 25047reload_flag_CXX \ 25048compiler_CXX \ 25049lt_prog_compiler_no_builtin_flag_CXX \ 25050lt_prog_compiler_pic_CXX \ 25051lt_prog_compiler_wl_CXX \ 25052lt_prog_compiler_static_CXX \ 25053lt_cv_prog_compiler_c_o_CXX \ 25054export_dynamic_flag_spec_CXX \ 25055whole_archive_flag_spec_CXX \ 25056compiler_needs_object_CXX \ 25057with_gnu_ld_CXX \ 25058allow_undefined_flag_CXX \ 25059no_undefined_flag_CXX \ 25060hardcode_libdir_flag_spec_CXX \ 25061hardcode_libdir_separator_CXX \ 25062exclude_expsyms_CXX \ 25063include_expsyms_CXX \ 25064file_list_spec_CXX \ 25065compiler_lib_search_dirs_CXX \ 25066predep_objects_CXX \ 25067postdep_objects_CXX \ 25068predeps_CXX \ 25069postdeps_CXX \ 25070compiler_lib_search_path_CXX; do 25071 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 25072 *[\\\\\\\`\\"\\\$]*) 25073 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 25074 ;; 25075 *) 25076 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 25077 ;; 25078 esac 25079done 25080 25081# Double-quote double-evaled strings. 25082for var in reload_cmds \ 25083old_postinstall_cmds \ 25084old_postuninstall_cmds \ 25085old_archive_cmds \ 25086extract_expsyms_cmds \ 25087old_archive_from_new_cmds \ 25088old_archive_from_expsyms_cmds \ 25089archive_cmds \ 25090archive_expsym_cmds \ 25091module_cmds \ 25092module_expsym_cmds \ 25093export_symbols_cmds \ 25094prelink_cmds \ 25095postlink_cmds \ 25096postinstall_cmds \ 25097postuninstall_cmds \ 25098finish_cmds \ 25099sys_lib_search_path_spec \ 25100sys_lib_dlsearch_path_spec \ 25101reload_cmds_CXX \ 25102old_archive_cmds_CXX \ 25103old_archive_from_new_cmds_CXX \ 25104old_archive_from_expsyms_cmds_CXX \ 25105archive_cmds_CXX \ 25106archive_expsym_cmds_CXX \ 25107module_cmds_CXX \ 25108module_expsym_cmds_CXX \ 25109export_symbols_cmds_CXX \ 25110prelink_cmds_CXX \ 25111postlink_cmds_CXX; do 25112 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 25113 *[\\\\\\\`\\"\\\$]*) 25114 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 25115 ;; 25116 *) 25117 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 25118 ;; 25119 esac 25120done 25121 25122ac_aux_dir='$ac_aux_dir' 25123xsi_shell='$xsi_shell' 25124lt_shell_append='$lt_shell_append' 25125 25126# See if we are running on zsh, and set the options which allow our 25127# commands through without removal of \ escapes INIT. 25128if test -n "\${ZSH_VERSION+set}" ; then 25129 setopt NO_GLOB_SUBST 25130fi 25131 25132 25133 PACKAGE='$PACKAGE' 25134 VERSION='$VERSION' 25135 TIMESTAMP='$TIMESTAMP' 25136 RM='$RM' 25137 ofile='$ofile' 25138 25139 25140 25141 25142 25143SUMMARY="$SUMMARY" 25144 25145_ACEOF 25146 25147cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25148 25149# Handling of arguments. 25150for ac_config_target in $ac_config_targets 25151do 25152 case $ac_config_target in 25153 "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;; 25154 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 25155 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;; 25156 "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;; 25157 "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;; 25158 "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;; 25159 "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;; 25160 "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;; 25161 "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;; 25162 25163 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 25164 esac 25165done 25166 25167 25168# If the user did not use the arguments to specify the items to instantiate, 25169# then the envvar interface is used. Set only those that are not. 25170# We use the long form for the default assignment because of an extremely 25171# bizarre bug on SunOS 4.1.3. 25172if $ac_need_defaults; then 25173 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 25174 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 25175 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 25176fi 25177 25178# Have a temporary directory for convenience. Make it in the build tree 25179# simply because there is no reason against having it here, and in addition, 25180# creating and moving files from /tmp can sometimes cause problems. 25181# Hook for its removal unless debugging. 25182# Note that there is a small window in which the directory will not be cleaned: 25183# after its creation but before its name has been assigned to `$tmp'. 25184$debug || 25185{ 25186 tmp= ac_tmp= 25187 trap 'exit_status=$? 25188 : "${ac_tmp:=$tmp}" 25189 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 25190' 0 25191 trap 'as_fn_exit 1' 1 2 13 15 25192} 25193# Create a (secure) tmp directory for tmp files. 25194 25195{ 25196 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 25197 test -d "$tmp" 25198} || 25199{ 25200 tmp=./conf$$-$RANDOM 25201 (umask 077 && mkdir "$tmp") 25202} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 25203ac_tmp=$tmp 25204 25205# Set up the scripts for CONFIG_FILES section. 25206# No need to generate them if there are no CONFIG_FILES. 25207# This happens for instance with `./config.status config.h'. 25208if test -n "$CONFIG_FILES"; then 25209 25210 25211ac_cr=`echo X | tr X '\015'` 25212# On cygwin, bash can eat \r inside `` if the user requested igncr. 25213# But we know of no other shell where ac_cr would be empty at this 25214# point, so we can use a bashism as a fallback. 25215if test "x$ac_cr" = x; then 25216 eval ac_cr=\$\'\\r\' 25217fi 25218ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 25219if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 25220 ac_cs_awk_cr='\\r' 25221else 25222 ac_cs_awk_cr=$ac_cr 25223fi 25224 25225echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 25226_ACEOF 25227 25228 25229{ 25230 echo "cat >conf$$subs.awk <<_ACEOF" && 25231 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 25232 echo "_ACEOF" 25233} >conf$$subs.sh || 25234 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 25235ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 25236ac_delim='%!_!# ' 25237for ac_last_try in false false false false false :; do 25238 . ./conf$$subs.sh || 25239 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 25240 25241 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 25242 if test $ac_delim_n = $ac_delim_num; then 25243 break 25244 elif $ac_last_try; then 25245 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 25246 else 25247 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 25248 fi 25249done 25250rm -f conf$$subs.sh 25251 25252cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25253cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 25254_ACEOF 25255sed -n ' 25256h 25257s/^/S["/; s/!.*/"]=/ 25258p 25259g 25260s/^[^!]*!// 25261:repl 25262t repl 25263s/'"$ac_delim"'$// 25264t delim 25265:nl 25266h 25267s/\(.\{148\}\)..*/\1/ 25268t more1 25269s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 25270p 25271n 25272b repl 25273:more1 25274s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 25275p 25276g 25277s/.\{148\}// 25278t nl 25279:delim 25280h 25281s/\(.\{148\}\)..*/\1/ 25282t more2 25283s/["\\]/\\&/g; s/^/"/; s/$/"/ 25284p 25285b 25286:more2 25287s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 25288p 25289g 25290s/.\{148\}// 25291t delim 25292' <conf$$subs.awk | sed ' 25293/^[^""]/{ 25294 N 25295 s/\n// 25296} 25297' >>$CONFIG_STATUS || ac_write_fail=1 25298rm -f conf$$subs.awk 25299cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25300_ACAWK 25301cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 25302 for (key in S) S_is_set[key] = 1 25303 FS = "" 25304 25305} 25306{ 25307 line = $ 0 25308 nfields = split(line, field, "@") 25309 substed = 0 25310 len = length(field[1]) 25311 for (i = 2; i < nfields; i++) { 25312 key = field[i] 25313 keylen = length(key) 25314 if (S_is_set[key]) { 25315 value = S[key] 25316 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 25317 len += length(value) + length(field[++i]) 25318 substed = 1 25319 } else 25320 len += 1 + keylen 25321 } 25322 25323 print line 25324} 25325 25326_ACAWK 25327_ACEOF 25328cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25329if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 25330 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 25331else 25332 cat 25333fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 25334 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 25335_ACEOF 25336 25337# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 25338# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 25339# trailing colons and then remove the whole line if VPATH becomes empty 25340# (actually we leave an empty line to preserve line numbers). 25341if test "x$srcdir" = x.; then 25342 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 25343h 25344s/// 25345s/^/:/ 25346s/[ ]*$/:/ 25347s/:\$(srcdir):/:/g 25348s/:\${srcdir}:/:/g 25349s/:@srcdir@:/:/g 25350s/^:*// 25351s/:*$// 25352x 25353s/\(=[ ]*\).*/\1/ 25354G 25355s/\n// 25356s/^[^=]*=[ ]*$// 25357}' 25358fi 25359 25360cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25361fi # test -n "$CONFIG_FILES" 25362 25363# Set up the scripts for CONFIG_HEADERS section. 25364# No need to generate them if there are no CONFIG_HEADERS. 25365# This happens for instance with `./config.status Makefile'. 25366if test -n "$CONFIG_HEADERS"; then 25367cat >"$ac_tmp/defines.awk" <<\_ACAWK || 25368BEGIN { 25369_ACEOF 25370 25371# Transform confdefs.h into an awk script `defines.awk', embedded as 25372# here-document in config.status, that substitutes the proper values into 25373# config.h.in to produce config.h. 25374 25375# Create a delimiter string that does not exist in confdefs.h, to ease 25376# handling of long lines. 25377ac_delim='%!_!# ' 25378for ac_last_try in false false :; do 25379 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 25380 if test -z "$ac_tt"; then 25381 break 25382 elif $ac_last_try; then 25383 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 25384 else 25385 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 25386 fi 25387done 25388 25389# For the awk script, D is an array of macro values keyed by name, 25390# likewise P contains macro parameters if any. Preserve backslash 25391# newline sequences. 25392 25393ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 25394sed -n ' 25395s/.\{148\}/&'"$ac_delim"'/g 25396t rset 25397:rset 25398s/^[ ]*#[ ]*define[ ][ ]*/ / 25399t def 25400d 25401:def 25402s/\\$// 25403t bsnl 25404s/["\\]/\\&/g 25405s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 25406D["\1"]=" \3"/p 25407s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 25408d 25409:bsnl 25410s/["\\]/\\&/g 25411s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 25412D["\1"]=" \3\\\\\\n"\\/p 25413t cont 25414s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 25415t cont 25416d 25417:cont 25418n 25419s/.\{148\}/&'"$ac_delim"'/g 25420t clear 25421:clear 25422s/\\$// 25423t bsnlc 25424s/["\\]/\\&/g; s/^/"/; s/$/"/p 25425d 25426:bsnlc 25427s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 25428b cont 25429' <confdefs.h | sed ' 25430s/'"$ac_delim"'/"\\\ 25431"/g' >>$CONFIG_STATUS || ac_write_fail=1 25432 25433cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25434 for (key in D) D_is_set[key] = 1 25435 FS = "" 25436} 25437/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 25438 line = \$ 0 25439 split(line, arg, " ") 25440 if (arg[1] == "#") { 25441 defundef = arg[2] 25442 mac1 = arg[3] 25443 } else { 25444 defundef = substr(arg[1], 2) 25445 mac1 = arg[2] 25446 } 25447 split(mac1, mac2, "(") #) 25448 macro = mac2[1] 25449 prefix = substr(line, 1, index(line, defundef) - 1) 25450 if (D_is_set[macro]) { 25451 # Preserve the white space surrounding the "#". 25452 print prefix "define", macro P[macro] D[macro] 25453 next 25454 } else { 25455 # Replace #undef with comments. This is necessary, for example, 25456 # in the case of _POSIX_SOURCE, which is predefined and required 25457 # on some systems where configure will not decide to define it. 25458 if (defundef == "undef") { 25459 print "/*", prefix defundef, macro, "*/" 25460 next 25461 } 25462 } 25463} 25464{ print } 25465_ACAWK 25466_ACEOF 25467cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25468 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 25469fi # test -n "$CONFIG_HEADERS" 25470 25471 25472eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 25473shift 25474for ac_tag 25475do 25476 case $ac_tag in 25477 :[FHLC]) ac_mode=$ac_tag; continue;; 25478 esac 25479 case $ac_mode$ac_tag in 25480 :[FHL]*:*);; 25481 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 25482 :[FH]-) ac_tag=-:-;; 25483 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 25484 esac 25485 ac_save_IFS=$IFS 25486 IFS=: 25487 set x $ac_tag 25488 IFS=$ac_save_IFS 25489 shift 25490 ac_file=$1 25491 shift 25492 25493 case $ac_mode in 25494 :L) ac_source=$1;; 25495 :[FH]) 25496 ac_file_inputs= 25497 for ac_f 25498 do 25499 case $ac_f in 25500 -) ac_f="$ac_tmp/stdin";; 25501 *) # Look for the file first in the build tree, then in the source tree 25502 # (if the path is not absolute). The absolute path cannot be DOS-style, 25503 # because $ac_f cannot contain `:'. 25504 test -f "$ac_f" || 25505 case $ac_f in 25506 [\\/$]*) false;; 25507 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 25508 esac || 25509 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 25510 esac 25511 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 25512 as_fn_append ac_file_inputs " '$ac_f'" 25513 done 25514 25515 # Let's still pretend it is `configure' which instantiates (i.e., don't 25516 # use $as_me), people would be surprised to read: 25517 # /* config.h. Generated by config.status. */ 25518 configure_input='Generated from '` 25519 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 25520 `' by configure.' 25521 if test x"$ac_file" != x-; then 25522 configure_input="$ac_file. $configure_input" 25523 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 25524$as_echo "$as_me: creating $ac_file" >&6;} 25525 fi 25526 # Neutralize special characters interpreted by sed in replacement strings. 25527 case $configure_input in #( 25528 *\&* | *\|* | *\\* ) 25529 ac_sed_conf_input=`$as_echo "$configure_input" | 25530 sed 's/[\\\\&|]/\\\\&/g'`;; #( 25531 *) ac_sed_conf_input=$configure_input;; 25532 esac 25533 25534 case $ac_tag in 25535 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 25536 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 25537 esac 25538 ;; 25539 esac 25540 25541 ac_dir=`$as_dirname -- "$ac_file" || 25542$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25543 X"$ac_file" : 'X\(//\)[^/]' \| \ 25544 X"$ac_file" : 'X\(//\)$' \| \ 25545 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 25546$as_echo X"$ac_file" | 25547 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 25548 s//\1/ 25549 q 25550 } 25551 /^X\(\/\/\)[^/].*/{ 25552 s//\1/ 25553 q 25554 } 25555 /^X\(\/\/\)$/{ 25556 s//\1/ 25557 q 25558 } 25559 /^X\(\/\).*/{ 25560 s//\1/ 25561 q 25562 } 25563 s/.*/./; q'` 25564 as_dir="$ac_dir"; as_fn_mkdir_p 25565 ac_builddir=. 25566 25567case "$ac_dir" in 25568.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 25569*) 25570 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 25571 # A ".." for each directory in $ac_dir_suffix. 25572 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 25573 case $ac_top_builddir_sub in 25574 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 25575 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 25576 esac ;; 25577esac 25578ac_abs_top_builddir=$ac_pwd 25579ac_abs_builddir=$ac_pwd$ac_dir_suffix 25580# for backward compatibility: 25581ac_top_builddir=$ac_top_build_prefix 25582 25583case $srcdir in 25584 .) # We are building in place. 25585 ac_srcdir=. 25586 ac_top_srcdir=$ac_top_builddir_sub 25587 ac_abs_top_srcdir=$ac_pwd ;; 25588 [\\/]* | ?:[\\/]* ) # Absolute name. 25589 ac_srcdir=$srcdir$ac_dir_suffix; 25590 ac_top_srcdir=$srcdir 25591 ac_abs_top_srcdir=$srcdir ;; 25592 *) # Relative name. 25593 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 25594 ac_top_srcdir=$ac_top_build_prefix$srcdir 25595 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 25596esac 25597ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 25598 25599 25600 case $ac_mode in 25601 :F) 25602 # 25603 # CONFIG_FILE 25604 # 25605 25606 case $INSTALL in 25607 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 25608 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 25609 esac 25610_ACEOF 25611 25612cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25613# If the template does not know about datarootdir, expand it. 25614# FIXME: This hack should be removed a few years after 2.60. 25615ac_datarootdir_hack=; ac_datarootdir_seen= 25616ac_sed_dataroot=' 25617/datarootdir/ { 25618 p 25619 q 25620} 25621/@datadir@/p 25622/@docdir@/p 25623/@infodir@/p 25624/@localedir@/p 25625/@mandir@/p' 25626case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 25627*datarootdir*) ac_datarootdir_seen=yes;; 25628*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 25629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 25630$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 25631_ACEOF 25632cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25633 ac_datarootdir_hack=' 25634 s&@datadir@&$datadir&g 25635 s&@docdir@&$docdir&g 25636 s&@infodir@&$infodir&g 25637 s&@localedir@&$localedir&g 25638 s&@mandir@&$mandir&g 25639 s&\\\${datarootdir}&$datarootdir&g' ;; 25640esac 25641_ACEOF 25642 25643# Neutralize VPATH when `$srcdir' = `.'. 25644# Shell code in configure.ac might set extrasub. 25645# FIXME: do we really want to maintain this feature? 25646cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25647ac_sed_extra="$ac_vpsub 25648$extrasub 25649_ACEOF 25650cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25651:t 25652/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 25653s|@configure_input@|$ac_sed_conf_input|;t t 25654s&@top_builddir@&$ac_top_builddir_sub&;t t 25655s&@top_build_prefix@&$ac_top_build_prefix&;t t 25656s&@srcdir@&$ac_srcdir&;t t 25657s&@abs_srcdir@&$ac_abs_srcdir&;t t 25658s&@top_srcdir@&$ac_top_srcdir&;t t 25659s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 25660s&@builddir@&$ac_builddir&;t t 25661s&@abs_builddir@&$ac_abs_builddir&;t t 25662s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 25663s&@INSTALL@&$ac_INSTALL&;t t 25664$ac_datarootdir_hack 25665" 25666eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 25667 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 25668 25669test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 25670 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 25671 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 25672 "$ac_tmp/out"`; test -z "$ac_out"; } && 25673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 25674which seems to be undefined. Please make sure it is defined" >&5 25675$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 25676which seems to be undefined. Please make sure it is defined" >&2;} 25677 25678 rm -f "$ac_tmp/stdin" 25679 case $ac_file in 25680 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 25681 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 25682 esac \ 25683 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 25684 ;; 25685 :H) 25686 # 25687 # CONFIG_HEADER 25688 # 25689 if test x"$ac_file" != x-; then 25690 { 25691 $as_echo "/* $configure_input */" \ 25692 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 25693 } >"$ac_tmp/config.h" \ 25694 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 25695 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 25696 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 25697$as_echo "$as_me: $ac_file is unchanged" >&6;} 25698 else 25699 rm -f "$ac_file" 25700 mv "$ac_tmp/config.h" "$ac_file" \ 25701 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 25702 fi 25703 else 25704 $as_echo "/* $configure_input */" \ 25705 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 25706 || as_fn_error $? "could not create -" "$LINENO" 5 25707 fi 25708 ;; 25709 25710 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 25711$as_echo "$as_me: executing $ac_file commands" >&6;} 25712 ;; 25713 esac 25714 25715 25716 case $ac_file$ac_mode in 25717 "libtool":C) 25718 25719 # See if we are running on zsh, and set the options which allow our 25720 # commands through without removal of \ escapes. 25721 if test -n "${ZSH_VERSION+set}" ; then 25722 setopt NO_GLOB_SUBST 25723 fi 25724 25725 cfgfile="${ofile}T" 25726 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 25727 $RM "$cfgfile" 25728 25729 cat <<_LT_EOF >> "$cfgfile" 25730#! $SHELL 25731 25732# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 25733# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 25734# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 25735# NOTE: Changes made to this file will be lost: look at ltmain.sh. 25736# 25737# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 25738# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 25739# Foundation, Inc. 25740# Written by Gordon Matzigkeit, 1996 25741# 25742# This file is part of GNU Libtool. 25743# 25744# GNU Libtool is free software; you can redistribute it and/or 25745# modify it under the terms of the GNU General Public License as 25746# published by the Free Software Foundation; either version 2 of 25747# the License, or (at your option) any later version. 25748# 25749# As a special exception to the GNU General Public License, 25750# if you distribute this file as part of a program or library that 25751# is built using GNU Libtool, you may include this file under the 25752# same distribution terms that you use for the rest of that program. 25753# 25754# GNU Libtool is distributed in the hope that it will be useful, 25755# but WITHOUT ANY WARRANTY; without even the implied warranty of 25756# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25757# GNU General Public License for more details. 25758# 25759# You should have received a copy of the GNU General Public License 25760# along with GNU Libtool; see the file COPYING. If not, a copy 25761# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 25762# obtained by writing to the Free Software Foundation, Inc., 25763# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 25764 25765 25766# The names of the tagged configurations supported by this script. 25767available_tags="CXX " 25768 25769# ### BEGIN LIBTOOL CONFIG 25770 25771# Which release of libtool.m4 was used? 25772macro_version=$macro_version 25773macro_revision=$macro_revision 25774 25775# Assembler program. 25776AS=$lt_AS 25777 25778# DLL creation program. 25779DLLTOOL=$lt_DLLTOOL 25780 25781# Object dumper program. 25782OBJDUMP=$lt_OBJDUMP 25783 25784# Whether or not to build shared libraries. 25785build_libtool_libs=$enable_shared 25786 25787# Whether or not to build static libraries. 25788build_old_libs=$enable_static 25789 25790# What type of objects to build. 25791pic_mode=$pic_mode 25792 25793# Whether or not to optimize for fast installation. 25794fast_install=$enable_fast_install 25795 25796# Shell to use when invoking shell scripts. 25797SHELL=$lt_SHELL 25798 25799# An echo program that protects backslashes. 25800ECHO=$lt_ECHO 25801 25802# The PATH separator for the build system. 25803PATH_SEPARATOR=$lt_PATH_SEPARATOR 25804 25805# The host system. 25806host_alias=$host_alias 25807host=$host 25808host_os=$host_os 25809 25810# The build system. 25811build_alias=$build_alias 25812build=$build 25813build_os=$build_os 25814 25815# A sed program that does not truncate output. 25816SED=$lt_SED 25817 25818# Sed that helps us avoid accidentally triggering echo(1) options like -n. 25819Xsed="\$SED -e 1s/^X//" 25820 25821# A grep program that handles long lines. 25822GREP=$lt_GREP 25823 25824# An ERE matcher. 25825EGREP=$lt_EGREP 25826 25827# A literal string matcher. 25828FGREP=$lt_FGREP 25829 25830# A BSD- or MS-compatible name lister. 25831NM=$lt_NM 25832 25833# Whether we need soft or hard links. 25834LN_S=$lt_LN_S 25835 25836# What is the maximum length of a command? 25837max_cmd_len=$max_cmd_len 25838 25839# Object file suffix (normally "o"). 25840objext=$ac_objext 25841 25842# Executable file suffix (normally ""). 25843exeext=$exeext 25844 25845# whether the shell understands "unset". 25846lt_unset=$lt_unset 25847 25848# turn spaces into newlines. 25849SP2NL=$lt_lt_SP2NL 25850 25851# turn newlines into spaces. 25852NL2SP=$lt_lt_NL2SP 25853 25854# convert \$build file names to \$host format. 25855to_host_file_cmd=$lt_cv_to_host_file_cmd 25856 25857# convert \$build files to toolchain format. 25858to_tool_file_cmd=$lt_cv_to_tool_file_cmd 25859 25860# Method to check whether dependent libraries are shared objects. 25861deplibs_check_method=$lt_deplibs_check_method 25862 25863# Command to use when deplibs_check_method = "file_magic". 25864file_magic_cmd=$lt_file_magic_cmd 25865 25866# How to find potential files when deplibs_check_method = "file_magic". 25867file_magic_glob=$lt_file_magic_glob 25868 25869# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 25870want_nocaseglob=$lt_want_nocaseglob 25871 25872# Command to associate shared and link libraries. 25873sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 25874 25875# The archiver. 25876AR=$lt_AR 25877 25878# Flags to create an archive. 25879AR_FLAGS=$lt_AR_FLAGS 25880 25881# How to feed a file listing to the archiver. 25882archiver_list_spec=$lt_archiver_list_spec 25883 25884# A symbol stripping program. 25885STRIP=$lt_STRIP 25886 25887# Commands used to install an old-style archive. 25888RANLIB=$lt_RANLIB 25889old_postinstall_cmds=$lt_old_postinstall_cmds 25890old_postuninstall_cmds=$lt_old_postuninstall_cmds 25891 25892# Whether to use a lock for old archive extraction. 25893lock_old_archive_extraction=$lock_old_archive_extraction 25894 25895# A C compiler. 25896LTCC=$lt_CC 25897 25898# LTCC compiler flags. 25899LTCFLAGS=$lt_CFLAGS 25900 25901# Take the output of nm and produce a listing of raw symbols and C names. 25902global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 25903 25904# Transform the output of nm in a proper C declaration. 25905global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 25906 25907# Transform the output of nm in a C name address pair. 25908global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 25909 25910# Transform the output of nm in a C name address pair when lib prefix is needed. 25911global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 25912 25913# Specify filename containing input files for \$NM. 25914nm_file_list_spec=$lt_nm_file_list_spec 25915 25916# The root where to search for dependent libraries,and in which our libraries should be installed. 25917lt_sysroot=$lt_sysroot 25918 25919# The name of the directory that contains temporary libtool files. 25920objdir=$objdir 25921 25922# Used to examine libraries when file_magic_cmd begins with "file". 25923MAGIC_CMD=$MAGIC_CMD 25924 25925# Must we lock files when doing compilation? 25926need_locks=$lt_need_locks 25927 25928# Manifest tool. 25929MANIFEST_TOOL=$lt_MANIFEST_TOOL 25930 25931# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 25932DSYMUTIL=$lt_DSYMUTIL 25933 25934# Tool to change global to local symbols on Mac OS X. 25935NMEDIT=$lt_NMEDIT 25936 25937# Tool to manipulate fat objects and archives on Mac OS X. 25938LIPO=$lt_LIPO 25939 25940# ldd/readelf like tool for Mach-O binaries on Mac OS X. 25941OTOOL=$lt_OTOOL 25942 25943# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 25944OTOOL64=$lt_OTOOL64 25945 25946# Old archive suffix (normally "a"). 25947libext=$libext 25948 25949# Shared library suffix (normally ".so"). 25950shrext_cmds=$lt_shrext_cmds 25951 25952# The commands to extract the exported symbol list from a shared archive. 25953extract_expsyms_cmds=$lt_extract_expsyms_cmds 25954 25955# Variables whose values should be saved in libtool wrapper scripts and 25956# restored at link time. 25957variables_saved_for_relink=$lt_variables_saved_for_relink 25958 25959# Do we need the "lib" prefix for modules? 25960need_lib_prefix=$need_lib_prefix 25961 25962# Do we need a version for libraries? 25963need_version=$need_version 25964 25965# Library versioning type. 25966version_type=$version_type 25967 25968# Shared library runtime path variable. 25969runpath_var=$runpath_var 25970 25971# Shared library path variable. 25972shlibpath_var=$shlibpath_var 25973 25974# Is shlibpath searched before the hard-coded library search path? 25975shlibpath_overrides_runpath=$shlibpath_overrides_runpath 25976 25977# Format of library name prefix. 25978libname_spec=$lt_libname_spec 25979 25980# List of archive names. First name is the real one, the rest are links. 25981# The last name is the one that the linker finds with -lNAME 25982library_names_spec=$lt_library_names_spec 25983 25984# The coded name of the library, if different from the real name. 25985soname_spec=$lt_soname_spec 25986 25987# Permission mode override for installation of shared libraries. 25988install_override_mode=$lt_install_override_mode 25989 25990# Command to use after installation of a shared archive. 25991postinstall_cmds=$lt_postinstall_cmds 25992 25993# Command to use after uninstallation of a shared archive. 25994postuninstall_cmds=$lt_postuninstall_cmds 25995 25996# Commands used to finish a libtool library installation in a directory. 25997finish_cmds=$lt_finish_cmds 25998 25999# As "finish_cmds", except a single script fragment to be evaled but 26000# not shown. 26001finish_eval=$lt_finish_eval 26002 26003# Whether we should hardcode library paths into libraries. 26004hardcode_into_libs=$hardcode_into_libs 26005 26006# Compile-time system search path for libraries. 26007sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 26008 26009# Run-time system search path for libraries. 26010sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 26011 26012# Whether dlopen is supported. 26013dlopen_support=$enable_dlopen 26014 26015# Whether dlopen of programs is supported. 26016dlopen_self=$enable_dlopen_self 26017 26018# Whether dlopen of statically linked programs is supported. 26019dlopen_self_static=$enable_dlopen_self_static 26020 26021# Commands to strip libraries. 26022old_striplib=$lt_old_striplib 26023striplib=$lt_striplib 26024 26025 26026# The linker used to build libraries. 26027LD=$lt_LD 26028 26029# How to create reloadable object files. 26030reload_flag=$lt_reload_flag 26031reload_cmds=$lt_reload_cmds 26032 26033# Commands used to build an old-style archive. 26034old_archive_cmds=$lt_old_archive_cmds 26035 26036# A language specific compiler. 26037CC=$lt_compiler 26038 26039# Is the compiler the GNU compiler? 26040with_gcc=$GCC 26041 26042# Compiler flag to turn off builtin functions. 26043no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 26044 26045# Additional compiler flags for building library objects. 26046pic_flag=$lt_lt_prog_compiler_pic 26047 26048# How to pass a linker flag through the compiler. 26049wl=$lt_lt_prog_compiler_wl 26050 26051# Compiler flag to prevent dynamic linking. 26052link_static_flag=$lt_lt_prog_compiler_static 26053 26054# Does compiler simultaneously support -c and -o options? 26055compiler_c_o=$lt_lt_cv_prog_compiler_c_o 26056 26057# Whether or not to add -lc for building shared libraries. 26058build_libtool_need_lc=$archive_cmds_need_lc 26059 26060# Whether or not to disallow shared libs when runtime libs are static. 26061allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 26062 26063# Compiler flag to allow reflexive dlopens. 26064export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 26065 26066# Compiler flag to generate shared objects directly from archives. 26067whole_archive_flag_spec=$lt_whole_archive_flag_spec 26068 26069# Whether the compiler copes with passing no objects directly. 26070compiler_needs_object=$lt_compiler_needs_object 26071 26072# Create an old-style archive from a shared archive. 26073old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 26074 26075# Create a temporary old-style archive to link instead of a shared archive. 26076old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 26077 26078# Commands used to build a shared archive. 26079archive_cmds=$lt_archive_cmds 26080archive_expsym_cmds=$lt_archive_expsym_cmds 26081 26082# Commands used to build a loadable module if different from building 26083# a shared archive. 26084module_cmds=$lt_module_cmds 26085module_expsym_cmds=$lt_module_expsym_cmds 26086 26087# Whether we are building with GNU ld or not. 26088with_gnu_ld=$lt_with_gnu_ld 26089 26090# Flag that allows shared libraries with undefined symbols to be built. 26091allow_undefined_flag=$lt_allow_undefined_flag 26092 26093# Flag that enforces no undefined symbols. 26094no_undefined_flag=$lt_no_undefined_flag 26095 26096# Flag to hardcode \$libdir into a binary during linking. 26097# This must work even if \$libdir does not exist 26098hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 26099 26100# Whether we need a single "-rpath" flag with a separated argument. 26101hardcode_libdir_separator=$lt_hardcode_libdir_separator 26102 26103# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 26104# DIR into the resulting binary. 26105hardcode_direct=$hardcode_direct 26106 26107# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 26108# DIR into the resulting binary and the resulting library dependency is 26109# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 26110# library is relocated. 26111hardcode_direct_absolute=$hardcode_direct_absolute 26112 26113# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 26114# into the resulting binary. 26115hardcode_minus_L=$hardcode_minus_L 26116 26117# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 26118# into the resulting binary. 26119hardcode_shlibpath_var=$hardcode_shlibpath_var 26120 26121# Set to "yes" if building a shared library automatically hardcodes DIR 26122# into the library and all subsequent libraries and executables linked 26123# against it. 26124hardcode_automatic=$hardcode_automatic 26125 26126# Set to yes if linker adds runtime paths of dependent libraries 26127# to runtime path list. 26128inherit_rpath=$inherit_rpath 26129 26130# Whether libtool must link a program against all its dependency libraries. 26131link_all_deplibs=$link_all_deplibs 26132 26133# Set to "yes" if exported symbols are required. 26134always_export_symbols=$always_export_symbols 26135 26136# The commands to list exported symbols. 26137export_symbols_cmds=$lt_export_symbols_cmds 26138 26139# Symbols that should not be listed in the preloaded symbols. 26140exclude_expsyms=$lt_exclude_expsyms 26141 26142# Symbols that must always be exported. 26143include_expsyms=$lt_include_expsyms 26144 26145# Commands necessary for linking programs (against libraries) with templates. 26146prelink_cmds=$lt_prelink_cmds 26147 26148# Commands necessary for finishing linking programs. 26149postlink_cmds=$lt_postlink_cmds 26150 26151# Specify filename containing input files. 26152file_list_spec=$lt_file_list_spec 26153 26154# How to hardcode a shared library path into an executable. 26155hardcode_action=$hardcode_action 26156 26157# The directories searched by this compiler when creating a shared library. 26158compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 26159 26160# Dependencies to place before and after the objects being linked to 26161# create a shared library. 26162predep_objects=$lt_predep_objects 26163postdep_objects=$lt_postdep_objects 26164predeps=$lt_predeps 26165postdeps=$lt_postdeps 26166 26167# The library search path used internally by the compiler when linking 26168# a shared library. 26169compiler_lib_search_path=$lt_compiler_lib_search_path 26170 26171# ### END LIBTOOL CONFIG 26172 26173_LT_EOF 26174 26175 case $host_os in 26176 aix3*) 26177 cat <<\_LT_EOF >> "$cfgfile" 26178# AIX sometimes has problems with the GCC collect2 program. For some 26179# reason, if we set the COLLECT_NAMES environment variable, the problems 26180# vanish in a puff of smoke. 26181if test "X${COLLECT_NAMES+set}" != Xset; then 26182 COLLECT_NAMES= 26183 export COLLECT_NAMES 26184fi 26185_LT_EOF 26186 ;; 26187 esac 26188 26189 26190ltmain="$ac_aux_dir/ltmain.sh" 26191 26192 26193 # We use sed instead of cat because bash on DJGPP gets confused if 26194 # if finds mixed CR/LF and LF-only lines. Since sed operates in 26195 # text mode, it properly converts lines to CR/LF. This bash problem 26196 # is reportedly fixed, but why not run on old versions too? 26197 sed '$q' "$ltmain" >> "$cfgfile" \ 26198 || (rm -f "$cfgfile"; exit 1) 26199 26200 if test x"$xsi_shell" = xyes; then 26201 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 26202func_dirname ()\ 26203{\ 26204\ case ${1} in\ 26205\ */*) func_dirname_result="${1%/*}${2}" ;;\ 26206\ * ) func_dirname_result="${3}" ;;\ 26207\ esac\ 26208} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 26209 && mv -f "$cfgfile.tmp" "$cfgfile" \ 26210 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 26211test 0 -eq $? || _lt_function_replace_fail=: 26212 26213 26214 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 26215func_basename ()\ 26216{\ 26217\ func_basename_result="${1##*/}"\ 26218} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 26219 && mv -f "$cfgfile.tmp" "$cfgfile" \ 26220 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 26221test 0 -eq $? || _lt_function_replace_fail=: 26222 26223 26224 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 26225func_dirname_and_basename ()\ 26226{\ 26227\ case ${1} in\ 26228\ */*) func_dirname_result="${1%/*}${2}" ;;\ 26229\ * ) func_dirname_result="${3}" ;;\ 26230\ esac\ 26231\ func_basename_result="${1##*/}"\ 26232} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 26233 && mv -f "$cfgfile.tmp" "$cfgfile" \ 26234 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 26235test 0 -eq $? || _lt_function_replace_fail=: 26236 26237 26238 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 26239func_stripname ()\ 26240{\ 26241\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 26242\ # positional parameters, so assign one to ordinary parameter first.\ 26243\ func_stripname_result=${3}\ 26244\ func_stripname_result=${func_stripname_result#"${1}"}\ 26245\ func_stripname_result=${func_stripname_result%"${2}"}\ 26246} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 26247 && mv -f "$cfgfile.tmp" "$cfgfile" \ 26248 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 26249test 0 -eq $? || _lt_function_replace_fail=: 26250 26251 26252 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 26253func_split_long_opt ()\ 26254{\ 26255\ func_split_long_opt_name=${1%%=*}\ 26256\ func_split_long_opt_arg=${1#*=}\ 26257} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 26258 && mv -f "$cfgfile.tmp" "$cfgfile" \ 26259 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 26260test 0 -eq $? || _lt_function_replace_fail=: 26261 26262 26263 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 26264func_split_short_opt ()\ 26265{\ 26266\ func_split_short_opt_arg=${1#??}\ 26267\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 26268} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 26269 && mv -f "$cfgfile.tmp" "$cfgfile" \ 26270 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 26271test 0 -eq $? || _lt_function_replace_fail=: 26272 26273 26274 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 26275func_lo2o ()\ 26276{\ 26277\ case ${1} in\ 26278\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 26279\ *) func_lo2o_result=${1} ;;\ 26280\ esac\ 26281} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 26282 && mv -f "$cfgfile.tmp" "$cfgfile" \ 26283 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 26284test 0 -eq $? || _lt_function_replace_fail=: 26285 26286 26287 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 26288func_xform ()\ 26289{\ 26290 func_xform_result=${1%.*}.lo\ 26291} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 26292 && mv -f "$cfgfile.tmp" "$cfgfile" \ 26293 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 26294test 0 -eq $? || _lt_function_replace_fail=: 26295 26296 26297 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 26298func_arith ()\ 26299{\ 26300 func_arith_result=$(( $* ))\ 26301} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 26302 && mv -f "$cfgfile.tmp" "$cfgfile" \ 26303 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 26304test 0 -eq $? || _lt_function_replace_fail=: 26305 26306 26307 sed -e '/^func_len ()$/,/^} # func_len /c\ 26308func_len ()\ 26309{\ 26310 func_len_result=${#1}\ 26311} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 26312 && mv -f "$cfgfile.tmp" "$cfgfile" \ 26313 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 26314test 0 -eq $? || _lt_function_replace_fail=: 26315 26316fi 26317 26318if test x"$lt_shell_append" = xyes; then 26319 sed -e '/^func_append ()$/,/^} # func_append /c\ 26320func_append ()\ 26321{\ 26322 eval "${1}+=\\${2}"\ 26323} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 26324 && mv -f "$cfgfile.tmp" "$cfgfile" \ 26325 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 26326test 0 -eq $? || _lt_function_replace_fail=: 26327 26328 26329 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 26330func_append_quoted ()\ 26331{\ 26332\ func_quote_for_eval "${2}"\ 26333\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 26334} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 26335 && mv -f "$cfgfile.tmp" "$cfgfile" \ 26336 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 26337test 0 -eq $? || _lt_function_replace_fail=: 26338 26339 26340 # Save a `func_append' function call where possible by direct use of '+=' 26341 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 26342 && mv -f "$cfgfile.tmp" "$cfgfile" \ 26343 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 26344 test 0 -eq $? || _lt_function_replace_fail=: 26345else 26346 # Save a `func_append' function call even when '+=' is not available 26347 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 26348 && mv -f "$cfgfile.tmp" "$cfgfile" \ 26349 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 26350 test 0 -eq $? || _lt_function_replace_fail=: 26351fi 26352 26353if test x"$_lt_function_replace_fail" = x":"; then 26354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 26355$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 26356fi 26357 26358 26359 mv -f "$cfgfile" "$ofile" || 26360 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 26361 chmod +x "$ofile" 26362 26363 26364 cat <<_LT_EOF >> "$ofile" 26365 26366# ### BEGIN LIBTOOL TAG CONFIG: CXX 26367 26368# The linker used to build libraries. 26369LD=$lt_LD_CXX 26370 26371# How to create reloadable object files. 26372reload_flag=$lt_reload_flag_CXX 26373reload_cmds=$lt_reload_cmds_CXX 26374 26375# Commands used to build an old-style archive. 26376old_archive_cmds=$lt_old_archive_cmds_CXX 26377 26378# A language specific compiler. 26379CC=$lt_compiler_CXX 26380 26381# Is the compiler the GNU compiler? 26382with_gcc=$GCC_CXX 26383 26384# Compiler flag to turn off builtin functions. 26385no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 26386 26387# Additional compiler flags for building library objects. 26388pic_flag=$lt_lt_prog_compiler_pic_CXX 26389 26390# How to pass a linker flag through the compiler. 26391wl=$lt_lt_prog_compiler_wl_CXX 26392 26393# Compiler flag to prevent dynamic linking. 26394link_static_flag=$lt_lt_prog_compiler_static_CXX 26395 26396# Does compiler simultaneously support -c and -o options? 26397compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 26398 26399# Whether or not to add -lc for building shared libraries. 26400build_libtool_need_lc=$archive_cmds_need_lc_CXX 26401 26402# Whether or not to disallow shared libs when runtime libs are static. 26403allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 26404 26405# Compiler flag to allow reflexive dlopens. 26406export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 26407 26408# Compiler flag to generate shared objects directly from archives. 26409whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 26410 26411# Whether the compiler copes with passing no objects directly. 26412compiler_needs_object=$lt_compiler_needs_object_CXX 26413 26414# Create an old-style archive from a shared archive. 26415old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 26416 26417# Create a temporary old-style archive to link instead of a shared archive. 26418old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 26419 26420# Commands used to build a shared archive. 26421archive_cmds=$lt_archive_cmds_CXX 26422archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 26423 26424# Commands used to build a loadable module if different from building 26425# a shared archive. 26426module_cmds=$lt_module_cmds_CXX 26427module_expsym_cmds=$lt_module_expsym_cmds_CXX 26428 26429# Whether we are building with GNU ld or not. 26430with_gnu_ld=$lt_with_gnu_ld_CXX 26431 26432# Flag that allows shared libraries with undefined symbols to be built. 26433allow_undefined_flag=$lt_allow_undefined_flag_CXX 26434 26435# Flag that enforces no undefined symbols. 26436no_undefined_flag=$lt_no_undefined_flag_CXX 26437 26438# Flag to hardcode \$libdir into a binary during linking. 26439# This must work even if \$libdir does not exist 26440hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 26441 26442# Whether we need a single "-rpath" flag with a separated argument. 26443hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 26444 26445# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 26446# DIR into the resulting binary. 26447hardcode_direct=$hardcode_direct_CXX 26448 26449# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 26450# DIR into the resulting binary and the resulting library dependency is 26451# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 26452# library is relocated. 26453hardcode_direct_absolute=$hardcode_direct_absolute_CXX 26454 26455# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 26456# into the resulting binary. 26457hardcode_minus_L=$hardcode_minus_L_CXX 26458 26459# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 26460# into the resulting binary. 26461hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 26462 26463# Set to "yes" if building a shared library automatically hardcodes DIR 26464# into the library and all subsequent libraries and executables linked 26465# against it. 26466hardcode_automatic=$hardcode_automatic_CXX 26467 26468# Set to yes if linker adds runtime paths of dependent libraries 26469# to runtime path list. 26470inherit_rpath=$inherit_rpath_CXX 26471 26472# Whether libtool must link a program against all its dependency libraries. 26473link_all_deplibs=$link_all_deplibs_CXX 26474 26475# Set to "yes" if exported symbols are required. 26476always_export_symbols=$always_export_symbols_CXX 26477 26478# The commands to list exported symbols. 26479export_symbols_cmds=$lt_export_symbols_cmds_CXX 26480 26481# Symbols that should not be listed in the preloaded symbols. 26482exclude_expsyms=$lt_exclude_expsyms_CXX 26483 26484# Symbols that must always be exported. 26485include_expsyms=$lt_include_expsyms_CXX 26486 26487# Commands necessary for linking programs (against libraries) with templates. 26488prelink_cmds=$lt_prelink_cmds_CXX 26489 26490# Commands necessary for finishing linking programs. 26491postlink_cmds=$lt_postlink_cmds_CXX 26492 26493# Specify filename containing input files. 26494file_list_spec=$lt_file_list_spec_CXX 26495 26496# How to hardcode a shared library path into an executable. 26497hardcode_action=$hardcode_action_CXX 26498 26499# The directories searched by this compiler when creating a shared library. 26500compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 26501 26502# Dependencies to place before and after the objects being linked to 26503# create a shared library. 26504predep_objects=$lt_predep_objects_CXX 26505postdep_objects=$lt_postdep_objects_CXX 26506predeps=$lt_predeps_CXX 26507postdeps=$lt_postdeps_CXX 26508 26509# The library search path used internally by the compiler when linking 26510# a shared library. 26511compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 26512 26513# ### END LIBTOOL TAG CONFIG: CXX 26514_LT_EOF 26515 26516 ;; 26517 "sdl2_config":C) chmod a+x sdl2-config ;; 26518 "summary":C) echo -en "$SUMMARY" ;; 26519 26520 esac 26521done # for ac_tag 26522 26523 26524as_fn_exit 0 26525_ACEOF 26526ac_clean_files=$ac_clean_files_save 26527 26528test $ac_write_fail = 0 || 26529 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 26530 26531 26532# configure is writing to config.log, and then calls config.status. 26533# config.status does its own redirection, appending to config.log. 26534# Unfortunately, on DOS this fails, as config.log is still kept open 26535# by configure, so config.status won't be able to write to it; its 26536# output is simply discarded. So we exec the FD to /dev/null, 26537# effectively closing config.log, so it can be properly (re)opened and 26538# appended to by config.status. When coming back to configure, we 26539# need to make the FD available again. 26540if test "$no_create" != yes; then 26541 ac_cs_success=: 26542 ac_config_status_args= 26543 test "$silent" = yes && 26544 ac_config_status_args="$ac_config_status_args --quiet" 26545 exec 5>/dev/null 26546 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 26547 exec 5>>config.log 26548 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 26549 # would make configure fail if this is the last instruction. 26550 $ac_cs_success || as_fn_exit 1 26551fi 26552if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 26553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 26554$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 26555fi 26556 26557