A hint: This file contains one or more very long lines, so maybe it is better readable using the pure text view mode that shows the contents as wrapped lines within the browser window.
1 #! /bin/sh 2 3 # Guess values for system-dependent variables and create Makefiles. 4 # Generated automatically using autoconf version 2.13 5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. 6 # 7 # This configure script is free software; the Free Software Foundation 8 # gives unlimited permission to copy, distribute and modify it. 9 10 # Defaults: 11 ac_help= 12 ac_default_prefix=/usr/local 13 # Any additions from configure.in: 14 ac_help="$ac_help 15 --with-php-config=PATH" 16 ac_default_prefix= 17 ac_help="$ac_help 18 --enable-dbg=shared Build DBG debugger extension as a shared library." 19 ac_help="$ac_help 20 --with-dbg-profiler Include dbg profiler support." 21 ac_help="$ac_help 22 " 23 ac_help="$ac_help 24 --enable-shared[=PKGS] build shared libraries [default=yes]" 25 ac_help="$ac_help 26 --enable-static[=PKGS] build static libraries [default=yes]" 27 ac_help="$ac_help 28 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]" 29 ac_help="$ac_help 30 --with-gnu-ld assume the C compiler uses GNU ld [default=no]" 31 32 # Find the correct PATH separator. Usually this is `:', but 33 # DJGPP uses `;' like DOS. 34 if test "X${PATH_SEPARATOR+set}" != Xset; then 35 UNAME=${UNAME-`uname 2>/dev/null`} 36 case X$UNAME in 37 *-DOS) lt_cv_sys_path_separator=';' ;; 38 *) lt_cv_sys_path_separator=':' ;; 39 esac 40 PATH_SEPARATOR=$lt_cv_sys_path_separator 41 fi 42 43 44 # Check that we are running under the correct shell. 45 SHELL=${CONFIG_SHELL-/bin/sh} 46 47 case X$ECHO in 48 X*--fallback-echo) 49 # Remove one level of quotation (which was required for Make). 50 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 51 ;; 52 esac 53 54 echo=${ECHO-echo} 55 if test "X$1" = X--no-reexec; then 56 # Discard the --no-reexec flag, and continue. 57 shift 58 elif test "X$1" = X--fallback-echo; then 59 # Avoid inline document here, it may be left over 60 : 61 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then 62 # Yippee, $echo works! 63 : 64 else 65 # Restart under the correct shell. 66 exec $SHELL "$0" --no-reexec ${1+"$@"} 67 fi 68 69 if test "X$1" = X--fallback-echo; then 70 # used as fallback echo 71 shift 72 cat <<EOF 73 74 EOF 75 exit 0 76 fi 77 78 # The HP-UX ksh and POSIX shell print the target directory to stdout 79 # if CDPATH is set. 80 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 81 82 if test -z "$ECHO"; then 83 if test "X${echo_test_string+set}" != Xset; then 84 # find a string as large as possible, as long as the shell can cope with it 85 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 86 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 87 if (echo_test_string="`eval $cmd`") 2>/dev/null && 88 echo_test_string="`eval $cmd`" && 89 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 90 then 91 break 92 fi 93 done 94 fi 95 96 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 97 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 98 test "X$echo_testing_string" = "X$echo_test_string"; then 99 : 100 else 101 # The Solaris, AIX, and Digital Unix default echo programs unquote 102 # backslashes. This makes it impossible to quote backslashes using 103 # echo "$something" | sed 's/\\/\\\\/g' 104 # 105 # So, first we look for a working echo in the user's PATH. 106 107 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR 108 for dir in $PATH /usr/ucb; do 109 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 110 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 111 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 112 test "X$echo_testing_string" = "X$echo_test_string"; then 113 echo="$dir/echo" 114 break 115 fi 116 done 117 IFS="$save_ifs" 118 119 if test "X$echo" = Xecho; then 120 # We didn't find a better echo, so look for alternatives. 121 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 122 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 123 test "X$echo_testing_string" = "X$echo_test_string"; then 124 # This shell has a builtin print -r that does the trick. 125 echo='print -r' 126 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 127 test "X$CONFIG_SHELL" != X/bin/ksh; then 128 # If we have ksh, try running configure again with it. 129 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 130 export ORIGINAL_CONFIG_SHELL 131 CONFIG_SHELL=/bin/ksh 132 export CONFIG_SHELL 133 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 134 else 135 # Try using printf. 136 echo='printf %s\n' 137 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 138 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 139 test "X$echo_testing_string" = "X$echo_test_string"; then 140 # Cool, printf works 141 : 142 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 143 test "X$echo_testing_string" = 'X\t' && 144 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 145 test "X$echo_testing_string" = "X$echo_test_string"; then 146 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 147 export CONFIG_SHELL 148 SHELL="$CONFIG_SHELL" 149 export SHELL 150 echo="$CONFIG_SHELL $0 --fallback-echo" 151 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 152 test "X$echo_testing_string" = 'X\t' && 153 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 154 test "X$echo_testing_string" = "X$echo_test_string"; then 155 echo="$CONFIG_SHELL $0 --fallback-echo" 156 else 157 # maybe with a smaller string... 158 prev=: 159 160 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 161 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 162 then 163 break 164 fi 165 prev="$cmd" 166 done 167 168 if test "$prev" != 'sed 50q "$0"'; then 169 echo_test_string=`eval $prev` 170 export echo_test_string 171 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 172 else 173 # Oops. We lost completely, so just stick with echo. 174 echo=echo 175 fi 176 fi 177 fi 178 fi 179 fi 180 fi 181 182 # Copy echo and quote the copy suitably for passing to libtool from 183 # the Makefile, instead of quoting the original, which is used later. 184 ECHO=$echo 185 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 186 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 187 fi 188 189 190 ac_help="$ac_help 191 --disable-libtool-lock avoid locking (might break parallel builds)" 192 ac_help="$ac_help 193 --with-pic try to use only PIC/non-PIC objects [default=use both]" 194 195 # Initialize some variables set by options. 196 # The variables have the same names as the options, with 197 # dashes changed to underlines. 198 build=NONE 199 cache_file=./config.cache 200 exec_prefix=NONE 201 host=NONE 202 no_create= 203 nonopt=NONE 204 no_recursion= 205 prefix=NONE 206 program_prefix=NONE 207 program_suffix=NONE 208 program_transform_name=s,x,x, 209 silent= 210 site= 211 srcdir= 212 target=NONE 213 verbose= 214 x_includes=NONE 215 x_libraries=NONE 216 bindir='${exec_prefix}/bin' 217 sbindir='${exec_prefix}/sbin' 218 libexecdir='${exec_prefix}/libexec' 219 datadir='${prefix}/share' 220 sysconfdir='${prefix}/etc' 221 sharedstatedir='${prefix}/com' 222 localstatedir='${prefix}/var' 223 libdir='${exec_prefix}/lib' 224 includedir='${prefix}/include' 225 oldincludedir='/usr/include' 226 infodir='${prefix}/info' 227 mandir='${prefix}/man' 228 229 # Initialize some other variables. 230 subdirs= 231 MFLAGS= MAKEFLAGS= 232 SHELL=${CONFIG_SHELL-/bin/sh} 233 # Maximum number of lines to put in a shell here document. 234 ac_max_here_lines=12 235 236 ac_prev= 237 for ac_option 238 do 239 240 # If the previous option needs an argument, assign it. 241 if test -n "$ac_prev"; then 242 eval "$ac_prev=\$ac_option" 243 ac_prev= 244 continue 245 fi 246 247 case "$ac_option" in 248 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 249 *) ac_optarg= ;; 250 esac 251 252 # Accept the important Cygnus configure options, so we can diagnose typos. 253 254 case "$ac_option" in 255 256 -bindir | --bindir | --bindi | --bind | --bin | --bi) 257 ac_prev=bindir ;; 258 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 259 bindir="$ac_optarg" ;; 260 261 -build | --build | --buil | --bui | --bu) 262 ac_prev=build ;; 263 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 264 build="$ac_optarg" ;; 265 266 -cache-file | --cache-file | --cache-fil | --cache-fi \ 267 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 268 ac_prev=cache_file ;; 269 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 270 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 271 cache_file="$ac_optarg" ;; 272 273 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 274 ac_prev=datadir ;; 275 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 276 | --da=*) 277 datadir="$ac_optarg" ;; 278 279 -disable-* | --disable-*) 280 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 281 # Reject names that are not valid shell variable names. 282 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 283 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 284 fi 285 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 286 eval "enable_${ac_feature}=no" ;; 287 288 -enable-* | --enable-*) 289 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 290 # Reject names that are not valid shell variable names. 291 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 292 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 293 fi 294 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 295 case "$ac_option" in 296 *=*) ;; 297 *) ac_optarg=yes ;; 298 esac 299 eval "enable_${ac_feature}='$ac_optarg'" ;; 300 301 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 302 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 303 | --exec | --exe | --ex) 304 ac_prev=exec_prefix ;; 305 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 306 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 307 | --exec=* | --exe=* | --ex=*) 308 exec_prefix="$ac_optarg" ;; 309 310 -gas | --gas | --ga | --g) 311 # Obsolete; use --with-gas. 312 with_gas=yes ;; 313 314 -help | --help | --hel | --he) 315 # Omit some internal or obsolete options to make the list less imposing. 316 # This message is too long to be a string in the A/UX 3.1 sh. 317 cat << EOF 318 Usage: configure [options] [host] 319 Options: [defaults in brackets after descriptions] 320 Configuration: 321 --cache-file=FILE cache test results in FILE 322 --help print this message 323 --no-create do not create output files 324 --quiet, --silent do not print \`checking...' messages 325 --version print the version of autoconf that created configure 326 Directory and file names: 327 --prefix=PREFIX install architecture-independent files in PREFIX 328 [$ac_default_prefix] 329 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 330 [same as prefix] 331 --bindir=DIR user executables in DIR [EPREFIX/bin] 332 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 333 --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 334 --datadir=DIR read-only architecture-independent data in DIR 335 [PREFIX/share] 336 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 337 --sharedstatedir=DIR modifiable architecture-independent data in DIR 338 [PREFIX/com] 339 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 340 --libdir=DIR object code libraries in DIR [EPREFIX/lib] 341 --includedir=DIR C header files in DIR [PREFIX/include] 342 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 343 --infodir=DIR info documentation in DIR [PREFIX/info] 344 --mandir=DIR man documentation in DIR [PREFIX/man] 345 --srcdir=DIR find the sources in DIR [configure dir or ..] 346 --program-prefix=PREFIX prepend PREFIX to installed program names 347 --program-suffix=SUFFIX append SUFFIX to installed program names 348 --program-transform-name=PROGRAM 349 run sed PROGRAM on installed program names 350 EOF 351 cat << EOF 352 Host type: 353 --build=BUILD configure for building on BUILD [BUILD=HOST] 354 --host=HOST configure for HOST [guessed] 355 --target=TARGET configure for TARGET [TARGET=HOST] 356 Features and packages: 357 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 358 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 359 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 360 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 361 --x-includes=DIR X include files are in DIR 362 --x-libraries=DIR X library files are in DIR 363 EOF 364 if test -n "$ac_help"; then 365 echo "--enable and --with options recognized:$ac_help" 366 fi 367 exit 0 ;; 368 369 -host | --host | --hos | --ho) 370 ac_prev=host ;; 371 -host=* | --host=* | --hos=* | --ho=*) 372 host="$ac_optarg" ;; 373 374 -includedir | --includedir | --includedi | --included | --include \ 375 | --includ | --inclu | --incl | --inc) 376 ac_prev=includedir ;; 377 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 378 | --includ=* | --inclu=* | --incl=* | --inc=*) 379 includedir="$ac_optarg" ;; 380 381 -infodir | --infodir | --infodi | --infod | --info | --inf) 382 ac_prev=infodir ;; 383 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 384 infodir="$ac_optarg" ;; 385 386 -libdir | --libdir | --libdi | --libd) 387 ac_prev=libdir ;; 388 -libdir=* | --libdir=* | --libdi=* | --libd=*) 389 libdir="$ac_optarg" ;; 390 391 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 392 | --libexe | --libex | --libe) 393 ac_prev=libexecdir ;; 394 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 395 | --libexe=* | --libex=* | --libe=*) 396 libexecdir="$ac_optarg" ;; 397 398 -localstatedir | --localstatedir | --localstatedi | --localstated \ 399 | --localstate | --localstat | --localsta | --localst \ 400 | --locals | --local | --loca | --loc | --lo) 401 ac_prev=localstatedir ;; 402 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 403 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 404 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 405 localstatedir="$ac_optarg" ;; 406 407 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 408 ac_prev=mandir ;; 409 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 410 mandir="$ac_optarg" ;; 411 412 -nfp | --nfp | --nf) 413 # Obsolete; use --without-fp. 414 with_fp=no ;; 415 416 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 417 | --no-cr | --no-c) 418 no_create=yes ;; 419 420 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 421 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 422 no_recursion=yes ;; 423 424 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 425 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 426 | --oldin | --oldi | --old | --ol | --o) 427 ac_prev=oldincludedir ;; 428 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 429 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 430 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 431 oldincludedir="$ac_optarg" ;; 432 433 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 434 ac_prev=prefix ;; 435 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 436 prefix="$ac_optarg" ;; 437 438 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 439 | --program-pre | --program-pr | --program-p) 440 ac_prev=program_prefix ;; 441 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 442 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 443 program_prefix="$ac_optarg" ;; 444 445 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 446 | --program-suf | --program-su | --program-s) 447 ac_prev=program_suffix ;; 448 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 449 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 450 program_suffix="$ac_optarg" ;; 451 452 -program-transform-name | --program-transform-name \ 453 | --program-transform-nam | --program-transform-na \ 454 | --program-transform-n | --program-transform- \ 455 | --program-transform | --program-transfor \ 456 | --program-transfo | --program-transf \ 457 | --program-trans | --program-tran \ 458 | --progr-tra | --program-tr | --program-t) 459 ac_prev=program_transform_name ;; 460 -program-transform-name=* | --program-transform-name=* \ 461 | --program-transform-nam=* | --program-transform-na=* \ 462 | --program-transform-n=* | --program-transform-=* \ 463 | --program-transform=* | --program-transfor=* \ 464 | --program-transfo=* | --program-transf=* \ 465 | --program-trans=* | --program-tran=* \ 466 | --progr-tra=* | --program-tr=* | --program-t=*) 467 program_transform_name="$ac_optarg" ;; 468 469 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 470 | -silent | --silent | --silen | --sile | --sil) 471 silent=yes ;; 472 473 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 474 ac_prev=sbindir ;; 475 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 476 | --sbi=* | --sb=*) 477 sbindir="$ac_optarg" ;; 478 479 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 480 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 481 | --sharedst | --shareds | --shared | --share | --shar \ 482 | --sha | --sh) 483 ac_prev=sharedstatedir ;; 484 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 485 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 486 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 487 | --sha=* | --sh=*) 488 sharedstatedir="$ac_optarg" ;; 489 490 -site | --site | --sit) 491 ac_prev=site ;; 492 -site=* | --site=* | --sit=*) 493 site="$ac_optarg" ;; 494 495 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 496 ac_prev=srcdir ;; 497 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 498 srcdir="$ac_optarg" ;; 499 500 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 501 | --syscon | --sysco | --sysc | --sys | --sy) 502 ac_prev=sysconfdir ;; 503 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 504 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 505 sysconfdir="$ac_optarg" ;; 506 507 -target | --target | --targe | --targ | --tar | --ta | --t) 508 ac_prev=target ;; 509 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 510 target="$ac_optarg" ;; 511 512 -v | -verbose | --verbose | --verbos | --verbo | --verb) 513 verbose=yes ;; 514 515 -version | --version | --versio | --versi | --vers) 516 echo "configure generated by autoconf version 2.13" 517 exit 0 ;; 518 519 -with-* | --with-*) 520 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 521 # Reject names that are not valid shell variable names. 522 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 523 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 524 fi 525 ac_package=`echo $ac_package| sed 's/-/_/g'` 526 case "$ac_option" in 527 *=*) ;; 528 *) ac_optarg=yes ;; 529 esac 530 eval "with_${ac_package}='$ac_optarg'" ;; 531 532 -without-* | --without-*) 533 ac_package=`echo $ac_option|sed -e 's/-*without-//'` 534 # Reject names that are not valid shell variable names. 535 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 536 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 537 fi 538 ac_package=`echo $ac_package| sed 's/-/_/g'` 539 eval "with_${ac_package}=no" ;; 540 541 --x) 542 # Obsolete; use --with-x. 543 with_x=yes ;; 544 545 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 546 | --x-incl | --x-inc | --x-in | --x-i) 547 ac_prev=x_includes ;; 548 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 549 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 550 x_includes="$ac_optarg" ;; 551 552 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 553 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 554 ac_prev=x_libraries ;; 555 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 556 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 557 x_libraries="$ac_optarg" ;; 558 559 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 560 ;; 561 562 *) 563 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 564 echo "configure: warning: $ac_option: invalid host type" 1>&2 565 fi 566 if test "x$nonopt" != xNONE; then 567 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 568 fi 569 nonopt="$ac_option" 570 ;; 571 572 esac 573 done 574 575 if test -n "$ac_prev"; then 576 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 577 fi 578 579 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 580 581 # File descriptor usage: 582 # 0 standard input 583 # 1 file creation 584 # 2 errors and warnings 585 # 3 some systems may open it to /dev/tty 586 # 4 used on the Kubota Titan 587 # 6 checking for... messages and results 588 # 5 compiler messages saved in config.log 589 if test "$silent" = yes; then 590 exec 6>/dev/null 591 else 592 exec 6>&1 593 fi 594 exec 5>./config.log 595 596 echo "\ 597 This file contains any messages produced by compilers while 598 running configure, to aid debugging if configure makes a mistake. 599 " 1>&5 600 601 # Strip out --no-create and --no-recursion so they do not pile up. 602 # Also quote any args containing shell metacharacters. 603 ac_configure_args= 604 for ac_arg 605 do 606 case "$ac_arg" in 607 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 608 | --no-cr | --no-c) ;; 609 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 610 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 611 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 612 ac_configure_args="$ac_configure_args '$ac_arg'" ;; 613 *) ac_configure_args="$ac_configure_args $ac_arg" ;; 614 esac 615 done 616 617 # NLS nuisances. 618 # Only set these to C if already set. These must not be set unconditionally 619 # because not all systems understand e.g. LANG=C (notably SCO). 620 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 621 # Non-C LC_CTYPE values break the ctype check. 622 if test "${LANG+set}" = set; then LANG=C; export LANG; fi 623 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 624 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 625 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 626 627 # confdefs.h avoids OS command line length limits that DEFS can exceed. 628 rm -rf conftest* confdefs.h 629 # AIX cpp loses on an empty file, so make sure it contains at least a newline. 630 echo > confdefs.h 631 632 # A filename unique to this package, relative to the directory that 633 # configure is in, which we can look for to find out if srcdir is correct. 634 ac_unique_file=config.m4 635 636 # Find the source files, if location was not specified. 637 if test -z "$srcdir"; then 638 ac_srcdir_defaulted=yes 639 # Try the directory containing this script, then its parent. 640 ac_prog=$0 641 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 642 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 643 srcdir=$ac_confdir 644 if test ! -r $srcdir/$ac_unique_file; then 645 srcdir=.. 646 fi 647 else 648 ac_srcdir_defaulted=no 649 fi 650 if test ! -r $srcdir/$ac_unique_file; then 651 if test "$ac_srcdir_defaulted" = yes; then 652 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 653 else 654 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 655 fi 656 fi 657 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 658 659 # Prefer explicitly selected file to automatically selected ones. 660 if test -z "$CONFIG_SITE"; then 661 if test "x$prefix" != xNONE; then 662 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 663 else 664 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 665 fi 666 fi 667 for ac_site_file in $CONFIG_SITE; do 668 if test -r "$ac_site_file"; then 669 echo "loading site script $ac_site_file" 670 . "$ac_site_file" 671 fi 672 done 673 674 if test -r "$cache_file"; then 675 echo "loading cache $cache_file" 676 . $cache_file 677 else 678 echo "creating cache $cache_file" 679 > $cache_file 680 fi 681 682 ac_ext=c 683 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 684 ac_cpp='$CPP $CPPFLAGS' 685 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 686 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 687 cross_compiling=$ac_cv_prog_cc_cross 688 689 ac_exeext= 690 ac_objext=o 691 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 692 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 693 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 694 ac_n= ac_c=' 695 ' ac_t=' ' 696 else 697 ac_n=-n ac_c= ac_t= 698 fi 699 else 700 ac_n= ac_c='\c' ac_t= 701 fi 702 703 704 705 ac_aux_dir= 706 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 707 if test -f $ac_dir/install-sh; then 708 ac_aux_dir=$ac_dir 709 ac_install_sh="$ac_aux_dir/install-sh -c" 710 break 711 elif test -f $ac_dir/install.sh; then 712 ac_aux_dir=$ac_dir 713 ac_install_sh="$ac_aux_dir/install.sh -c" 714 break 715 fi 716 done 717 if test -z "$ac_aux_dir"; then 718 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } 719 fi 720 ac_config_guess=$ac_aux_dir/config.guess 721 ac_config_sub=$ac_aux_dir/config.sub 722 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 723 724 725 # Make sure we can run config.sub. 726 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : 727 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } 728 fi 729 730 echo $ac_n "checking host system type""... $ac_c" 1>&6 731 echo "configure:732: checking host system type" >&5 732 733 host_alias=$host 734 case "$host_alias" in 735 NONE) 736 case $nonopt in 737 NONE) 738 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : 739 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } 740 fi ;; 741 *) host_alias=$nonopt ;; 742 esac ;; 743 esac 744 745 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` 746 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 747 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 748 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 749 echo "$ac_t""$host" 1>&6 750 751 752 if test -z "$host_alias" && test -n "$host"; then 753 host_alias=$host 754 fi 755 if test -z "$host_alias"; then 756 { echo "configure: error: host_alias is not set!" 1>&2; exit 1; } 757 fi 758 759 760 test -d include || mkdir include 761 > Makefile.objects 762 > Makefile.fragments 763 pattern=define 764 egrep $pattern'.*include/php' $srcdir/configure|sed 's/.*>//'|xargs touch 2>/dev/null 765 766 767 768 abs_srcdir=`(cd $srcdir && pwd)` 769 abs_builddir=`pwd` 770 771 772 test -f config.nice && mv config.nice config.nice.old 773 rm -f config.nice.old 774 cat >config.nice<<EOF 775 #! /bin/sh 776 # 777 # Created by configure 778 779 EOF 780 781 for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS CC CXX; do 782 eval val=\$$var 783 if test -n "$val"; then 784 echo "$var='$val' \\" >> config.nice 785 fi 786 done 787 788 for arg in $0 "$@"; do 789 echo "'$arg' \\" >> config.nice 790 done 791 echo '"$@"' >> config.nice 792 chmod +x config.nice 793 794 795 # Extract the first word of "gcc", so it can be a program name with args. 796 set dummy gcc; ac_word=$2 797 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 798 echo "configure:799: checking for $ac_word" >&5 799 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 800 echo $ac_n "(cached) $ac_c" 1>&6 801 else 802 if test -n "$CC"; then 803 ac_cv_prog_CC="$CC" # Let the user override the test. 804 else 805 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 806 ac_dummy="$PATH" 807 for ac_dir in $ac_dummy; do 808 test -z "$ac_dir" && ac_dir=. 809 if test -f $ac_dir/$ac_word; then 810 ac_cv_prog_CC="gcc" 811 break 812 fi 813 done 814 IFS="$ac_save_ifs" 815 fi 816 fi 817 CC="$ac_cv_prog_CC" 818 if test -n "$CC"; then 819 echo "$ac_t""$CC" 1>&6 820 else 821 echo "$ac_t""no" 1>&6 822 fi 823 824 if test -z "$CC"; then 825 # Extract the first word of "cc", so it can be a program name with args. 826 set dummy cc; ac_word=$2 827 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 828 echo "configure:829: checking for $ac_word" >&5 829 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 830 echo $ac_n "(cached) $ac_c" 1>&6 831 else 832 if test -n "$CC"; then 833 ac_cv_prog_CC="$CC" # Let the user override the test. 834 else 835 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 836 ac_prog_rejected=no 837 ac_dummy="$PATH" 838 for ac_dir in $ac_dummy; do 839 test -z "$ac_dir" && ac_dir=. 840 if test -f $ac_dir/$ac_word; then 841 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 842 ac_prog_rejected=yes 843 continue 844 fi 845 ac_cv_prog_CC="cc" 846 break 847 fi 848 done 849 IFS="$ac_save_ifs" 850 if test $ac_prog_rejected = yes; then 851 # We found a bogon in the path, so make sure we never use it. 852 set dummy $ac_cv_prog_CC 853 shift 854 if test $# -gt 0; then 855 # We chose a different compiler from the bogus one. 856 # However, it has the same basename, so the bogon will be chosen 857 # first if we set CC to just the basename; use the full file name. 858 shift 859 set dummy "$ac_dir/$ac_word" "$@" 860 shift 861 ac_cv_prog_CC="$@" 862 fi 863 fi 864 fi 865 fi 866 CC="$ac_cv_prog_CC" 867 if test -n "$CC"; then 868 echo "$ac_t""$CC" 1>&6 869 else 870 echo "$ac_t""no" 1>&6 871 fi 872 873 if test -z "$CC"; then 874 case "`uname -s`" in 875 *win32* | *WIN32*) 876 # Extract the first word of "cl", so it can be a program name with args. 877 set dummy cl; ac_word=$2 878 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 879 echo "configure:880: checking for $ac_word" >&5 880 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 881 echo $ac_n "(cached) $ac_c" 1>&6 882 else 883 if test -n "$CC"; then 884 ac_cv_prog_CC="$CC" # Let the user override the test. 885 else 886 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 887 ac_dummy="$PATH" 888 for ac_dir in $ac_dummy; do 889 test -z "$ac_dir" && ac_dir=. 890 if test -f $ac_dir/$ac_word; then 891 ac_cv_prog_CC="cl" 892 break 893 fi 894 done 895 IFS="$ac_save_ifs" 896 fi 897 fi 898 CC="$ac_cv_prog_CC" 899 if test -n "$CC"; then 900 echo "$ac_t""$CC" 1>&6 901 else 902 echo "$ac_t""no" 1>&6 903 fi 904 ;; 905 esac 906 fi 907 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 908 fi 909 910 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 911 echo "configure:912: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 912 913 ac_ext=c 914 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 915 ac_cpp='$CPP $CPPFLAGS' 916 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 917 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 918 cross_compiling=$ac_cv_prog_cc_cross 919 920 cat > conftest.$ac_ext << EOF 921 922 #line 923 "configure" 923 #include "confdefs.h" 924 925 main(){return(0);} 926 EOF 927 if { (eval echo configure:928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 928 ac_cv_prog_cc_works=yes 929 # If we can't run a trivial program, we are probably using a cross compiler. 930 if (./conftest; exit) 2>/dev/null; then 931 ac_cv_prog_cc_cross=no 932 else 933 ac_cv_prog_cc_cross=yes 934 fi 935 else 936 echo "configure: failed program was:" >&5 937 cat conftest.$ac_ext >&5 938 ac_cv_prog_cc_works=no 939 fi 940 rm -fr conftest* 941 ac_ext=c 942 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 943 ac_cpp='$CPP $CPPFLAGS' 944 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 945 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 946 cross_compiling=$ac_cv_prog_cc_cross 947 948 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 949 if test $ac_cv_prog_cc_works = no; then 950 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 951 fi 952 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 953 echo "configure:954: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 954 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 955 cross_compiling=$ac_cv_prog_cc_cross 956 957 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 958 echo "configure:959: checking whether we are using GNU C" >&5 959 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 960 echo $ac_n "(cached) $ac_c" 1>&6 961 else 962 cat > conftest.c <<EOF 963 #ifdef __GNUC__ 964 yes; 965 #endif 966 EOF 967 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 968 ac_cv_prog_gcc=yes 969 else 970 ac_cv_prog_gcc=no 971 fi 972 fi 973 974 echo "$ac_t""$ac_cv_prog_gcc" 1>&6 975 976 if test $ac_cv_prog_gcc = yes; then 977 GCC=yes 978 else 979 GCC= 980 fi 981 982 ac_test_CFLAGS="${CFLAGS+set}" 983 ac_save_CFLAGS="$CFLAGS" 984 CFLAGS= 985 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 986 echo "configure:987: checking whether ${CC-cc} accepts -g" >&5 987 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 988 echo $ac_n "(cached) $ac_c" 1>&6 989 else 990 echo 'void f(){}' > conftest.c 991 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 992 ac_cv_prog_cc_g=yes 993 else 994 ac_cv_prog_cc_g=no 995 fi 996 rm -f conftest* 997 998 fi 999 1000 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 1001 if test "$ac_test_CFLAGS" = set; then 1002 CFLAGS="$ac_save_CFLAGS" 1003 elif test $ac_cv_prog_cc_g = yes; then 1004 if test "$GCC" = yes; then 1005 CFLAGS="-g -O2" 1006 else 1007 CFLAGS="-g" 1008 fi 1009 else 1010 if test "$GCC" = yes; then 1011 CFLAGS="-O2" 1012 else 1013 CFLAGS= 1014 fi 1015 fi 1016 1017 if test "x$CC" != xcc; then 1018 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6 1019 echo "configure:1020: checking whether $CC and cc understand -c and -o together" >&5 1020 else 1021 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6 1022 echo "configure:1023: checking whether cc understands -c and -o together" >&5 1023 fi 1024 set dummy $CC; ac_cc="`echo $2 | 1025 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`" 1026 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then 1027 echo $ac_n "(cached) $ac_c" 1>&6 1028 else 1029 echo 'foo(){}' > conftest.c 1030 # Make sure it works both with $CC and with simple cc. 1031 # We do the test twice because some compilers refuse to overwrite an 1032 # existing .o file with -o, though they will create one. 1033 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5' 1034 if { (eval echo configure:1035: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } && 1035 test -f conftest.o && { (eval echo configure:1036: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; 1036 then 1037 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 1038 if test "x$CC" != xcc; then 1039 # Test first that cc exists at all. 1040 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1041: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then 1041 ac_try='cc -c conftest.c -o conftest.o 1>&5' 1042 if { (eval echo configure:1043: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } && 1043 test -f conftest.o && { (eval echo configure:1044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; 1044 then 1045 # cc works too. 1046 : 1047 else 1048 # cc exists but doesn't like -o. 1049 eval ac_cv_prog_cc_${ac_cc}_c_o=no 1050 fi 1051 fi 1052 fi 1053 else 1054 eval ac_cv_prog_cc_${ac_cc}_c_o=no 1055 fi 1056 rm -f conftest* 1057 1058 fi 1059 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then 1060 echo "$ac_t""yes" 1>&6 1061 else 1062 echo "$ac_t""no" 1>&6 1063 cat >> confdefs.h <<\EOF 1064 #define NO_MINUS_C_MINUS_O 1 1065 EOF 1066 1067 fi 1068 1069 1070 1071 echo $ac_n "checking if compiler supports -R""... $ac_c" 1>&6 1072 echo "configure:1073: checking if compiler supports -R" >&5 1073 if eval "test \"`echo '$''{'php_cv_cc_dashr'+set}'`\" = set"; then 1074 echo $ac_n "(cached) $ac_c" 1>&6 1075 else 1076 1077 SAVE_LIBS=$LIBS 1078 LIBS="-R /usr/lib $LIBS" 1079 cat > conftest.$ac_ext <<EOF 1080 #line 1081 "configure" 1081 #include "confdefs.h" 1082 1083 int main() { 1084 1085 ; return 0; } 1086 EOF 1087 if { (eval echo configure:1088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1088 rm -rf conftest* 1089 php_cv_cc_dashr=yes 1090 else 1091 echo "configure: failed program was:" >&5 1092 cat conftest.$ac_ext >&5 1093 rm -rf conftest* 1094 php_cv_cc_dashr=no 1095 fi 1096 rm -f conftest* 1097 LIBS=$SAVE_LIBS 1098 fi 1099 1100 echo "$ac_t""$php_cv_cc_dashr" 1>&6 1101 if test $php_cv_cc_dashr = "yes"; then 1102 ld_runpath_switch=-R 1103 else 1104 echo $ac_n "checking if compiler supports -Wl,-rpath,""... $ac_c" 1>&6 1105 echo "configure:1106: checking if compiler supports -Wl,-rpath," >&5 1106 if eval "test \"`echo '$''{'php_cv_cc_rpath'+set}'`\" = set"; then 1107 echo $ac_n "(cached) $ac_c" 1>&6 1108 else 1109 1110 SAVE_LIBS=$LIBS 1111 LIBS="-Wl,-rpath,/usr/lib $LIBS" 1112 cat > conftest.$ac_ext <<EOF 1113 #line 1114 "configure" 1114 #include "confdefs.h" 1115 1116 int main() { 1117 1118 ; return 0; } 1119 EOF 1120 if { (eval echo configure:1121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1121 rm -rf conftest* 1122 php_cv_cc_rpath=yes 1123 else 1124 echo "configure: failed program was:" >&5 1125 cat conftest.$ac_ext >&5 1126 rm -rf conftest* 1127 php_cv_cc_rpath=no 1128 fi 1129 rm -f conftest* 1130 LIBS=$SAVE_LIBS 1131 fi 1132 1133 echo "$ac_t""$php_cv_cc_rpath" 1>&6 1134 if test $php_cv_cc_rpath = "yes"; then 1135 ld_runpath_switch=-Wl,-rpath, 1136 else 1137 ld_runpath_switch=-L 1138 fi 1139 fi 1140 1141 1142 1143 PHP_VAR_SUBST="$PHP_VAR_SUBST SHLIB_SUFFIX_NAME" 1144 1145 SHLIB_SUFFIX_NAME=so 1146 case $host_alias in 1147 *hpux*) 1148 SHLIB_SUFFIX_NAME=sl 1149 ;; 1150 *darwin*) 1151 SHLIB_SUFFIX_NAME=dylib 1152 ;; 1153 esac 1154 1155 1156 # Check whether --with-php-config or --without-php-config was given. 1157 if test "${with_php_config+set}" = set; then 1158 withval="$with_php_config" 1159 1160 PHP_CONFIG=$withval 1161 1162 else 1163 1164 PHP_CONFIG=php-config 1165 1166 fi 1167 1168 1169 prefix=`$PHP_CONFIG --prefix 2>/dev/null` 1170 INCLUDES=`$PHP_CONFIG --includes 2>/dev/null` 1171 EXTENSION_DIR=`$PHP_CONFIG --extension-dir` 1172 1173 if test -z "$prefix"; then 1174 { echo "configure: error: Cannot find php-config. Please use --with-php-config=PATH" 1>&2; exit 1; } 1175 fi 1176 echo $ac_n "checking for PHP prefix""... $ac_c" 1>&6 1177 echo "configure:1178: checking for PHP prefix" >&5 1178 echo "$ac_t""$prefix" 1>&6 1179 echo $ac_n "checking for PHP includes""... $ac_c" 1>&6 1180 echo "configure:1181: checking for PHP includes" >&5 1181 echo "$ac_t""$INCLUDES" 1>&6 1182 echo $ac_n "checking for PHP extension directory""... $ac_c" 1>&6 1183 echo "configure:1184: checking for PHP extension directory" >&5 1184 echo "$ac_t""$EXTENSION_DIR" 1>&6 1185 1186 1187 1188 1189 OVERALL_TARGET=php 1190 php_c_pre='$(CC)' 1191 php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' 1192 php_c_post=' && echo > $@' 1193 php_cxx_pre='$(CXX)' 1194 php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' 1195 php_cxx_post=' && echo > $@' 1196 php_lo=o 1197 1198 case $with_pic in 1199 yes) pic_setting='-prefer-pic';; 1200 no) pic_setting='-prefer-non-pic';; 1201 esac 1202 1203 shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' 1204 shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting 1205 shared_c_post= 1206 shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' 1207 shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting 1208 shared_cxx_post= 1209 shared_lo=lo 1210 1211 php_build_target=program 1212 1213 OVERALL_TARGET=libphp5.la 1214 php_build_target=shared 1215 1216 php_c_pre=$shared_c_pre 1217 php_c_meta=$shared_c_meta 1218 php_c_post=$shared_c_post 1219 php_cxx_pre=$shared_cxx_pre 1220 php_cxx_meta=$shared_cxx_meta 1221 php_cxx_post=$shared_cxx_post 1222 php_lo=$shared_lo 1223 1224 1225 1226 1227 1228 # Extract the first word of "re2c", so it can be a program name with args. 1229 set dummy re2c; ac_word=$2 1230 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1231 echo "configure:1232: checking for $ac_word" >&5 1232 if eval "test \"`echo '$''{'ac_cv_prog_RE2C'+set}'`\" = set"; then 1233 echo $ac_n "(cached) $ac_c" 1>&6 1234 else 1235 if test -n "$RE2C"; then 1236 ac_cv_prog_RE2C="$RE2C" # Let the user override the test. 1237 else 1238 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1239 ac_dummy="$PATH" 1240 for ac_dir in $ac_dummy; do 1241 test -z "$ac_dir" && ac_dir=. 1242 if test -f $ac_dir/$ac_word; then 1243 ac_cv_prog_RE2C="re2c" 1244 break 1245 fi 1246 done 1247 IFS="$ac_save_ifs" 1248 test -z "$ac_cv_prog_RE2C" && ac_cv_prog_RE2C="exit 0;" 1249 fi 1250 fi 1251 RE2C="$ac_cv_prog_RE2C" 1252 if test -n "$RE2C"; then 1253 echo "$ac_t""$RE2C" 1>&6 1254 else 1255 echo "$ac_t""no" 1>&6 1256 fi 1257 1258 1259 for ac_prog in mawk gawk nawk awk 1260 do 1261 # Extract the first word of "$ac_prog", so it can be a program name with args. 1262 set dummy $ac_prog; ac_word=$2 1263 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1264 echo "configure:1265: checking for $ac_word" >&5 1265 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then 1266 echo $ac_n "(cached) $ac_c" 1>&6 1267 else 1268 if test -n "$AWK"; then 1269 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1270 else 1271 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1272 ac_dummy="$PATH" 1273 for ac_dir in $ac_dummy; do 1274 test -z "$ac_dir" && ac_dir=. 1275 if test -f $ac_dir/$ac_word; then 1276 ac_cv_prog_AWK="$ac_prog" 1277 break 1278 fi 1279 done 1280 IFS="$ac_save_ifs" 1281 fi 1282 fi 1283 AWK="$ac_cv_prog_AWK" 1284 if test -n "$AWK"; then 1285 echo "$ac_t""$AWK" 1>&6 1286 else 1287 echo "$ac_t""no" 1>&6 1288 fi 1289 1290 test -n "$AWK" && break 1291 done 1292 1293 1294 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1295 echo "configure:1296: checking how to run the C preprocessor" >&5 1296 # On Suns, sometimes $CPP names a directory. 1297 if test -n "$CPP" && test -d "$CPP"; then 1298 CPP= 1299 fi 1300 if test -z "$CPP"; then 1301 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 1302 echo $ac_n "(cached) $ac_c" 1>&6 1303 else 1304 # This must be in double quotes, not single quotes, because CPP may get 1305 # substituted into the Makefile and "${CC-cc}" will confuse make. 1306 CPP="${CC-cc} -E" 1307 # On the NeXT, cc -E runs the code through the compiler's parser, 1308 # not just through cpp. 1309 cat > conftest.$ac_ext <<EOF 1310 #line 1311 "configure" 1311 #include "confdefs.h" 1312 #include <assert.h> 1313 Syntax Error 1314 EOF 1315 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1316 { (eval echo configure:1317: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1317 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1318 if test -z "$ac_err"; then 1319 : 1320 else 1321 echo "$ac_err" >&5 1322 echo "configure: failed program was:" >&5 1323 cat conftest.$ac_ext >&5 1324 rm -rf conftest* 1325 CPP="${CC-cc} -E -traditional-cpp" 1326 cat > conftest.$ac_ext <<EOF 1327 #line 1328 "configure" 1328 #include "confdefs.h" 1329 #include <assert.h> 1330 Syntax Error 1331 EOF 1332 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1333 { (eval echo configure:1334: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1334 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1335 if test -z "$ac_err"; then 1336 : 1337 else 1338 echo "$ac_err" >&5 1339 echo "configure: failed program was:" >&5 1340 cat conftest.$ac_ext >&5 1341 rm -rf conftest* 1342 CPP="${CC-cc} -nologo -E" 1343 cat > conftest.$ac_ext <<EOF 1344 #line 1345 "configure" 1345 #include "confdefs.h" 1346 #include <assert.h> 1347 Syntax Error 1348 EOF 1349 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1350 { (eval echo configure:1351: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1351 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1352 if test -z "$ac_err"; then 1353 : 1354 else 1355 echo "$ac_err" >&5 1356 echo "configure: failed program was:" >&5 1357 cat conftest.$ac_ext >&5 1358 rm -rf conftest* 1359 CPP=/lib/cpp 1360 fi 1361 rm -f conftest* 1362 fi 1363 rm -f conftest* 1364 fi 1365 rm -f conftest* 1366 ac_cv_prog_CPP="$CPP" 1367 fi 1368 CPP="$ac_cv_prog_CPP" 1369 else 1370 ac_cv_prog_CPP="$CPP" 1371 fi 1372 echo "$ac_t""$CPP" 1>&6 1373 1374 for ac_hdr in \ 1375 inttypes.h \ 1376 stdint.h \ 1377 arpa/inet.h \ 1378 arpa/nameser.h \ 1379 stdarg.h \ 1380 sys/socket.h \ 1381 unistd.h \ 1382 netdb.h \ 1383 1384 do 1385 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1386 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1387 echo "configure:1388: checking for $ac_hdr" >&5 1388 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1389 echo $ac_n "(cached) $ac_c" 1>&6 1390 else 1391 cat > conftest.$ac_ext <<EOF 1392 #line 1393 "configure" 1393 #include "confdefs.h" 1394 #include <$ac_hdr> 1395 EOF 1396 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1397 { (eval echo configure:1398: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1398 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1399 if test -z "$ac_err"; then 1400 rm -rf conftest* 1401 eval "ac_cv_header_$ac_safe=yes" 1402 else 1403 echo "$ac_err" >&5 1404 echo "configure: failed program was:" >&5 1405 cat conftest.$ac_ext >&5 1406 rm -rf conftest* 1407 eval "ac_cv_header_$ac_safe=no" 1408 fi 1409 rm -f conftest* 1410 fi 1411 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1412 echo "$ac_t""yes" 1>&6 1413 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1414 cat >> confdefs.h <<EOF 1415 #define $ac_tr_hdr 1 1416 EOF 1417 1418 else 1419 echo "$ac_t""no" 1>&6 1420 fi 1421 done 1422 1423 1424 1425 1426 echo $ac_n "checking size of int""... $ac_c" 1>&6 1427 echo "configure:1428: checking size of int" >&5 1428 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then 1429 echo $ac_n "(cached) $ac_c" 1>&6 1430 else 1431 if test "$cross_compiling" = yes; then 1432 ac_cv_sizeof_int=0 1433 else 1434 cat > conftest.$ac_ext <<EOF 1435 #line 1436 "configure" 1436 #include "confdefs.h" 1437 #include <stdio.h> 1438 main() 1439 { 1440 FILE *f=fopen("conftestval", "w"); 1441 if (!f) exit(1); 1442 fprintf(f, "%d\n", sizeof(int)); 1443 exit(0); 1444 } 1445 EOF 1446 if { (eval echo configure:1447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1447 then 1448 ac_cv_sizeof_int=`cat conftestval` 1449 else 1450 echo "configure: failed program was:" >&5 1451 cat conftest.$ac_ext >&5 1452 rm -fr conftest* 1453 ac_cv_sizeof_int=0 1454 fi 1455 rm -fr conftest* 1456 fi 1457 1458 fi 1459 echo "$ac_t""$ac_cv_sizeof_int" 1>&6 1460 cat >> confdefs.h <<EOF 1461 #define SIZEOF_INT $ac_cv_sizeof_int 1462 EOF 1463 1464 1465 echo $ac_n "checking size of long""... $ac_c" 1>&6 1466 echo "configure:1467: checking size of long" >&5 1467 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then 1468 echo $ac_n "(cached) $ac_c" 1>&6 1469 else 1470 if test "$cross_compiling" = yes; then 1471 ac_cv_sizeof_long=0 1472 else 1473 cat > conftest.$ac_ext <<EOF 1474 #line 1475 "configure" 1475 #include "confdefs.h" 1476 #include <stdio.h> 1477 main() 1478 { 1479 FILE *f=fopen("conftestval", "w"); 1480 if (!f) exit(1); 1481 fprintf(f, "%d\n", sizeof(long)); 1482 exit(0); 1483 } 1484 EOF 1485 if { (eval echo configure:1486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1486 then 1487 ac_cv_sizeof_long=`cat conftestval` 1488 else 1489 echo "configure: failed program was:" >&5 1490 cat conftest.$ac_ext >&5 1491 rm -fr conftest* 1492 ac_cv_sizeof_long=0 1493 fi 1494 rm -fr conftest* 1495 fi 1496 1497 fi 1498 echo "$ac_t""$ac_cv_sizeof_long" 1>&6 1499 cat >> confdefs.h <<EOF 1500 #define SIZEOF_LONG $ac_cv_sizeof_long 1501 EOF 1502 1503 1504 echo $ac_n "checking size of long long""... $ac_c" 1>&6 1505 echo "configure:1506: checking size of long long" >&5 1506 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then 1507 echo $ac_n "(cached) $ac_c" 1>&6 1508 else 1509 if test "$cross_compiling" = yes; then 1510 ac_cv_sizeof_long_long=0 1511 else 1512 cat > conftest.$ac_ext <<EOF 1513 #line 1514 "configure" 1514 #include "confdefs.h" 1515 #include <stdio.h> 1516 main() 1517 { 1518 FILE *f=fopen("conftestval", "w"); 1519 if (!f) exit(1); 1520 fprintf(f, "%d\n", sizeof(long long)); 1521 exit(0); 1522 } 1523 EOF 1524 if { (eval echo configure:1525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1525 then 1526 ac_cv_sizeof_long_long=`cat conftestval` 1527 else 1528 echo "configure: failed program was:" >&5 1529 cat conftest.$ac_ext >&5 1530 rm -fr conftest* 1531 ac_cv_sizeof_long_long=0 1532 fi 1533 rm -fr conftest* 1534 fi 1535 1536 fi 1537 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 1538 cat >> confdefs.h <<EOF 1539 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 1540 EOF 1541 1542 1543 echo $ac_n "checking size of short""... $ac_c" 1>&6 1544 echo "configure:1545: checking size of short" >&5 1545 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then 1546 echo $ac_n "(cached) $ac_c" 1>&6 1547 else 1548 if test "$cross_compiling" = yes; then 1549 ac_cv_sizeof_short=0 1550 else 1551 cat > conftest.$ac_ext <<EOF 1552 #line 1553 "configure" 1553 #include "confdefs.h" 1554 #include <stdio.h> 1555 main() 1556 { 1557 FILE *f=fopen("conftestval", "w"); 1558 if (!f) exit(1); 1559 fprintf(f, "%d\n", sizeof(short)); 1560 exit(0); 1561 } 1562 EOF 1563 if { (eval echo configure:1564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1564 then 1565 ac_cv_sizeof_short=`cat conftestval` 1566 else 1567 echo "configure: failed program was:" >&5 1568 cat conftest.$ac_ext >&5 1569 rm -fr conftest* 1570 ac_cv_sizeof_short=0 1571 fi 1572 rm -fr conftest* 1573 fi 1574 1575 fi 1576 echo "$ac_t""$ac_cv_sizeof_short" 1>&6 1577 cat >> confdefs.h <<EOF 1578 #define SIZEOF_SHORT $ac_cv_sizeof_short 1579 EOF 1580 1581 1582 echo $ac_n "checking size of off_t""... $ac_c" 1>&6 1583 echo "configure:1584: checking size of off_t" >&5 1584 if eval "test \"`echo '$''{'ac_cv_sizeof_off_t'+set}'`\" = set"; then 1585 echo $ac_n "(cached) $ac_c" 1>&6 1586 else 1587 if test "$cross_compiling" = yes; then 1588 ac_cv_sizeof_off_t=0 1589 else 1590 cat > conftest.$ac_ext <<EOF 1591 #line 1592 "configure" 1592 #include "confdefs.h" 1593 #include <stdio.h> 1594 main() 1595 { 1596 FILE *f=fopen("conftestval", "w"); 1597 if (!f) exit(1); 1598 fprintf(f, "%d\n", sizeof(off_t)); 1599 exit(0); 1600 } 1601 EOF 1602 if { (eval echo configure:1603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1603 then 1604 ac_cv_sizeof_off_t=`cat conftestval` 1605 else 1606 echo "configure: failed program was:" >&5 1607 cat conftest.$ac_ext >&5 1608 rm -fr conftest* 1609 ac_cv_sizeof_off_t=0 1610 fi 1611 rm -fr conftest* 1612 fi 1613 1614 fi 1615 echo "$ac_t""$ac_cv_sizeof_off_t" 1>&6 1616 cat >> confdefs.h <<EOF 1617 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t 1618 EOF 1619 1620 1621 echo $ac_n "checking size of off64_t""... $ac_c" 1>&6 1622 echo "configure:1623: checking size of off64_t" >&5 1623 if eval "test \"`echo '$''{'ac_cv_sizeof_off64_t'+set}'`\" = set"; then 1624 echo $ac_n "(cached) $ac_c" 1>&6 1625 else 1626 if test "$cross_compiling" = yes; then 1627 ac_cv_sizeof_off64_t=0 1628 else 1629 cat > conftest.$ac_ext <<EOF 1630 #line 1631 "configure" 1631 #include "confdefs.h" 1632 #include <stdio.h> 1633 main() 1634 { 1635 FILE *f=fopen("conftestval", "w"); 1636 if (!f) exit(1); 1637 fprintf(f, "%d\n", sizeof(off64_t)); 1638 exit(0); 1639 } 1640 EOF 1641 if { (eval echo configure:1642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1642 then 1643 ac_cv_sizeof_off64_t=`cat conftestval` 1644 else 1645 echo "configure: failed program was:" >&5 1646 cat conftest.$ac_ext >&5 1647 rm -fr conftest* 1648 ac_cv_sizeof_off64_t=0 1649 fi 1650 rm -fr conftest* 1651 fi 1652 1653 fi 1654 echo "$ac_t""$ac_cv_sizeof_off64_t" 1>&6 1655 cat >> confdefs.h <<EOF 1656 #define SIZEOF_OFF64_T $ac_cv_sizeof_off64_t 1657 EOF 1658 1659 1660 1661 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6 1662 echo "configure:1663: checking for socklen_t" >&5 1663 if eval "test \"`echo '$''{'ac_cv_socklen_t'+set}'`\" = set"; then 1664 echo $ac_n "(cached) $ac_c" 1>&6 1665 else 1666 cat > conftest.$ac_ext <<EOF 1667 #line 1668 "configure" 1668 #include "confdefs.h" 1669 1670 #include <sys/types.h> 1671 #include <sys/socket.h> 1672 1673 int main() { 1674 1675 socklen_t x; 1676 1677 ; return 0; } 1678 EOF 1679 if { (eval echo configure:1680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1680 rm -rf conftest* 1681 1682 ac_cv_socklen_t=yes 1683 1684 else 1685 echo "configure: failed program was:" >&5 1686 cat conftest.$ac_ext >&5 1687 rm -rf conftest* 1688 1689 ac_cv_socklen_t=no 1690 1691 fi 1692 rm -f conftest* 1693 fi 1694 1695 echo "$ac_t""$ac_cv_socklen_t" 1>&6 1696 if test "$ac_cv_socklen_t" = "yes"; then 1697 cat >> confdefs.h <<\EOF 1698 #define HAVE_SOCKLEN_T 1 1699 EOF 1700 1701 fi 1702 1703 1704 1705 1706 echo $ac_n "checking whether to enable dbg (PHP script debugger) extension""... $ac_c" 1>&6 1707 echo "configure:1708: checking whether to enable dbg (PHP script debugger) extension" >&5 1708 # Check whether --enable-dbg or --disable-dbg was given. 1709 if test "${enable_dbg+set}" = set; then 1710 enableval="$enable_dbg" 1711 PHP_DBG=$enableval 1712 else 1713 1714 PHP_DBG=no 1715 1716 if test "$PHP_ENABLE_ALL" && test "yes" = "yes"; then 1717 PHP_DBG=$PHP_ENABLE_ALL 1718 fi 1719 1720 fi 1721 1722 1723 1724 ext_output="yes, shared" 1725 ext_shared=yes 1726 case $PHP_DBG in 1727 shared,*) 1728 PHP_DBG=`echo "$PHP_DBG"|sed 's/^shared,//'` 1729 ;; 1730 shared) 1731 PHP_DBG=yes 1732 ;; 1733 no) 1734 ext_output=no 1735 ext_shared=no 1736 ;; 1737 *) 1738 ext_output=yes 1739 ext_shared=no 1740 ;; 1741 esac 1742 1743 1744 ext_output="yes, shared" 1745 ext_shared=yes 1746 test "$PHP_DBG" = "no" && PHP_DBG=yes 1747 1748 1749 echo "$ac_t""$ext_output" 1>&6 1750 1751 1752 1753 1754 if test "$PHP_DBG" != "no"; then 1755 if test "$ext_shared" != "yes"; then 1756 cat >> confdefs.h <<\EOF 1757 #define HAVE_DBG_STATIC 1 1758 EOF 1759 1760 fi 1761 echo "$ac_t""DBG (extension-shared==$ext_shared)." 1>&6 1762 cat >> confdefs.h <<\EOF 1763 #define HAVE_DBG 1 1764 EOF 1765 1766 fi 1767 1768 if test "$PHP_DBG" != "no"; then 1769 # Check whether --with-dbg-profiler or --without-dbg-profiler was given. 1770 if test "${with_dbg_profiler+set}" = set; then 1771 withval="$with_dbg_profiler" 1772 1773 if test "$withval" != "no"; then 1774 cat >> confdefs.h <<\EOF 1775 #define HAVE_DBG_PROFILER 1 1776 EOF 1777 1778 echo "$ac_t""yes" 1>&6; 1779 fi 1780 1781 else 1782 1783 echo "$ac_t""no" 1>&6; 1784 1785 fi 1786 1787 1788 1789 # Check whether --with-dbg-trace or --without-dbg-trace was given. 1790 if test "${with_dbg_trace+set}" = set; then 1791 withval="$with_dbg_trace" 1792 1793 if test "$withval" != "no"; then 1794 cat >> confdefs.h <<\EOF 1795 #define DBG_DEBUG 1 1796 EOF 1797 1798 cat >> confdefs.h <<\EOF 1799 #define DBG_TRACEFILE "/tmp/dbg.log" 1800 EOF 1801 1802 echo "$ac_t""yes" 1>&6; 1803 fi 1804 1805 else 1806 1807 echo "$ac_t""no" 1>&6; 1808 1809 fi 1810 1811 1812 fi 1813 1814 if test "$PHP_DBG" != "no"; then 1815 1816 sources=`$AWK -f $abs_srcdir/build/scan_makefile_in.awk < $abs_srcdir/Makefile.in` 1817 1818 1819 ext_builddir=. 1820 ext_srcdir=$abs_srcdir 1821 1822 ac_extra= 1823 1824 if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then 1825 1826 1827 1828 case "" in 1829 "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; 1830 /*) ac_srcdir=`echo """"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; 1831 *) ac_srcdir="$abs_srcdir/""/"; ac_bdir="""/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; 1832 esac 1833 1834 1835 1836 b_c_pre=$php_c_pre 1837 b_cxx_pre=$php_cxx_pre 1838 b_c_meta=$php_c_meta 1839 b_cxx_meta=$php_cxx_meta 1840 b_c_post=$php_c_post 1841 b_cxx_post=$php_cxx_post 1842 b_lo=$php_lo 1843 1844 1845 old_IFS=$IFS 1846 for ac_src in $sources; do 1847 1848 IFS=. 1849 set $ac_src 1850 ac_obj=$1 1851 IFS=$old_IFS 1852 1853 PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" 1854 1855 case $ac_src in 1856 *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; 1857 *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; 1858 *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; 1859 *.cpp|*.cc) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; 1860 esac 1861 1862 cat >>Makefile.objects<<EOF 1863 $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src 1864 $ac_comp 1865 EOF 1866 done 1867 1868 1869 EXT_STATIC="$EXT_STATIC dbg" 1870 if test "$ext_shared" != "nocli"; then 1871 EXT_CLI_STATIC="$EXT_CLI_STATIC dbg" 1872 fi 1873 else 1874 if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then 1875 1876 case "" in 1877 "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; 1878 /*) ac_srcdir=`echo """"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; 1879 *) ac_srcdir="$abs_srcdir/""/"; ac_bdir="""/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; 1880 esac 1881 1882 1883 1884 b_c_pre=$shared_c_pre 1885 b_cxx_pre=$shared_cxx_pre 1886 b_c_meta=$shared_c_meta 1887 b_cxx_meta=$shared_cxx_meta 1888 b_c_post=$shared_c_post 1889 b_cxx_post=$shared_cxx_post 1890 b_lo=$shared_lo 1891 1892 1893 old_IFS=$IFS 1894 for ac_src in $sources; do 1895 1896 IFS=. 1897 set $ac_src 1898 ac_obj=$1 1899 IFS=$old_IFS 1900 1901 shared_objects_dbg="$shared_objects_dbg $ac_bdir$ac_obj.lo" 1902 1903 case $ac_src in 1904 *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; 1905 *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; 1906 *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; 1907 *.cpp|*.cc) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; 1908 esac 1909 1910 cat >>Makefile.objects<<EOF 1911 $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src 1912 $ac_comp 1913 EOF 1914 done 1915 1916 case $host_alias in 1917 *netware*) 1918 1919 1920 if test "$ext_shared" = "yes"; then 1921 DBG_SHARED_LIBADD="-lphp5lib $DBG_SHARED_LIBADD" 1922 if test -n "netware"; then 1923 1924 if test "netware" != "/usr/lib"; then 1925 1926 if test -z "netware" || echo "netware" | grep '^/' >/dev/null ; then 1927 ai_p=netware 1928 else 1929 1930 ep_dir="`echo netware|sed 's%/*[^/][^/]*/*$%%'`" 1931 1932 ep_realdir="`(cd \"$ep_dir\" && pwd)`" 1933 ai_p="$ep_realdir/`basename \"netware\"`" 1934 fi 1935 1936 1937 if test "$ext_shared" = "yes"; then 1938 DBG_SHARED_LIBADD="$ld_runpath_switch$ai_p -L$ai_p $DBG_SHARED_LIBADD" 1939 else 1940 1941 1942 1943 unique=`echo $ai_p|sed 's/[^a-zA-Z0-9]/_/g'` 1944 1945 cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" 1946 if test -n "$unique" && test "`eval $cmd`" = "" ; then 1947 eval "LIBPATH$unique=set" 1948 1949 test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" 1950 LDFLAGS="$LDFLAGS -L$ai_p" 1951 PHP_RPATHS="$PHP_RPATHS $ai_p" 1952 1953 fi 1954 1955 1956 fi 1957 1958 fi 1959 1960 fi 1961 else 1962 1963 1964 if test -n "netware"; then 1965 1966 if test "netware" != "/usr/lib"; then 1967 1968 if test -z "netware" || echo "netware" | grep '^/' >/dev/null ; then 1969 ai_p=netware 1970 else 1971 1972 ep_dir="`echo netware|sed 's%/*[^/][^/]*/*$%%'`" 1973 1974 ep_realdir="`(cd \"$ep_dir\" && pwd)`" 1975 ai_p="$ep_realdir/`basename \"netware\"`" 1976 fi 1977 1978 1979 1980 1981 1982 unique=`echo $ai_p|sed 's/[^a-zA-Z0-9]/_/g'` 1983 1984 cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" 1985 if test -n "$unique" && test "`eval $cmd`" = "" ; then 1986 eval "LIBPATH$unique=set" 1987 1988 test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" 1989 LDFLAGS="$LDFLAGS -L$ai_p" 1990 PHP_RPATHS="$PHP_RPATHS $ai_p" 1991 1992 fi 1993 1994 1995 1996 fi 1997 1998 fi 1999 2000 2001 case php5lib in 2002 c|c_r|pthread*) ;; 2003 *) 2004 LIBS="-lphp5lib $LIBS" 2005 ;; 2006 esac 2007 2008 2009 2010 2011 fi 2012 2013 2014 ;; 2015 esac 2016 2017 install_modules="install-modules" 2018 2019 case $host_alias in 2020 *darwin*) 2021 suffix=so 2022 link_cmd='$(CC) -dynamic -flat_namespace -bundle -undefined suppress $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ $(EXTRA_LDFLAGS) $(shared_objects_dbg) $(DBG_SHARED_LIBADD)' 2023 ;; 2024 *netware*) 2025 suffix=nlm 2026 link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_dbg) $(DBG_SHARED_LIBADD)' 2027 ;; 2028 *) 2029 suffix=la 2030 link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_dbg) $(DBG_SHARED_LIBADD)' 2031 ;; 2032 esac 2033 2034 PHP_MODULES="$PHP_MODULES \$(phplibdir)/dbg.$suffix" 2035 2036 PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_dbg" 2037 2038 cat >>Makefile.objects<<EOF 2039 \$(phplibdir)/dbg.$suffix: $ext_builddir/dbg.$suffix 2040 \$(LIBTOOL) --mode=install cp $ext_builddir/dbg.$suffix \$(phplibdir) 2041 2042 $ext_builddir/dbg.$suffix: \$(shared_objects_dbg) \$(DBG_SHARED_DEPENDENCIES) 2043 $link_cmd 2044 2045 EOF 2046 2047 cat >> confdefs.h <<EOF 2048 #define COMPILE_DL_DBG 1 2049 EOF 2050 2051 fi 2052 fi 2053 2054 if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then 2055 if test "$PHP_SAPI" = "cgi"; then 2056 2057 2058 case "" in 2059 "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; 2060 /*) ac_srcdir=`echo """"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; 2061 *) ac_srcdir="$abs_srcdir/""/"; ac_bdir="""/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; 2062 esac 2063 2064 2065 2066 b_c_pre=$php_c_pre 2067 b_cxx_pre=$php_cxx_pre 2068 b_c_meta=$php_c_meta 2069 b_cxx_meta=$php_cxx_meta 2070 b_c_post=$php_c_post 2071 b_cxx_post=$php_cxx_post 2072 b_lo=$php_lo 2073 2074 2075 old_IFS=$IFS 2076 for ac_src in $sources; do 2077 2078 IFS=. 2079 set $ac_src 2080 ac_obj=$1 2081 IFS=$old_IFS 2082 2083 PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" 2084 2085 case $ac_src in 2086 *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; 2087 *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; 2088 *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; 2089 *.cpp|*.cc) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; 2090 esac 2091 2092 cat >>Makefile.objects<<EOF 2093 $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src 2094 $ac_comp 2095 EOF 2096 done 2097 2098 2099 EXT_STATIC="$EXT_STATIC dbg" 2100 else 2101 2102 2103 case "" in 2104 "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; 2105 /*) ac_srcdir=`echo """"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; 2106 *) ac_srcdir="$abs_srcdir/""/"; ac_bdir="""/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; 2107 esac 2108 2109 2110 2111 b_c_pre=$php_c_pre 2112 b_cxx_pre=$php_cxx_pre 2113 b_c_meta=$php_c_meta 2114 b_cxx_meta=$php_cxx_meta 2115 b_c_post=$php_c_post 2116 b_cxx_post=$php_cxx_post 2117 b_lo=$php_lo 2118 2119 2120 old_IFS=$IFS 2121 for ac_src in $sources; do 2122 2123 IFS=. 2124 set $ac_src 2125 ac_obj=$1 2126 IFS=$old_IFS 2127 2128 PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo" 2129 2130 case $ac_src in 2131 *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; 2132 *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; 2133 *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; 2134 *.cpp|*.cc) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; 2135 esac 2136 2137 cat >>Makefile.objects<<EOF 2138 $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src 2139 $ac_comp 2140 EOF 2141 done 2142 2143 2144 fi 2145 EXT_CLI_STATIC="$EXT_CLI_STATIC dbg" 2146 fi 2147 2148 BUILD_DIR="$BUILD_DIR $ext_builddir" 2149 2150 2151 2152 if test -r "$ext_srcdir/Makefile.frag"; then 2153 2154 src=$ext_srcdir/Makefile.frag 2155 ac_srcdir=$ext_srcdir 2156 ac_builddir=$ext_builddir 2157 sed -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments 2158 2159 fi 2160 2161 fi 2162 2163 2164 2165 enable_static=no 2166 enable_shared=yes 2167 2168 # Find the correct PATH separator. Usually this is `:', but 2169 # DJGPP uses `;' like DOS. 2170 if test "X${PATH_SEPARATOR+set}" != Xset; then 2171 UNAME=${UNAME-`uname 2>/dev/null`} 2172 case X$UNAME in 2173 *-DOS) lt_cv_sys_path_separator=';' ;; 2174 *) lt_cv_sys_path_separator=':' ;; 2175 esac 2176 PATH_SEPARATOR=$lt_cv_sys_path_separator 2177 fi 2178 2179 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 2180 echo "configure:2181: checking for Cygwin environment" >&5 2181 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then 2182 echo $ac_n "(cached) $ac_c" 1>&6 2183 else 2184 cat > conftest.$ac_ext <<EOF 2185 #line 2186 "configure" 2186 #include "confdefs.h" 2187 2188 int main() { 2189 2190 #ifndef __CYGWIN__ 2191 #define __CYGWIN__ __CYGWIN32__ 2192 #endif 2193 return __CYGWIN__; 2194 ; return 0; } 2195 EOF 2196 if { (eval echo configure:2197: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2197 rm -rf conftest* 2198 ac_cv_cygwin=yes 2199 else 2200 echo "configure: failed program was:" >&5 2201 cat conftest.$ac_ext >&5 2202 rm -rf conftest* 2203 ac_cv_cygwin=no 2204 fi 2205 rm -f conftest* 2206 rm -f conftest* 2207 fi 2208 2209 echo "$ac_t""$ac_cv_cygwin" 1>&6 2210 CYGWIN= 2211 test "$ac_cv_cygwin" = yes && CYGWIN=yes 2212 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 2213 echo "configure:2214: checking for mingw32 environment" >&5 2214 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then 2215 echo $ac_n "(cached) $ac_c" 1>&6 2216 else 2217 cat > conftest.$ac_ext <<EOF 2218 #line 2219 "configure" 2219 #include "confdefs.h" 2220 2221 int main() { 2222 return __MINGW32__; 2223 ; return 0; } 2224 EOF 2225 if { (eval echo configure:2226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2226 rm -rf conftest* 2227 ac_cv_mingw32=yes 2228 else 2229 echo "configure: failed program was:" >&5 2230 cat conftest.$ac_ext >&5 2231 rm -rf conftest* 2232 ac_cv_mingw32=no 2233 fi 2234 rm -f conftest* 2235 rm -f conftest* 2236 fi 2237 2238 echo "$ac_t""$ac_cv_mingw32" 1>&6 2239 MINGW32= 2240 test "$ac_cv_mingw32" = yes && MINGW32=yes 2241 # Check whether --enable-shared or --disable-shared was given. 2242 if test "${enable_shared+set}" = set; then 2243 enableval="$enable_shared" 2244 p=${PACKAGE-default} 2245 case $enableval in 2246 yes) enable_shared=yes ;; 2247 no) enable_shared=no ;; 2248 *) 2249 enable_shared=no 2250 # Look at the argument we got. We use all the common list separators. 2251 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 2252 for pkg in $enableval; do 2253 if test "X$pkg" = "X$p"; then 2254 enable_shared=yes 2255 fi 2256 done 2257 IFS="$ac_save_ifs" 2258 ;; 2259 esac 2260 else 2261 enable_shared=yes 2262 fi 2263 2264 # Check whether --enable-static or --disable-static was given. 2265 if test "${enable_static+set}" = set; then 2266 enableval="$enable_static" 2267 p=${PACKAGE-default} 2268 case $enableval in 2269 yes) enable_static=yes ;; 2270 no) enable_static=no ;; 2271 *) 2272 enable_static=no 2273 # Look at the argument we got. We use all the common list separators. 2274 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 2275 for pkg in $enableval; do 2276 if test "X$pkg" = "X$p"; then 2277 enable_static=yes 2278 fi 2279 done 2280 IFS="$ac_save_ifs" 2281 ;; 2282 esac 2283 else 2284 enable_static=yes 2285 fi 2286 2287 # Check whether --enable-fast-install or --disable-fast-install was given. 2288 if test "${enable_fast_install+set}" = set; then 2289 enableval="$enable_fast_install" 2290 p=${PACKAGE-default} 2291 case $enableval in 2292 yes) enable_fast_install=yes ;; 2293 no) enable_fast_install=no ;; 2294 *) 2295 enable_fast_install=no 2296 # Look at the argument we got. We use all the common list separators. 2297 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 2298 for pkg in $enableval; do 2299 if test "X$pkg" = "X$p"; then 2300 enable_fast_install=yes 2301 fi 2302 done 2303 IFS="$ac_save_ifs" 2304 ;; 2305 esac 2306 else 2307 enable_fast_install=yes 2308 fi 2309 2310 echo $ac_n "checking build system type""... $ac_c" 1>&6 2311 echo "configure:2312: checking build system type" >&5 2312 2313 build_alias=$build 2314 case "$build_alias" in 2315 NONE) 2316 case $nonopt in 2317 NONE) build_alias=$host_alias ;; 2318 *) build_alias=$nonopt ;; 2319 esac ;; 2320 esac 2321 2322 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` 2323 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 2324 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 2325 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 2326 echo "$ac_t""$build" 1>&6 2327 2328 # Check whether --with-gnu-ld or --without-gnu-ld was given. 2329 if test "${with_gnu_ld+set}" = set; then 2330 withval="$with_gnu_ld" 2331 test "$withval" = no || with_gnu_ld=yes 2332 else 2333 with_gnu_ld=no 2334 fi 2335 2336 ac_prog=ld 2337 if test "$GCC" = yes; then 2338 # Check if gcc -print-prog-name=ld gives a path. 2339 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 2340 echo "configure:2341: checking for ld used by GCC" >&5 2341 case $host in 2342 *-*-mingw*) 2343 # gcc leaves a trailing carriage return which upsets mingw 2344 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 2345 *) 2346 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 2347 esac 2348 case $ac_prog in 2349 # Accept absolute paths. 2350 [\\/]* | [A-Za-z]:[\\/]*) 2351 re_direlt='/[^/][^/]*/\.\./' 2352 # Canonicalize the path of ld 2353 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 2354 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 2355 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 2356 done 2357 test -z "$LD" && LD="$ac_prog" 2358 ;; 2359 "") 2360 # If it fails, then pretend we aren't using GCC. 2361 ac_prog=ld 2362 ;; 2363 *) 2364 # If it is relative, then search for the first ld in PATH. 2365 with_gnu_ld=unknown 2366 ;; 2367 esac 2368 elif test "$with_gnu_ld" = yes; then 2369 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 2370 echo "configure:2371: checking for GNU ld" >&5 2371 else 2372 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 2373 echo "configure:2374: checking for non-GNU ld" >&5 2374 fi 2375 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then 2376 echo $ac_n "(cached) $ac_c" 1>&6 2377 else 2378 if test -z "$LD"; then 2379 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 2380 for ac_dir in $PATH; do 2381 test -z "$ac_dir" && ac_dir=. 2382 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 2383 lt_cv_path_LD="$ac_dir/$ac_prog" 2384 # Check to see if the program is GNU ld. I'd rather use --version, 2385 # but apparently some GNU ld's only accept -v. 2386 # Break only if it was the GNU/non-GNU ld that we prefer. 2387 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then 2388 test "$with_gnu_ld" != no && break 2389 else 2390 test "$with_gnu_ld" != yes && break 2391 fi 2392 fi 2393 done 2394 IFS="$ac_save_ifs" 2395 else 2396 lt_cv_path_LD="$LD" # Let the user override the test with a path. 2397 fi 2398 fi 2399 2400 LD="$lt_cv_path_LD" 2401 if test -n "$LD"; then 2402 echo "$ac_t""$LD" 1>&6 2403 else 2404 echo "$ac_t""no" 1>&6 2405 fi 2406 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } 2407 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 2408 echo "configure:2409: checking if the linker ($LD) is GNU ld" >&5 2409 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then 2410 echo $ac_n "(cached) $ac_c" 1>&6 2411 else 2412 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 2413 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 2414 lt_cv_prog_gnu_ld=yes 2415 else 2416 lt_cv_prog_gnu_ld=no 2417 fi 2418 fi 2419 2420 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6 2421 with_gnu_ld=$lt_cv_prog_gnu_ld 2422 2423 2424 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6 2425 echo "configure:2426: checking for $LD option to reload object files" >&5 2426 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then 2427 echo $ac_n "(cached) $ac_c" 1>&6 2428 else 2429 lt_cv_ld_reload_flag='-r' 2430 fi 2431 2432 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6 2433 reload_flag=$lt_cv_ld_reload_flag 2434 test -n "$reload_flag" && reload_flag=" $reload_flag" 2435 2436 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 2437 echo "configure:2438: checking for BSD-compatible nm" >&5 2438 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then 2439 echo $ac_n "(cached) $ac_c" 1>&6 2440 else 2441 if test -n "$NM"; then 2442 # Let the user override the test. 2443 lt_cv_path_NM="$NM" 2444 else 2445 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 2446 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 2447 test -z "$ac_dir" && ac_dir=. 2448 tmp_nm=$ac_dir/${ac_tool_prefix}nm 2449 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then 2450 # Check to see if the nm accepts a BSD-compat flag. 2451 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 2452 # nm: unknown option "B" ignored 2453 # Tru64's nm complains that /dev/null is an invalid object file 2454 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then 2455 lt_cv_path_NM="$tmp_nm -B" 2456 break 2457 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then 2458 lt_cv_path_NM="$tmp_nm -p" 2459 break 2460 else 2461 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 2462 continue # so that we can try to find one that supports BSD flags 2463 fi 2464 fi 2465 done 2466 IFS="$ac_save_ifs" 2467 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 2468 fi 2469 fi 2470 2471 NM="$lt_cv_path_NM" 2472 echo "$ac_t""$NM" 1>&6 2473 2474 echo $ac_n "checking for a sed that does not truncate output""... $ac_c" 1>&6 2475 echo "configure:2476: checking for a sed that does not truncate output" >&5 2476 if eval "test \"`echo '$''{'lt_cv_path_SED'+set}'`\" = set"; then 2477 echo $ac_n "(cached) $ac_c" 1>&6 2478 else 2479 # Loop through the user's path and test for sed and gsed. 2480 # Then use that list of sed's as ones to test for truncation. 2481 as_executable_p="test -f" 2482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2483 for as_dir in $PATH 2484 do 2485 IFS=$as_save_IFS 2486 test -z "$as_dir" && as_dir=. 2487 for ac_prog in sed gsed; do 2488 for ac_exec_ext in '' $ac_executable_extensions; do 2489 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2490 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext" 2491 fi 2492 done 2493 done 2494 done 2495 2496 # Create a temporary directory, and hook for its removal unless debugging. 2497 $debug || 2498 { 2499 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 2500 trap '{ (exit 1); exit 1; }' 1 2 13 15 2501 } 2502 2503 # Create a (secure) tmp directory for tmp files. 2504 : ${TMPDIR=/tmp} 2505 { 2506 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` && 2507 test -n "$tmp" && test -d "$tmp" 2508 } || 2509 { 2510 tmp=$TMPDIR/sed$$-$RANDOM 2511 (umask 077 && mkdir $tmp) 2512 } || 2513 { 2514 echo "$me: cannot create a temporary directory in $TMPDIR" >&2 2515 { (exit 1); exit 1; } 2516 } 2517 _max=0 2518 _count=0 2519 # Add /usr/xpg4/bin/sed as it is typically found on Solaris 2520 # along with /bin/sed that truncates output. 2521 for _sed in $_sed_list /usr/xpg4/bin/sed; do 2522 test ! -f ${_sed} && break 2523 cat /dev/null > "$tmp/sed.in" 2524 _count=0 2525 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in" 2526 # Check for GNU sed and select it if it is found. 2527 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then 2528 lt_cv_path_SED=${_sed} 2529 break 2530 fi 2531 while true; do 2532 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp" 2533 mv "$tmp/sed.tmp" "$tmp/sed.in" 2534 cp "$tmp/sed.in" "$tmp/sed.nl" 2535 echo >>"$tmp/sed.nl" 2536 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break 2537 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break 2538 # 40000 chars as input seems more than enough 2539 test $_count -gt 10 && break 2540 _count=`expr $_count + 1` 2541 if test $_count -gt $_max; then 2542 _max=$_count 2543 lt_cv_path_SED=$_sed 2544 fi 2545 done 2546 done 2547 rm -rf "$tmp" 2548 2549 fi 2550 2551 if test "X$SED" != "X"; then 2552 lt_cv_path_SED=$SED 2553 else 2554 SED=$lt_cv_path_SED 2555 fi 2556 echo "$ac_t""$SED" 1>&6 2557 2558 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 2559 echo "configure:2560: checking whether ln -s works" >&5 2560 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 2561 echo $ac_n "(cached) $ac_c" 1>&6 2562 else 2563 rm -f conftestdata 2564 if ln -s X conftestdata 2>/dev/null 2565 then 2566 rm -f conftestdata 2567 ac_cv_prog_LN_S="ln -s" 2568 else 2569 ac_cv_prog_LN_S=ln 2570 fi 2571 fi 2572 LN_S="$ac_cv_prog_LN_S" 2573 if test "$ac_cv_prog_LN_S" = "ln -s"; then 2574 echo "$ac_t""yes" 1>&6 2575 else 2576 echo "$ac_t""no" 1>&6 2577 fi 2578 2579 echo $ac_n "checking how to recognise dependent libraries""... $ac_c" 1>&6 2580 echo "configure:2581: checking how to recognise dependent libraries" >&5 2581 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then 2582 echo $ac_n "(cached) $ac_c" 1>&6 2583 else 2584 lt_cv_file_magic_cmd='$MAGIC_CMD' 2585 lt_cv_file_magic_test_file= 2586 lt_cv_deplibs_check_method='unknown' 2587 # Need to set the preceding variable on all platforms that support 2588 # interlibrary dependencies. 2589 # 'none' -- dependencies not supported. 2590 # `unknown' -- same as none, but documents that we really don't know. 2591 # 'pass_all' -- all dependencies passed with no checks. 2592 # 'test_compile' -- check by making test program. 2593 # 'file_magic [[regex]]' -- check by looking for files in library path 2594 # which responds to the $file_magic_cmd with a given egrep regex. 2595 # If you have `file' or equivalent on your system and you're not sure 2596 # whether `pass_all' will *always* work, you probably want this one. 2597 2598 case $host_os in 2599 aix4* | aix5*) 2600 lt_cv_deplibs_check_method=pass_all 2601 ;; 2602 2603 beos*) 2604 lt_cv_deplibs_check_method=pass_all 2605 ;; 2606 2607 bsdi4*) 2608 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 2609 lt_cv_file_magic_cmd='/usr/bin/file -L' 2610 lt_cv_file_magic_test_file=/shlib/libc.so 2611 ;; 2612 2613 cygwin* | mingw* | pw32*) 2614 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 2615 lt_cv_file_magic_cmd='$OBJDUMP -f' 2616 ;; 2617 2618 darwin* | rhapsody*) 2619 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' 2620 lt_cv_file_magic_cmd='/usr/bin/file -L' 2621 case "$host_os" in 2622 rhapsody* | darwin1.[012]) 2623 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1` 2624 ;; 2625 *) # Darwin 1.3 on 2626 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' 2627 ;; 2628 esac 2629 ;; 2630 2631 freebsd*) 2632 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 2633 case $host_cpu in 2634 i*86 ) 2635 # Not sure whether the presence of OpenBSD here was a mistake. 2636 # Let's accept both of them until this is cleared up. 2637 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' 2638 lt_cv_file_magic_cmd=/usr/bin/file 2639 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 2640 ;; 2641 esac 2642 else 2643 lt_cv_deplibs_check_method=pass_all 2644 fi 2645 ;; 2646 2647 gnu*) 2648 lt_cv_deplibs_check_method=pass_all 2649 ;; 2650 2651 hpux10.20*|hpux11*) 2652 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 2653 lt_cv_file_magic_cmd=/usr/bin/file 2654 lt_cv_file_magic_test_file=/usr/lib/libc.sl 2655 ;; 2656 2657 irix5* | irix6* | nonstopux*) 2658 case $host_os in 2659 irix5* | nonstopux*) 2660 # this will be overridden with pass_all, but let us keep it just in case 2661 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" 2662 ;; 2663 *) 2664 case $LD in 2665 *-32|*"-32 ") libmagic=32-bit;; 2666 *-n32|*"-n32 ") libmagic=N32;; 2667 *-64|*"-64 ") libmagic=64-bit;; 2668 *) libmagic=never-match;; 2669 esac 2670 # this will be overridden with pass_all, but let us keep it just in case 2671 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" 2672 ;; 2673 esac 2674 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` 2675 lt_cv_deplibs_check_method=pass_all 2676 ;; 2677 2678 # This must be Linux ELF. 2679 linux-gnu*) 2680 case $host_cpu in 2681 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | s390* | x86_64*) 2682 lt_cv_deplibs_check_method=pass_all ;; 2683 *) 2684 # glibc up to 2.1.1 does not perform some relocations on ARM 2685 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; 2686 esac 2687 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` 2688 ;; 2689 2690 netbsd*) 2691 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 2692 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' 2693 else 2694 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' 2695 fi 2696 ;; 2697 2698 newos6*) 2699 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 2700 lt_cv_file_magic_cmd=/usr/bin/file 2701 lt_cv_file_magic_test_file=/usr/lib/libnls.so 2702 ;; 2703 2704 openbsd*) 2705 lt_cv_file_magic_cmd=/usr/bin/file 2706 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 2707 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 2708 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' 2709 else 2710 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' 2711 fi 2712 ;; 2713 2714 osf3* | osf4* | osf5*) 2715 # this will be overridden with pass_all, but let us keep it just in case 2716 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' 2717 lt_cv_file_magic_test_file=/shlib/libc.so 2718 lt_cv_deplibs_check_method=pass_all 2719 ;; 2720 2721 sco3.2v5*) 2722 lt_cv_deplibs_check_method=pass_all 2723 ;; 2724 2725 solaris*) 2726 lt_cv_deplibs_check_method=pass_all 2727 lt_cv_file_magic_test_file=/lib/libc.so 2728 ;; 2729 2730 sysv5* | sysv4*uw2*) 2731 lt_cv_archive_cmds_need_lc=no 2732 lt_cv_deplibs_check_method=pass_all 2733 ;; 2734 2735 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 2736 case $host_vendor in 2737 motorola) 2738 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]' 2739 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 2740 ;; 2741 ncr) 2742 lt_cv_deplibs_check_method=pass_all 2743 ;; 2744 sequent) 2745 lt_cv_file_magic_cmd='/bin/file' 2746 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 2747 ;; 2748 sni) 2749 lt_cv_file_magic_cmd='/bin/file' 2750 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 2751 lt_cv_file_magic_test_file=/lib/libc.so 2752 ;; 2753 siemens) 2754 lt_cv_deplibs_check_method=pass_all 2755 ;; 2756 esac 2757 ;; 2758 esac 2759 2760 fi 2761 2762 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6 2763 file_magic_cmd=$lt_cv_file_magic_cmd 2764 deplibs_check_method=$lt_cv_deplibs_check_method 2765 2766 echo $ac_n "checking for object suffix""... $ac_c" 1>&6 2767 echo "configure:2768: checking for object suffix" >&5 2768 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then 2769 echo $ac_n "(cached) $ac_c" 1>&6 2770 else 2771 rm -f conftest* 2772 echo 'int i = 1;' > conftest.$ac_ext 2773 if { (eval echo configure:2774: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2774 for ac_file in conftest.*; do 2775 case $ac_file in 2776 *.c) ;; 2777 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;; 2778 esac 2779 done 2780 else 2781 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; } 2782 fi 2783 rm -f conftest* 2784 fi 2785 2786 echo "$ac_t""$ac_cv_objext" 1>&6 2787 OBJEXT=$ac_cv_objext 2788 ac_objext=$ac_cv_objext 2789 2790 2791 2792 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 2793 echo "configure:2794: checking for executable suffix" >&5 2794 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then 2795 echo $ac_n "(cached) $ac_c" 1>&6 2796 else 2797 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then 2798 ac_cv_exeext=.exe 2799 else 2800 rm -f conftest* 2801 echo 'int main () { return 0; }' > conftest.$ac_ext 2802 ac_cv_exeext= 2803 if { (eval echo configure:2804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 2804 for file in conftest.*; do 2805 case $file in 2806 *.c | *.o | *.obj) ;; 2807 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; 2808 esac 2809 done 2810 else 2811 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } 2812 fi 2813 rm -f conftest* 2814 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no 2815 fi 2816 fi 2817 2818 EXEEXT="" 2819 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} 2820 echo "$ac_t""${ac_cv_exeext}" 1>&6 2821 ac_exeext=$EXEEXT 2822 2823 if test $host != $build; then 2824 ac_tool_prefix=${host_alias}- 2825 else 2826 ac_tool_prefix= 2827 fi 2828 2829 2830 2831 2832 # Check for command to grab the raw symbol name followed by C symbol from nm. 2833 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6 2834 echo "configure:2835: checking command to parse $NM output" >&5 2835 if eval "test \"`echo '$''{'lt_cv_sys_global_symbol_pipe'+set}'`\" = set"; then 2836 echo $ac_n "(cached) $ac_c" 1>&6 2837 else 2838 2839 # These are sane defaults that work on at least a few old systems. 2840 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 2841 2842 # Character class describing NM global symbol codes. 2843 symcode='[BCDEGRST]' 2844 2845 # Regexp to match symbols that can be accessed directly from C. 2846 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 2847 2848 # Transform the above into a raw symbol and a C symbol. 2849 symxfrm='\1 \2\3 \3' 2850 2851 # Transform an extracted symbol line into a proper C declaration 2852 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'" 2853 2854 # Transform an extracted symbol line into symbol name and symbol address 2855 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 2856 2857 # Define system-specific variables. 2858 case $host_os in 2859 aix*) 2860 symcode='[BCDT]' 2861 ;; 2862 cygwin* | mingw* | pw32*) 2863 symcode='[ABCDGISTW]' 2864 ;; 2865 hpux*) # Its linker distinguishes data from code symbols 2866 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 2867 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 2868 ;; 2869 irix* | nonstopux*) 2870 symcode='[BCDEGRST]' 2871 ;; 2872 osf*) 2873 symcode='[BCDEGQRST]' 2874 ;; 2875 solaris* | sysv5*) 2876 symcode='[BDT]' 2877 ;; 2878 sysv4) 2879 symcode='[DFNSTU]' 2880 ;; 2881 esac 2882 2883 # Handle CRLF in mingw tool chain 2884 opt_cr= 2885 case $host_os in 2886 mingw*) 2887 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 2888 ;; 2889 esac 2890 2891 # If we're using GNU nm, then use its standard symbol codes. 2892 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then 2893 symcode='[ABCDGISTW]' 2894 fi 2895 2896 # Try without a prefix undercore, then with it. 2897 for ac_symprfx in "" "_"; do 2898 2899 # Write the raw and C identifiers. 2900 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" 2901 2902 # Check to see that the pipe works correctly. 2903 pipe_works=no 2904 rm -f conftest* 2905 cat > conftest.$ac_ext <<EOF 2906 #ifdef __cplusplus 2907 extern "C" { 2908 #endif 2909 char nm_test_var; 2910 void nm_test_func(){} 2911 #ifdef __cplusplus 2912 } 2913 #endif 2914 int main(){nm_test_var='a';nm_test_func();return(0);} 2915 EOF 2916 2917 if { (eval echo configure:2918: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2918 # Now try to grab the symbols. 2919 nlist=conftest.nm 2920 if { (eval echo configure:2921: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5; } && test -s "$nlist"; then 2921 # Try sorting and uniquifying the output. 2922 if sort "$nlist" | uniq > "$nlist"T; then 2923 mv -f "$nlist"T "$nlist" 2924 else 2925 rm -f "$nlist"T 2926 fi 2927 2928 # Make sure that we snagged all the symbols we need. 2929 if egrep ' nm_test_var$' "$nlist" >/dev/null; then 2930 if egrep ' nm_test_func$' "$nlist" >/dev/null; then 2931 cat <<EOF > conftest.$ac_ext 2932 #ifdef __cplusplus 2933 extern "C" { 2934 #endif 2935 2936 EOF 2937 # Now generate the symbol file. 2938 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext' 2939 2940 cat <<EOF >> conftest.$ac_ext 2941 #if defined (__STDC__) && __STDC__ 2942 # define lt_ptr void * 2943 #else 2944 # define lt_ptr char * 2945 # define const 2946 #endif 2947 2948 /* The mapping between symbol names and symbols. */ 2949 const struct { 2950 const char *name; 2951 lt_ptr address; 2952 } 2953 lt_preloaded_symbols[] = 2954 { 2955 EOF 2956 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext 2957 cat <<\EOF >> conftest.$ac_ext 2958 {0, (lt_ptr) 0} 2959 }; 2960 2961 #ifdef __cplusplus 2962 } 2963 #endif 2964 EOF 2965 # Now try linking the two files. 2966 mv conftest.$ac_objext conftstm.$ac_objext 2967 save_LIBS="$LIBS" 2968 save_CFLAGS="$CFLAGS" 2969 LIBS="conftstm.$ac_objext" 2970 CFLAGS="$CFLAGS$no_builtin_flag" 2971 if { (eval echo configure:2972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 2972 pipe_works=yes 2973 fi 2974 LIBS="$save_LIBS" 2975 CFLAGS="$save_CFLAGS" 2976 else 2977 echo "cannot find nm_test_func in $nlist" >&5 2978 fi 2979 else 2980 echo "cannot find nm_test_var in $nlist" >&5 2981 fi 2982 else 2983 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 2984 fi 2985 else 2986 echo "$progname: failed program was:" >&5 2987 cat conftest.$ac_ext >&5 2988 fi 2989 rm -f conftest* conftst* 2990 2991 # Do not use the global_symbol_pipe unless it works. 2992 if test "$pipe_works" = yes; then 2993 break 2994 else 2995 lt_cv_sys_global_symbol_pipe= 2996 fi 2997 done 2998 2999 fi 3000 3001 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe" 3002 if test -z "$lt_cv_sys_global_symbol_pipe"; then 3003 global_symbol_to_cdecl= 3004 global_symbol_to_c_name_address= 3005 else 3006 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl" 3007 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address" 3008 fi 3009 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address"; 3010 then 3011 echo "$ac_t""failed" 1>&6 3012 else 3013 echo "$ac_t""ok" 1>&6 3014 fi 3015 3016 for ac_hdr in dlfcn.h 3017 do 3018 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3019 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3020 echo "configure:3021: checking for $ac_hdr" >&5 3021 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3022 echo $ac_n "(cached) $ac_c" 1>&6 3023 else 3024 cat > conftest.$ac_ext <<EOF 3025 #line 3026 "configure" 3026 #include "confdefs.h" 3027 #include <$ac_hdr> 3028 EOF 3029 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3030 { (eval echo configure:3031: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3031 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3032 if test -z "$ac_err"; then 3033 rm -rf conftest* 3034 eval "ac_cv_header_$ac_safe=yes" 3035 else 3036 echo "$ac_err" >&5 3037 echo "configure: failed program was:" >&5 3038 cat conftest.$ac_ext >&5 3039 rm -rf conftest* 3040 eval "ac_cv_header_$ac_safe=no" 3041 fi 3042 rm -f conftest* 3043 fi 3044 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3045 echo "$ac_t""yes" 1>&6 3046 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 3047 cat >> confdefs.h <<EOF 3048 #define $ac_tr_hdr 1 3049 EOF 3050 3051 else 3052 echo "$ac_t""no" 1>&6 3053 fi 3054 done 3055 3056 3057 3058 3059 3060 3061 # Only perform the check for file, if the check method requires it 3062 case $deplibs_check_method in 3063 file_magic*) 3064 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 3065 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6 3066 echo "configure:3067: checking for ${ac_tool_prefix}file" >&5 3067 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then 3068 echo $ac_n "(cached) $ac_c" 1>&6 3069 else 3070 case $MAGIC_CMD in 3071 /*) 3072 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 3073 ;; 3074 ?:/*) 3075 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. 3076 ;; 3077 *) 3078 ac_save_MAGIC_CMD="$MAGIC_CMD" 3079 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3080 ac_dummy="/usr/bin:$PATH" 3081 for ac_dir in $ac_dummy; do 3082 test -z "$ac_dir" && ac_dir=. 3083 if test -f $ac_dir/${ac_tool_prefix}file; then 3084 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 3085 if test -n "$file_magic_test_file"; then 3086 case $deplibs_check_method in 3087 "file_magic "*) 3088 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 3089 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 3090 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 3091 egrep "$file_magic_regex" > /dev/null; then 3092 : 3093 else 3094 cat <<EOF 1>&2 3095 3096 *** Warning: the command libtool uses to detect shared libraries, 3097 *** $file_magic_cmd, produces output that libtool cannot recognize. 3098 *** The result is that libtool may fail to recognize shared libraries 3099 *** as such. This will affect the creation of libtool libraries that 3100 *** depend on shared libraries, but programs linked with such libtool 3101 *** libraries will work regardless of this problem. Nevertheless, you 3102 *** may want to report the problem to your system manager and/or to 3103 *** bug-libtool@gnu.org 3104 3105 EOF 3106 fi ;; 3107 esac 3108 fi 3109 break 3110 fi 3111 done 3112 IFS="$ac_save_ifs" 3113 MAGIC_CMD="$ac_save_MAGIC_CMD" 3114 ;; 3115 esac 3116 fi 3117 3118 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 3119 if test -n "$MAGIC_CMD"; then 3120 echo "$ac_t""$MAGIC_CMD" 1>&6 3121 else 3122 echo "$ac_t""no" 1>&6 3123 fi 3124 3125 if test -z "$lt_cv_path_MAGIC_CMD"; then 3126 if test -n "$ac_tool_prefix"; then 3127 echo $ac_n "checking for file""... $ac_c" 1>&6 3128 echo "configure:3129: checking for file" >&5 3129 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then 3130 echo $ac_n "(cached) $ac_c" 1>&6 3131 else 3132 case $MAGIC_CMD in 3133 /*) 3134 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 3135 ;; 3136 ?:/*) 3137 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. 3138 ;; 3139 *) 3140 ac_save_MAGIC_CMD="$MAGIC_CMD" 3141 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3142 ac_dummy="/usr/bin:$PATH" 3143 for ac_dir in $ac_dummy; do 3144 test -z "$ac_dir" && ac_dir=. 3145 if test -f $ac_dir/file; then 3146 lt_cv_path_MAGIC_CMD="$ac_dir/file" 3147 if test -n "$file_magic_test_file"; then 3148 case $deplibs_check_method in 3149 "file_magic "*) 3150 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 3151 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 3152 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 3153 egrep "$file_magic_regex" > /dev/null; then 3154 : 3155 else 3156 cat <<EOF 1>&2 3157 3158 *** Warning: the command libtool uses to detect shared libraries, 3159 *** $file_magic_cmd, produces output that libtool cannot recognize. 3160 *** The result is that libtool may fail to recognize shared libraries 3161 *** as such. This will affect the creation of libtool libraries that 3162 *** depend on shared libraries, but programs linked with such libtool 3163 *** libraries will work regardless of this problem. Nevertheless, you 3164 *** may want to report the problem to your system manager and/or to 3165 *** bug-libtool@gnu.org 3166 3167 EOF 3168 fi ;; 3169 esac 3170 fi 3171 break 3172 fi 3173 done 3174 IFS="$ac_save_ifs" 3175 MAGIC_CMD="$ac_save_MAGIC_CMD" 3176 ;; 3177 esac 3178 fi 3179 3180 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 3181 if test -n "$MAGIC_CMD"; then 3182 echo "$ac_t""$MAGIC_CMD" 1>&6 3183 else 3184 echo "$ac_t""no" 1>&6 3185 fi 3186 3187 else 3188 MAGIC_CMD=: 3189 fi 3190 fi 3191 3192 fi 3193 ;; 3194 esac 3195 3196 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3197 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3198 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3199 echo "configure:3200: checking for $ac_word" >&5 3200 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 3201 echo $ac_n "(cached) $ac_c" 1>&6 3202 else 3203 if test -n "$RANLIB"; then 3204 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3205 else 3206 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3207 ac_dummy="$PATH" 3208 for ac_dir in $ac_dummy; do 3209 test -z "$ac_dir" && ac_dir=. 3210 if test -f $ac_dir/$ac_word; then 3211 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3212 break 3213 fi 3214 done 3215 IFS="$ac_save_ifs" 3216 fi 3217 fi 3218 RANLIB="$ac_cv_prog_RANLIB" 3219 if test -n "$RANLIB"; then 3220 echo "$ac_t""$RANLIB" 1>&6 3221 else 3222 echo "$ac_t""no" 1>&6 3223 fi 3224 3225 3226 if test -z "$ac_cv_prog_RANLIB"; then 3227 if test -n "$ac_tool_prefix"; then 3228 # Extract the first word of "ranlib", so it can be a program name with args. 3229 set dummy ranlib; ac_word=$2 3230 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3231 echo "configure:3232: checking for $ac_word" >&5 3232 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 3233 echo $ac_n "(cached) $ac_c" 1>&6 3234 else 3235 if test -n "$RANLIB"; then 3236 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3237 else 3238 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3239 ac_dummy="$PATH" 3240 for ac_dir in $ac_dummy; do 3241 test -z "$ac_dir" && ac_dir=. 3242 if test -f $ac_dir/$ac_word; then 3243 ac_cv_prog_RANLIB="ranlib" 3244 break 3245 fi 3246 done 3247 IFS="$ac_save_ifs" 3248 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 3249 fi 3250 fi 3251 RANLIB="$ac_cv_prog_RANLIB" 3252 if test -n "$RANLIB"; then 3253 echo "$ac_t""$RANLIB" 1>&6 3254 else 3255 echo "$ac_t""no" 1>&6 3256 fi 3257 3258 else 3259 RANLIB=":" 3260 fi 3261 fi 3262 3263 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3264 set dummy ${ac_tool_prefix}strip; ac_word=$2 3265 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3266 echo "configure:3267: checking for $ac_word" >&5 3267 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then 3268 echo $ac_n "(cached) $ac_c" 1>&6 3269 else 3270 if test -n "$STRIP"; then 3271 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3272 else 3273 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3274 ac_dummy="$PATH" 3275 for ac_dir in $ac_dummy; do 3276 test -z "$ac_dir" && ac_dir=. 3277 if test -f $ac_dir/$ac_word; then 3278 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3279 break 3280 fi 3281 done 3282 IFS="$ac_save_ifs" 3283 fi 3284 fi 3285 STRIP="$ac_cv_prog_STRIP" 3286 if test -n "$STRIP"; then 3287 echo "$ac_t""$STRIP" 1>&6 3288 else 3289 echo "$ac_t""no" 1>&6 3290 fi 3291 3292 3293 if test -z "$ac_cv_prog_STRIP"; then 3294 if test -n "$ac_tool_prefix"; then 3295 # Extract the first word of "strip", so it can be a program name with args. 3296 set dummy strip; ac_word=$2 3297 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3298 echo "configure:3299: checking for $ac_word" >&5 3299 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then 3300 echo $ac_n "(cached) $ac_c" 1>&6 3301 else 3302 if test -n "$STRIP"; then 3303 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3304 else 3305 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3306 ac_dummy="$PATH" 3307 for ac_dir in $ac_dummy; do 3308 test -z "$ac_dir" && ac_dir=. 3309 if test -f $ac_dir/$ac_word; then 3310 ac_cv_prog_STRIP="strip" 3311 break 3312 fi 3313 done 3314 IFS="$ac_save_ifs" 3315 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" 3316 fi 3317 fi 3318 STRIP="$ac_cv_prog_STRIP" 3319 if test -n "$STRIP"; then 3320 echo "$ac_t""$STRIP" 1>&6 3321 else 3322 echo "$ac_t""no" 1>&6 3323 fi 3324 3325 else 3326 STRIP=":" 3327 fi 3328 fi 3329 3330 3331 enable_dlopen=no 3332 enable_win32_dll=no 3333 3334 # Check whether --enable-libtool-lock or --disable-libtool-lock was given. 3335 if test "${enable_libtool_lock+set}" = set; then 3336 enableval="$enable_libtool_lock" 3337 : 3338 fi 3339 3340 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 3341 3342 # Some flags need to be propagated to the compiler or linker for good 3343 # libtool support. 3344 case $host in 3345 *-*-irix6*) 3346 # Find out which ABI we are using. 3347 echo '#line 3348 "configure"' > conftest.$ac_ext 3348 if { (eval echo configure:3349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3349 case `/usr/bin/file conftest.$ac_objext` in 3350 *32-bit*) 3351 LD="${LD-ld} -32" 3352 ;; 3353 *N32*) 3354 LD="${LD-ld} -n32" 3355 ;; 3356 *64-bit*) 3357 LD="${LD-ld} -64" 3358 ;; 3359 esac 3360 fi 3361 rm -rf conftest* 3362 ;; 3363 3364 *-*-sco3.2v5*) 3365 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 3366 SAVE_CFLAGS="$CFLAGS" 3367 CFLAGS="$CFLAGS -belf" 3368 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 3369 echo "configure:3370: checking whether the C compiler needs -belf" >&5 3370 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then 3371 echo $ac_n "(cached) $ac_c" 1>&6 3372 else 3373 3374 ac_ext=c 3375 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 3376 ac_cpp='$CPP $CPPFLAGS' 3377 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 3378 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 3379 cross_compiling=$ac_cv_prog_cc_cross 3380 3381 cat > conftest.$ac_ext <<EOF 3382 #line 3383 "configure" 3383 #include "confdefs.h" 3384 3385 int main() { 3386 3387 ; return 0; } 3388 EOF 3389 if { (eval echo configure:3390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3390 rm -rf conftest* 3391 lt_cv_cc_needs_belf=yes 3392 else 3393 echo "configure: failed program was:" >&5 3394 cat conftest.$ac_ext >&5 3395 rm -rf conftest* 3396 lt_cv_cc_needs_belf=no 3397 fi 3398 rm -f conftest* 3399 ac_ext=c 3400 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 3401 ac_cpp='$CPP $CPPFLAGS' 3402 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 3403 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 3404 cross_compiling=$ac_cv_prog_cc_cross 3405 3406 fi 3407 3408 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6 3409 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 3410 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 3411 CFLAGS="$SAVE_CFLAGS" 3412 fi 3413 ;; 3414 3415 3416 esac 3417 3418 # Sed substitution that helps us do robust quoting. It backslashifies 3419 # metacharacters that are still active within double-quoted strings. 3420 Xsed='sed -e s/^X//' 3421 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 3422 3423 # Same as above, but do not quote variable references. 3424 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 3425 3426 # Sed substitution to delay expansion of an escaped shell variable in a 3427 # double_quote_subst'ed string. 3428 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3429 3430 # Constants: 3431 rm="rm -f" 3432 3433 # Global variables: 3434 default_ofile=libtool 3435 can_build_shared=yes 3436 3437 # All known linkers require a `.a' archive for static linking (except M$VC, 3438 # which needs '.lib'). 3439 libext=a 3440 ltmain="$ac_aux_dir/ltmain.sh" 3441 ofile="$default_ofile" 3442 with_gnu_ld="$lt_cv_prog_gnu_ld" 3443 need_locks="$enable_libtool_lock" 3444 3445 old_CC="$CC" 3446 old_CFLAGS="$CFLAGS" 3447 3448 # Set sane defaults for various variables 3449 test -z "$AR" && AR=ar 3450 test -z "$AR_FLAGS" && AR_FLAGS=cru 3451 test -z "$AS" && AS=as 3452 test -z "$CC" && CC=cc 3453 test -z "$DLLTOOL" && DLLTOOL=dlltool 3454 test -z "$LD" && LD=ld 3455 test -z "$LN_S" && LN_S="ln -s" 3456 test -z "$MAGIC_CMD" && MAGIC_CMD=file 3457 test -z "$NM" && NM=nm 3458 test -z "$OBJDUMP" && OBJDUMP=objdump 3459 test -z "$RANLIB" && RANLIB=: 3460 test -z "$STRIP" && STRIP=: 3461 test -z "$ac_objext" && ac_objext=o 3462 3463 if test x"$host" != x"$build"; then 3464 ac_tool_prefix=${host_alias}- 3465 else 3466 ac_tool_prefix= 3467 fi 3468 3469 # Transform linux* to *-*-linux-gnu*, to support old configure scripts. 3470 case $host_os in 3471 linux-gnu*) ;; 3472 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` 3473 esac 3474 3475 case $host_os in 3476 aix3*) 3477 # AIX sometimes has problems with the GCC collect2 program. For some 3478 # reason, if we set the COLLECT_NAMES environment variable, the problems 3479 # vanish in a puff of smoke. 3480 if test "X${COLLECT_NAMES+set}" != Xset; then 3481 COLLECT_NAMES= 3482 export COLLECT_NAMES 3483 fi 3484 ;; 3485 esac 3486 3487 # Determine commands to create old-style static archives. 3488 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 3489 old_postinstall_cmds='chmod 644 $oldlib' 3490 old_postuninstall_cmds= 3491 3492 if test -n "$RANLIB"; then 3493 case $host_os in 3494 openbsd*) 3495 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" 3496 ;; 3497 *) 3498 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" 3499 ;; 3500 esac 3501 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 3502 fi 3503 3504 # Allow CC to be a program name with arguments. 3505 set dummy $CC 3506 compiler="$2" 3507 3508 ## FIXME: this should be a separate macro 3509 ## 3510 echo $ac_n "checking for objdir""... $ac_c" 1>&6 3511 echo "configure:3512: checking for objdir" >&5 3512 rm -f .libs 2>/dev/null 3513 mkdir .libs 2>/dev/null 3514 if test -d .libs; then 3515 objdir=.libs 3516 else 3517 # MS-DOS does not allow filenames that begin with a dot. 3518 objdir=_libs 3519 fi 3520 rmdir .libs 2>/dev/null 3521 echo "$ac_t""$objdir" 1>&6 3522 ## 3523 ## END FIXME 3524 3525 3526 ## FIXME: this should be a separate macro 3527 ## 3528 # Check whether --with-pic or --without-pic was given. 3529 if test "${with_pic+set}" = set; then 3530 withval="$with_pic" 3531 pic_mode="$withval" 3532 else 3533 pic_mode=default 3534 fi 3535 3536 test -z "$pic_mode" && pic_mode=default 3537 3538 # We assume here that the value for lt_cv_prog_cc_pic will not be cached 3539 # in isolation, and that seeing it set (from the cache) indicates that 3540 # the associated values are set (in the cache) correctly too. 3541 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6 3542 echo "configure:3543: checking for $compiler option to produce PIC" >&5 3543 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic'+set}'`\" = set"; then 3544 echo $ac_n "(cached) $ac_c" 1>&6 3545 else 3546 lt_cv_prog_cc_pic= 3547 lt_cv_prog_cc_shlib= 3548 lt_cv_prog_cc_wl= 3549 lt_cv_prog_cc_static= 3550 lt_cv_prog_cc_no_builtin= 3551 lt_cv_prog_cc_can_build_shared=$can_build_shared 3552 3553 if test "$GCC" = yes; then 3554 lt_cv_prog_cc_wl='-Wl,' 3555 lt_cv_prog_cc_static='-static' 3556 3557 case $host_os in 3558 aix*) 3559 # Below there is a dirty hack to force normal static linking with -ldl 3560 # The problem is because libdl dynamically linked with both libc and 3561 # libC (AIX C++ library), which obviously doesn't included in libraries 3562 # list by gcc. This cause undefined symbols with -static flags. 3563 # This hack allows C programs to be linked with "-static -ldl", but 3564 # not sure about C++ programs. 3565 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC" 3566 ;; 3567 amigaos*) 3568 # FIXME: we need at least 68020 code to build shared libraries, but 3569 # adding the `-m68020' flag to GCC prevents building anything better, 3570 # like `-m68040'. 3571 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4' 3572 ;; 3573 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 3574 # PIC is the default for these OSes. 3575 ;; 3576 darwin* | rhapsody*) 3577 # PIC is the default on this platform 3578 # Common symbols not allowed in MH_DYLIB files 3579 lt_cv_prog_cc_pic='-fno-common' 3580 ;; 3581 cygwin* | mingw* | pw32* | os2*) 3582 # This hack is so that the source file can tell whether it is being 3583 # built for inclusion in a dll (and should export symbols for example). 3584 lt_cv_prog_cc_pic='-DDLL_EXPORT' 3585 ;; 3586 sysv4*MP*) 3587 if test -d /usr/nec; then 3588 lt_cv_prog_cc_pic=-Kconform_pic 3589 fi 3590 ;; 3591 *) 3592 lt_cv_prog_cc_pic='-fPIC' 3593 ;; 3594 esac 3595 else 3596 # PORTME Check for PIC flags for the system compiler. 3597 case $host_os in 3598 aix3* | aix4* | aix5*) 3599 lt_cv_prog_cc_wl='-Wl,' 3600 # All AIX code is PIC. 3601 if test "$host_cpu" = ia64; then 3602 # AIX 5 now supports IA64 processor 3603 lt_cv_prog_cc_static='-Bstatic' 3604 else 3605 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp' 3606 fi 3607 ;; 3608 3609 hpux9* | hpux10* | hpux11*) 3610 # Is there a better lt_cv_prog_cc_static that works with the bundled CC? 3611 lt_cv_prog_cc_wl='-Wl,' 3612 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive" 3613 lt_cv_prog_cc_pic='+Z' 3614 ;; 3615 3616 irix5* | irix6* | nonstopux*) 3617 lt_cv_prog_cc_wl='-Wl,' 3618 lt_cv_prog_cc_static='-non_shared' 3619 # PIC (with -KPIC) is the default. 3620 ;; 3621 3622 cygwin* | mingw* | pw32* | os2*) 3623 # This hack is so that the source file can tell whether it is being 3624 # built for inclusion in a dll (and should export symbols for example). 3625 lt_cv_prog_cc_pic='-DDLL_EXPORT' 3626 ;; 3627 3628 newsos6) 3629 lt_cv_prog_cc_pic='-KPIC' 3630 lt_cv_prog_cc_static='-Bstatic' 3631 ;; 3632 3633 osf3* | osf4* | osf5*) 3634 # All OSF/1 code is PIC. 3635 lt_cv_prog_cc_wl='-Wl,' 3636 lt_cv_prog_cc_static='-non_shared' 3637 ;; 3638 3639 sco3.2v5*) 3640 lt_cv_prog_cc_pic='-Kpic' 3641 lt_cv_prog_cc_static='-dn' 3642 lt_cv_prog_cc_shlib='-belf' 3643 ;; 3644 3645 solaris*) 3646 lt_cv_prog_cc_pic='-KPIC' 3647 lt_cv_prog_cc_static='-Bstatic' 3648 lt_cv_prog_cc_wl='-Wl,' 3649 ;; 3650 3651 sunos4*) 3652 lt_cv_prog_cc_pic='-PIC' 3653 lt_cv_prog_cc_static='-Bstatic' 3654 lt_cv_prog_cc_wl='-Qoption ld ' 3655 ;; 3656 3657 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 3658 lt_cv_prog_cc_pic='-KPIC' 3659 lt_cv_prog_cc_static='-Bstatic' 3660 lt_cv_prog_cc_wl='-Wl,' 3661 ;; 3662 3663 uts4*) 3664 lt_cv_prog_cc_pic='-pic' 3665 lt_cv_prog_cc_static='-Bstatic' 3666 ;; 3667 3668 sysv4*MP*) 3669 if test -d /usr/nec ;then 3670 lt_cv_prog_cc_pic='-Kconform_pic' 3671 lt_cv_prog_cc_static='-Bstatic' 3672 fi 3673 ;; 3674 3675 *) 3676 lt_cv_prog_cc_can_build_shared=no 3677 ;; 3678 esac 3679 fi 3680 3681 fi 3682 3683 if test -z "$lt_cv_prog_cc_pic"; then 3684 echo "$ac_t""none" 1>&6 3685 else 3686 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6 3687 3688 # Check to make sure the pic_flag actually works. 3689 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6 3690 echo "configure:3691: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5 3691 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic_works'+set}'`\" = set"; then 3692 echo $ac_n "(cached) $ac_c" 1>&6 3693 else 3694 save_CFLAGS="$CFLAGS" 3695 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC" 3696 cat > conftest.$ac_ext <<EOF 3697 #line 3698 "configure" 3698 #include "confdefs.h" 3699 3700 int main() { 3701 3702 ; return 0; } 3703 EOF 3704 if { (eval echo configure:3705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3705 rm -rf conftest* 3706 case $host_os in 3707 hpux9* | hpux10* | hpux11*) 3708 # On HP-UX, both CC and GCC only warn that PIC is supported... then 3709 # they create non-PIC objects. So, if there were any warnings, we 3710 # assume that PIC is not supported. 3711 if test -s conftest.err; then 3712 lt_cv_prog_cc_pic_works=no 3713 else 3714 lt_cv_prog_cc_pic_works=yes 3715 fi 3716 ;; 3717 *) 3718 lt_cv_prog_cc_pic_works=yes 3719 ;; 3720 esac 3721 3722 else 3723 echo "configure: failed program was:" >&5 3724 cat conftest.$ac_ext >&5 3725 rm -rf conftest* 3726 lt_cv_prog_cc_pic_works=no 3727 3728 fi 3729 rm -f conftest* 3730 CFLAGS="$save_CFLAGS" 3731 3732 fi 3733 3734 3735 if test "X$lt_cv_prog_cc_pic_works" = Xno; then 3736 lt_cv_prog_cc_pic= 3737 lt_cv_prog_cc_can_build_shared=no 3738 else 3739 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic" 3740 fi 3741 3742 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6 3743 fi 3744 ## 3745 ## END FIXME 3746 3747 # Check for any special shared library compilation flags. 3748 if test -n "$lt_cv_prog_cc_shlib"; then 3749 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2 3750 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then : 3751 else 3752 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2 3753 lt_cv_prog_cc_can_build_shared=no 3754 fi 3755 fi 3756 3757 ## FIXME: this should be a separate macro 3758 ## 3759 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6 3760 echo "configure:3761: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5 3761 if eval "test \"`echo '$''{'lt_cv_prog_cc_static_works'+set}'`\" = set"; then 3762 echo $ac_n "(cached) $ac_c" 1>&6 3763 else 3764 lt_cv_prog_cc_static_works=no 3765 save_LDFLAGS="$LDFLAGS" 3766 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static" 3767 cat > conftest.$ac_ext <<EOF 3768 #line 3769 "configure" 3769 #include "confdefs.h" 3770 3771 int main() { 3772 3773 ; return 0; } 3774 EOF 3775 if { (eval echo configure:3776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3776 rm -rf conftest* 3777 lt_cv_prog_cc_static_works=yes 3778 else 3779 echo "configure: failed program was:" >&5 3780 cat conftest.$ac_ext >&5 3781 fi 3782 rm -f conftest* 3783 LDFLAGS="$save_LDFLAGS" 3784 3785 fi 3786 3787 3788 # Belt *and* braces to stop my trousers falling down: 3789 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static= 3790 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6 3791 3792 pic_flag="$lt_cv_prog_cc_pic" 3793 special_shlib_compile_flags="$lt_cv_prog_cc_shlib" 3794 wl="$lt_cv_prog_cc_wl" 3795 link_static_flag="$lt_cv_prog_cc_static" 3796 no_builtin_flag="$lt_cv_prog_cc_no_builtin" 3797 can_build_shared="$lt_cv_prog_cc_can_build_shared" 3798 ## 3799 ## END FIXME 3800 3801 3802 ## FIXME: this should be a separate macro 3803 ## 3804 # Check to see if options -o and -c are simultaneously supported by compiler 3805 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6 3806 echo "configure:3807: checking if $compiler supports -c -o file.$ac_objext" >&5 3807 if eval "test \"`echo '$''{'lt_cv_compiler_c_o'+set}'`\" = set"; then 3808 echo $ac_n "(cached) $ac_c" 1>&6 3809 else 3810 3811 $rm -r conftest 2>/dev/null 3812 mkdir conftest 3813 cd conftest 3814 echo "int some_variable = 0;" > conftest.$ac_ext 3815 mkdir out 3816 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers 3817 # that will create temporary files in the current directory regardless of 3818 # the output directory. Thus, making CWD read-only will cause this test 3819 # to fail, enabling locking or at least warning the user not to do parallel 3820 # builds. 3821 chmod -w . 3822 save_CFLAGS="$CFLAGS" 3823 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" 3824 compiler_c_o=no 3825 if { (eval echo configure:3826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then 3826 # The compiler can only warn and ignore the option if not recognized 3827 # So say no if there are warnings 3828 if test -s out/conftest.err; then 3829 lt_cv_compiler_c_o=no 3830 else 3831 lt_cv_compiler_c_o=yes 3832 fi 3833 else 3834 # Append any errors to the config.log. 3835 cat out/conftest.err 1>&5 3836 lt_cv_compiler_c_o=no 3837 fi 3838 CFLAGS="$save_CFLAGS" 3839 chmod u+w . 3840 $rm conftest* out/* 3841 rmdir out 3842 cd .. 3843 rmdir conftest 3844 $rm -r conftest 2>/dev/null 3845 3846 fi 3847 3848 compiler_c_o=$lt_cv_compiler_c_o 3849 echo "$ac_t""$compiler_c_o" 1>&6 3850 3851 if test x"$compiler_c_o" = x"yes"; then 3852 # Check to see if we can write to a .lo 3853 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6 3854 echo "configure:3855: checking if $compiler supports -c -o file.lo" >&5 3855 if eval "test \"`echo '$''{'lt_cv_compiler_o_lo'+set}'`\" = set"; then 3856 echo $ac_n "(cached) $ac_c" 1>&6 3857 else 3858 3859 lt_cv_compiler_o_lo=no 3860 save_CFLAGS="$CFLAGS" 3861 CFLAGS="$CFLAGS -c -o conftest.lo" 3862 save_objext="$ac_objext" 3863 ac_objext=lo 3864 cat > conftest.$ac_ext <<EOF 3865 #line 3866 "configure" 3866 #include "confdefs.h" 3867 3868 int main() { 3869 int some_variable = 0; 3870 ; return 0; } 3871 EOF 3872 if { (eval echo configure:3873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3873 rm -rf conftest* 3874 # The compiler can only warn and ignore the option if not recognized 3875 # So say no if there are warnings 3876 if test -s conftest.err; then 3877 lt_cv_compiler_o_lo=no 3878 else 3879 lt_cv_compiler_o_lo=yes 3880 fi 3881 3882 else 3883 echo "configure: failed program was:" >&5 3884 cat conftest.$ac_ext >&5 3885 fi 3886 rm -f conftest* 3887 ac_objext="$save_objext" 3888 CFLAGS="$save_CFLAGS" 3889 3890 fi 3891 3892 compiler_o_lo=$lt_cv_compiler_o_lo 3893 echo "$ac_t""$compiler_o_lo" 1>&6 3894 else 3895 compiler_o_lo=no 3896 fi 3897 ## 3898 ## END FIXME 3899 3900 ## FIXME: this should be a separate macro 3901 ## 3902 # Check to see if we can do hard links to lock some files if needed 3903 hard_links="nottested" 3904 if test "$compiler_c_o" = no && test "$need_locks" != no; then 3905 # do not overwrite the value of need_locks provided by the user 3906 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6 3907 echo "configure:3908: checking if we can lock with hard links" >&5 3908 hard_links=yes 3909 $rm conftest* 3910 ln conftest.a conftest.b 2>/dev/null && hard_links=no 3911 touch conftest.a 3912 ln conftest.a conftest.b 2>&5 || hard_links=no 3913 ln conftest.a conftest.b 2>/dev/null && hard_links=no 3914 echo "$ac_t""$hard_links" 1>&6 3915 if test "$hard_links" = no; then 3916 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2 3917 need_locks=warn 3918 fi 3919 else 3920 need_locks=no 3921 fi 3922 ## 3923 ## END FIXME 3924 3925 ## FIXME: this should be a separate macro 3926 ## 3927 if test "$GCC" = yes; then 3928 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler 3929 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6 3930 echo "configure:3931: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 3931 echo "int some_variable = 0;" > conftest.$ac_ext 3932 save_CFLAGS="$CFLAGS" 3933 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" 3934 compiler_rtti_exceptions=no 3935 cat > conftest.$ac_ext <<EOF 3936 #line 3937 "configure" 3937 #include "confdefs.h" 3938 3939 int main() { 3940 int some_variable = 0; 3941 ; return 0; } 3942 EOF 3943 if { (eval echo configure:3944: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3944 rm -rf conftest* 3945 # The compiler can only warn and ignore the option if not recognized 3946 # So say no if there are warnings 3947 if test -s conftest.err; then 3948 compiler_rtti_exceptions=no 3949 else 3950 compiler_rtti_exceptions=yes 3951 fi 3952 3953 else 3954 echo "configure: failed program was:" >&5 3955 cat conftest.$ac_ext >&5 3956 fi 3957 rm -f conftest* 3958 CFLAGS="$save_CFLAGS" 3959 echo "$ac_t""$compiler_rtti_exceptions" 1>&6 3960 3961 if test "$compiler_rtti_exceptions" = "yes"; then 3962 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions' 3963 else 3964 no_builtin_flag=' -fno-builtin' 3965 fi 3966 fi 3967 ## 3968 ## END FIXME 3969 3970 ## FIXME: this should be a separate macro 3971 ## 3972 # See if the linker supports building shared libraries. 3973 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6 3974 echo "configure:3975: checking whether the linker ($LD) supports shared libraries" >&5 3975 3976 allow_undefined_flag= 3977 no_undefined_flag= 3978 need_lib_prefix=unknown 3979 need_version=unknown 3980 # when you set need_version to no, make sure it does not cause -set_version 3981 # flags to be left without arguments 3982 archive_cmds= 3983 archive_expsym_cmds= 3984 old_archive_from_new_cmds= 3985 old_archive_from_expsyms_cmds= 3986 export_dynamic_flag_spec= 3987 whole_archive_flag_spec= 3988 thread_safe_flag_spec= 3989 hardcode_into_libs=no 3990 hardcode_libdir_flag_spec= 3991 hardcode_libdir_separator= 3992 hardcode_direct=no 3993 hardcode_minus_L=no 3994 hardcode_shlibpath_var=unsupported 3995 runpath_var= 3996 link_all_deplibs=unknown 3997 always_export_symbols=no 3998 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' 3999 # include_expsyms should be a list of space-separated symbols to be *always* 4000 # included in the symbol list 4001 include_expsyms= 4002 # exclude_expsyms can be an egrep regular expression of symbols to exclude 4003 # it will be wrapped by ` (' and `)$', so one must not match beginning or 4004 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 4005 # as well as any symbol that contains `d'. 4006 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 4007 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 4008 # platforms (ab)use it in PIC code, but their linkers get confused if 4009 # the symbol is explicitly referenced. Since portable code cannot 4010 # rely on this symbol name, it's probably fine to never include it in 4011 # preloaded symbol tables. 4012 extract_expsyms_cmds= 4013 4014 case $host_os in 4015 cygwin* | mingw* | pw32*) 4016 # FIXME: the MSVC++ port hasn't been tested in a loooong time 4017 # When not using gcc, we currently assume that we are using 4018 # Microsoft Visual C++. 4019 if test "$GCC" != yes; then 4020 with_gnu_ld=no 4021 fi 4022 ;; 4023 openbsd*) 4024 with_gnu_ld=no 4025 ;; 4026 esac 4027 4028 ld_shlibs=yes 4029 if test "$with_gnu_ld" = yes; then 4030 # If archive_cmds runs LD, not CC, wlarc should be empty 4031 wlarc='${wl}' 4032 4033 # See if GNU ld supports shared libraries. 4034 case $host_os in 4035 aix3* | aix4* | aix5*) 4036 # On AIX, the GNU linker is very broken 4037 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available. 4038 ld_shlibs=no 4039 cat <<EOF 1>&2 4040 4041 *** Warning: the GNU linker, at least up to release 2.9.1, is reported 4042 *** to be unable to reliably create shared libraries on AIX. 4043 *** Therefore, libtool is disabling shared libraries support. If you 4044 *** really care for shared libraries, you may want to modify your PATH 4045 *** so that a non-GNU linker is found, and then restart. 4046 4047 EOF 4048 ;; 4049 4050 amigaos*) 4051 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)' 4052 hardcode_libdir_flag_spec='-L$libdir' 4053 hardcode_minus_L=yes 4054 4055 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 4056 # that the semantics of dynamic libraries on AmigaOS, at least up 4057 # to version 4, is to share data among multiple programs linked 4058 # with the same dynamic library. Since this doesn't match the 4059 # behavior of shared libraries on other platforms, we can use 4060 # them. 4061 ld_shlibs=no 4062 ;; 4063 4064 beos*) 4065 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 4066 allow_undefined_flag=unsupported 4067 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 4068 # support --undefined. This deserves some investigation. FIXME 4069 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 4070 else 4071 ld_shlibs=no 4072 fi 4073 ;; 4074 4075 cygwin* | mingw* | pw32*) 4076 # hardcode_libdir_flag_spec is actually meaningless, as there is 4077 # no search path for DLLs. 4078 hardcode_libdir_flag_spec='-L$libdir' 4079 allow_undefined_flag=unsupported 4080 always_export_symbols=yes 4081 4082 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ 4083 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ 4084 test -f $output_objdir/impgen.exe || (cd $output_objdir && \ 4085 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ 4086 else $CC -o impgen impgen.c ; fi)~ 4087 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' 4088 4089 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' 4090 4091 # cygwin and mingw dlls have different entry points and sets of symbols 4092 # to exclude. 4093 # FIXME: what about values for MSVC? 4094 dll_entry=__cygwin_dll_entry@12 4095 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ 4096 case $host_os in 4097 mingw*) 4098 # mingw values 4099 dll_entry=_DllMainCRTStartup@12 4100 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ 4101 ;; 4102 esac 4103 4104 # mingw and cygwin differ, and it's simplest to just exclude the union 4105 # of the two symbol sets. 4106 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 4107 4108 # recent cygwin and mingw systems supply a stub DllMain which the user 4109 # can override, but on older systems we have to supply one (in ltdll.c) 4110 if test "x$lt_cv_need_dllmain" = "xyes"; then 4111 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " 4112 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~ 4113 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' 4114 else 4115 ltdll_obj= 4116 ltdll_cmds= 4117 fi 4118 4119 # Extract the symbol export list from an `--export-all' def file, 4120 # then regenerate the def file from the symbol export list, so that 4121 # the compiled dll only exports the symbol export list. 4122 # Be careful not to strip the DATA tag left be newer dlltools. 4123 export_symbols_cmds="$ltdll_cmds"' 4124 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ 4125 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' 4126 4127 # If the export-symbols file already is a .def file (1st line 4128 # is EXPORTS), use it as is. 4129 # If DATA tags from a recent dlltool are present, honour them! 4130 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then 4131 cp $export_symbols $output_objdir/$soname-def; 4132 else 4133 echo EXPORTS > $output_objdir/$soname-def; 4134 _lt_hint=1; 4135 cat $export_symbols | while read symbol; do 4136 set dummy \$symbol; 4137 case \$# in 4138 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; 4139 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;; 4140 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;; 4141 esac; 4142 _lt_hint=`expr 1 + \$_lt_hint`; 4143 done; 4144 fi~ 4145 '"$ltdll_cmds"' 4146 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ 4147 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~ 4148 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ 4149 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~ 4150 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' 4151 ;; 4152 4153 netbsd*) 4154 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 4155 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 4156 wlarc= 4157 else 4158 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 4159 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 4160 fi 4161 ;; 4162 4163 solaris*) 4164 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then 4165 ld_shlibs=no 4166 cat <<EOF 1>&2 4167 4168 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 4169 *** create shared libraries on Solaris systems. Therefore, libtool 4170 *** is disabling shared libraries support. We urge you to upgrade GNU 4171 *** binutils to release 2.9.1 or newer. Another option is to modify 4172 *** your PATH or compiler configuration so that the native linker is 4173 *** used, and then restart. 4174 4175 EOF 4176 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 4177 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 4178 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 4179 else 4180 ld_shlibs=no 4181 fi 4182 ;; 4183 4184 sunos4*) 4185 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 4186 wlarc= 4187 hardcode_direct=yes 4188 hardcode_shlibpath_var=no 4189 ;; 4190 4191 *) 4192 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 4193 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 4194 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 4195 else 4196 ld_shlibs=no 4197 fi 4198 ;; 4199 esac 4200 4201 if test "$ld_shlibs" = yes; then 4202 runpath_var=LD_RUN_PATH 4203 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 4204 export_dynamic_flag_spec='${wl}--export-dynamic' 4205 case $host_os in 4206 cygwin* | mingw* | pw32*) 4207 # dlltool doesn't understand --whole-archive et. al. 4208 whole_archive_flag_spec= 4209 ;; 4210 *) 4211 # ancient GNU ld didn't support --whole-archive et. al. 4212 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then 4213 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 4214 else 4215 whole_archive_flag_spec= 4216 fi 4217 ;; 4218 esac 4219 fi 4220 else 4221 # PORTME fill in a description of your system's linker (not GNU ld) 4222 case $host_os in 4223 aix3*) 4224 allow_undefined_flag=unsupported 4225 always_export_symbols=yes 4226 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' 4227 # Note: this linker hardcodes the directories in LIBPATH if there 4228 # are no directories specified by -L. 4229 hardcode_minus_L=yes 4230 if test "$GCC" = yes && test -z "$link_static_flag"; then 4231 # Neither direct hardcoding nor static linking is supported with a 4232 # broken collect2. 4233 hardcode_direct=unsupported 4234 fi 4235 ;; 4236 4237 aix4* | aix5*) 4238 if test "$host_cpu" = ia64; then 4239 # On IA64, the linker does run time linking by default, so we don't 4240 # have to do anything special. 4241 aix_use_runtimelinking=no 4242 exp_sym_flag='-Bexport' 4243 no_entry_flag="" 4244 else 4245 aix_use_runtimelinking=no 4246 4247 # Test if we are trying to use run time linking or normal 4248 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 4249 # need to do runtime linking. 4250 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 4251 for ld_flag in $LDFLAGS; do 4252 case $ld_flag in 4253 *-brtl*) 4254 aix_use_runtimelinking=yes 4255 break 4256 ;; 4257 esac 4258 done 4259 esac 4260 4261 exp_sym_flag='-bexport' 4262 no_entry_flag='-bnoentry' 4263 fi 4264 4265 # When large executables or shared objects are built, AIX ld can 4266 # have problems creating the table of contents. If linking a library 4267 # or program results in "error TOC overflow" add -mminimal-toc to 4268 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 4269 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 4270 4271 hardcode_direct=yes 4272 archive_cmds='' 4273 hardcode_libdir_separator=':' 4274 if test "$GCC" = yes; then 4275 case $host_os in aix4.[012]|aix4.[012].*) 4276 collect2name=`${CC} -print-prog-name=collect2` 4277 if test -f "$collect2name" && \ 4278 strings "$collect2name" | grep resolve_lib_name >/dev/null 4279 then 4280 # We have reworked collect2 4281 hardcode_direct=yes 4282 else 4283 # We have old collect2 4284 hardcode_direct=unsupported 4285 # It fails to find uninstalled libraries when the uninstalled 4286 # path is not listed in the libpath. Setting hardcode_minus_L 4287 # to unsupported forces relinking 4288 hardcode_minus_L=yes 4289 hardcode_libdir_flag_spec='-L$libdir' 4290 hardcode_libdir_separator= 4291 fi 4292 esac 4293 4294 shared_flag='-shared' 4295 else 4296 # not using gcc 4297 if test "$host_cpu" = ia64; then 4298 shared_flag='${wl}-G' 4299 else 4300 if test "$aix_use_runtimelinking" = yes; then 4301 shared_flag='${wl}-G' 4302 else 4303 shared_flag='${wl}-bM:SRE' 4304 fi 4305 fi 4306 fi 4307 4308 # It seems that -bexpall can do strange things, so it is better to 4309 # generate a list of symbols to export. 4310 always_export_symbols=yes 4311 if test "$aix_use_runtimelinking" = yes; then 4312 # Warning - without using the other runtime loading flags (-brtl), 4313 # -berok will link without error, but may produce a broken library. 4314 allow_undefined_flag='-berok' 4315 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib' 4316 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 4317 else 4318 if test "$host_cpu" = ia64; then 4319 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 4320 allow_undefined_flag="-z nodefs" 4321 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 4322 else 4323 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib' 4324 # Warning - without using the other run time loading flags, 4325 # -berok will link without error, but may produce a broken library. 4326 allow_undefined_flag='${wl}-berok' 4327 # This is a bit strange, but is similar to how AIX traditionally builds 4328 # it's shared libraries. 4329 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname' 4330 fi 4331 fi 4332 ;; 4333 4334 amigaos*) 4335 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)' 4336 hardcode_libdir_flag_spec='-L$libdir' 4337 hardcode_minus_L=yes 4338 # see comment about different semantics on the GNU ld section 4339 ld_shlibs=no 4340 ;; 4341 4342 cygwin* | mingw* | pw32*) 4343 # When not using gcc, we currently assume that we are using 4344 # Microsoft Visual C++. 4345 # hardcode_libdir_flag_spec is actually meaningless, as there is 4346 # no search path for DLLs. 4347 hardcode_libdir_flag_spec=' ' 4348 allow_undefined_flag=unsupported 4349 # Tell ltmain to make .lib files, not .a files. 4350 libext=lib 4351 # FIXME: Setting linknames here is a bad hack. 4352 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 4353 # The linker will automatically build a .lib file if we build a DLL. 4354 old_archive_from_new_cmds='true' 4355 # FIXME: Should let the user specify the lib program. 4356 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 4357 fix_srcfile_path='`cygpath -w "$srcfile"`' 4358 ;; 4359 4360 darwin* | rhapsody*) 4361 case "$host_os" in 4362 rhapsody* | darwin1.[012]) 4363 allow_undefined_flag='-undefined suppress' 4364 ;; 4365 *) # Darwin 1.3 on 4366 allow_undefined_flag='-flat_namespace -undefined suppress' 4367 ;; 4368 esac 4369 # FIXME: Relying on posixy $() will cause problems for 4370 # cross-compilation, but unfortunately the echo tests do not 4371 # yet detect zsh echo's removal of \ escapes. Also zsh mangles 4372 # `"' quotes if we put them in here... so don't! 4373 archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)' 4374 # We need to add '_' to the symbols in $export_symbols first 4375 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols' 4376 hardcode_direct=yes 4377 hardcode_shlibpath_var=no 4378 whole_archive_flag_spec='-all_load $convenience' 4379 ;; 4380 4381 freebsd1*) 4382 ld_shlibs=no 4383 ;; 4384 4385 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 4386 # support. Future versions do this automatically, but an explicit c++rt0.o 4387 # does not break anything, and helps significantly (at the cost of a little 4388 # extra space). 4389 freebsd2.2*) 4390 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 4391 hardcode_libdir_flag_spec='-R$libdir' 4392 hardcode_direct=yes 4393 hardcode_shlibpath_var=no 4394 ;; 4395 4396 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 4397 freebsd2*) 4398 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 4399 hardcode_direct=yes 4400 hardcode_minus_L=yes 4401 hardcode_shlibpath_var=no 4402 ;; 4403 4404 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 4405 freebsd*) 4406 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 4407 hardcode_libdir_flag_spec='-R$libdir' 4408 hardcode_direct=yes 4409 hardcode_shlibpath_var=no 4410 ;; 4411 4412 hpux9* | hpux10* | hpux11*) 4413 case $host_os in 4414 hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;; 4415 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; 4416 esac 4417 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 4418 hardcode_libdir_separator=: 4419 hardcode_direct=yes 4420 hardcode_minus_L=yes # Not in the search PATH, but as the default 4421 # location of the library. 4422 export_dynamic_flag_spec='${wl}-E' 4423 ;; 4424 4425 irix5* | irix6* | nonstopux*) 4426 if test "$GCC" = yes; then 4427 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 4428 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 4429 else 4430 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 4431 hardcode_libdir_flag_spec='-rpath $libdir' 4432 fi 4433 hardcode_libdir_separator=: 4434 link_all_deplibs=yes 4435 ;; 4436 4437 netbsd*) 4438 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 4439 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 4440 else 4441 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 4442 fi 4443 hardcode_libdir_flag_spec='-R$libdir' 4444 hardcode_direct=yes 4445 hardcode_shlibpath_var=no 4446 ;; 4447 4448 newsos6) 4449 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 4450 hardcode_direct=yes 4451 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 4452 hardcode_libdir_separator=: 4453 hardcode_shlibpath_var=no 4454 ;; 4455 4456 openbsd*) 4457 hardcode_direct=yes 4458 hardcode_shlibpath_var=no 4459 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4460 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 4461 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 4462 export_dynamic_flag_spec='${wl}-E' 4463 else 4464 case "$host_os" in 4465 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 4466 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 4467 hardcode_libdir_flag_spec='-R$libdir' 4468 ;; 4469 *) 4470 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 4471 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 4472 ;; 4473 esac 4474 fi 4475 ;; 4476 4477 os2*) 4478 hardcode_libdir_flag_spec='-L$libdir' 4479 hardcode_minus_L=yes 4480 allow_undefined_flag=unsupported 4481 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' 4482 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 4483 ;; 4484 4485 osf3*) 4486 if test "$GCC" = yes; then 4487 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 4488 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 4489 else 4490 allow_undefined_flag=' -expect_unresolved \*' 4491 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 4492 fi 4493 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 4494 hardcode_libdir_separator=: 4495 ;; 4496 4497 osf4* | osf5*) # as osf3* with the addition of -msym flag 4498 if test "$GCC" = yes; then 4499 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 4500 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 4501 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 4502 else 4503 allow_undefined_flag=' -expect_unresolved \*' 4504 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 4505 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 4506 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' 4507 4508 #Both c and cxx compiler support -rpath directly 4509 hardcode_libdir_flag_spec='-rpath $libdir' 4510 fi 4511 hardcode_libdir_separator=: 4512 ;; 4513 4514 sco3.2v5*) 4515 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 4516 hardcode_shlibpath_var=no 4517 runpath_var=LD_RUN_PATH 4518 hardcode_runpath_var=yes 4519 export_dynamic_flag_spec='${wl}-Bexport' 4520 ;; 4521 4522 solaris*) 4523 # gcc --version < 3.0 without binutils cannot create self contained 4524 # shared libraries reliably, requiring libgcc.a to resolve some of 4525 # the object symbols generated in some cases. Libraries that use 4526 # assert need libgcc.a to resolve __eprintf, for example. Linking 4527 # a copy of libgcc.a into every shared library to guarantee resolving 4528 # such symbols causes other problems: According to Tim Van Holder 4529 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate 4530 # (to the application) exception stack for one thing. 4531 no_undefined_flag=' -z defs' 4532 if test "$GCC" = yes; then 4533 case `$CC --version 2>/dev/null` in 4534 [12].*) 4535 cat <<EOF 1>&2 4536 4537 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably 4538 *** create self contained shared libraries on Solaris systems, without 4539 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling 4540 *** -no-undefined support, which will at least allow you to build shared 4541 *** libraries. However, you may find that when you link such libraries 4542 *** into an application without using GCC, you have to manually add 4543 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to 4544 *** upgrade to a newer version of GCC. Another option is to rebuild your 4545 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer. 4546 4547 EOF 4548 no_undefined_flag= 4549 ;; 4550 esac 4551 fi 4552 # $CC -shared without GNU ld will not create a library from C++ 4553 # object files and a static libstdc++, better avoid it by now 4554 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 4555 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 4556 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 4557 hardcode_libdir_flag_spec='-R$libdir' 4558 hardcode_shlibpath_var=no 4559 case $host_os in 4560 solaris2.[0-5] | solaris2.[0-5].*) ;; 4561 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 4562 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 4563 esac 4564 link_all_deplibs=yes 4565 ;; 4566 4567 sunos4*) 4568 if test "x$host_vendor" = xsequent; then 4569 # Use $CC to link under sequent, because it throws in some extra .o 4570 # files that make .init and .fini sections work. 4571 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 4572 else 4573 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 4574 fi 4575 hardcode_libdir_flag_spec='-L$libdir' 4576 hardcode_direct=yes 4577 hardcode_minus_L=yes 4578 hardcode_shlibpath_var=no 4579 ;; 4580 4581 sysv4) 4582 case $host_vendor in 4583 sni) 4584 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 4585 hardcode_direct=yes # is this really true??? 4586 ;; 4587 siemens) 4588 ## LD is ld it makes a PLAMLIB 4589 ## CC just makes a GrossModule. 4590 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 4591 reload_cmds='$CC -r -o $output$reload_objs' 4592 hardcode_direct=no 4593 ;; 4594 motorola) 4595 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 4596 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 4597 ;; 4598 esac 4599 runpath_var='LD_RUN_PATH' 4600 hardcode_shlibpath_var=no 4601 ;; 4602 4603 sysv4.3*) 4604 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 4605 hardcode_shlibpath_var=no 4606 export_dynamic_flag_spec='-Bexport' 4607 ;; 4608 4609 uts4*) 4610 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 4611 hardcode_libdir_flag_spec='-L$libdir' 4612 hardcode_shlibpath_var=no 4613 ;; 4614 4615 dgux*) 4616 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 4617 hardcode_libdir_flag_spec='-L$libdir' 4618 hardcode_shlibpath_var=no 4619 ;; 4620 4621 sysv4*MP*) 4622 if test -d /usr/nec; then 4623 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 4624 hardcode_shlibpath_var=no 4625 runpath_var=LD_RUN_PATH 4626 hardcode_runpath_var=yes 4627 ld_shlibs=yes 4628 fi 4629 ;; 4630 4631 sysv4.2uw2*) 4632 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 4633 hardcode_direct=yes 4634 hardcode_minus_L=no 4635 hardcode_shlibpath_var=no 4636 hardcode_runpath_var=yes 4637 runpath_var=LD_RUN_PATH 4638 ;; 4639 4640 sysv5* | unixware7*) 4641 no_undefined_flag='${wl}-z ${wl}text' 4642 if test "$GCC" = yes; then 4643 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 4644 else 4645 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 4646 fi 4647 runpath_var='LD_RUN_PATH' 4648 hardcode_shlibpath_var=no 4649 ;; 4650 4651 *) 4652 ld_shlibs=no 4653 ;; 4654 esac 4655 fi 4656 echo "$ac_t""$ld_shlibs" 1>&6 4657 test "$ld_shlibs" = no && can_build_shared=no 4658 ## 4659 ## END FIXME 4660 4661 ## FIXME: this should be a separate macro 4662 ## 4663 # Check hardcoding attributes. 4664 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6 4665 echo "configure:4666: checking how to hardcode library paths into programs" >&5 4666 hardcode_action= 4667 if test -n "$hardcode_libdir_flag_spec" || \ 4668 test -n "$runpath_var"; then 4669 4670 # We can hardcode non-existant directories. 4671 if test "$hardcode_direct" != no && 4672 # If the only mechanism to avoid hardcoding is shlibpath_var, we 4673 # have to relink, otherwise we might link with an installed library 4674 # when we should be linking with a yet-to-be-installed one 4675 ## test "$hardcode_shlibpath_var" != no && 4676 test "$hardcode_minus_L" != no; then 4677 # Linking always hardcodes the temporary library directory. 4678 hardcode_action=relink 4679 else 4680 # We can link without hardcoding, and we can hardcode nonexisting dirs. 4681 hardcode_action=immediate 4682 fi 4683 else 4684 # We cannot hardcode anything, or else we can only hardcode existing 4685 # directories. 4686 hardcode_action=unsupported 4687 fi 4688 echo "$ac_t""$hardcode_action" 1>&6 4689 ## 4690 ## END FIXME 4691 4692 ## FIXME: this should be a separate macro 4693 ## 4694 striplib= 4695 old_striplib= 4696 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6 4697 echo "configure:4698: checking whether stripping libraries is possible" >&5 4698 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 4699 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 4700 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 4701 echo "$ac_t""yes" 1>&6 4702 else 4703 echo "$ac_t""no" 1>&6 4704 fi 4705 ## 4706 ## END FIXME 4707 4708 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4709 test -z "$deplibs_check_method" && deplibs_check_method=unknown 4710 4711 ## FIXME: this should be a separate macro 4712 ## 4713 # PORTME Fill in your ld.so characteristics 4714 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6 4715 echo "configure:4716: checking dynamic linker characteristics" >&5 4716 library_names_spec= 4717 libname_spec='lib$name' 4718 soname_spec= 4719 postinstall_cmds= 4720 postuninstall_cmds= 4721 finish_cmds= 4722 finish_eval= 4723 shlibpath_var= 4724 shlibpath_overrides_runpath=unknown 4725 version_type=none 4726 dynamic_linker="$host_os ld.so" 4727 sys_lib_dlsearch_path_spec="/lib /usr/lib" 4728 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 4729 4730 case $host_os in 4731 aix3*) 4732 version_type=linux 4733 library_names_spec='${libname}${release}.so$versuffix $libname.a' 4734 shlibpath_var=LIBPATH 4735 4736 # AIX has no versioning support, so we append a major version to the name. 4737 soname_spec='${libname}${release}.so$major' 4738 ;; 4739 4740 aix4* | aix5*) 4741 version_type=linux 4742 need_lib_prefix=no 4743 need_version=no 4744 hardcode_into_libs=yes 4745 if test "$host_cpu" = ia64; then 4746 # AIX 5 supports IA64 4747 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' 4748 shlibpath_var=LD_LIBRARY_PATH 4749 else 4750 # With GCC up to 2.95.x, collect2 would create an import file 4751 # for dependence libraries. The import file would start with 4752 # the line `#! .'. This would cause the generated library to 4753 # depend on `.', always an invalid library. This was fixed in 4754 # development snapshots of GCC prior to 3.0. 4755 case $host_os in 4756 aix4 | aix4.[01] | aix4.[01].*) 4757 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 4758 echo ' yes ' 4759 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 4760 : 4761 else 4762 can_build_shared=no 4763 fi 4764 ;; 4765 esac 4766 # AIX (on Power*) has no versioning support, so currently we can 4767 # not hardcode correct soname into executable. Probably we can 4768 # add versioning support to collect2, so additional links can 4769 # be useful in future. 4770 if test "$aix_use_runtimelinking" = yes; then 4771 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 4772 # instead of lib<name>.a to let people know that these are not 4773 # typical AIX shared libraries. 4774 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 4775 else 4776 # We preserve .a as extension for shared libraries through AIX4.2 4777 # and later when we are not doing run time linking. 4778 library_names_spec='${libname}${release}.a $libname.a' 4779 soname_spec='${libname}${release}.so$major' 4780 fi 4781 shlibpath_var=LIBPATH 4782 fi 4783 hardcode_into_libs=yes 4784 ;; 4785 4786 amigaos*) 4787 library_names_spec='$libname.ixlibrary $libname.a' 4788 # Create ${libname}_ixlibrary.a entries in /sys/libs. 4789 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done' 4790 ;; 4791 4792 beos*) 4793 library_names_spec='${libname}.so' 4794 dynamic_linker="$host_os ld.so" 4795 shlibpath_var=LIBRARY_PATH 4796 ;; 4797 4798 bsdi4*) 4799 version_type=linux 4800 need_version=no 4801 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 4802 soname_spec='${libname}${release}.so$major' 4803 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 4804 shlibpath_var=LD_LIBRARY_PATH 4805 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 4806 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 4807 export_dynamic_flag_spec=-rdynamic 4808 # the default ld.so.conf also contains /usr/contrib/lib and 4809 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 4810 # libtool to hard-code these into programs 4811 ;; 4812 4813 cygwin* | mingw* | pw32*) 4814 version_type=windows 4815 need_version=no 4816 need_lib_prefix=no 4817 case $GCC,$host_os in 4818 yes,cygwin*) 4819 library_names_spec='$libname.dll.a' 4820 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' 4821 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ 4822 dldir=$destdir/`dirname \$dlpath`~ 4823 test -d \$dldir || mkdir -p \$dldir~ 4824 $install_prog .libs/$dlname \$dldir/$dlname' 4825 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ 4826 dlpath=$dir/\$dldll~ 4827 $rm \$dlpath' 4828 ;; 4829 yes,mingw*) 4830 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' 4831 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"` 4832 ;; 4833 yes,pw32*) 4834 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll' 4835 ;; 4836 *) 4837 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' 4838 ;; 4839 esac 4840 dynamic_linker='Win32 ld.exe' 4841 # FIXME: first we should search . and the directory the executable is in 4842 shlibpath_var=PATH 4843 ;; 4844 4845 darwin* | rhapsody*) 4846 dynamic_linker="$host_os dyld" 4847 version_type=darwin 4848 need_lib_prefix=no 4849 need_version=no 4850 # FIXME: Relying on posixy $() will cause problems for 4851 # cross-compilation, but unfortunately the echo tests do not 4852 # yet detect zsh echo's removal of \ escapes. 4853 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)' 4854 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' 4855 shlibpath_overrides_runpath=yes 4856 shlibpath_var=DYLD_LIBRARY_PATH 4857 ;; 4858 4859 freebsd1*) 4860 dynamic_linker=no 4861 ;; 4862 4863 freebsd*) 4864 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 4865 version_type=freebsd-$objformat 4866 case $version_type in 4867 freebsd-elf*) 4868 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' 4869 need_version=no 4870 need_lib_prefix=no 4871 ;; 4872 freebsd-*) 4873 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' 4874 need_version=yes 4875 ;; 4876 esac 4877 shlibpath_var=LD_LIBRARY_PATH 4878 case $host_os in 4879 freebsd2*) 4880 shlibpath_overrides_runpath=yes 4881 ;; 4882 *) 4883 shlibpath_overrides_runpath=no 4884 hardcode_into_libs=yes 4885 ;; 4886 esac 4887 ;; 4888 4889 gnu*) 4890 version_type=linux 4891 need_lib_prefix=no 4892 need_version=no 4893 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' 4894 soname_spec='${libname}${release}.so$major' 4895 shlibpath_var=LD_LIBRARY_PATH 4896 hardcode_into_libs=yes 4897 ;; 4898 4899 hpux9* | hpux10* | hpux11*) 4900 # Give a soname corresponding to the major version so that dld.sl refuses to 4901 # link against other versions. 4902 dynamic_linker="$host_os dld.sl" 4903 version_type=sunos 4904 need_lib_prefix=no 4905 need_version=no 4906 shlibpath_var=SHLIB_PATH 4907 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 4908 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' 4909 soname_spec='${libname}${release}.sl$major' 4910 # HP-UX runs *really* slowly unless shared libraries are mode 555. 4911 postinstall_cmds='chmod 555 $lib' 4912 ;; 4913 4914 irix5* | irix6* | nonstopux*) 4915 case $host_os in 4916 nonstopux*) version_type=nonstopux ;; 4917 *) version_type=irix ;; 4918 esac 4919 need_lib_prefix=no 4920 need_version=no 4921 soname_spec='${libname}${release}.so$major' 4922 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' 4923 case $host_os in 4924 irix5* | nonstopux*) 4925 libsuff= shlibsuff= 4926 ;; 4927 *) 4928 case $LD in # libtool.m4 will add one of these switches to LD 4929 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; 4930 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; 4931 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; 4932 *) libsuff= shlibsuff= libmagic=never-match;; 4933 esac 4934 ;; 4935 esac 4936 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 4937 shlibpath_overrides_runpath=no 4938 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 4939 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 4940 ;; 4941 4942 # No shared lib support for Linux oldld, aout, or coff. 4943 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*) 4944 dynamic_linker=no 4945 ;; 4946 4947 # This must be Linux ELF. 4948 linux-gnu*) 4949 version_type=linux 4950 need_lib_prefix=no 4951 need_version=no 4952 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 4953 soname_spec='${libname}${release}.so$major' 4954 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 4955 shlibpath_var=LD_LIBRARY_PATH 4956 shlibpath_overrides_runpath=no 4957 # This implies no fast_install, which is unacceptable. 4958 # Some rework will be needed to allow for fast_install 4959 # before this can be enabled. 4960 hardcode_into_libs=yes 4961 4962 # We used to test for /lib/ld.so.1 and disable shared libraries on 4963 # powerpc, because MkLinux only supported shared libraries with the 4964 # GNU dynamic linker. Since this was broken with cross compilers, 4965 # most powerpc-linux boxes support dynamic linking these days and 4966 # people can always --disable-shared, the test was removed, and we 4967 # assume the GNU/Linux dynamic linker is in use. 4968 dynamic_linker='GNU/Linux ld.so' 4969 4970 # Find out which ABI we are using (multilib Linux x86_64 hack). 4971 libsuff= 4972 case "$host_cpu" in 4973 x86_64*|s390x*) 4974 echo '#line 4975 "configure"' > conftest.$ac_ext 4975 if { (eval echo configure:4976: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4976 case `/usr/bin/file conftest.$ac_objext` in 4977 *64-bit*) 4978 libsuff=64 4979 ;; 4980 esac 4981 fi 4982 rm -rf conftest* 4983 ;; 4984 *) 4985 ;; 4986 esac 4987 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" 4988 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 4989 ;; 4990 4991 netbsd*) 4992 version_type=sunos 4993 need_lib_prefix=no 4994 need_version=no 4995 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 4996 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' 4997 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 4998 dynamic_linker='NetBSD (a.out) ld.so' 4999 else 5000 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' 5001 soname_spec='${libname}${release}.so$major' 5002 dynamic_linker='NetBSD ld.elf_so' 5003 fi 5004 shlibpath_var=LD_LIBRARY_PATH 5005 shlibpath_overrides_runpath=yes 5006 hardcode_into_libs=yes 5007 ;; 5008 5009 newsos6) 5010 version_type=linux 5011 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 5012 shlibpath_var=LD_LIBRARY_PATH 5013 shlibpath_overrides_runpath=yes 5014 ;; 5015 5016 openbsd*) 5017 version_type=sunos 5018 need_lib_prefix=no 5019 need_version=no 5020 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5021 case "$host_os" in 5022 openbsd2.[89] | openbsd2.[89].*) 5023 shlibpath_overrides_runpath=no 5024 ;; 5025 *) 5026 shlibpath_overrides_runpath=yes 5027 ;; 5028 esac 5029 else 5030 shlibpath_overrides_runpath=yes 5031 fi 5032 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'