configure revision 61234c2c
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.65 for libX11 1.3.5. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, 10# Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94case $0 in #(( 95 *[\\/]* ) as_myself=$0 ;; 96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 97for as_dir in $PATH 98do 99 IFS=$as_save_IFS 100 test -z "$as_dir" && as_dir=. 101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 102 done 103IFS=$as_save_IFS 104 105 ;; 106esac 107# We did not find ourselves, most probably we were run as `sh COMMAND' 108# in which case we are not to be found in the path. 109if test "x$as_myself" = x; then 110 as_myself=$0 111fi 112if test ! -f "$as_myself"; then 113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 114 exit 1 115fi 116 117# Unset variables that we do not need and which cause bugs (e.g. in 118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 119# suppresses any "Segmentation fault" message there. '((' could 120# trigger a bug in pdksh 5.2.14. 121for as_var in BASH_ENV ENV MAIL MAILPATH 122do eval test x\${$as_var+set} = xset \ 123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 124done 125PS1='$ ' 126PS2='> ' 127PS4='+ ' 128 129# NLS nuisances. 130LC_ALL=C 131export LC_ALL 132LANGUAGE=C 133export LANGUAGE 134 135# CDPATH. 136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 137 138if test "x$CONFIG_SHELL" = x; then 139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 140 emulate sh 141 NULLCMD=: 142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 143 # is contrary to our usage. Disable this feature. 144 alias -g '\${1+\"\$@\"}'='\"\$@\"' 145 setopt NO_GLOB_SUBST 146else 147 case \`(set -o) 2>/dev/null\` in #( 148 *posix*) : 149 set -o posix ;; #( 150 *) : 151 ;; 152esac 153fi 154" 155 as_required="as_fn_return () { (exit \$1); } 156as_fn_success () { as_fn_return 0; } 157as_fn_failure () { as_fn_return 1; } 158as_fn_ret_success () { return 0; } 159as_fn_ret_failure () { return 1; } 160 161exitcode=0 162as_fn_success || { exitcode=1; echo as_fn_success failed.; } 163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 167 168else 169 exitcode=1; echo positional parameters were not saved. 170fi 171test x\$exitcode = x0 || exit 1" 172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 176test \$(( 1 + 1 )) = 2 || exit 1" 177 if (eval "$as_required") 2>/dev/null; then : 178 as_have_required=yes 179else 180 as_have_required=no 181fi 182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 183 184else 185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 186as_found=false 187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 188do 189 IFS=$as_save_IFS 190 test -z "$as_dir" && as_dir=. 191 as_found=: 192 case $as_dir in #( 193 /*) 194 for as_base in sh bash ksh sh5; do 195 # Try only shells that exist, to save several forks. 196 as_shell=$as_dir/$as_base 197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 199 CONFIG_SHELL=$as_shell as_have_required=yes 200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 201 break 2 202fi 203fi 204 done;; 205 esac 206 as_found=false 207done 208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 210 CONFIG_SHELL=$SHELL as_have_required=yes 211fi; } 212IFS=$as_save_IFS 213 214 215 if test "x$CONFIG_SHELL" != x; then : 216 # We cannot yet assume a decent shell, so we have to provide a 217 # neutralization value for shells without unset; and this also 218 # works around shells that cannot unset nonexistent variables. 219 BASH_ENV=/dev/null 220 ENV=/dev/null 221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 222 export CONFIG_SHELL 223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 224fi 225 226 if test x$as_have_required = xno; then : 227 $as_echo "$0: This script requires a shell more modern than all" 228 $as_echo "$0: the shells that I found on your system." 229 if test x${ZSH_VERSION+set} = xset ; then 230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 231 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 232 else 233 $as_echo "$0: Please tell bug-autoconf@gnu.org and 234$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 235$0: about your system, including any error possibly output 236$0: before this message. Then install a modern shell, or 237$0: manually run the script under such a shell if you do 238$0: have one." 239 fi 240 exit 1 241fi 242fi 243fi 244SHELL=${CONFIG_SHELL-/bin/sh} 245export SHELL 246# Unset more variables known to interfere with behavior of common tools. 247CLICOLOR_FORCE= GREP_OPTIONS= 248unset CLICOLOR_FORCE GREP_OPTIONS 249 250## --------------------- ## 251## M4sh Shell Functions. ## 252## --------------------- ## 253# as_fn_unset VAR 254# --------------- 255# Portably unset VAR. 256as_fn_unset () 257{ 258 { eval $1=; unset $1;} 259} 260as_unset=as_fn_unset 261 262# as_fn_set_status STATUS 263# ----------------------- 264# Set $? to STATUS, without forking. 265as_fn_set_status () 266{ 267 return $1 268} # as_fn_set_status 269 270# as_fn_exit STATUS 271# ----------------- 272# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 273as_fn_exit () 274{ 275 set +e 276 as_fn_set_status $1 277 exit $1 278} # as_fn_exit 279 280# as_fn_mkdir_p 281# ------------- 282# Create "$as_dir" as a directory, including parents if necessary. 283as_fn_mkdir_p () 284{ 285 286 case $as_dir in #( 287 -*) as_dir=./$as_dir;; 288 esac 289 test -d "$as_dir" || eval $as_mkdir_p || { 290 as_dirs= 291 while :; do 292 case $as_dir in #( 293 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 294 *) as_qdir=$as_dir;; 295 esac 296 as_dirs="'$as_qdir' $as_dirs" 297 as_dir=`$as_dirname -- "$as_dir" || 298$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 299 X"$as_dir" : 'X\(//\)[^/]' \| \ 300 X"$as_dir" : 'X\(//\)$' \| \ 301 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 302$as_echo X"$as_dir" | 303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 304 s//\1/ 305 q 306 } 307 /^X\(\/\/\)[^/].*/{ 308 s//\1/ 309 q 310 } 311 /^X\(\/\/\)$/{ 312 s//\1/ 313 q 314 } 315 /^X\(\/\).*/{ 316 s//\1/ 317 q 318 } 319 s/.*/./; q'` 320 test -d "$as_dir" && break 321 done 322 test -z "$as_dirs" || eval "mkdir $as_dirs" 323 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 324 325 326} # as_fn_mkdir_p 327# as_fn_append VAR VALUE 328# ---------------------- 329# Append the text in VALUE to the end of the definition contained in VAR. Take 330# advantage of any shell optimizations that allow amortized linear growth over 331# repeated appends, instead of the typical quadratic growth present in naive 332# implementations. 333if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 334 eval 'as_fn_append () 335 { 336 eval $1+=\$2 337 }' 338else 339 as_fn_append () 340 { 341 eval $1=\$$1\$2 342 } 343fi # as_fn_append 344 345# as_fn_arith ARG... 346# ------------------ 347# Perform arithmetic evaluation on the ARGs, and store the result in the 348# global $as_val. Take advantage of shells that can avoid forks. The arguments 349# must be portable across $(()) and expr. 350if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 351 eval 'as_fn_arith () 352 { 353 as_val=$(( $* )) 354 }' 355else 356 as_fn_arith () 357 { 358 as_val=`expr "$@" || test $? -eq 1` 359 } 360fi # as_fn_arith 361 362 363# as_fn_error ERROR [LINENO LOG_FD] 364# --------------------------------- 365# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 366# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 367# script with status $?, using 1 if that was 0. 368as_fn_error () 369{ 370 as_status=$?; test $as_status -eq 0 && as_status=1 371 if test "$3"; then 372 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 373 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 374 fi 375 $as_echo "$as_me: error: $1" >&2 376 as_fn_exit $as_status 377} # as_fn_error 378 379if expr a : '\(a\)' >/dev/null 2>&1 && 380 test "X`expr 00001 : '.*\(...\)'`" = X001; then 381 as_expr=expr 382else 383 as_expr=false 384fi 385 386if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 387 as_basename=basename 388else 389 as_basename=false 390fi 391 392if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 393 as_dirname=dirname 394else 395 as_dirname=false 396fi 397 398as_me=`$as_basename -- "$0" || 399$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 400 X"$0" : 'X\(//\)$' \| \ 401 X"$0" : 'X\(/\)' \| . 2>/dev/null || 402$as_echo X/"$0" | 403 sed '/^.*\/\([^/][^/]*\)\/*$/{ 404 s//\1/ 405 q 406 } 407 /^X\/\(\/\/\)$/{ 408 s//\1/ 409 q 410 } 411 /^X\/\(\/\).*/{ 412 s//\1/ 413 q 414 } 415 s/.*/./; q'` 416 417# Avoid depending upon Character Ranges. 418as_cr_letters='abcdefghijklmnopqrstuvwxyz' 419as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 420as_cr_Letters=$as_cr_letters$as_cr_LETTERS 421as_cr_digits='0123456789' 422as_cr_alnum=$as_cr_Letters$as_cr_digits 423 424 425 as_lineno_1=$LINENO as_lineno_1a=$LINENO 426 as_lineno_2=$LINENO as_lineno_2a=$LINENO 427 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 428 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 429 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 430 sed -n ' 431 p 432 /[$]LINENO/= 433 ' <$as_myself | 434 sed ' 435 s/[$]LINENO.*/&-/ 436 t lineno 437 b 438 :lineno 439 N 440 :loop 441 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 442 t loop 443 s/-\n.*// 444 ' >$as_me.lineno && 445 chmod +x "$as_me.lineno" || 446 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 447 448 # Don't try to exec as it changes $[0], causing all sort of problems 449 # (the dirname of $[0] is not the place where we might find the 450 # original and so on. Autoconf is especially sensitive to this). 451 . "./$as_me.lineno" 452 # Exit status is that of the last command. 453 exit 454} 455 456ECHO_C= ECHO_N= ECHO_T= 457case `echo -n x` in #((((( 458-n*) 459 case `echo 'xy\c'` in 460 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 461 xy) ECHO_C='\c';; 462 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 463 ECHO_T=' ';; 464 esac;; 465*) 466 ECHO_N='-n';; 467esac 468 469rm -f conf$$ conf$$.exe conf$$.file 470if test -d conf$$.dir; then 471 rm -f conf$$.dir/conf$$.file 472else 473 rm -f conf$$.dir 474 mkdir conf$$.dir 2>/dev/null 475fi 476if (echo >conf$$.file) 2>/dev/null; then 477 if ln -s conf$$.file conf$$ 2>/dev/null; then 478 as_ln_s='ln -s' 479 # ... but there are two gotchas: 480 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 481 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 482 # In both cases, we have to default to `cp -p'. 483 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 484 as_ln_s='cp -p' 485 elif ln conf$$.file conf$$ 2>/dev/null; then 486 as_ln_s=ln 487 else 488 as_ln_s='cp -p' 489 fi 490else 491 as_ln_s='cp -p' 492fi 493rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 494rmdir conf$$.dir 2>/dev/null 495 496if mkdir -p . 2>/dev/null; then 497 as_mkdir_p='mkdir -p "$as_dir"' 498else 499 test -d ./-p && rmdir ./-p 500 as_mkdir_p=false 501fi 502 503if test -x / >/dev/null 2>&1; then 504 as_test_x='test -x' 505else 506 if ls -dL / >/dev/null 2>&1; then 507 as_ls_L_option=L 508 else 509 as_ls_L_option= 510 fi 511 as_test_x=' 512 eval sh -c '\'' 513 if test -d "$1"; then 514 test -d "$1/."; 515 else 516 case $1 in #( 517 -*)set "./$1";; 518 esac; 519 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 520 ???[sx]*):;;*)false;;esac;fi 521 '\'' sh 522 ' 523fi 524as_executable_p=$as_test_x 525 526# Sed expression to map a string onto a valid CPP name. 527as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 528 529# Sed expression to map a string onto a valid variable name. 530as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 531 532 533 534# Check that we are running under the correct shell. 535SHELL=${CONFIG_SHELL-/bin/sh} 536 537case X$lt_ECHO in 538X*--fallback-echo) 539 # Remove one level of quotation (which was required for Make). 540 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` 541 ;; 542esac 543 544ECHO=${lt_ECHO-echo} 545if test "X$1" = X--no-reexec; then 546 # Discard the --no-reexec flag, and continue. 547 shift 548elif test "X$1" = X--fallback-echo; then 549 # Avoid inline document here, it may be left over 550 : 551elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 552 # Yippee, $ECHO works! 553 : 554else 555 # Restart under the correct shell. 556 exec $SHELL "$0" --no-reexec ${1+"$@"} 557fi 558 559if test "X$1" = X--fallback-echo; then 560 # used as fallback echo 561 shift 562 cat <<_LT_EOF 563$* 564_LT_EOF 565 exit 0 566fi 567 568# The HP-UX ksh and POSIX shell print the target directory to stdout 569# if CDPATH is set. 570(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 571 572if test -z "$lt_ECHO"; then 573 if test "X${echo_test_string+set}" != Xset; then 574 # find a string as large as possible, as long as the shell can cope with it 575 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 576 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 577 if { echo_test_string=`eval $cmd`; } 2>/dev/null && 578 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 579 then 580 break 581 fi 582 done 583 fi 584 585 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 586 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 587 test "X$echo_testing_string" = "X$echo_test_string"; then 588 : 589 else 590 # The Solaris, AIX, and Digital Unix default echo programs unquote 591 # backslashes. This makes it impossible to quote backslashes using 592 # echo "$something" | sed 's/\\/\\\\/g' 593 # 594 # So, first we look for a working echo in the user's PATH. 595 596 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 597 for dir in $PATH /usr/ucb; do 598 IFS="$lt_save_ifs" 599 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 600 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 601 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 602 test "X$echo_testing_string" = "X$echo_test_string"; then 603 ECHO="$dir/echo" 604 break 605 fi 606 done 607 IFS="$lt_save_ifs" 608 609 if test "X$ECHO" = Xecho; then 610 # We didn't find a better echo, so look for alternatives. 611 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 612 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 613 test "X$echo_testing_string" = "X$echo_test_string"; then 614 # This shell has a builtin print -r that does the trick. 615 ECHO='print -r' 616 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 617 test "X$CONFIG_SHELL" != X/bin/ksh; then 618 # If we have ksh, try running configure again with it. 619 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 620 export ORIGINAL_CONFIG_SHELL 621 CONFIG_SHELL=/bin/ksh 622 export CONFIG_SHELL 623 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 624 else 625 # Try using printf. 626 ECHO='printf %s\n' 627 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 628 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 629 test "X$echo_testing_string" = "X$echo_test_string"; then 630 # Cool, printf works 631 : 632 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 633 test "X$echo_testing_string" = 'X\t' && 634 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 635 test "X$echo_testing_string" = "X$echo_test_string"; then 636 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 637 export CONFIG_SHELL 638 SHELL="$CONFIG_SHELL" 639 export SHELL 640 ECHO="$CONFIG_SHELL $0 --fallback-echo" 641 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 642 test "X$echo_testing_string" = 'X\t' && 643 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 644 test "X$echo_testing_string" = "X$echo_test_string"; then 645 ECHO="$CONFIG_SHELL $0 --fallback-echo" 646 else 647 # maybe with a smaller string... 648 prev=: 649 650 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 651 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 652 then 653 break 654 fi 655 prev="$cmd" 656 done 657 658 if test "$prev" != 'sed 50q "$0"'; then 659 echo_test_string=`eval $prev` 660 export echo_test_string 661 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 662 else 663 # Oops. We lost completely, so just stick with echo. 664 ECHO=echo 665 fi 666 fi 667 fi 668 fi 669 fi 670fi 671 672# Copy echo and quote the copy suitably for passing to libtool from 673# the Makefile, instead of quoting the original, which is used later. 674lt_ECHO=$ECHO 675if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 676 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 677fi 678 679 680 681 682test -n "$DJDIR" || exec 7<&0 </dev/null 683exec 6>&1 684 685# Name of the host. 686# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 687# so uname gets run too. 688ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 689 690# 691# Initializations. 692# 693ac_default_prefix=/usr/local 694ac_clean_files= 695ac_config_libobj_dir=. 696LIBOBJS= 697cross_compiling=no 698subdirs= 699MFLAGS= 700MAKEFLAGS= 701 702# Identity of this package. 703PACKAGE_NAME='libX11' 704PACKAGE_TARNAME='libX11' 705PACKAGE_VERSION='1.3.5' 706PACKAGE_STRING='libX11 1.3.5' 707PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 708PACKAGE_URL='' 709 710ac_unique_file="Makefile.am" 711# Factoring default headers for most tests. 712ac_includes_default="\ 713#include <stdio.h> 714#ifdef HAVE_SYS_TYPES_H 715# include <sys/types.h> 716#endif 717#ifdef HAVE_SYS_STAT_H 718# include <sys/stat.h> 719#endif 720#ifdef STDC_HEADERS 721# include <stdlib.h> 722# include <stddef.h> 723#else 724# ifdef HAVE_STDLIB_H 725# include <stdlib.h> 726# endif 727#endif 728#ifdef HAVE_STRING_H 729# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 730# include <memory.h> 731# endif 732# include <string.h> 733#endif 734#ifdef HAVE_STRINGS_H 735# include <strings.h> 736#endif 737#ifdef HAVE_INTTYPES_H 738# include <inttypes.h> 739#endif 740#ifdef HAVE_STDINT_H 741# include <stdint.h> 742#endif 743#ifdef HAVE_UNISTD_H 744# include <unistd.h> 745#endif" 746 747ac_header_list= 748ac_subst_vars='am__EXEEXT_FALSE 749am__EXEEXT_TRUE 750LTLIBOBJS 751LIBOBJS 752XTMALLOC_ZERO_CFLAGS 753XMALLOC_ZERO_CFLAGS 754MALLOC_ZERO_CFLAGS 755XERRORDB 756XKEYSYMDB 757X11_LOCALEDIR 758XLOCALEDIR 759X11_LOCALELIBDIR 760XLOCALELIBDIR 761X11_LOCALEDATADIR 762XLOCALEDATADIR 763X11_LIBS 764X11_CFLAGS 765X11_LIBDIR 766X11_DATADIR 767MAKE_LINT_LIB_FALSE 768MAKE_LINT_LIB_TRUE 769LINTLIB 770LINT_FALSE 771LINT_TRUE 772LINT_FLAGS 773LINT 774XKBPROTO_REQUIRES 775XKB_FALSE 776XKB_TRUE 777MANPAGES_FALSE 778MANPAGES_TRUE 779BIGFONT_LIBS 780BIGFONT_CFLAGS 781XLOCALE_FALSE 782XLOCALE_TRUE 783XCMS_FALSE 784XCMS_TRUE 785UDC_FALSE 786UDC_TRUE 787KEYSYMDEF 788XTHREAD_CFLAGS 789XTHREADLIB 790THRSTUBS_FALSE 791THRSTUBS_TRUE 792LAUNCHD 793OS2_FALSE 794OS2_TRUE 795WCHAR32 796XLIB_LOADABLE_I18N_FALSE 797XLIB_LOADABLE_I18N_TRUE 798I18N_MODULE_LIBS 799X11_EXTRA_DEPS 800XDMCP_LIBS 801XDMCP_CFLAGS 802XCB_FALSE 803XCB_TRUE 804HAVE_PERL_FALSE 805HAVE_PERL_TRUE 806PERL 807RAWCPPFLAGS 808RAWCPP 809LDFLAGS_FOR_BUILD 810CFLAGS_FOR_BUILD 811CPPFLAGS_FOR_BUILD 812CC_FOR_BUILD 813LTCXXCOMPILE 814LTCOMPILE 815DOLT_BASH 816OTOOL64 817OTOOL 818LIPO 819NMEDIT 820DSYMUTIL 821lt_ECHO 822RANLIB 823AR 824OBJDUMP 825LN_S 826NM 827ac_ct_DUMPBIN 828DUMPBIN 829LD 830FGREP 831LIBTOOL 832HAVE_PS2PDF_FALSE 833HAVE_PS2PDF_TRUE 834PS2PDF 835HAVE_GROFF_HTML_FALSE 836HAVE_GROFF_HTML_TRUE 837HAVE_GROFF_MM_FALSE 838HAVE_GROFF_MM_TRUE 839HAVE_GROFF_MS_FALSE 840HAVE_GROFF_MS_TRUE 841HAVE_GROFF_FALSE 842HAVE_GROFF_TRUE 843PSSELECT_PATH 844PNMTOPNG_PATH 845GS_PATH 846GROFF 847ENABLE_SPECS_FALSE 848ENABLE_SPECS_TRUE 849AM_BACKSLASH 850AM_DEFAULT_VERBOSITY 851MAN_SUBSTS 852XORG_MAN_PAGE 853ADMIN_MAN_DIR 854DRIVER_MAN_DIR 855MISC_MAN_DIR 856FILE_MAN_DIR 857LIB_MAN_DIR 858APP_MAN_DIR 859ADMIN_MAN_SUFFIX 860DRIVER_MAN_SUFFIX 861MISC_MAN_SUFFIX 862FILE_MAN_SUFFIX 863LIB_MAN_SUFFIX 864APP_MAN_SUFFIX 865SED 866INSTALL_CMD 867PKG_CONFIG 868CHANGELOG_CMD 869CWARNFLAGS 870EGREP 871GREP 872CPP 873am__fastdepCC_FALSE 874am__fastdepCC_TRUE 875CCDEPMODE 876AMDEPBACKSLASH 877AMDEP_FALSE 878AMDEP_TRUE 879am__quote 880am__include 881DEPDIR 882OBJEXT 883EXEEXT 884ac_ct_CC 885CPPFLAGS 886LDFLAGS 887CFLAGS 888CC 889MAINT 890MAINTAINER_MODE_FALSE 891MAINTAINER_MODE_TRUE 892am__untar 893am__tar 894AMTAR 895am__leading_dot 896SET_MAKE 897AWK 898mkdir_p 899MKDIR_P 900INSTALL_STRIP_PROGRAM 901STRIP 902install_sh 903MAKEINFO 904AUTOHEADER 905AUTOMAKE 906AUTOCONF 907ACLOCAL 908VERSION 909PACKAGE 910CYGPATH_W 911am__isrc 912INSTALL_DATA 913INSTALL_SCRIPT 914INSTALL_PROGRAM 915host_os 916host_vendor 917host_cpu 918host 919build_os 920build_vendor 921build_cpu 922build 923target_alias 924host_alias 925build_alias 926LIBS 927ECHO_T 928ECHO_N 929ECHO_C 930DEFS 931mandir 932localedir 933libdir 934psdir 935pdfdir 936dvidir 937htmldir 938infodir 939docdir 940oldincludedir 941includedir 942localstatedir 943sharedstatedir 944sysconfdir 945datadir 946datarootdir 947libexecdir 948sbindir 949bindir 950program_transform_name 951prefix 952exec_prefix 953PACKAGE_URL 954PACKAGE_BUGREPORT 955PACKAGE_STRING 956PACKAGE_VERSION 957PACKAGE_TARNAME 958PACKAGE_NAME 959PATH_SEPARATOR 960SHELL' 961ac_subst_files='' 962ac_user_opts=' 963enable_option_checking 964enable_maintainer_mode 965enable_dependency_tracking 966enable_strict_compilation 967enable_silent_rules 968enable_specs 969with_groff 970with_ps2pdf 971enable_shared 972enable_static 973with_pic 974enable_fast_install 975with_gnu_ld 976enable_libtool_lock 977with_perl 978with_xcb 979enable_unix_transport 980enable_tcp_transport 981enable_ipv6 982enable_local_transport 983enable_secure_rpc 984with_local_transport_order 985enable_loadable_i18n 986enable_loadable_xcursor 987with_launchd 988enable_xthreads 989enable_xcms 990enable_xlocale 991enable_xlocaledir 992enable_xf86bigfont 993enable_xkb 994enable_man_pages 995enable_composecache 996with_lint 997enable_lint_library 998with_locale_lib_dir 999enable_malloc0returnsnull 1000' 1001 ac_precious_vars='build_alias 1002host_alias 1003target_alias 1004CC 1005CFLAGS 1006LDFLAGS 1007LIBS 1008CPPFLAGS 1009CPP 1010PKG_CONFIG 1011GROFF 1012PS2PDF 1013XDMCP_CFLAGS 1014XDMCP_LIBS 1015BIGFONT_CFLAGS 1016BIGFONT_LIBS 1017LINT 1018LINT_FLAGS 1019X11_CFLAGS 1020X11_LIBS' 1021 1022 1023# Initialize some variables set by options. 1024ac_init_help= 1025ac_init_version=false 1026ac_unrecognized_opts= 1027ac_unrecognized_sep= 1028# The variables have the same names as the options, with 1029# dashes changed to underlines. 1030cache_file=/dev/null 1031exec_prefix=NONE 1032no_create= 1033no_recursion= 1034prefix=NONE 1035program_prefix=NONE 1036program_suffix=NONE 1037program_transform_name=s,x,x, 1038silent= 1039site= 1040srcdir= 1041verbose= 1042x_includes=NONE 1043x_libraries=NONE 1044 1045# Installation directory options. 1046# These are left unexpanded so users can "make install exec_prefix=/foo" 1047# and all the variables that are supposed to be based on exec_prefix 1048# by default will actually change. 1049# Use braces instead of parens because sh, perl, etc. also accept them. 1050# (The list follows the same order as the GNU Coding Standards.) 1051bindir='${exec_prefix}/bin' 1052sbindir='${exec_prefix}/sbin' 1053libexecdir='${exec_prefix}/libexec' 1054datarootdir='${prefix}/share' 1055datadir='${datarootdir}' 1056sysconfdir='${prefix}/etc' 1057sharedstatedir='${prefix}/com' 1058localstatedir='${prefix}/var' 1059includedir='${prefix}/include' 1060oldincludedir='/usr/include' 1061docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1062infodir='${datarootdir}/info' 1063htmldir='${docdir}' 1064dvidir='${docdir}' 1065pdfdir='${docdir}' 1066psdir='${docdir}' 1067libdir='${exec_prefix}/lib' 1068localedir='${datarootdir}/locale' 1069mandir='${datarootdir}/man' 1070 1071ac_prev= 1072ac_dashdash= 1073for ac_option 1074do 1075 # If the previous option needs an argument, assign it. 1076 if test -n "$ac_prev"; then 1077 eval $ac_prev=\$ac_option 1078 ac_prev= 1079 continue 1080 fi 1081 1082 case $ac_option in 1083 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1084 *) ac_optarg=yes ;; 1085 esac 1086 1087 # Accept the important Cygnus configure options, so we can diagnose typos. 1088 1089 case $ac_dashdash$ac_option in 1090 --) 1091 ac_dashdash=yes ;; 1092 1093 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1094 ac_prev=bindir ;; 1095 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1096 bindir=$ac_optarg ;; 1097 1098 -build | --build | --buil | --bui | --bu) 1099 ac_prev=build_alias ;; 1100 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1101 build_alias=$ac_optarg ;; 1102 1103 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1104 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1105 ac_prev=cache_file ;; 1106 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1107 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1108 cache_file=$ac_optarg ;; 1109 1110 --config-cache | -C) 1111 cache_file=config.cache ;; 1112 1113 -datadir | --datadir | --datadi | --datad) 1114 ac_prev=datadir ;; 1115 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1116 datadir=$ac_optarg ;; 1117 1118 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1119 | --dataroo | --dataro | --datar) 1120 ac_prev=datarootdir ;; 1121 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1122 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1123 datarootdir=$ac_optarg ;; 1124 1125 -disable-* | --disable-*) 1126 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1127 # Reject names that are not valid shell variable names. 1128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1129 as_fn_error "invalid feature name: $ac_useropt" 1130 ac_useropt_orig=$ac_useropt 1131 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1132 case $ac_user_opts in 1133 *" 1134"enable_$ac_useropt" 1135"*) ;; 1136 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1137 ac_unrecognized_sep=', ';; 1138 esac 1139 eval enable_$ac_useropt=no ;; 1140 1141 -docdir | --docdir | --docdi | --doc | --do) 1142 ac_prev=docdir ;; 1143 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1144 docdir=$ac_optarg ;; 1145 1146 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1147 ac_prev=dvidir ;; 1148 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1149 dvidir=$ac_optarg ;; 1150 1151 -enable-* | --enable-*) 1152 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1153 # Reject names that are not valid shell variable names. 1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1155 as_fn_error "invalid feature name: $ac_useropt" 1156 ac_useropt_orig=$ac_useropt 1157 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1158 case $ac_user_opts in 1159 *" 1160"enable_$ac_useropt" 1161"*) ;; 1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1163 ac_unrecognized_sep=', ';; 1164 esac 1165 eval enable_$ac_useropt=\$ac_optarg ;; 1166 1167 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1168 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1169 | --exec | --exe | --ex) 1170 ac_prev=exec_prefix ;; 1171 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1172 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1173 | --exec=* | --exe=* | --ex=*) 1174 exec_prefix=$ac_optarg ;; 1175 1176 -gas | --gas | --ga | --g) 1177 # Obsolete; use --with-gas. 1178 with_gas=yes ;; 1179 1180 -help | --help | --hel | --he | -h) 1181 ac_init_help=long ;; 1182 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1183 ac_init_help=recursive ;; 1184 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1185 ac_init_help=short ;; 1186 1187 -host | --host | --hos | --ho) 1188 ac_prev=host_alias ;; 1189 -host=* | --host=* | --hos=* | --ho=*) 1190 host_alias=$ac_optarg ;; 1191 1192 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1193 ac_prev=htmldir ;; 1194 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1195 | --ht=*) 1196 htmldir=$ac_optarg ;; 1197 1198 -includedir | --includedir | --includedi | --included | --include \ 1199 | --includ | --inclu | --incl | --inc) 1200 ac_prev=includedir ;; 1201 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1202 | --includ=* | --inclu=* | --incl=* | --inc=*) 1203 includedir=$ac_optarg ;; 1204 1205 -infodir | --infodir | --infodi | --infod | --info | --inf) 1206 ac_prev=infodir ;; 1207 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1208 infodir=$ac_optarg ;; 1209 1210 -libdir | --libdir | --libdi | --libd) 1211 ac_prev=libdir ;; 1212 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1213 libdir=$ac_optarg ;; 1214 1215 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1216 | --libexe | --libex | --libe) 1217 ac_prev=libexecdir ;; 1218 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1219 | --libexe=* | --libex=* | --libe=*) 1220 libexecdir=$ac_optarg ;; 1221 1222 -localedir | --localedir | --localedi | --localed | --locale) 1223 ac_prev=localedir ;; 1224 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1225 localedir=$ac_optarg ;; 1226 1227 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1228 | --localstate | --localstat | --localsta | --localst | --locals) 1229 ac_prev=localstatedir ;; 1230 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1231 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1232 localstatedir=$ac_optarg ;; 1233 1234 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1235 ac_prev=mandir ;; 1236 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1237 mandir=$ac_optarg ;; 1238 1239 -nfp | --nfp | --nf) 1240 # Obsolete; use --without-fp. 1241 with_fp=no ;; 1242 1243 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1244 | --no-cr | --no-c | -n) 1245 no_create=yes ;; 1246 1247 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1248 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1249 no_recursion=yes ;; 1250 1251 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1252 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1253 | --oldin | --oldi | --old | --ol | --o) 1254 ac_prev=oldincludedir ;; 1255 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1256 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1257 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1258 oldincludedir=$ac_optarg ;; 1259 1260 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1261 ac_prev=prefix ;; 1262 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1263 prefix=$ac_optarg ;; 1264 1265 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1266 | --program-pre | --program-pr | --program-p) 1267 ac_prev=program_prefix ;; 1268 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1269 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1270 program_prefix=$ac_optarg ;; 1271 1272 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1273 | --program-suf | --program-su | --program-s) 1274 ac_prev=program_suffix ;; 1275 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1276 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1277 program_suffix=$ac_optarg ;; 1278 1279 -program-transform-name | --program-transform-name \ 1280 | --program-transform-nam | --program-transform-na \ 1281 | --program-transform-n | --program-transform- \ 1282 | --program-transform | --program-transfor \ 1283 | --program-transfo | --program-transf \ 1284 | --program-trans | --program-tran \ 1285 | --progr-tra | --program-tr | --program-t) 1286 ac_prev=program_transform_name ;; 1287 -program-transform-name=* | --program-transform-name=* \ 1288 | --program-transform-nam=* | --program-transform-na=* \ 1289 | --program-transform-n=* | --program-transform-=* \ 1290 | --program-transform=* | --program-transfor=* \ 1291 | --program-transfo=* | --program-transf=* \ 1292 | --program-trans=* | --program-tran=* \ 1293 | --progr-tra=* | --program-tr=* | --program-t=*) 1294 program_transform_name=$ac_optarg ;; 1295 1296 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1297 ac_prev=pdfdir ;; 1298 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1299 pdfdir=$ac_optarg ;; 1300 1301 -psdir | --psdir | --psdi | --psd | --ps) 1302 ac_prev=psdir ;; 1303 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1304 psdir=$ac_optarg ;; 1305 1306 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1307 | -silent | --silent | --silen | --sile | --sil) 1308 silent=yes ;; 1309 1310 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1311 ac_prev=sbindir ;; 1312 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1313 | --sbi=* | --sb=*) 1314 sbindir=$ac_optarg ;; 1315 1316 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1317 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1318 | --sharedst | --shareds | --shared | --share | --shar \ 1319 | --sha | --sh) 1320 ac_prev=sharedstatedir ;; 1321 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1322 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1323 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1324 | --sha=* | --sh=*) 1325 sharedstatedir=$ac_optarg ;; 1326 1327 -site | --site | --sit) 1328 ac_prev=site ;; 1329 -site=* | --site=* | --sit=*) 1330 site=$ac_optarg ;; 1331 1332 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1333 ac_prev=srcdir ;; 1334 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1335 srcdir=$ac_optarg ;; 1336 1337 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1338 | --syscon | --sysco | --sysc | --sys | --sy) 1339 ac_prev=sysconfdir ;; 1340 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1341 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1342 sysconfdir=$ac_optarg ;; 1343 1344 -target | --target | --targe | --targ | --tar | --ta | --t) 1345 ac_prev=target_alias ;; 1346 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1347 target_alias=$ac_optarg ;; 1348 1349 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1350 verbose=yes ;; 1351 1352 -version | --version | --versio | --versi | --vers | -V) 1353 ac_init_version=: ;; 1354 1355 -with-* | --with-*) 1356 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1357 # Reject names that are not valid shell variable names. 1358 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1359 as_fn_error "invalid package name: $ac_useropt" 1360 ac_useropt_orig=$ac_useropt 1361 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1362 case $ac_user_opts in 1363 *" 1364"with_$ac_useropt" 1365"*) ;; 1366 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1367 ac_unrecognized_sep=', ';; 1368 esac 1369 eval with_$ac_useropt=\$ac_optarg ;; 1370 1371 -without-* | --without-*) 1372 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1373 # Reject names that are not valid shell variable names. 1374 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1375 as_fn_error "invalid package name: $ac_useropt" 1376 ac_useropt_orig=$ac_useropt 1377 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1378 case $ac_user_opts in 1379 *" 1380"with_$ac_useropt" 1381"*) ;; 1382 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1383 ac_unrecognized_sep=', ';; 1384 esac 1385 eval with_$ac_useropt=no ;; 1386 1387 --x) 1388 # Obsolete; use --with-x. 1389 with_x=yes ;; 1390 1391 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1392 | --x-incl | --x-inc | --x-in | --x-i) 1393 ac_prev=x_includes ;; 1394 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1395 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1396 x_includes=$ac_optarg ;; 1397 1398 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1399 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1400 ac_prev=x_libraries ;; 1401 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1402 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1403 x_libraries=$ac_optarg ;; 1404 1405 -*) as_fn_error "unrecognized option: \`$ac_option' 1406Try \`$0 --help' for more information." 1407 ;; 1408 1409 *=*) 1410 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1411 # Reject names that are not valid shell variable names. 1412 case $ac_envvar in #( 1413 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1414 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1415 esac 1416 eval $ac_envvar=\$ac_optarg 1417 export $ac_envvar ;; 1418 1419 *) 1420 # FIXME: should be removed in autoconf 3.0. 1421 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1422 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1423 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1424 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1425 ;; 1426 1427 esac 1428done 1429 1430if test -n "$ac_prev"; then 1431 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1432 as_fn_error "missing argument to $ac_option" 1433fi 1434 1435if test -n "$ac_unrecognized_opts"; then 1436 case $enable_option_checking in 1437 no) ;; 1438 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1439 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1440 esac 1441fi 1442 1443# Check all directory arguments for consistency. 1444for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1445 datadir sysconfdir sharedstatedir localstatedir includedir \ 1446 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1447 libdir localedir mandir 1448do 1449 eval ac_val=\$$ac_var 1450 # Remove trailing slashes. 1451 case $ac_val in 1452 */ ) 1453 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1454 eval $ac_var=\$ac_val;; 1455 esac 1456 # Be sure to have absolute directory names. 1457 case $ac_val in 1458 [\\/$]* | ?:[\\/]* ) continue;; 1459 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1460 esac 1461 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1462done 1463 1464# There might be people who depend on the old broken behavior: `$host' 1465# used to hold the argument of --host etc. 1466# FIXME: To remove some day. 1467build=$build_alias 1468host=$host_alias 1469target=$target_alias 1470 1471# FIXME: To remove some day. 1472if test "x$host_alias" != x; then 1473 if test "x$build_alias" = x; then 1474 cross_compiling=maybe 1475 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1476 If a cross compiler is detected then cross compile mode will be used." >&2 1477 elif test "x$build_alias" != "x$host_alias"; then 1478 cross_compiling=yes 1479 fi 1480fi 1481 1482ac_tool_prefix= 1483test -n "$host_alias" && ac_tool_prefix=$host_alias- 1484 1485test "$silent" = yes && exec 6>/dev/null 1486 1487 1488ac_pwd=`pwd` && test -n "$ac_pwd" && 1489ac_ls_di=`ls -di .` && 1490ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1491 as_fn_error "working directory cannot be determined" 1492test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1493 as_fn_error "pwd does not report name of working directory" 1494 1495 1496# Find the source files, if location was not specified. 1497if test -z "$srcdir"; then 1498 ac_srcdir_defaulted=yes 1499 # Try the directory containing this script, then the parent directory. 1500 ac_confdir=`$as_dirname -- "$as_myself" || 1501$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1502 X"$as_myself" : 'X\(//\)[^/]' \| \ 1503 X"$as_myself" : 'X\(//\)$' \| \ 1504 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1505$as_echo X"$as_myself" | 1506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1507 s//\1/ 1508 q 1509 } 1510 /^X\(\/\/\)[^/].*/{ 1511 s//\1/ 1512 q 1513 } 1514 /^X\(\/\/\)$/{ 1515 s//\1/ 1516 q 1517 } 1518 /^X\(\/\).*/{ 1519 s//\1/ 1520 q 1521 } 1522 s/.*/./; q'` 1523 srcdir=$ac_confdir 1524 if test ! -r "$srcdir/$ac_unique_file"; then 1525 srcdir=.. 1526 fi 1527else 1528 ac_srcdir_defaulted=no 1529fi 1530if test ! -r "$srcdir/$ac_unique_file"; then 1531 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1532 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1533fi 1534ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1535ac_abs_confdir=`( 1536 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1537 pwd)` 1538# When building in place, set srcdir=. 1539if test "$ac_abs_confdir" = "$ac_pwd"; then 1540 srcdir=. 1541fi 1542# Remove unnecessary trailing slashes from srcdir. 1543# Double slashes in file names in object file debugging info 1544# mess up M-x gdb in Emacs. 1545case $srcdir in 1546*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1547esac 1548for ac_var in $ac_precious_vars; do 1549 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1550 eval ac_env_${ac_var}_value=\$${ac_var} 1551 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1552 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1553done 1554 1555# 1556# Report the --help message. 1557# 1558if test "$ac_init_help" = "long"; then 1559 # Omit some internal or obsolete options to make the list less imposing. 1560 # This message is too long to be a string in the A/UX 3.1 sh. 1561 cat <<_ACEOF 1562\`configure' configures libX11 1.3.5 to adapt to many kinds of systems. 1563 1564Usage: $0 [OPTION]... [VAR=VALUE]... 1565 1566To assign environment variables (e.g., CC, CFLAGS...), specify them as 1567VAR=VALUE. See below for descriptions of some of the useful variables. 1568 1569Defaults for the options are specified in brackets. 1570 1571Configuration: 1572 -h, --help display this help and exit 1573 --help=short display options specific to this package 1574 --help=recursive display the short help of all the included packages 1575 -V, --version display version information and exit 1576 -q, --quiet, --silent do not print \`checking...' messages 1577 --cache-file=FILE cache test results in FILE [disabled] 1578 -C, --config-cache alias for \`--cache-file=config.cache' 1579 -n, --no-create do not create output files 1580 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1581 1582Installation directories: 1583 --prefix=PREFIX install architecture-independent files in PREFIX 1584 [$ac_default_prefix] 1585 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1586 [PREFIX] 1587 1588By default, \`make install' will install all the files in 1589\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1590an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1591for instance \`--prefix=\$HOME'. 1592 1593For better control, use the options below. 1594 1595Fine tuning of the installation directories: 1596 --bindir=DIR user executables [EPREFIX/bin] 1597 --sbindir=DIR system admin executables [EPREFIX/sbin] 1598 --libexecdir=DIR program executables [EPREFIX/libexec] 1599 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1600 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1601 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1602 --libdir=DIR object code libraries [EPREFIX/lib] 1603 --includedir=DIR C header files [PREFIX/include] 1604 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1605 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1606 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1607 --infodir=DIR info documentation [DATAROOTDIR/info] 1608 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1609 --mandir=DIR man documentation [DATAROOTDIR/man] 1610 --docdir=DIR documentation root [DATAROOTDIR/doc/libX11] 1611 --htmldir=DIR html documentation [DOCDIR] 1612 --dvidir=DIR dvi documentation [DOCDIR] 1613 --pdfdir=DIR pdf documentation [DOCDIR] 1614 --psdir=DIR ps documentation [DOCDIR] 1615_ACEOF 1616 1617 cat <<\_ACEOF 1618 1619Program names: 1620 --program-prefix=PREFIX prepend PREFIX to installed program names 1621 --program-suffix=SUFFIX append SUFFIX to installed program names 1622 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1623 1624System types: 1625 --build=BUILD configure for building on BUILD [guessed] 1626 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1627_ACEOF 1628fi 1629 1630if test -n "$ac_init_help"; then 1631 case $ac_init_help in 1632 short | recursive ) echo "Configuration of libX11 1.3.5:";; 1633 esac 1634 cat <<\_ACEOF 1635 1636Optional Features: 1637 --disable-option-checking ignore unrecognized --enable/--with options 1638 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1639 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1640 --enable-maintainer-mode enable make rules and dependencies not useful 1641 (and sometimes confusing) to the casual installer 1642 --disable-dependency-tracking speeds up one-time build 1643 --enable-dependency-tracking do not reject slow dependency extractors 1644 --enable-strict-compilation 1645 Enable all warnings from compiler and make them 1646 errors (default: disabled) 1647 --enable-silent-rules less verbose build output (undo: `make V=1') 1648 --disable-silent-rules verbose build output (undo: `make V=0') 1649 --enable-specs Enable building the specs (default: yes) 1650 --enable-shared[=PKGS] build shared libraries [default=yes] 1651 --enable-static[=PKGS] build static libraries [default=yes] 1652 --enable-fast-install[=PKGS] 1653 optimize for fast installation [default=yes] 1654 --disable-libtool-lock avoid locking (might break parallel builds) 1655 --enable-unix-transport Enable UNIX domain socket transport 1656 --enable-tcp-transport Enable TCP socket transport 1657 --enable-ipv6 Enable IPv6 support 1658 --enable-local-transport 1659 Enable os-specific local transport 1660 --enable-secure-rpc Enable Secure RPC 1661 --enable-loadable-i18n Controls loadable i18n module support 1662 --disable-loadable-xcursor 1663 Controls loadable xcursor library support 1664 --disable-xthreads Disable Xlib support for Multithreading 1665 --disable-xcms Disable Xlib support for CMS *EXPERIMENTAL* 1666 --disable-xlocale Disable Xlib locale implementation *EXPERIMENTAL* 1667 --enable-xlocaledir Enable XLOCALEDIR environment variable support 1668 --disable-xf86bigfont Disable XF86BigFont extension support 1669 --disable-xkb Disable XKB support *EXPERIMENTAL* 1670 --enable-man-pages=section 1671 Choose manual section for installing man pages 1672 --disable-composecache Disable compose table cache support 1673 --enable-lint-library Create lint library (default: disabled) 1674 --enable-malloc0returnsnull 1675 malloc(0) returns NULL (default: auto) 1676 1677Optional Packages: 1678 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1679 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1680 --with-groff Use groff to regenerate documentation (default: yes, 1681 if installed) 1682 --with-ps2pdf Use ps2pdf to regenerate documentation (default: 1683 yes, if installed) 1684 --with-pic try to use only PIC/non-PIC objects [default=use 1685 both] 1686 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1687 --with-perl=<path> path to perl interpreter for build-time tests 1688 --with-xcb use XCB for low-level protocol implementation 1689 --with-local-transport-order=LIST 1690 preference sorted list of transport types to try for 1691 local connections 1692 --with-launchd Build with support for Apple's launchd (default: 1693 auto) 1694 --with-lint Use a lint-style source code checker (default: 1695 disabled) 1696 --with-locale-lib-dir=DIR 1697 Directory where locale libraries files are installed 1698 (default: $libdir/X11/locale) 1699 1700Some influential environment variables: 1701 CC C compiler command 1702 CFLAGS C compiler flags 1703 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1704 nonstandard directory <lib dir> 1705 LIBS libraries to pass to the linker, e.g. -l<library> 1706 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1707 you have headers in a nonstandard directory <include dir> 1708 CPP C preprocessor 1709 PKG_CONFIG path to pkg-config utility 1710 GROFF Path to groff command 1711 PS2PDF Path to ps2pdf command 1712 XDMCP_CFLAGS 1713 C compiler flags for XDMCP, overriding pkg-config 1714 XDMCP_LIBS linker flags for XDMCP, overriding pkg-config 1715 BIGFONT_CFLAGS 1716 C compiler flags for BIGFONT, overriding pkg-config 1717 BIGFONT_LIBS 1718 linker flags for BIGFONT, overriding pkg-config 1719 LINT Path to a lint-style command 1720 LINT_FLAGS Flags for the lint-style command 1721 X11_CFLAGS C compiler flags for X11, overriding pkg-config 1722 X11_LIBS linker flags for X11, overriding pkg-config 1723 1724Use these variables to override the choices made by `configure' or to help 1725it to find libraries and programs with nonstandard names/locations. 1726 1727Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1728_ACEOF 1729ac_status=$? 1730fi 1731 1732if test "$ac_init_help" = "recursive"; then 1733 # If there are subdirs, report their specific --help. 1734 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1735 test -d "$ac_dir" || 1736 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1737 continue 1738 ac_builddir=. 1739 1740case "$ac_dir" in 1741.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1742*) 1743 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1744 # A ".." for each directory in $ac_dir_suffix. 1745 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1746 case $ac_top_builddir_sub in 1747 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1748 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1749 esac ;; 1750esac 1751ac_abs_top_builddir=$ac_pwd 1752ac_abs_builddir=$ac_pwd$ac_dir_suffix 1753# for backward compatibility: 1754ac_top_builddir=$ac_top_build_prefix 1755 1756case $srcdir in 1757 .) # We are building in place. 1758 ac_srcdir=. 1759 ac_top_srcdir=$ac_top_builddir_sub 1760 ac_abs_top_srcdir=$ac_pwd ;; 1761 [\\/]* | ?:[\\/]* ) # Absolute name. 1762 ac_srcdir=$srcdir$ac_dir_suffix; 1763 ac_top_srcdir=$srcdir 1764 ac_abs_top_srcdir=$srcdir ;; 1765 *) # Relative name. 1766 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1767 ac_top_srcdir=$ac_top_build_prefix$srcdir 1768 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1769esac 1770ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1771 1772 cd "$ac_dir" || { ac_status=$?; continue; } 1773 # Check for guested configure. 1774 if test -f "$ac_srcdir/configure.gnu"; then 1775 echo && 1776 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1777 elif test -f "$ac_srcdir/configure"; then 1778 echo && 1779 $SHELL "$ac_srcdir/configure" --help=recursive 1780 else 1781 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1782 fi || ac_status=$? 1783 cd "$ac_pwd" || { ac_status=$?; break; } 1784 done 1785fi 1786 1787test -n "$ac_init_help" && exit $ac_status 1788if $ac_init_version; then 1789 cat <<\_ACEOF 1790libX11 configure 1.3.5 1791generated by GNU Autoconf 2.65 1792 1793Copyright (C) 2009 Free Software Foundation, Inc. 1794This configure script is free software; the Free Software Foundation 1795gives unlimited permission to copy, distribute and modify it. 1796_ACEOF 1797 exit 1798fi 1799 1800## ------------------------ ## 1801## Autoconf initialization. ## 1802## ------------------------ ## 1803 1804# ac_fn_c_try_compile LINENO 1805# -------------------------- 1806# Try to compile conftest.$ac_ext, and return whether this succeeded. 1807ac_fn_c_try_compile () 1808{ 1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1810 rm -f conftest.$ac_objext 1811 if { { ac_try="$ac_compile" 1812case "(($ac_try" in 1813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1814 *) ac_try_echo=$ac_try;; 1815esac 1816eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1817$as_echo "$ac_try_echo"; } >&5 1818 (eval "$ac_compile") 2>conftest.err 1819 ac_status=$? 1820 if test -s conftest.err; then 1821 grep -v '^ *+' conftest.err >conftest.er1 1822 cat conftest.er1 >&5 1823 mv -f conftest.er1 conftest.err 1824 fi 1825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1826 test $ac_status = 0; } && { 1827 test -z "$ac_c_werror_flag" || 1828 test ! -s conftest.err 1829 } && test -s conftest.$ac_objext; then : 1830 ac_retval=0 1831else 1832 $as_echo "$as_me: failed program was:" >&5 1833sed 's/^/| /' conftest.$ac_ext >&5 1834 1835 ac_retval=1 1836fi 1837 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1838 as_fn_set_status $ac_retval 1839 1840} # ac_fn_c_try_compile 1841 1842# ac_fn_c_try_cpp LINENO 1843# ---------------------- 1844# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1845ac_fn_c_try_cpp () 1846{ 1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1848 if { { ac_try="$ac_cpp conftest.$ac_ext" 1849case "(($ac_try" in 1850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1851 *) ac_try_echo=$ac_try;; 1852esac 1853eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1854$as_echo "$ac_try_echo"; } >&5 1855 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1856 ac_status=$? 1857 if test -s conftest.err; then 1858 grep -v '^ *+' conftest.err >conftest.er1 1859 cat conftest.er1 >&5 1860 mv -f conftest.er1 conftest.err 1861 fi 1862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1863 test $ac_status = 0; } >/dev/null && { 1864 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1865 test ! -s conftest.err 1866 }; then : 1867 ac_retval=0 1868else 1869 $as_echo "$as_me: failed program was:" >&5 1870sed 's/^/| /' conftest.$ac_ext >&5 1871 1872 ac_retval=1 1873fi 1874 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1875 as_fn_set_status $ac_retval 1876 1877} # ac_fn_c_try_cpp 1878 1879# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1880# ------------------------------------------------------- 1881# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1882# the include files in INCLUDES and setting the cache variable VAR 1883# accordingly. 1884ac_fn_c_check_header_mongrel () 1885{ 1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1887 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1889$as_echo_n "checking for $2... " >&6; } 1890if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1891 $as_echo_n "(cached) " >&6 1892fi 1893eval ac_res=\$$3 1894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1895$as_echo "$ac_res" >&6; } 1896else 1897 # Is the header compilable? 1898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1899$as_echo_n "checking $2 usability... " >&6; } 1900cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1901/* end confdefs.h. */ 1902$4 1903#include <$2> 1904_ACEOF 1905if ac_fn_c_try_compile "$LINENO"; then : 1906 ac_header_compiler=yes 1907else 1908 ac_header_compiler=no 1909fi 1910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1912$as_echo "$ac_header_compiler" >&6; } 1913 1914# Is the header present? 1915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1916$as_echo_n "checking $2 presence... " >&6; } 1917cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1918/* end confdefs.h. */ 1919#include <$2> 1920_ACEOF 1921if ac_fn_c_try_cpp "$LINENO"; then : 1922 ac_header_preproc=yes 1923else 1924 ac_header_preproc=no 1925fi 1926rm -f conftest.err conftest.$ac_ext 1927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1928$as_echo "$ac_header_preproc" >&6; } 1929 1930# So? What about this header? 1931case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1932 yes:no: ) 1933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1934$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1936$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1937 ;; 1938 no:yes:* ) 1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1940$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1942$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1944$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1946$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1948$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1949( cat <<\_ASBOX 1950## ---------------------------------------------------------------------- ## 1951## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 1952## ---------------------------------------------------------------------- ## 1953_ASBOX 1954 ) | sed "s/^/$as_me: WARNING: /" >&2 1955 ;; 1956esac 1957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1958$as_echo_n "checking for $2... " >&6; } 1959if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1960 $as_echo_n "(cached) " >&6 1961else 1962 eval "$3=\$ac_header_compiler" 1963fi 1964eval ac_res=\$$3 1965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1966$as_echo "$ac_res" >&6; } 1967fi 1968 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1969 1970} # ac_fn_c_check_header_mongrel 1971 1972# ac_fn_c_try_run LINENO 1973# ---------------------- 1974# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1975# that executables *can* be run. 1976ac_fn_c_try_run () 1977{ 1978 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1979 if { { ac_try="$ac_link" 1980case "(($ac_try" in 1981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1982 *) ac_try_echo=$ac_try;; 1983esac 1984eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1985$as_echo "$ac_try_echo"; } >&5 1986 (eval "$ac_link") 2>&5 1987 ac_status=$? 1988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1989 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1990 { { case "(($ac_try" in 1991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1992 *) ac_try_echo=$ac_try;; 1993esac 1994eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1995$as_echo "$ac_try_echo"; } >&5 1996 (eval "$ac_try") 2>&5 1997 ac_status=$? 1998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1999 test $ac_status = 0; }; }; then : 2000 ac_retval=0 2001else 2002 $as_echo "$as_me: program exited with status $ac_status" >&5 2003 $as_echo "$as_me: failed program was:" >&5 2004sed 's/^/| /' conftest.$ac_ext >&5 2005 2006 ac_retval=$ac_status 2007fi 2008 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2009 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2010 as_fn_set_status $ac_retval 2011 2012} # ac_fn_c_try_run 2013 2014# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2015# ------------------------------------------------------- 2016# Tests whether HEADER exists and can be compiled using the include files in 2017# INCLUDES, setting the cache variable VAR accordingly. 2018ac_fn_c_check_header_compile () 2019{ 2020 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2022$as_echo_n "checking for $2... " >&6; } 2023if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2024 $as_echo_n "(cached) " >&6 2025else 2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2027/* end confdefs.h. */ 2028$4 2029#include <$2> 2030_ACEOF 2031if ac_fn_c_try_compile "$LINENO"; then : 2032 eval "$3=yes" 2033else 2034 eval "$3=no" 2035fi 2036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2037fi 2038eval ac_res=\$$3 2039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2040$as_echo "$ac_res" >&6; } 2041 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2042 2043} # ac_fn_c_check_header_compile 2044 2045# ac_fn_c_check_decl LINENO SYMBOL VAR 2046# ------------------------------------ 2047# Tests whether SYMBOL is declared, setting cache variable VAR accordingly. 2048ac_fn_c_check_decl () 2049{ 2050 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5 2052$as_echo_n "checking whether $2 is declared... " >&6; } 2053if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2054 $as_echo_n "(cached) " >&6 2055else 2056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2057/* end confdefs.h. */ 2058$4 2059int 2060main () 2061{ 2062#ifndef $2 2063 (void) $2; 2064#endif 2065 2066 ; 2067 return 0; 2068} 2069_ACEOF 2070if ac_fn_c_try_compile "$LINENO"; then : 2071 eval "$3=yes" 2072else 2073 eval "$3=no" 2074fi 2075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2076fi 2077eval ac_res=\$$3 2078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2079$as_echo "$ac_res" >&6; } 2080 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2081 2082} # ac_fn_c_check_decl 2083 2084# ac_fn_c_try_link LINENO 2085# ----------------------- 2086# Try to link conftest.$ac_ext, and return whether this succeeded. 2087ac_fn_c_try_link () 2088{ 2089 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2090 rm -f conftest.$ac_objext conftest$ac_exeext 2091 if { { ac_try="$ac_link" 2092case "(($ac_try" in 2093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2094 *) ac_try_echo=$ac_try;; 2095esac 2096eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2097$as_echo "$ac_try_echo"; } >&5 2098 (eval "$ac_link") 2>conftest.err 2099 ac_status=$? 2100 if test -s conftest.err; then 2101 grep -v '^ *+' conftest.err >conftest.er1 2102 cat conftest.er1 >&5 2103 mv -f conftest.er1 conftest.err 2104 fi 2105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2106 test $ac_status = 0; } && { 2107 test -z "$ac_c_werror_flag" || 2108 test ! -s conftest.err 2109 } && test -s conftest$ac_exeext && { 2110 test "$cross_compiling" = yes || 2111 $as_test_x conftest$ac_exeext 2112 }; then : 2113 ac_retval=0 2114else 2115 $as_echo "$as_me: failed program was:" >&5 2116sed 's/^/| /' conftest.$ac_ext >&5 2117 2118 ac_retval=1 2119fi 2120 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2121 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2122 # interfere with the next link command; also delete a directory that is 2123 # left behind by Apple's compiler. We do this before executing the actions. 2124 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2125 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2126 as_fn_set_status $ac_retval 2127 2128} # ac_fn_c_try_link 2129 2130# ac_fn_c_check_func LINENO FUNC VAR 2131# ---------------------------------- 2132# Tests whether FUNC exists, setting the cache variable VAR accordingly 2133ac_fn_c_check_func () 2134{ 2135 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2137$as_echo_n "checking for $2... " >&6; } 2138if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2139 $as_echo_n "(cached) " >&6 2140else 2141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2142/* end confdefs.h. */ 2143/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2144 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2145#define $2 innocuous_$2 2146 2147/* System header to define __stub macros and hopefully few prototypes, 2148 which can conflict with char $2 (); below. 2149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2150 <limits.h> exists even on freestanding compilers. */ 2151 2152#ifdef __STDC__ 2153# include <limits.h> 2154#else 2155# include <assert.h> 2156#endif 2157 2158#undef $2 2159 2160/* Override any GCC internal prototype to avoid an error. 2161 Use char because int might match the return type of a GCC 2162 builtin and then its argument prototype would still apply. */ 2163#ifdef __cplusplus 2164extern "C" 2165#endif 2166char $2 (); 2167/* The GNU C library defines this for functions which it implements 2168 to always fail with ENOSYS. Some functions are actually named 2169 something starting with __ and the normal name is an alias. */ 2170#if defined __stub_$2 || defined __stub___$2 2171choke me 2172#endif 2173 2174int 2175main () 2176{ 2177return $2 (); 2178 ; 2179 return 0; 2180} 2181_ACEOF 2182if ac_fn_c_try_link "$LINENO"; then : 2183 eval "$3=yes" 2184else 2185 eval "$3=no" 2186fi 2187rm -f core conftest.err conftest.$ac_objext \ 2188 conftest$ac_exeext conftest.$ac_ext 2189fi 2190eval ac_res=\$$3 2191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2192$as_echo "$ac_res" >&6; } 2193 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2194 2195} # ac_fn_c_check_func 2196 2197# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2198# ---------------------------------------------------- 2199# Tries to find if the field MEMBER exists in type AGGR, after including 2200# INCLUDES, setting cache variable VAR accordingly. 2201ac_fn_c_check_member () 2202{ 2203 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2205$as_echo_n "checking for $2.$3... " >&6; } 2206if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then : 2207 $as_echo_n "(cached) " >&6 2208else 2209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2210/* end confdefs.h. */ 2211$5 2212int 2213main () 2214{ 2215static $2 ac_aggr; 2216if (ac_aggr.$3) 2217return 0; 2218 ; 2219 return 0; 2220} 2221_ACEOF 2222if ac_fn_c_try_compile "$LINENO"; then : 2223 eval "$4=yes" 2224else 2225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2226/* end confdefs.h. */ 2227$5 2228int 2229main () 2230{ 2231static $2 ac_aggr; 2232if (sizeof ac_aggr.$3) 2233return 0; 2234 ; 2235 return 0; 2236} 2237_ACEOF 2238if ac_fn_c_try_compile "$LINENO"; then : 2239 eval "$4=yes" 2240else 2241 eval "$4=no" 2242fi 2243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2244fi 2245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2246fi 2247eval ac_res=\$$4 2248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2249$as_echo "$ac_res" >&6; } 2250 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2251 2252} # ac_fn_c_check_member 2253 2254# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2255# ------------------------------------------- 2256# Tests whether TYPE exists after having included INCLUDES, setting cache 2257# variable VAR accordingly. 2258ac_fn_c_check_type () 2259{ 2260 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2262$as_echo_n "checking for $2... " >&6; } 2263if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2264 $as_echo_n "(cached) " >&6 2265else 2266 eval "$3=no" 2267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2268/* end confdefs.h. */ 2269$4 2270int 2271main () 2272{ 2273if (sizeof ($2)) 2274 return 0; 2275 ; 2276 return 0; 2277} 2278_ACEOF 2279if ac_fn_c_try_compile "$LINENO"; then : 2280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2281/* end confdefs.h. */ 2282$4 2283int 2284main () 2285{ 2286if (sizeof (($2))) 2287 return 0; 2288 ; 2289 return 0; 2290} 2291_ACEOF 2292if ac_fn_c_try_compile "$LINENO"; then : 2293 2294else 2295 eval "$3=yes" 2296fi 2297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2298fi 2299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2300fi 2301eval ac_res=\$$3 2302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2303$as_echo "$ac_res" >&6; } 2304 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2305 2306} # ac_fn_c_check_type 2307cat >config.log <<_ACEOF 2308This file contains any messages produced by compilers while 2309running configure, to aid debugging if configure makes a mistake. 2310 2311It was created by libX11 $as_me 1.3.5, which was 2312generated by GNU Autoconf 2.65. Invocation command line was 2313 2314 $ $0 $@ 2315 2316_ACEOF 2317exec 5>>config.log 2318{ 2319cat <<_ASUNAME 2320## --------- ## 2321## Platform. ## 2322## --------- ## 2323 2324hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2325uname -m = `(uname -m) 2>/dev/null || echo unknown` 2326uname -r = `(uname -r) 2>/dev/null || echo unknown` 2327uname -s = `(uname -s) 2>/dev/null || echo unknown` 2328uname -v = `(uname -v) 2>/dev/null || echo unknown` 2329 2330/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2331/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2332 2333/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2334/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2335/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2336/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2337/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2338/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2339/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2340 2341_ASUNAME 2342 2343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2344for as_dir in $PATH 2345do 2346 IFS=$as_save_IFS 2347 test -z "$as_dir" && as_dir=. 2348 $as_echo "PATH: $as_dir" 2349 done 2350IFS=$as_save_IFS 2351 2352} >&5 2353 2354cat >&5 <<_ACEOF 2355 2356 2357## ----------- ## 2358## Core tests. ## 2359## ----------- ## 2360 2361_ACEOF 2362 2363 2364# Keep a trace of the command line. 2365# Strip out --no-create and --no-recursion so they do not pile up. 2366# Strip out --silent because we don't want to record it for future runs. 2367# Also quote any args containing shell meta-characters. 2368# Make two passes to allow for proper duplicate-argument suppression. 2369ac_configure_args= 2370ac_configure_args0= 2371ac_configure_args1= 2372ac_must_keep_next=false 2373for ac_pass in 1 2 2374do 2375 for ac_arg 2376 do 2377 case $ac_arg in 2378 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2379 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2380 | -silent | --silent | --silen | --sile | --sil) 2381 continue ;; 2382 *\'*) 2383 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2384 esac 2385 case $ac_pass in 2386 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2387 2) 2388 as_fn_append ac_configure_args1 " '$ac_arg'" 2389 if test $ac_must_keep_next = true; then 2390 ac_must_keep_next=false # Got value, back to normal. 2391 else 2392 case $ac_arg in 2393 *=* | --config-cache | -C | -disable-* | --disable-* \ 2394 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2395 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2396 | -with-* | --with-* | -without-* | --without-* | --x) 2397 case "$ac_configure_args0 " in 2398 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2399 esac 2400 ;; 2401 -* ) ac_must_keep_next=true ;; 2402 esac 2403 fi 2404 as_fn_append ac_configure_args " '$ac_arg'" 2405 ;; 2406 esac 2407 done 2408done 2409{ ac_configure_args0=; unset ac_configure_args0;} 2410{ ac_configure_args1=; unset ac_configure_args1;} 2411 2412# When interrupted or exit'd, cleanup temporary files, and complete 2413# config.log. We remove comments because anyway the quotes in there 2414# would cause problems or look ugly. 2415# WARNING: Use '\'' to represent an apostrophe within the trap. 2416# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2417trap 'exit_status=$? 2418 # Save into config.log some information that might help in debugging. 2419 { 2420 echo 2421 2422 cat <<\_ASBOX 2423## ---------------- ## 2424## Cache variables. ## 2425## ---------------- ## 2426_ASBOX 2427 echo 2428 # The following way of writing the cache mishandles newlines in values, 2429( 2430 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2431 eval ac_val=\$$ac_var 2432 case $ac_val in #( 2433 *${as_nl}*) 2434 case $ac_var in #( 2435 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2436$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2437 esac 2438 case $ac_var in #( 2439 _ | IFS | as_nl) ;; #( 2440 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2441 *) { eval $ac_var=; unset $ac_var;} ;; 2442 esac ;; 2443 esac 2444 done 2445 (set) 2>&1 | 2446 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2447 *${as_nl}ac_space=\ *) 2448 sed -n \ 2449 "s/'\''/'\''\\\\'\'''\''/g; 2450 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2451 ;; #( 2452 *) 2453 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2454 ;; 2455 esac | 2456 sort 2457) 2458 echo 2459 2460 cat <<\_ASBOX 2461## ----------------- ## 2462## Output variables. ## 2463## ----------------- ## 2464_ASBOX 2465 echo 2466 for ac_var in $ac_subst_vars 2467 do 2468 eval ac_val=\$$ac_var 2469 case $ac_val in 2470 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2471 esac 2472 $as_echo "$ac_var='\''$ac_val'\''" 2473 done | sort 2474 echo 2475 2476 if test -n "$ac_subst_files"; then 2477 cat <<\_ASBOX 2478## ------------------- ## 2479## File substitutions. ## 2480## ------------------- ## 2481_ASBOX 2482 echo 2483 for ac_var in $ac_subst_files 2484 do 2485 eval ac_val=\$$ac_var 2486 case $ac_val in 2487 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2488 esac 2489 $as_echo "$ac_var='\''$ac_val'\''" 2490 done | sort 2491 echo 2492 fi 2493 2494 if test -s confdefs.h; then 2495 cat <<\_ASBOX 2496## ----------- ## 2497## confdefs.h. ## 2498## ----------- ## 2499_ASBOX 2500 echo 2501 cat confdefs.h 2502 echo 2503 fi 2504 test "$ac_signal" != 0 && 2505 $as_echo "$as_me: caught signal $ac_signal" 2506 $as_echo "$as_me: exit $exit_status" 2507 } >&5 2508 rm -f core *.core core.conftest.* && 2509 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2510 exit $exit_status 2511' 0 2512for ac_signal in 1 2 13 15; do 2513 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2514done 2515ac_signal=0 2516 2517# confdefs.h avoids OS command line length limits that DEFS can exceed. 2518rm -f -r conftest* confdefs.h 2519 2520$as_echo "/* confdefs.h */" > confdefs.h 2521 2522# Predefined preprocessor variables. 2523 2524cat >>confdefs.h <<_ACEOF 2525#define PACKAGE_NAME "$PACKAGE_NAME" 2526_ACEOF 2527 2528cat >>confdefs.h <<_ACEOF 2529#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2530_ACEOF 2531 2532cat >>confdefs.h <<_ACEOF 2533#define PACKAGE_VERSION "$PACKAGE_VERSION" 2534_ACEOF 2535 2536cat >>confdefs.h <<_ACEOF 2537#define PACKAGE_STRING "$PACKAGE_STRING" 2538_ACEOF 2539 2540cat >>confdefs.h <<_ACEOF 2541#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2542_ACEOF 2543 2544cat >>confdefs.h <<_ACEOF 2545#define PACKAGE_URL "$PACKAGE_URL" 2546_ACEOF 2547 2548 2549# Let the site file select an alternate cache file if it wants to. 2550# Prefer an explicitly selected file to automatically selected ones. 2551ac_site_file1=NONE 2552ac_site_file2=NONE 2553if test -n "$CONFIG_SITE"; then 2554 ac_site_file1=$CONFIG_SITE 2555elif test "x$prefix" != xNONE; then 2556 ac_site_file1=$prefix/share/config.site 2557 ac_site_file2=$prefix/etc/config.site 2558else 2559 ac_site_file1=$ac_default_prefix/share/config.site 2560 ac_site_file2=$ac_default_prefix/etc/config.site 2561fi 2562for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2563do 2564 test "x$ac_site_file" = xNONE && continue 2565 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2566 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2567$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2568 sed 's/^/| /' "$ac_site_file" >&5 2569 . "$ac_site_file" 2570 fi 2571done 2572 2573if test -r "$cache_file"; then 2574 # Some versions of bash will fail to source /dev/null (special files 2575 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2576 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2577 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2578$as_echo "$as_me: loading cache $cache_file" >&6;} 2579 case $cache_file in 2580 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2581 *) . "./$cache_file";; 2582 esac 2583 fi 2584else 2585 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2586$as_echo "$as_me: creating cache $cache_file" >&6;} 2587 >$cache_file 2588fi 2589 2590as_fn_append ac_header_list " stdlib.h" 2591as_fn_append ac_header_list " unistd.h" 2592as_fn_append ac_header_list " sys/param.h" 2593# Check that the precious variables saved in the cache have kept the same 2594# value. 2595ac_cache_corrupted=false 2596for ac_var in $ac_precious_vars; do 2597 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2598 eval ac_new_set=\$ac_env_${ac_var}_set 2599 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2600 eval ac_new_val=\$ac_env_${ac_var}_value 2601 case $ac_old_set,$ac_new_set in 2602 set,) 2603 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2604$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2605 ac_cache_corrupted=: ;; 2606 ,set) 2607 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2608$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2609 ac_cache_corrupted=: ;; 2610 ,);; 2611 *) 2612 if test "x$ac_old_val" != "x$ac_new_val"; then 2613 # differences in whitespace do not lead to failure. 2614 ac_old_val_w=`echo x $ac_old_val` 2615 ac_new_val_w=`echo x $ac_new_val` 2616 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2617 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2618$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2619 ac_cache_corrupted=: 2620 else 2621 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2622$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2623 eval $ac_var=\$ac_old_val 2624 fi 2625 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2626$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2627 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2628$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2629 fi;; 2630 esac 2631 # Pass precious variables to config.status. 2632 if test "$ac_new_set" = set; then 2633 case $ac_new_val in 2634 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2635 *) ac_arg=$ac_var=$ac_new_val ;; 2636 esac 2637 case " $ac_configure_args " in 2638 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2639 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2640 esac 2641 fi 2642done 2643if $ac_cache_corrupted; then 2644 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2645$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2646 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2647$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2648 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2649fi 2650## -------------------- ## 2651## Main body of script. ## 2652## -------------------- ## 2653 2654ac_ext=c 2655ac_cpp='$CPP $CPPFLAGS' 2656ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2657ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2658ac_compiler_gnu=$ac_cv_c_compiler_gnu 2659 2660 2661 2662 2663ac_aux_dir= 2664for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2665 for ac_t in install-sh install.sh shtool; do 2666 if test -f "$ac_dir/$ac_t"; then 2667 ac_aux_dir=$ac_dir 2668 ac_install_sh="$ac_aux_dir/$ac_t -c" 2669 break 2 2670 fi 2671 done 2672done 2673if test -z "$ac_aux_dir"; then 2674 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2675fi 2676 2677# These three variables are undocumented and unsupported, 2678# and are intended to be withdrawn in a future Autoconf release. 2679# They can cause serious problems if a builder's source tree is in a directory 2680# whose full name contains unusual characters. 2681ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2682ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2683ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2684 2685 2686# Make sure we can run config.sub. 2687$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2688 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2689 2690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2691$as_echo_n "checking build system type... " >&6; } 2692if test "${ac_cv_build+set}" = set; then : 2693 $as_echo_n "(cached) " >&6 2694else 2695 ac_build_alias=$build_alias 2696test "x$ac_build_alias" = x && 2697 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2698test "x$ac_build_alias" = x && 2699 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 2700ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2701 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2702 2703fi 2704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2705$as_echo "$ac_cv_build" >&6; } 2706case $ac_cv_build in 2707*-*-*) ;; 2708*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 2709esac 2710build=$ac_cv_build 2711ac_save_IFS=$IFS; IFS='-' 2712set x $ac_cv_build 2713shift 2714build_cpu=$1 2715build_vendor=$2 2716shift; shift 2717# Remember, the first character of IFS is used to create $*, 2718# except with old shells: 2719build_os=$* 2720IFS=$ac_save_IFS 2721case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2722 2723 2724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2725$as_echo_n "checking host system type... " >&6; } 2726if test "${ac_cv_host+set}" = set; then : 2727 $as_echo_n "(cached) " >&6 2728else 2729 if test "x$host_alias" = x; then 2730 ac_cv_host=$ac_cv_build 2731else 2732 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2733 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2734fi 2735 2736fi 2737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2738$as_echo "$ac_cv_host" >&6; } 2739case $ac_cv_host in 2740*-*-*) ;; 2741*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 2742esac 2743host=$ac_cv_host 2744ac_save_IFS=$IFS; IFS='-' 2745set x $ac_cv_host 2746shift 2747host_cpu=$1 2748host_vendor=$2 2749shift; shift 2750# Remember, the first character of IFS is used to create $*, 2751# except with old shells: 2752host_os=$* 2753IFS=$ac_save_IFS 2754case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2755 2756 2757 2758am__api_version='1.11' 2759 2760# Find a good install program. We prefer a C program (faster), 2761# so one script is as good as another. But avoid the broken or 2762# incompatible versions: 2763# SysV /etc/install, /usr/sbin/install 2764# SunOS /usr/etc/install 2765# IRIX /sbin/install 2766# AIX /bin/install 2767# AmigaOS /C/install, which installs bootblocks on floppy discs 2768# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2769# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2770# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2771# OS/2's system install, which has a completely different semantic 2772# ./install, which can be erroneously created by make from ./install.sh. 2773# Reject install programs that cannot install multiple files. 2774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2775$as_echo_n "checking for a BSD-compatible install... " >&6; } 2776if test -z "$INSTALL"; then 2777if test "${ac_cv_path_install+set}" = set; then : 2778 $as_echo_n "(cached) " >&6 2779else 2780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2781for as_dir in $PATH 2782do 2783 IFS=$as_save_IFS 2784 test -z "$as_dir" && as_dir=. 2785 # Account for people who put trailing slashes in PATH elements. 2786case $as_dir/ in #(( 2787 ./ | .// | /[cC]/* | \ 2788 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2789 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2790 /usr/ucb/* ) ;; 2791 *) 2792 # OSF1 and SCO ODT 3.0 have their own names for install. 2793 # Don't use installbsd from OSF since it installs stuff as root 2794 # by default. 2795 for ac_prog in ginstall scoinst install; do 2796 for ac_exec_ext in '' $ac_executable_extensions; do 2797 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2798 if test $ac_prog = install && 2799 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2800 # AIX install. It has an incompatible calling convention. 2801 : 2802 elif test $ac_prog = install && 2803 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2804 # program-specific install script used by HP pwplus--don't use. 2805 : 2806 else 2807 rm -rf conftest.one conftest.two conftest.dir 2808 echo one > conftest.one 2809 echo two > conftest.two 2810 mkdir conftest.dir 2811 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2812 test -s conftest.one && test -s conftest.two && 2813 test -s conftest.dir/conftest.one && 2814 test -s conftest.dir/conftest.two 2815 then 2816 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2817 break 3 2818 fi 2819 fi 2820 fi 2821 done 2822 done 2823 ;; 2824esac 2825 2826 done 2827IFS=$as_save_IFS 2828 2829rm -rf conftest.one conftest.two conftest.dir 2830 2831fi 2832 if test "${ac_cv_path_install+set}" = set; then 2833 INSTALL=$ac_cv_path_install 2834 else 2835 # As a last resort, use the slow shell script. Don't cache a 2836 # value for INSTALL within a source directory, because that will 2837 # break other packages using the cache if that directory is 2838 # removed, or if the value is a relative name. 2839 INSTALL=$ac_install_sh 2840 fi 2841fi 2842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2843$as_echo "$INSTALL" >&6; } 2844 2845# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2846# It thinks the first close brace ends the variable substitution. 2847test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2848 2849test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2850 2851test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2852 2853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2854$as_echo_n "checking whether build environment is sane... " >&6; } 2855# Just in case 2856sleep 1 2857echo timestamp > conftest.file 2858# Reject unsafe characters in $srcdir or the absolute working directory 2859# name. Accept space and tab only in the latter. 2860am_lf=' 2861' 2862case `pwd` in 2863 *[\\\"\#\$\&\'\`$am_lf]*) 2864 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; 2865esac 2866case $srcdir in 2867 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2868 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2869esac 2870 2871# Do `set' in a subshell so we don't clobber the current shell's 2872# arguments. Must try -L first in case configure is actually a 2873# symlink; some systems play weird games with the mod time of symlinks 2874# (eg FreeBSD returns the mod time of the symlink's containing 2875# directory). 2876if ( 2877 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2878 if test "$*" = "X"; then 2879 # -L didn't work. 2880 set X `ls -t "$srcdir/configure" conftest.file` 2881 fi 2882 rm -f conftest.file 2883 if test "$*" != "X $srcdir/configure conftest.file" \ 2884 && test "$*" != "X conftest.file $srcdir/configure"; then 2885 2886 # If neither matched, then we have a broken ls. This can happen 2887 # if, for instance, CONFIG_SHELL is bash and it inherits a 2888 # broken ls alias from the environment. This has actually 2889 # happened. Such a system could not be considered "sane". 2890 as_fn_error "ls -t appears to fail. Make sure there is not a broken 2891alias in your environment" "$LINENO" 5 2892 fi 2893 2894 test "$2" = conftest.file 2895 ) 2896then 2897 # Ok. 2898 : 2899else 2900 as_fn_error "newly created file is older than distributed files! 2901Check your system clock" "$LINENO" 5 2902fi 2903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2904$as_echo "yes" >&6; } 2905test "$program_prefix" != NONE && 2906 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2907# Use a double $ so make ignores it. 2908test "$program_suffix" != NONE && 2909 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2910# Double any \ or $. 2911# By default was `s,x,x', remove it if useless. 2912ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2913program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2914 2915# expand $ac_aux_dir to an absolute path 2916am_aux_dir=`cd $ac_aux_dir && pwd` 2917 2918if test x"${MISSING+set}" != xset; then 2919 case $am_aux_dir in 2920 *\ * | *\ *) 2921 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2922 *) 2923 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2924 esac 2925fi 2926# Use eval to expand $SHELL 2927if eval "$MISSING --run true"; then 2928 am_missing_run="$MISSING --run " 2929else 2930 am_missing_run= 2931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2932$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2933fi 2934 2935if test x"${install_sh}" != xset; then 2936 case $am_aux_dir in 2937 *\ * | *\ *) 2938 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2939 *) 2940 install_sh="\${SHELL} $am_aux_dir/install-sh" 2941 esac 2942fi 2943 2944# Installed binaries are usually stripped using `strip' when the user 2945# run `make install-strip'. However `strip' might not be the right 2946# tool to use in cross-compilation environments, therefore Automake 2947# will honor the `STRIP' environment variable to overrule this program. 2948if test "$cross_compiling" != no; then 2949 if test -n "$ac_tool_prefix"; then 2950 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2951set dummy ${ac_tool_prefix}strip; ac_word=$2 2952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2953$as_echo_n "checking for $ac_word... " >&6; } 2954if test "${ac_cv_prog_STRIP+set}" = set; then : 2955 $as_echo_n "(cached) " >&6 2956else 2957 if test -n "$STRIP"; then 2958 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2959else 2960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2961for as_dir in $PATH 2962do 2963 IFS=$as_save_IFS 2964 test -z "$as_dir" && as_dir=. 2965 for ac_exec_ext in '' $ac_executable_extensions; do 2966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2967 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2969 break 2 2970 fi 2971done 2972 done 2973IFS=$as_save_IFS 2974 2975fi 2976fi 2977STRIP=$ac_cv_prog_STRIP 2978if test -n "$STRIP"; then 2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2980$as_echo "$STRIP" >&6; } 2981else 2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2983$as_echo "no" >&6; } 2984fi 2985 2986 2987fi 2988if test -z "$ac_cv_prog_STRIP"; then 2989 ac_ct_STRIP=$STRIP 2990 # Extract the first word of "strip", so it can be a program name with args. 2991set dummy strip; ac_word=$2 2992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2993$as_echo_n "checking for $ac_word... " >&6; } 2994if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 2995 $as_echo_n "(cached) " >&6 2996else 2997 if test -n "$ac_ct_STRIP"; then 2998 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2999else 3000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3001for as_dir in $PATH 3002do 3003 IFS=$as_save_IFS 3004 test -z "$as_dir" && as_dir=. 3005 for ac_exec_ext in '' $ac_executable_extensions; do 3006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3007 ac_cv_prog_ac_ct_STRIP="strip" 3008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3009 break 2 3010 fi 3011done 3012 done 3013IFS=$as_save_IFS 3014 3015fi 3016fi 3017ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3018if test -n "$ac_ct_STRIP"; then 3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3020$as_echo "$ac_ct_STRIP" >&6; } 3021else 3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3023$as_echo "no" >&6; } 3024fi 3025 3026 if test "x$ac_ct_STRIP" = x; then 3027 STRIP=":" 3028 else 3029 case $cross_compiling:$ac_tool_warned in 3030yes:) 3031{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3032$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3033ac_tool_warned=yes ;; 3034esac 3035 STRIP=$ac_ct_STRIP 3036 fi 3037else 3038 STRIP="$ac_cv_prog_STRIP" 3039fi 3040 3041fi 3042INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3043 3044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3045$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3046if test -z "$MKDIR_P"; then 3047 if test "${ac_cv_path_mkdir+set}" = set; then : 3048 $as_echo_n "(cached) " >&6 3049else 3050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3051for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3052do 3053 IFS=$as_save_IFS 3054 test -z "$as_dir" && as_dir=. 3055 for ac_prog in mkdir gmkdir; do 3056 for ac_exec_ext in '' $ac_executable_extensions; do 3057 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 3058 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3059 'mkdir (GNU coreutils) '* | \ 3060 'mkdir (coreutils) '* | \ 3061 'mkdir (fileutils) '4.1*) 3062 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3063 break 3;; 3064 esac 3065 done 3066 done 3067 done 3068IFS=$as_save_IFS 3069 3070fi 3071 3072 test -d ./--version && rmdir ./--version 3073 if test "${ac_cv_path_mkdir+set}" = set; then 3074 MKDIR_P="$ac_cv_path_mkdir -p" 3075 else 3076 # As a last resort, use the slow shell script. Don't cache a 3077 # value for MKDIR_P within a source directory, because that will 3078 # break other packages using the cache if that directory is 3079 # removed, or if the value is a relative name. 3080 MKDIR_P="$ac_install_sh -d" 3081 fi 3082fi 3083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3084$as_echo "$MKDIR_P" >&6; } 3085 3086mkdir_p="$MKDIR_P" 3087case $mkdir_p in 3088 [\\/$]* | ?:[\\/]*) ;; 3089 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 3090esac 3091 3092for ac_prog in gawk mawk nawk awk 3093do 3094 # Extract the first word of "$ac_prog", so it can be a program name with args. 3095set dummy $ac_prog; ac_word=$2 3096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3097$as_echo_n "checking for $ac_word... " >&6; } 3098if test "${ac_cv_prog_AWK+set}" = set; then : 3099 $as_echo_n "(cached) " >&6 3100else 3101 if test -n "$AWK"; then 3102 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3103else 3104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3105for as_dir in $PATH 3106do 3107 IFS=$as_save_IFS 3108 test -z "$as_dir" && as_dir=. 3109 for ac_exec_ext in '' $ac_executable_extensions; do 3110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3111 ac_cv_prog_AWK="$ac_prog" 3112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3113 break 2 3114 fi 3115done 3116 done 3117IFS=$as_save_IFS 3118 3119fi 3120fi 3121AWK=$ac_cv_prog_AWK 3122if test -n "$AWK"; then 3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3124$as_echo "$AWK" >&6; } 3125else 3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3127$as_echo "no" >&6; } 3128fi 3129 3130 3131 test -n "$AWK" && break 3132done 3133 3134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3135$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3136set x ${MAKE-make} 3137ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3138if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 3139 $as_echo_n "(cached) " >&6 3140else 3141 cat >conftest.make <<\_ACEOF 3142SHELL = /bin/sh 3143all: 3144 @echo '@@@%%%=$(MAKE)=@@@%%%' 3145_ACEOF 3146# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3147case `${MAKE-make} -f conftest.make 2>/dev/null` in 3148 *@@@%%%=?*=@@@%%%*) 3149 eval ac_cv_prog_make_${ac_make}_set=yes;; 3150 *) 3151 eval ac_cv_prog_make_${ac_make}_set=no;; 3152esac 3153rm -f conftest.make 3154fi 3155if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3157$as_echo "yes" >&6; } 3158 SET_MAKE= 3159else 3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3161$as_echo "no" >&6; } 3162 SET_MAKE="MAKE=${MAKE-make}" 3163fi 3164 3165rm -rf .tst 2>/dev/null 3166mkdir .tst 2>/dev/null 3167if test -d .tst; then 3168 am__leading_dot=. 3169else 3170 am__leading_dot=_ 3171fi 3172rmdir .tst 2>/dev/null 3173 3174if test "`cd $srcdir && pwd`" != "`pwd`"; then 3175 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3176 # is not polluted with repeated "-I." 3177 am__isrc=' -I$(srcdir)' 3178 # test to see if srcdir already configured 3179 if test -f $srcdir/config.status; then 3180 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3181 fi 3182fi 3183 3184# test whether we have cygpath 3185if test -z "$CYGPATH_W"; then 3186 if (cygpath --version) >/dev/null 2>/dev/null; then 3187 CYGPATH_W='cygpath -w' 3188 else 3189 CYGPATH_W=echo 3190 fi 3191fi 3192 3193 3194# Define the identity of the package. 3195 PACKAGE='libX11' 3196 VERSION='1.3.5' 3197 3198 3199cat >>confdefs.h <<_ACEOF 3200#define PACKAGE "$PACKAGE" 3201_ACEOF 3202 3203 3204cat >>confdefs.h <<_ACEOF 3205#define VERSION "$VERSION" 3206_ACEOF 3207 3208# Some tools Automake needs. 3209 3210ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3211 3212 3213AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3214 3215 3216AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3217 3218 3219AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3220 3221 3222MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3223 3224# We need awk for the "check" target. The system "awk" is bad on 3225# some platforms. 3226# Always define AMTAR for backward compatibility. 3227 3228AMTAR=${AMTAR-"${am_missing_run}tar"} 3229 3230am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 3231 3232 3233 3234 3235 3236 3237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3238$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3239 # Check whether --enable-maintainer-mode was given. 3240if test "${enable_maintainer_mode+set}" = set; then : 3241 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3242else 3243 USE_MAINTAINER_MODE=no 3244fi 3245 3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3247$as_echo "$USE_MAINTAINER_MODE" >&6; } 3248 if test $USE_MAINTAINER_MODE = yes; then 3249 MAINTAINER_MODE_TRUE= 3250 MAINTAINER_MODE_FALSE='#' 3251else 3252 MAINTAINER_MODE_TRUE='#' 3253 MAINTAINER_MODE_FALSE= 3254fi 3255 3256 MAINT=$MAINTAINER_MODE_TRUE 3257 3258 3259ac_config_headers="$ac_config_headers src/config.h" 3260 3261ac_config_headers="$ac_config_headers include/X11/XlibConf.h" 3262 3263 3264# Require xorg-macros: XORG_DEFAULT_OPTIONS 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277# Set common system defines for POSIX extensions, such as _GNU_SOURCE 3278# Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL) 3279# to avoid autoconf errors. 3280DEPDIR="${am__leading_dot}deps" 3281 3282ac_config_commands="$ac_config_commands depfiles" 3283 3284 3285am_make=${MAKE-make} 3286cat > confinc << 'END' 3287am__doit: 3288 @echo this is the am__doit target 3289.PHONY: am__doit 3290END 3291# If we don't find an include directive, just comment out the code. 3292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3293$as_echo_n "checking for style of include used by $am_make... " >&6; } 3294am__include="#" 3295am__quote= 3296_am_result=none 3297# First try GNU make style include. 3298echo "include confinc" > confmf 3299# Ignore all kinds of additional output from `make'. 3300case `$am_make -s -f confmf 2> /dev/null` in #( 3301*the\ am__doit\ target*) 3302 am__include=include 3303 am__quote= 3304 _am_result=GNU 3305 ;; 3306esac 3307# Now try BSD make style include. 3308if test "$am__include" = "#"; then 3309 echo '.include "confinc"' > confmf 3310 case `$am_make -s -f confmf 2> /dev/null` in #( 3311 *the\ am__doit\ target*) 3312 am__include=.include 3313 am__quote="\"" 3314 _am_result=BSD 3315 ;; 3316 esac 3317fi 3318 3319 3320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3321$as_echo "$_am_result" >&6; } 3322rm -f confinc confmf 3323 3324# Check whether --enable-dependency-tracking was given. 3325if test "${enable_dependency_tracking+set}" = set; then : 3326 enableval=$enable_dependency_tracking; 3327fi 3328 3329if test "x$enable_dependency_tracking" != xno; then 3330 am_depcomp="$ac_aux_dir/depcomp" 3331 AMDEPBACKSLASH='\' 3332fi 3333 if test "x$enable_dependency_tracking" != xno; then 3334 AMDEP_TRUE= 3335 AMDEP_FALSE='#' 3336else 3337 AMDEP_TRUE='#' 3338 AMDEP_FALSE= 3339fi 3340 3341 3342ac_ext=c 3343ac_cpp='$CPP $CPPFLAGS' 3344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3346ac_compiler_gnu=$ac_cv_c_compiler_gnu 3347if test -n "$ac_tool_prefix"; then 3348 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3349set dummy ${ac_tool_prefix}gcc; ac_word=$2 3350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3351$as_echo_n "checking for $ac_word... " >&6; } 3352if test "${ac_cv_prog_CC+set}" = set; then : 3353 $as_echo_n "(cached) " >&6 3354else 3355 if test -n "$CC"; then 3356 ac_cv_prog_CC="$CC" # Let the user override the test. 3357else 3358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3359for as_dir in $PATH 3360do 3361 IFS=$as_save_IFS 3362 test -z "$as_dir" && as_dir=. 3363 for ac_exec_ext in '' $ac_executable_extensions; do 3364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3365 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3367 break 2 3368 fi 3369done 3370 done 3371IFS=$as_save_IFS 3372 3373fi 3374fi 3375CC=$ac_cv_prog_CC 3376if test -n "$CC"; then 3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3378$as_echo "$CC" >&6; } 3379else 3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3381$as_echo "no" >&6; } 3382fi 3383 3384 3385fi 3386if test -z "$ac_cv_prog_CC"; then 3387 ac_ct_CC=$CC 3388 # Extract the first word of "gcc", so it can be a program name with args. 3389set dummy gcc; ac_word=$2 3390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3391$as_echo_n "checking for $ac_word... " >&6; } 3392if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3393 $as_echo_n "(cached) " >&6 3394else 3395 if test -n "$ac_ct_CC"; then 3396 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3397else 3398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3399for as_dir in $PATH 3400do 3401 IFS=$as_save_IFS 3402 test -z "$as_dir" && as_dir=. 3403 for ac_exec_ext in '' $ac_executable_extensions; do 3404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3405 ac_cv_prog_ac_ct_CC="gcc" 3406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3407 break 2 3408 fi 3409done 3410 done 3411IFS=$as_save_IFS 3412 3413fi 3414fi 3415ac_ct_CC=$ac_cv_prog_ac_ct_CC 3416if test -n "$ac_ct_CC"; then 3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3418$as_echo "$ac_ct_CC" >&6; } 3419else 3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3421$as_echo "no" >&6; } 3422fi 3423 3424 if test "x$ac_ct_CC" = x; then 3425 CC="" 3426 else 3427 case $cross_compiling:$ac_tool_warned in 3428yes:) 3429{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3430$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3431ac_tool_warned=yes ;; 3432esac 3433 CC=$ac_ct_CC 3434 fi 3435else 3436 CC="$ac_cv_prog_CC" 3437fi 3438 3439if test -z "$CC"; then 3440 if test -n "$ac_tool_prefix"; then 3441 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3442set dummy ${ac_tool_prefix}cc; ac_word=$2 3443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3444$as_echo_n "checking for $ac_word... " >&6; } 3445if test "${ac_cv_prog_CC+set}" = set; then : 3446 $as_echo_n "(cached) " >&6 3447else 3448 if test -n "$CC"; then 3449 ac_cv_prog_CC="$CC" # Let the user override the test. 3450else 3451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3452for as_dir in $PATH 3453do 3454 IFS=$as_save_IFS 3455 test -z "$as_dir" && as_dir=. 3456 for ac_exec_ext in '' $ac_executable_extensions; do 3457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3458 ac_cv_prog_CC="${ac_tool_prefix}cc" 3459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3460 break 2 3461 fi 3462done 3463 done 3464IFS=$as_save_IFS 3465 3466fi 3467fi 3468CC=$ac_cv_prog_CC 3469if test -n "$CC"; then 3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3471$as_echo "$CC" >&6; } 3472else 3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3474$as_echo "no" >&6; } 3475fi 3476 3477 3478 fi 3479fi 3480if test -z "$CC"; then 3481 # Extract the first word of "cc", so it can be a program name with args. 3482set dummy cc; ac_word=$2 3483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3484$as_echo_n "checking for $ac_word... " >&6; } 3485if test "${ac_cv_prog_CC+set}" = set; then : 3486 $as_echo_n "(cached) " >&6 3487else 3488 if test -n "$CC"; then 3489 ac_cv_prog_CC="$CC" # Let the user override the test. 3490else 3491 ac_prog_rejected=no 3492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3493for as_dir in $PATH 3494do 3495 IFS=$as_save_IFS 3496 test -z "$as_dir" && as_dir=. 3497 for ac_exec_ext in '' $ac_executable_extensions; do 3498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3499 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3500 ac_prog_rejected=yes 3501 continue 3502 fi 3503 ac_cv_prog_CC="cc" 3504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3505 break 2 3506 fi 3507done 3508 done 3509IFS=$as_save_IFS 3510 3511if test $ac_prog_rejected = yes; then 3512 # We found a bogon in the path, so make sure we never use it. 3513 set dummy $ac_cv_prog_CC 3514 shift 3515 if test $# != 0; then 3516 # We chose a different compiler from the bogus one. 3517 # However, it has the same basename, so the bogon will be chosen 3518 # first if we set CC to just the basename; use the full file name. 3519 shift 3520 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3521 fi 3522fi 3523fi 3524fi 3525CC=$ac_cv_prog_CC 3526if test -n "$CC"; then 3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3528$as_echo "$CC" >&6; } 3529else 3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3531$as_echo "no" >&6; } 3532fi 3533 3534 3535fi 3536if test -z "$CC"; then 3537 if test -n "$ac_tool_prefix"; then 3538 for ac_prog in cl.exe 3539 do 3540 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3541set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3543$as_echo_n "checking for $ac_word... " >&6; } 3544if test "${ac_cv_prog_CC+set}" = set; then : 3545 $as_echo_n "(cached) " >&6 3546else 3547 if test -n "$CC"; then 3548 ac_cv_prog_CC="$CC" # Let the user override the test. 3549else 3550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3551for as_dir in $PATH 3552do 3553 IFS=$as_save_IFS 3554 test -z "$as_dir" && as_dir=. 3555 for ac_exec_ext in '' $ac_executable_extensions; do 3556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3557 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3559 break 2 3560 fi 3561done 3562 done 3563IFS=$as_save_IFS 3564 3565fi 3566fi 3567CC=$ac_cv_prog_CC 3568if test -n "$CC"; then 3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3570$as_echo "$CC" >&6; } 3571else 3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3573$as_echo "no" >&6; } 3574fi 3575 3576 3577 test -n "$CC" && break 3578 done 3579fi 3580if test -z "$CC"; then 3581 ac_ct_CC=$CC 3582 for ac_prog in cl.exe 3583do 3584 # Extract the first word of "$ac_prog", so it can be a program name with args. 3585set dummy $ac_prog; ac_word=$2 3586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3587$as_echo_n "checking for $ac_word... " >&6; } 3588if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3589 $as_echo_n "(cached) " >&6 3590else 3591 if test -n "$ac_ct_CC"; then 3592 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3593else 3594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3595for as_dir in $PATH 3596do 3597 IFS=$as_save_IFS 3598 test -z "$as_dir" && as_dir=. 3599 for ac_exec_ext in '' $ac_executable_extensions; do 3600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3601 ac_cv_prog_ac_ct_CC="$ac_prog" 3602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3603 break 2 3604 fi 3605done 3606 done 3607IFS=$as_save_IFS 3608 3609fi 3610fi 3611ac_ct_CC=$ac_cv_prog_ac_ct_CC 3612if test -n "$ac_ct_CC"; then 3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3614$as_echo "$ac_ct_CC" >&6; } 3615else 3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3617$as_echo "no" >&6; } 3618fi 3619 3620 3621 test -n "$ac_ct_CC" && break 3622done 3623 3624 if test "x$ac_ct_CC" = x; then 3625 CC="" 3626 else 3627 case $cross_compiling:$ac_tool_warned in 3628yes:) 3629{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3630$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3631ac_tool_warned=yes ;; 3632esac 3633 CC=$ac_ct_CC 3634 fi 3635fi 3636 3637fi 3638 3639 3640test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3641$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3642as_fn_error "no acceptable C compiler found in \$PATH 3643See \`config.log' for more details." "$LINENO" 5; } 3644 3645# Provide some information about the compiler. 3646$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3647set X $ac_compile 3648ac_compiler=$2 3649for ac_option in --version -v -V -qversion; do 3650 { { ac_try="$ac_compiler $ac_option >&5" 3651case "(($ac_try" in 3652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3653 *) ac_try_echo=$ac_try;; 3654esac 3655eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3656$as_echo "$ac_try_echo"; } >&5 3657 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3658 ac_status=$? 3659 if test -s conftest.err; then 3660 sed '10a\ 3661... rest of stderr output deleted ... 3662 10q' conftest.err >conftest.er1 3663 cat conftest.er1 >&5 3664 fi 3665 rm -f conftest.er1 conftest.err 3666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3667 test $ac_status = 0; } 3668done 3669 3670cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3671/* end confdefs.h. */ 3672 3673int 3674main () 3675{ 3676 3677 ; 3678 return 0; 3679} 3680_ACEOF 3681ac_clean_files_save=$ac_clean_files 3682ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3683# Try to create an executable without -o first, disregard a.out. 3684# It will help us diagnose broken compilers, and finding out an intuition 3685# of exeext. 3686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3687$as_echo_n "checking whether the C compiler works... " >&6; } 3688ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3689 3690# The possible output files: 3691ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3692 3693ac_rmfiles= 3694for ac_file in $ac_files 3695do 3696 case $ac_file in 3697 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3698 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3699 esac 3700done 3701rm -f $ac_rmfiles 3702 3703if { { ac_try="$ac_link_default" 3704case "(($ac_try" in 3705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3706 *) ac_try_echo=$ac_try;; 3707esac 3708eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3709$as_echo "$ac_try_echo"; } >&5 3710 (eval "$ac_link_default") 2>&5 3711 ac_status=$? 3712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3713 test $ac_status = 0; }; then : 3714 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3715# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3716# in a Makefile. We should not override ac_cv_exeext if it was cached, 3717# so that the user can short-circuit this test for compilers unknown to 3718# Autoconf. 3719for ac_file in $ac_files '' 3720do 3721 test -f "$ac_file" || continue 3722 case $ac_file in 3723 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3724 ;; 3725 [ab].out ) 3726 # We found the default executable, but exeext='' is most 3727 # certainly right. 3728 break;; 3729 *.* ) 3730 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3731 then :; else 3732 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3733 fi 3734 # We set ac_cv_exeext here because the later test for it is not 3735 # safe: cross compilers may not add the suffix if given an `-o' 3736 # argument, so we may need to know it at that point already. 3737 # Even if this section looks crufty: it has the advantage of 3738 # actually working. 3739 break;; 3740 * ) 3741 break;; 3742 esac 3743done 3744test "$ac_cv_exeext" = no && ac_cv_exeext= 3745 3746else 3747 ac_file='' 3748fi 3749if test -z "$ac_file"; then : 3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3751$as_echo "no" >&6; } 3752$as_echo "$as_me: failed program was:" >&5 3753sed 's/^/| /' conftest.$ac_ext >&5 3754 3755{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3756$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3757{ as_fn_set_status 77 3758as_fn_error "C compiler cannot create executables 3759See \`config.log' for more details." "$LINENO" 5; }; } 3760else 3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3762$as_echo "yes" >&6; } 3763fi 3764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3765$as_echo_n "checking for C compiler default output file name... " >&6; } 3766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3767$as_echo "$ac_file" >&6; } 3768ac_exeext=$ac_cv_exeext 3769 3770rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3771ac_clean_files=$ac_clean_files_save 3772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3773$as_echo_n "checking for suffix of executables... " >&6; } 3774if { { ac_try="$ac_link" 3775case "(($ac_try" in 3776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3777 *) ac_try_echo=$ac_try;; 3778esac 3779eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3780$as_echo "$ac_try_echo"; } >&5 3781 (eval "$ac_link") 2>&5 3782 ac_status=$? 3783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3784 test $ac_status = 0; }; then : 3785 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3786# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3787# work properly (i.e., refer to `conftest.exe'), while it won't with 3788# `rm'. 3789for ac_file in conftest.exe conftest conftest.*; do 3790 test -f "$ac_file" || continue 3791 case $ac_file in 3792 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3793 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3794 break;; 3795 * ) break;; 3796 esac 3797done 3798else 3799 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3800$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3801as_fn_error "cannot compute suffix of executables: cannot compile and link 3802See \`config.log' for more details." "$LINENO" 5; } 3803fi 3804rm -f conftest conftest$ac_cv_exeext 3805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3806$as_echo "$ac_cv_exeext" >&6; } 3807 3808rm -f conftest.$ac_ext 3809EXEEXT=$ac_cv_exeext 3810ac_exeext=$EXEEXT 3811cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3812/* end confdefs.h. */ 3813#include <stdio.h> 3814int 3815main () 3816{ 3817FILE *f = fopen ("conftest.out", "w"); 3818 return ferror (f) || fclose (f) != 0; 3819 3820 ; 3821 return 0; 3822} 3823_ACEOF 3824ac_clean_files="$ac_clean_files conftest.out" 3825# Check that the compiler produces executables we can run. If not, either 3826# the compiler is broken, or we cross compile. 3827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3828$as_echo_n "checking whether we are cross compiling... " >&6; } 3829if test "$cross_compiling" != yes; then 3830 { { ac_try="$ac_link" 3831case "(($ac_try" in 3832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3833 *) ac_try_echo=$ac_try;; 3834esac 3835eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3836$as_echo "$ac_try_echo"; } >&5 3837 (eval "$ac_link") 2>&5 3838 ac_status=$? 3839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3840 test $ac_status = 0; } 3841 if { ac_try='./conftest$ac_cv_exeext' 3842 { { case "(($ac_try" in 3843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3844 *) ac_try_echo=$ac_try;; 3845esac 3846eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3847$as_echo "$ac_try_echo"; } >&5 3848 (eval "$ac_try") 2>&5 3849 ac_status=$? 3850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3851 test $ac_status = 0; }; }; then 3852 cross_compiling=no 3853 else 3854 if test "$cross_compiling" = maybe; then 3855 cross_compiling=yes 3856 else 3857 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3858$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3859as_fn_error "cannot run C compiled programs. 3860If you meant to cross compile, use \`--host'. 3861See \`config.log' for more details." "$LINENO" 5; } 3862 fi 3863 fi 3864fi 3865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3866$as_echo "$cross_compiling" >&6; } 3867 3868rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3869ac_clean_files=$ac_clean_files_save 3870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3871$as_echo_n "checking for suffix of object files... " >&6; } 3872if test "${ac_cv_objext+set}" = set; then : 3873 $as_echo_n "(cached) " >&6 3874else 3875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3876/* end confdefs.h. */ 3877 3878int 3879main () 3880{ 3881 3882 ; 3883 return 0; 3884} 3885_ACEOF 3886rm -f conftest.o conftest.obj 3887if { { ac_try="$ac_compile" 3888case "(($ac_try" in 3889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3890 *) ac_try_echo=$ac_try;; 3891esac 3892eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3893$as_echo "$ac_try_echo"; } >&5 3894 (eval "$ac_compile") 2>&5 3895 ac_status=$? 3896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3897 test $ac_status = 0; }; then : 3898 for ac_file in conftest.o conftest.obj conftest.*; do 3899 test -f "$ac_file" || continue; 3900 case $ac_file in 3901 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3902 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3903 break;; 3904 esac 3905done 3906else 3907 $as_echo "$as_me: failed program was:" >&5 3908sed 's/^/| /' conftest.$ac_ext >&5 3909 3910{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3911$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3912as_fn_error "cannot compute suffix of object files: cannot compile 3913See \`config.log' for more details." "$LINENO" 5; } 3914fi 3915rm -f conftest.$ac_cv_objext conftest.$ac_ext 3916fi 3917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3918$as_echo "$ac_cv_objext" >&6; } 3919OBJEXT=$ac_cv_objext 3920ac_objext=$OBJEXT 3921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3922$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3923if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3924 $as_echo_n "(cached) " >&6 3925else 3926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3927/* end confdefs.h. */ 3928 3929int 3930main () 3931{ 3932#ifndef __GNUC__ 3933 choke me 3934#endif 3935 3936 ; 3937 return 0; 3938} 3939_ACEOF 3940if ac_fn_c_try_compile "$LINENO"; then : 3941 ac_compiler_gnu=yes 3942else 3943 ac_compiler_gnu=no 3944fi 3945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3946ac_cv_c_compiler_gnu=$ac_compiler_gnu 3947 3948fi 3949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3950$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3951if test $ac_compiler_gnu = yes; then 3952 GCC=yes 3953else 3954 GCC= 3955fi 3956ac_test_CFLAGS=${CFLAGS+set} 3957ac_save_CFLAGS=$CFLAGS 3958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3959$as_echo_n "checking whether $CC accepts -g... " >&6; } 3960if test "${ac_cv_prog_cc_g+set}" = set; then : 3961 $as_echo_n "(cached) " >&6 3962else 3963 ac_save_c_werror_flag=$ac_c_werror_flag 3964 ac_c_werror_flag=yes 3965 ac_cv_prog_cc_g=no 3966 CFLAGS="-g" 3967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3968/* end confdefs.h. */ 3969 3970int 3971main () 3972{ 3973 3974 ; 3975 return 0; 3976} 3977_ACEOF 3978if ac_fn_c_try_compile "$LINENO"; then : 3979 ac_cv_prog_cc_g=yes 3980else 3981 CFLAGS="" 3982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3983/* end confdefs.h. */ 3984 3985int 3986main () 3987{ 3988 3989 ; 3990 return 0; 3991} 3992_ACEOF 3993if ac_fn_c_try_compile "$LINENO"; then : 3994 3995else 3996 ac_c_werror_flag=$ac_save_c_werror_flag 3997 CFLAGS="-g" 3998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3999/* end confdefs.h. */ 4000 4001int 4002main () 4003{ 4004 4005 ; 4006 return 0; 4007} 4008_ACEOF 4009if ac_fn_c_try_compile "$LINENO"; then : 4010 ac_cv_prog_cc_g=yes 4011fi 4012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4013fi 4014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4015fi 4016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4017 ac_c_werror_flag=$ac_save_c_werror_flag 4018fi 4019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4020$as_echo "$ac_cv_prog_cc_g" >&6; } 4021if test "$ac_test_CFLAGS" = set; then 4022 CFLAGS=$ac_save_CFLAGS 4023elif test $ac_cv_prog_cc_g = yes; then 4024 if test "$GCC" = yes; then 4025 CFLAGS="-g -O2" 4026 else 4027 CFLAGS="-g" 4028 fi 4029else 4030 if test "$GCC" = yes; then 4031 CFLAGS="-O2" 4032 else 4033 CFLAGS= 4034 fi 4035fi 4036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4037$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4038if test "${ac_cv_prog_cc_c89+set}" = set; then : 4039 $as_echo_n "(cached) " >&6 4040else 4041 ac_cv_prog_cc_c89=no 4042ac_save_CC=$CC 4043cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4044/* end confdefs.h. */ 4045#include <stdarg.h> 4046#include <stdio.h> 4047#include <sys/types.h> 4048#include <sys/stat.h> 4049/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4050struct buf { int x; }; 4051FILE * (*rcsopen) (struct buf *, struct stat *, int); 4052static char *e (p, i) 4053 char **p; 4054 int i; 4055{ 4056 return p[i]; 4057} 4058static char *f (char * (*g) (char **, int), char **p, ...) 4059{ 4060 char *s; 4061 va_list v; 4062 va_start (v,p); 4063 s = g (p, va_arg (v,int)); 4064 va_end (v); 4065 return s; 4066} 4067 4068/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4069 function prototypes and stuff, but not '\xHH' hex character constants. 4070 These don't provoke an error unfortunately, instead are silently treated 4071 as 'x'. The following induces an error, until -std is added to get 4072 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4073 array size at least. It's necessary to write '\x00'==0 to get something 4074 that's true only with -std. */ 4075int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4076 4077/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4078 inside strings and character constants. */ 4079#define FOO(x) 'x' 4080int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4081 4082int test (int i, double x); 4083struct s1 {int (*f) (int a);}; 4084struct s2 {int (*f) (double a);}; 4085int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4086int argc; 4087char **argv; 4088int 4089main () 4090{ 4091return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4092 ; 4093 return 0; 4094} 4095_ACEOF 4096for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4097 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4098do 4099 CC="$ac_save_CC $ac_arg" 4100 if ac_fn_c_try_compile "$LINENO"; then : 4101 ac_cv_prog_cc_c89=$ac_arg 4102fi 4103rm -f core conftest.err conftest.$ac_objext 4104 test "x$ac_cv_prog_cc_c89" != "xno" && break 4105done 4106rm -f conftest.$ac_ext 4107CC=$ac_save_CC 4108 4109fi 4110# AC_CACHE_VAL 4111case "x$ac_cv_prog_cc_c89" in 4112 x) 4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4114$as_echo "none needed" >&6; } ;; 4115 xno) 4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4117$as_echo "unsupported" >&6; } ;; 4118 *) 4119 CC="$CC $ac_cv_prog_cc_c89" 4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4121$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4122esac 4123if test "x$ac_cv_prog_cc_c89" != xno; then : 4124 4125fi 4126 4127ac_ext=c 4128ac_cpp='$CPP $CPPFLAGS' 4129ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4130ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4131ac_compiler_gnu=$ac_cv_c_compiler_gnu 4132 4133depcc="$CC" am_compiler_list= 4134 4135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4136$as_echo_n "checking dependency style of $depcc... " >&6; } 4137if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 4138 $as_echo_n "(cached) " >&6 4139else 4140 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4141 # We make a subdir and do the tests there. Otherwise we can end up 4142 # making bogus files that we don't know about and never remove. For 4143 # instance it was reported that on HP-UX the gcc test will end up 4144 # making a dummy file named `D' -- because `-MD' means `put the output 4145 # in D'. 4146 mkdir conftest.dir 4147 # Copy depcomp to subdir because otherwise we won't find it if we're 4148 # using a relative directory. 4149 cp "$am_depcomp" conftest.dir 4150 cd conftest.dir 4151 # We will build objects and dependencies in a subdirectory because 4152 # it helps to detect inapplicable dependency modes. For instance 4153 # both Tru64's cc and ICC support -MD to output dependencies as a 4154 # side effect of compilation, but ICC will put the dependencies in 4155 # the current directory while Tru64 will put them in the object 4156 # directory. 4157 mkdir sub 4158 4159 am_cv_CC_dependencies_compiler_type=none 4160 if test "$am_compiler_list" = ""; then 4161 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4162 fi 4163 am__universal=false 4164 case " $depcc " in #( 4165 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4166 esac 4167 4168 for depmode in $am_compiler_list; do 4169 # Setup a source with many dependencies, because some compilers 4170 # like to wrap large dependency lists on column 80 (with \), and 4171 # we should not choose a depcomp mode which is confused by this. 4172 # 4173 # We need to recreate these files for each test, as the compiler may 4174 # overwrite some of them when testing with obscure command lines. 4175 # This happens at least with the AIX C compiler. 4176 : > sub/conftest.c 4177 for i in 1 2 3 4 5 6; do 4178 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4179 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4180 # Solaris 8's {/usr,}/bin/sh. 4181 touch sub/conftst$i.h 4182 done 4183 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4184 4185 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4186 # mode. It turns out that the SunPro C++ compiler does not properly 4187 # handle `-M -o', and we need to detect this. Also, some Intel 4188 # versions had trouble with output in subdirs 4189 am__obj=sub/conftest.${OBJEXT-o} 4190 am__minus_obj="-o $am__obj" 4191 case $depmode in 4192 gcc) 4193 # This depmode causes a compiler race in universal mode. 4194 test "$am__universal" = false || continue 4195 ;; 4196 nosideeffect) 4197 # after this tag, mechanisms are not by side-effect, so they'll 4198 # only be used when explicitly requested 4199 if test "x$enable_dependency_tracking" = xyes; then 4200 continue 4201 else 4202 break 4203 fi 4204 ;; 4205 msvisualcpp | msvcmsys) 4206 # This compiler won't grok `-c -o', but also, the minuso test has 4207 # not run yet. These depmodes are late enough in the game, and 4208 # so weak that their functioning should not be impacted. 4209 am__obj=conftest.${OBJEXT-o} 4210 am__minus_obj= 4211 ;; 4212 none) break ;; 4213 esac 4214 if depmode=$depmode \ 4215 source=sub/conftest.c object=$am__obj \ 4216 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4217 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4218 >/dev/null 2>conftest.err && 4219 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4220 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4221 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4222 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4223 # icc doesn't choke on unknown options, it will just issue warnings 4224 # or remarks (even with -Werror). So we grep stderr for any message 4225 # that says an option was ignored or not supported. 4226 # When given -MP, icc 7.0 and 7.1 complain thusly: 4227 # icc: Command line warning: ignoring option '-M'; no argument required 4228 # The diagnosis changed in icc 8.0: 4229 # icc: Command line remark: option '-MP' not supported 4230 if (grep 'ignoring option' conftest.err || 4231 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4232 am_cv_CC_dependencies_compiler_type=$depmode 4233 break 4234 fi 4235 fi 4236 done 4237 4238 cd .. 4239 rm -rf conftest.dir 4240else 4241 am_cv_CC_dependencies_compiler_type=none 4242fi 4243 4244fi 4245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4246$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4247CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4248 4249 if 4250 test "x$enable_dependency_tracking" != xno \ 4251 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4252 am__fastdepCC_TRUE= 4253 am__fastdepCC_FALSE='#' 4254else 4255 am__fastdepCC_TRUE='#' 4256 am__fastdepCC_FALSE= 4257fi 4258 4259 4260 4261ac_ext=c 4262ac_cpp='$CPP $CPPFLAGS' 4263ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4264ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4265ac_compiler_gnu=$ac_cv_c_compiler_gnu 4266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4267$as_echo_n "checking how to run the C preprocessor... " >&6; } 4268# On Suns, sometimes $CPP names a directory. 4269if test -n "$CPP" && test -d "$CPP"; then 4270 CPP= 4271fi 4272if test -z "$CPP"; then 4273 if test "${ac_cv_prog_CPP+set}" = set; then : 4274 $as_echo_n "(cached) " >&6 4275else 4276 # Double quotes because CPP needs to be expanded 4277 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4278 do 4279 ac_preproc_ok=false 4280for ac_c_preproc_warn_flag in '' yes 4281do 4282 # Use a header file that comes with gcc, so configuring glibc 4283 # with a fresh cross-compiler works. 4284 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4285 # <limits.h> exists even on freestanding compilers. 4286 # On the NeXT, cc -E runs the code through the compiler's parser, 4287 # not just through cpp. "Syntax error" is here to catch this case. 4288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4289/* end confdefs.h. */ 4290#ifdef __STDC__ 4291# include <limits.h> 4292#else 4293# include <assert.h> 4294#endif 4295 Syntax error 4296_ACEOF 4297if ac_fn_c_try_cpp "$LINENO"; then : 4298 4299else 4300 # Broken: fails on valid input. 4301continue 4302fi 4303rm -f conftest.err conftest.$ac_ext 4304 4305 # OK, works on sane cases. Now check whether nonexistent headers 4306 # can be detected and how. 4307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4308/* end confdefs.h. */ 4309#include <ac_nonexistent.h> 4310_ACEOF 4311if ac_fn_c_try_cpp "$LINENO"; then : 4312 # Broken: success on invalid input. 4313continue 4314else 4315 # Passes both tests. 4316ac_preproc_ok=: 4317break 4318fi 4319rm -f conftest.err conftest.$ac_ext 4320 4321done 4322# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4323rm -f conftest.err conftest.$ac_ext 4324if $ac_preproc_ok; then : 4325 break 4326fi 4327 4328 done 4329 ac_cv_prog_CPP=$CPP 4330 4331fi 4332 CPP=$ac_cv_prog_CPP 4333else 4334 ac_cv_prog_CPP=$CPP 4335fi 4336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4337$as_echo "$CPP" >&6; } 4338ac_preproc_ok=false 4339for ac_c_preproc_warn_flag in '' yes 4340do 4341 # Use a header file that comes with gcc, so configuring glibc 4342 # with a fresh cross-compiler works. 4343 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4344 # <limits.h> exists even on freestanding compilers. 4345 # On the NeXT, cc -E runs the code through the compiler's parser, 4346 # not just through cpp. "Syntax error" is here to catch this case. 4347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4348/* end confdefs.h. */ 4349#ifdef __STDC__ 4350# include <limits.h> 4351#else 4352# include <assert.h> 4353#endif 4354 Syntax error 4355_ACEOF 4356if ac_fn_c_try_cpp "$LINENO"; then : 4357 4358else 4359 # Broken: fails on valid input. 4360continue 4361fi 4362rm -f conftest.err conftest.$ac_ext 4363 4364 # OK, works on sane cases. Now check whether nonexistent headers 4365 # can be detected and how. 4366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4367/* end confdefs.h. */ 4368#include <ac_nonexistent.h> 4369_ACEOF 4370if ac_fn_c_try_cpp "$LINENO"; then : 4371 # Broken: success on invalid input. 4372continue 4373else 4374 # Passes both tests. 4375ac_preproc_ok=: 4376break 4377fi 4378rm -f conftest.err conftest.$ac_ext 4379 4380done 4381# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4382rm -f conftest.err conftest.$ac_ext 4383if $ac_preproc_ok; then : 4384 4385else 4386 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4387$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4388as_fn_error "C preprocessor \"$CPP\" fails sanity check 4389See \`config.log' for more details." "$LINENO" 5; } 4390fi 4391 4392ac_ext=c 4393ac_cpp='$CPP $CPPFLAGS' 4394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4396ac_compiler_gnu=$ac_cv_c_compiler_gnu 4397 4398 4399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4400$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4401if test "${ac_cv_path_GREP+set}" = set; then : 4402 $as_echo_n "(cached) " >&6 4403else 4404 if test -z "$GREP"; then 4405 ac_path_GREP_found=false 4406 # Loop through the user's path and test for each of PROGNAME-LIST 4407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4408for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4409do 4410 IFS=$as_save_IFS 4411 test -z "$as_dir" && as_dir=. 4412 for ac_prog in grep ggrep; do 4413 for ac_exec_ext in '' $ac_executable_extensions; do 4414 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4415 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4416# Check for GNU ac_path_GREP and select it if it is found. 4417 # Check for GNU $ac_path_GREP 4418case `"$ac_path_GREP" --version 2>&1` in 4419*GNU*) 4420 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4421*) 4422 ac_count=0 4423 $as_echo_n 0123456789 >"conftest.in" 4424 while : 4425 do 4426 cat "conftest.in" "conftest.in" >"conftest.tmp" 4427 mv "conftest.tmp" "conftest.in" 4428 cp "conftest.in" "conftest.nl" 4429 $as_echo 'GREP' >> "conftest.nl" 4430 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4431 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4432 as_fn_arith $ac_count + 1 && ac_count=$as_val 4433 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4434 # Best one so far, save it but keep looking for a better one 4435 ac_cv_path_GREP="$ac_path_GREP" 4436 ac_path_GREP_max=$ac_count 4437 fi 4438 # 10*(2^10) chars as input seems more than enough 4439 test $ac_count -gt 10 && break 4440 done 4441 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4442esac 4443 4444 $ac_path_GREP_found && break 3 4445 done 4446 done 4447 done 4448IFS=$as_save_IFS 4449 if test -z "$ac_cv_path_GREP"; then 4450 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4451 fi 4452else 4453 ac_cv_path_GREP=$GREP 4454fi 4455 4456fi 4457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4458$as_echo "$ac_cv_path_GREP" >&6; } 4459 GREP="$ac_cv_path_GREP" 4460 4461 4462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4463$as_echo_n "checking for egrep... " >&6; } 4464if test "${ac_cv_path_EGREP+set}" = set; then : 4465 $as_echo_n "(cached) " >&6 4466else 4467 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4468 then ac_cv_path_EGREP="$GREP -E" 4469 else 4470 if test -z "$EGREP"; then 4471 ac_path_EGREP_found=false 4472 # Loop through the user's path and test for each of PROGNAME-LIST 4473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4474for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4475do 4476 IFS=$as_save_IFS 4477 test -z "$as_dir" && as_dir=. 4478 for ac_prog in egrep; do 4479 for ac_exec_ext in '' $ac_executable_extensions; do 4480 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4481 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4482# Check for GNU ac_path_EGREP and select it if it is found. 4483 # Check for GNU $ac_path_EGREP 4484case `"$ac_path_EGREP" --version 2>&1` in 4485*GNU*) 4486 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4487*) 4488 ac_count=0 4489 $as_echo_n 0123456789 >"conftest.in" 4490 while : 4491 do 4492 cat "conftest.in" "conftest.in" >"conftest.tmp" 4493 mv "conftest.tmp" "conftest.in" 4494 cp "conftest.in" "conftest.nl" 4495 $as_echo 'EGREP' >> "conftest.nl" 4496 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4497 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4498 as_fn_arith $ac_count + 1 && ac_count=$as_val 4499 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4500 # Best one so far, save it but keep looking for a better one 4501 ac_cv_path_EGREP="$ac_path_EGREP" 4502 ac_path_EGREP_max=$ac_count 4503 fi 4504 # 10*(2^10) chars as input seems more than enough 4505 test $ac_count -gt 10 && break 4506 done 4507 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4508esac 4509 4510 $ac_path_EGREP_found && break 3 4511 done 4512 done 4513 done 4514IFS=$as_save_IFS 4515 if test -z "$ac_cv_path_EGREP"; then 4516 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4517 fi 4518else 4519 ac_cv_path_EGREP=$EGREP 4520fi 4521 4522 fi 4523fi 4524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4525$as_echo "$ac_cv_path_EGREP" >&6; } 4526 EGREP="$ac_cv_path_EGREP" 4527 4528 4529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4530$as_echo_n "checking for ANSI C header files... " >&6; } 4531if test "${ac_cv_header_stdc+set}" = set; then : 4532 $as_echo_n "(cached) " >&6 4533else 4534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4535/* end confdefs.h. */ 4536#include <stdlib.h> 4537#include <stdarg.h> 4538#include <string.h> 4539#include <float.h> 4540 4541int 4542main () 4543{ 4544 4545 ; 4546 return 0; 4547} 4548_ACEOF 4549if ac_fn_c_try_compile "$LINENO"; then : 4550 ac_cv_header_stdc=yes 4551else 4552 ac_cv_header_stdc=no 4553fi 4554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4555 4556if test $ac_cv_header_stdc = yes; then 4557 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4559/* end confdefs.h. */ 4560#include <string.h> 4561 4562_ACEOF 4563if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4564 $EGREP "memchr" >/dev/null 2>&1; then : 4565 4566else 4567 ac_cv_header_stdc=no 4568fi 4569rm -f conftest* 4570 4571fi 4572 4573if test $ac_cv_header_stdc = yes; then 4574 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4576/* end confdefs.h. */ 4577#include <stdlib.h> 4578 4579_ACEOF 4580if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4581 $EGREP "free" >/dev/null 2>&1; then : 4582 4583else 4584 ac_cv_header_stdc=no 4585fi 4586rm -f conftest* 4587 4588fi 4589 4590if test $ac_cv_header_stdc = yes; then 4591 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4592 if test "$cross_compiling" = yes; then : 4593 : 4594else 4595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4596/* end confdefs.h. */ 4597#include <ctype.h> 4598#include <stdlib.h> 4599#if ((' ' & 0x0FF) == 0x020) 4600# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4601# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4602#else 4603# define ISLOWER(c) \ 4604 (('a' <= (c) && (c) <= 'i') \ 4605 || ('j' <= (c) && (c) <= 'r') \ 4606 || ('s' <= (c) && (c) <= 'z')) 4607# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4608#endif 4609 4610#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4611int 4612main () 4613{ 4614 int i; 4615 for (i = 0; i < 256; i++) 4616 if (XOR (islower (i), ISLOWER (i)) 4617 || toupper (i) != TOUPPER (i)) 4618 return 2; 4619 return 0; 4620} 4621_ACEOF 4622if ac_fn_c_try_run "$LINENO"; then : 4623 4624else 4625 ac_cv_header_stdc=no 4626fi 4627rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4628 conftest.$ac_objext conftest.beam conftest.$ac_ext 4629fi 4630 4631fi 4632fi 4633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4634$as_echo "$ac_cv_header_stdc" >&6; } 4635if test $ac_cv_header_stdc = yes; then 4636 4637$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4638 4639fi 4640 4641# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4642for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4643 inttypes.h stdint.h unistd.h 4644do : 4645 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4646ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4647" 4648eval as_val=\$$as_ac_Header 4649 if test "x$as_val" = x""yes; then : 4650 cat >>confdefs.h <<_ACEOF 4651#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4652_ACEOF 4653 4654fi 4655 4656done 4657 4658 4659 4660 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4661if test "x$ac_cv_header_minix_config_h" = x""yes; then : 4662 MINIX=yes 4663else 4664 MINIX= 4665fi 4666 4667 4668 if test "$MINIX" = yes; then 4669 4670$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4671 4672 4673$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4674 4675 4676$as_echo "#define _MINIX 1" >>confdefs.h 4677 4678 fi 4679 4680 4681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4682$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4683if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : 4684 $as_echo_n "(cached) " >&6 4685else 4686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4687/* end confdefs.h. */ 4688 4689# define __EXTENSIONS__ 1 4690 $ac_includes_default 4691int 4692main () 4693{ 4694 4695 ; 4696 return 0; 4697} 4698_ACEOF 4699if ac_fn_c_try_compile "$LINENO"; then : 4700 ac_cv_safe_to_define___extensions__=yes 4701else 4702 ac_cv_safe_to_define___extensions__=no 4703fi 4704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4705fi 4706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4707$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4708 test $ac_cv_safe_to_define___extensions__ = yes && 4709 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4710 4711 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4712 4713 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4714 4715 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4716 4717 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4718 4719 4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4721$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4722if test "${ac_cv_prog_cc_c99+set}" = set; then : 4723 $as_echo_n "(cached) " >&6 4724else 4725 ac_cv_prog_cc_c99=no 4726ac_save_CC=$CC 4727cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4728/* end confdefs.h. */ 4729#include <stdarg.h> 4730#include <stdbool.h> 4731#include <stdlib.h> 4732#include <wchar.h> 4733#include <stdio.h> 4734 4735// Check varargs macros. These examples are taken from C99 6.10.3.5. 4736#define debug(...) fprintf (stderr, __VA_ARGS__) 4737#define showlist(...) puts (#__VA_ARGS__) 4738#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4739static void 4740test_varargs_macros (void) 4741{ 4742 int x = 1234; 4743 int y = 5678; 4744 debug ("Flag"); 4745 debug ("X = %d\n", x); 4746 showlist (The first, second, and third items.); 4747 report (x>y, "x is %d but y is %d", x, y); 4748} 4749 4750// Check long long types. 4751#define BIG64 18446744073709551615ull 4752#define BIG32 4294967295ul 4753#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4754#if !BIG_OK 4755 your preprocessor is broken; 4756#endif 4757#if BIG_OK 4758#else 4759 your preprocessor is broken; 4760#endif 4761static long long int bignum = -9223372036854775807LL; 4762static unsigned long long int ubignum = BIG64; 4763 4764struct incomplete_array 4765{ 4766 int datasize; 4767 double data[]; 4768}; 4769 4770struct named_init { 4771 int number; 4772 const wchar_t *name; 4773 double average; 4774}; 4775 4776typedef const char *ccp; 4777 4778static inline int 4779test_restrict (ccp restrict text) 4780{ 4781 // See if C++-style comments work. 4782 // Iterate through items via the restricted pointer. 4783 // Also check for declarations in for loops. 4784 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4785 continue; 4786 return 0; 4787} 4788 4789// Check varargs and va_copy. 4790static void 4791test_varargs (const char *format, ...) 4792{ 4793 va_list args; 4794 va_start (args, format); 4795 va_list args_copy; 4796 va_copy (args_copy, args); 4797 4798 const char *str; 4799 int number; 4800 float fnumber; 4801 4802 while (*format) 4803 { 4804 switch (*format++) 4805 { 4806 case 's': // string 4807 str = va_arg (args_copy, const char *); 4808 break; 4809 case 'd': // int 4810 number = va_arg (args_copy, int); 4811 break; 4812 case 'f': // float 4813 fnumber = va_arg (args_copy, double); 4814 break; 4815 default: 4816 break; 4817 } 4818 } 4819 va_end (args_copy); 4820 va_end (args); 4821} 4822 4823int 4824main () 4825{ 4826 4827 // Check bool. 4828 _Bool success = false; 4829 4830 // Check restrict. 4831 if (test_restrict ("String literal") == 0) 4832 success = true; 4833 char *restrict newvar = "Another string"; 4834 4835 // Check varargs. 4836 test_varargs ("s, d' f .", "string", 65, 34.234); 4837 test_varargs_macros (); 4838 4839 // Check flexible array members. 4840 struct incomplete_array *ia = 4841 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4842 ia->datasize = 10; 4843 for (int i = 0; i < ia->datasize; ++i) 4844 ia->data[i] = i * 1.234; 4845 4846 // Check named initializers. 4847 struct named_init ni = { 4848 .number = 34, 4849 .name = L"Test wide string", 4850 .average = 543.34343, 4851 }; 4852 4853 ni.number = 58; 4854 4855 int dynamic_array[ni.number]; 4856 dynamic_array[ni.number - 1] = 543; 4857 4858 // work around unused variable warnings 4859 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4860 || dynamic_array[ni.number - 1] != 543); 4861 4862 ; 4863 return 0; 4864} 4865_ACEOF 4866for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 4867do 4868 CC="$ac_save_CC $ac_arg" 4869 if ac_fn_c_try_compile "$LINENO"; then : 4870 ac_cv_prog_cc_c99=$ac_arg 4871fi 4872rm -f core conftest.err conftest.$ac_objext 4873 test "x$ac_cv_prog_cc_c99" != "xno" && break 4874done 4875rm -f conftest.$ac_ext 4876CC=$ac_save_CC 4877 4878fi 4879# AC_CACHE_VAL 4880case "x$ac_cv_prog_cc_c99" in 4881 x) 4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4883$as_echo "none needed" >&6; } ;; 4884 xno) 4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4886$as_echo "unsupported" >&6; } ;; 4887 *) 4888 CC="$CC $ac_cv_prog_cc_c99" 4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4890$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4891esac 4892if test "x$ac_cv_prog_cc_c99" != xno; then : 4893 4894fi 4895 4896 4897 4898 4899if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4900 if test -n "$ac_tool_prefix"; then 4901 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4902set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4904$as_echo_n "checking for $ac_word... " >&6; } 4905if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 4906 $as_echo_n "(cached) " >&6 4907else 4908 case $PKG_CONFIG in 4909 [\\/]* | ?:[\\/]*) 4910 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4911 ;; 4912 *) 4913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4914for as_dir in $PATH 4915do 4916 IFS=$as_save_IFS 4917 test -z "$as_dir" && as_dir=. 4918 for ac_exec_ext in '' $ac_executable_extensions; do 4919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4920 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4922 break 2 4923 fi 4924done 4925 done 4926IFS=$as_save_IFS 4927 4928 ;; 4929esac 4930fi 4931PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4932if test -n "$PKG_CONFIG"; then 4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4934$as_echo "$PKG_CONFIG" >&6; } 4935else 4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4937$as_echo "no" >&6; } 4938fi 4939 4940 4941fi 4942if test -z "$ac_cv_path_PKG_CONFIG"; then 4943 ac_pt_PKG_CONFIG=$PKG_CONFIG 4944 # Extract the first word of "pkg-config", so it can be a program name with args. 4945set dummy pkg-config; ac_word=$2 4946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4947$as_echo_n "checking for $ac_word... " >&6; } 4948if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : 4949 $as_echo_n "(cached) " >&6 4950else 4951 case $ac_pt_PKG_CONFIG in 4952 [\\/]* | ?:[\\/]*) 4953 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4954 ;; 4955 *) 4956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4957for as_dir in $PATH 4958do 4959 IFS=$as_save_IFS 4960 test -z "$as_dir" && as_dir=. 4961 for ac_exec_ext in '' $ac_executable_extensions; do 4962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4963 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4965 break 2 4966 fi 4967done 4968 done 4969IFS=$as_save_IFS 4970 4971 ;; 4972esac 4973fi 4974ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4975if test -n "$ac_pt_PKG_CONFIG"; then 4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4977$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4978else 4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4980$as_echo "no" >&6; } 4981fi 4982 4983 if test "x$ac_pt_PKG_CONFIG" = x; then 4984 PKG_CONFIG="" 4985 else 4986 case $cross_compiling:$ac_tool_warned in 4987yes:) 4988{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4989$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4990ac_tool_warned=yes ;; 4991esac 4992 PKG_CONFIG=$ac_pt_PKG_CONFIG 4993 fi 4994else 4995 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4996fi 4997 4998fi 4999if test -n "$PKG_CONFIG"; then 5000 _pkg_min_version=0.9.0 5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 5002$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 5003 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5005$as_echo "yes" >&6; } 5006 else 5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5008$as_echo "no" >&6; } 5009 PKG_CONFIG="" 5010 fi 5011 5012fi 5013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5014$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5015if test "${ac_cv_path_SED+set}" = set; then : 5016 $as_echo_n "(cached) " >&6 5017else 5018 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5019 for ac_i in 1 2 3 4 5 6 7; do 5020 ac_script="$ac_script$as_nl$ac_script" 5021 done 5022 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5023 { ac_script=; unset ac_script;} 5024 if test -z "$SED"; then 5025 ac_path_SED_found=false 5026 # Loop through the user's path and test for each of PROGNAME-LIST 5027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5028for as_dir in $PATH 5029do 5030 IFS=$as_save_IFS 5031 test -z "$as_dir" && as_dir=. 5032 for ac_prog in sed gsed; do 5033 for ac_exec_ext in '' $ac_executable_extensions; do 5034 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5035 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 5036# Check for GNU ac_path_SED and select it if it is found. 5037 # Check for GNU $ac_path_SED 5038case `"$ac_path_SED" --version 2>&1` in 5039*GNU*) 5040 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5041*) 5042 ac_count=0 5043 $as_echo_n 0123456789 >"conftest.in" 5044 while : 5045 do 5046 cat "conftest.in" "conftest.in" >"conftest.tmp" 5047 mv "conftest.tmp" "conftest.in" 5048 cp "conftest.in" "conftest.nl" 5049 $as_echo '' >> "conftest.nl" 5050 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5051 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5052 as_fn_arith $ac_count + 1 && ac_count=$as_val 5053 if test $ac_count -gt ${ac_path_SED_max-0}; then 5054 # Best one so far, save it but keep looking for a better one 5055 ac_cv_path_SED="$ac_path_SED" 5056 ac_path_SED_max=$ac_count 5057 fi 5058 # 10*(2^10) chars as input seems more than enough 5059 test $ac_count -gt 10 && break 5060 done 5061 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5062esac 5063 5064 $ac_path_SED_found && break 3 5065 done 5066 done 5067 done 5068IFS=$as_save_IFS 5069 if test -z "$ac_cv_path_SED"; then 5070 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 5071 fi 5072else 5073 ac_cv_path_SED=$SED 5074fi 5075 5076fi 5077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5078$as_echo "$ac_cv_path_SED" >&6; } 5079 SED="$ac_cv_path_SED" 5080 rm -f conftest.sed 5081 5082 5083 5084 5085 5086if test "x$GCC" = xyes ; then 5087 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 5088-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 5089-Wbad-function-cast -Wformat=2" 5090 case `$CC -dumpversion` in 5091 3.4.* | 4.*) 5092 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 5093 ;; 5094 esac 5095else 5096 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 5097if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then : 5098 SUNCC="yes" 5099else 5100 SUNCC="no" 5101fi 5102 5103 if test "x$SUNCC" = "xyes"; then 5104 CWARNFLAGS="-v" 5105 fi 5106fi 5107 5108 5109 5110# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89 5111 5112 5113 5114# Check whether --enable-strict-compilation was given. 5115if test "${enable_strict_compilation+set}" = set; then : 5116 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 5117else 5118 STRICT_COMPILE=no 5119fi 5120 5121if test "x$STRICT_COMPILE" = "xyes"; then 5122 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 5123if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then : 5124 SUNCC="yes" 5125else 5126 SUNCC="no" 5127fi 5128 5129 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 5130if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then : 5131 INTELCC="yes" 5132else 5133 INTELCC="no" 5134fi 5135 5136 if test "x$GCC" = xyes ; then 5137 STRICT_CFLAGS="-pedantic -Werror" 5138 elif test "x$SUNCC" = "xyes"; then 5139 STRICT_CFLAGS="-errwarn" 5140 elif test "x$INTELCC" = "xyes"; then 5141 STRICT_CFLAGS="-Werror" 5142 fi 5143fi 5144CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 5145 5146 5147 5148 5149cat >>confdefs.h <<_ACEOF 5150#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 5151_ACEOF 5152 5153 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 5154 if test "x$PVM" = "x"; then 5155 PVM="0" 5156 fi 5157 5158cat >>confdefs.h <<_ACEOF 5159#define PACKAGE_VERSION_MINOR $PVM 5160_ACEOF 5161 5162 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 5163 if test "x$PVP" = "x"; then 5164 PVP="0" 5165 fi 5166 5167cat >>confdefs.h <<_ACEOF 5168#define PACKAGE_VERSION_PATCHLEVEL $PVP 5169_ACEOF 5170 5171 5172 5173CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 5174mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 5175|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 5176echo 'git directory not found: installing possibly empty changelog.' >&2)" 5177 5178 5179 5180 5181macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 5182INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 5183mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 5184|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 5185echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 5186 5187 5188 5189 5190 5191 5192if test x$APP_MAN_SUFFIX = x ; then 5193 APP_MAN_SUFFIX=1 5194fi 5195if test x$APP_MAN_DIR = x ; then 5196 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 5197fi 5198 5199if test x$LIB_MAN_SUFFIX = x ; then 5200 LIB_MAN_SUFFIX=3 5201fi 5202if test x$LIB_MAN_DIR = x ; then 5203 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 5204fi 5205 5206if test x$FILE_MAN_SUFFIX = x ; then 5207 case $host_os in 5208 solaris*) FILE_MAN_SUFFIX=4 ;; 5209 *) FILE_MAN_SUFFIX=5 ;; 5210 esac 5211fi 5212if test x$FILE_MAN_DIR = x ; then 5213 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 5214fi 5215 5216if test x$MISC_MAN_SUFFIX = x ; then 5217 case $host_os in 5218 solaris*) MISC_MAN_SUFFIX=5 ;; 5219 *) MISC_MAN_SUFFIX=7 ;; 5220 esac 5221fi 5222if test x$MISC_MAN_DIR = x ; then 5223 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 5224fi 5225 5226if test x$DRIVER_MAN_SUFFIX = x ; then 5227 case $host_os in 5228 solaris*) DRIVER_MAN_SUFFIX=7 ;; 5229 *) DRIVER_MAN_SUFFIX=4 ;; 5230 esac 5231fi 5232if test x$DRIVER_MAN_DIR = x ; then 5233 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 5234fi 5235 5236if test x$ADMIN_MAN_SUFFIX = x ; then 5237 case $host_os in 5238 solaris*) ADMIN_MAN_SUFFIX=1m ;; 5239 *) ADMIN_MAN_SUFFIX=8 ;; 5240 esac 5241fi 5242if test x$ADMIN_MAN_DIR = x ; then 5243 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 5244fi 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260XORG_MAN_PAGE="X Version 11" 5261 5262MAN_SUBSTS="\ 5263 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 5264 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 5265 -e 's|__xservername__|Xorg|g' \ 5266 -e 's|__xconfigfile__|xorg.conf|g' \ 5267 -e 's|__projectroot__|\$(prefix)|g' \ 5268 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 5269 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 5270 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 5271 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 5272 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 5273 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 5274 5275 5276 5277# Check whether --enable-silent-rules was given. 5278if test "${enable_silent_rules+set}" = set; then : 5279 enableval=$enable_silent_rules; 5280fi 5281 5282case $enable_silent_rules in 5283yes) AM_DEFAULT_VERBOSITY=0;; 5284no) AM_DEFAULT_VERBOSITY=1;; 5285*) AM_DEFAULT_VERBOSITY=0;; 5286esac 5287AM_BACKSLASH='\' 5288 5289 5290 5291spec_default= 5292if test "x$spec_default" = x ; then 5293 spec_default="yes" 5294fi 5295# Check whether --enable-specs was given. 5296if test "${enable_specs+set}" = set; then : 5297 enableval=$enable_specs; build_specs=$enableval 5298else 5299 build_specs=$spec_default 5300fi 5301 5302 if test x$build_specs = xyes; then 5303 ENABLE_SPECS_TRUE= 5304 ENABLE_SPECS_FALSE='#' 5305else 5306 ENABLE_SPECS_TRUE='#' 5307 ENABLE_SPECS_FALSE= 5308fi 5309 5310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5 5311$as_echo_n "checking whether to build functional specifications... " >&6; } 5312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5 5313$as_echo "$build_specs" >&6; } 5314 5315 5316 5317 5318# Check whether --with-groff was given. 5319if test "${with_groff+set}" = set; then : 5320 withval=$with_groff; use_groff=$withval 5321else 5322 use_groff=auto 5323fi 5324 5325 5326if test "x$use_groff" = x"auto"; then 5327 # Extract the first word of "groff", so it can be a program name with args. 5328set dummy groff; ac_word=$2 5329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5330$as_echo_n "checking for $ac_word... " >&6; } 5331if test "${ac_cv_path_GROFF+set}" = set; then : 5332 $as_echo_n "(cached) " >&6 5333else 5334 case $GROFF in 5335 [\\/]* | ?:[\\/]*) 5336 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. 5337 ;; 5338 *) 5339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5340for as_dir in $PATH 5341do 5342 IFS=$as_save_IFS 5343 test -z "$as_dir" && as_dir=. 5344 for ac_exec_ext in '' $ac_executable_extensions; do 5345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5346 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" 5347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5348 break 2 5349 fi 5350done 5351 done 5352IFS=$as_save_IFS 5353 5354 ;; 5355esac 5356fi 5357GROFF=$ac_cv_path_GROFF 5358if test -n "$GROFF"; then 5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5 5360$as_echo "$GROFF" >&6; } 5361else 5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5363$as_echo "no" >&6; } 5364fi 5365 5366 5367 if test "x$GROFF" = "x"; then 5368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: groff not found - documentation targets will be skipped" >&5 5369$as_echo "$as_me: WARNING: groff not found - documentation targets will be skipped" >&2;} 5370 have_groff=no 5371 else 5372 have_groff=yes 5373 fi 5374elif test "x$use_groff" = x"yes" ; then 5375 # Extract the first word of "groff", so it can be a program name with args. 5376set dummy groff; ac_word=$2 5377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5378$as_echo_n "checking for $ac_word... " >&6; } 5379if test "${ac_cv_path_GROFF+set}" = set; then : 5380 $as_echo_n "(cached) " >&6 5381else 5382 case $GROFF in 5383 [\\/]* | ?:[\\/]*) 5384 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. 5385 ;; 5386 *) 5387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5388for as_dir in $PATH 5389do 5390 IFS=$as_save_IFS 5391 test -z "$as_dir" && as_dir=. 5392 for ac_exec_ext in '' $ac_executable_extensions; do 5393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5394 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" 5395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5396 break 2 5397 fi 5398done 5399 done 5400IFS=$as_save_IFS 5401 5402 ;; 5403esac 5404fi 5405GROFF=$ac_cv_path_GROFF 5406if test -n "$GROFF"; then 5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5 5408$as_echo "$GROFF" >&6; } 5409else 5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5411$as_echo "no" >&6; } 5412fi 5413 5414 5415 if test "x$GROFF" = "x"; then 5416 as_fn_error "--with-groff=yes specified but groff not found in PATH" "$LINENO" 5 5417 fi 5418 have_groff=yes 5419elif test "x$use_groff" = x"no" ; then 5420 if test "x$GROFF" != "x"; then 5421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring GROFF environment variable since --with-groff=no was specified" >&5 5422$as_echo "$as_me: WARNING: ignoring GROFF environment variable since --with-groff=no was specified" >&2;} 5423 fi 5424 have_groff=no 5425else 5426 as_fn_error "--with-groff expects 'yes' or 'no'" "$LINENO" 5 5427fi 5428 5429# We have groff, test for the presence of the macro packages 5430if test "x$have_groff" = x"yes"; then 5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${GROFF} -ms macros" >&5 5432$as_echo_n "checking for ${GROFF} -ms macros... " >&6; } 5433 if ${GROFF} -ms -I. /dev/null >/dev/null 2>&1 ; then 5434 groff_ms_works=yes 5435 else 5436 groff_ms_works=no 5437 fi 5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $groff_ms_works" >&5 5439$as_echo "$groff_ms_works" >&6; } 5440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${GROFF} -mm macros" >&5 5441$as_echo_n "checking for ${GROFF} -mm macros... " >&6; } 5442 if ${GROFF} -mm -I. /dev/null >/dev/null 2>&1 ; then 5443 groff_mm_works=yes 5444 else 5445 groff_mm_works=no 5446 fi 5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $groff_mm_works" >&5 5448$as_echo "$groff_mm_works" >&6; } 5449fi 5450 5451# We have groff, test for HTML dependencies, one command per package 5452if test "x$have_groff" = x"yes"; then 5453 for ac_prog in gs gswin32c 5454do 5455 # Extract the first word of "$ac_prog", so it can be a program name with args. 5456set dummy $ac_prog; ac_word=$2 5457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5458$as_echo_n "checking for $ac_word... " >&6; } 5459if test "${ac_cv_path_GS_PATH+set}" = set; then : 5460 $as_echo_n "(cached) " >&6 5461else 5462 case $GS_PATH in 5463 [\\/]* | ?:[\\/]*) 5464 ac_cv_path_GS_PATH="$GS_PATH" # Let the user override the test with a path. 5465 ;; 5466 *) 5467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5468for as_dir in $PATH 5469do 5470 IFS=$as_save_IFS 5471 test -z "$as_dir" && as_dir=. 5472 for ac_exec_ext in '' $ac_executable_extensions; do 5473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5474 ac_cv_path_GS_PATH="$as_dir/$ac_word$ac_exec_ext" 5475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5476 break 2 5477 fi 5478done 5479 done 5480IFS=$as_save_IFS 5481 5482 ;; 5483esac 5484fi 5485GS_PATH=$ac_cv_path_GS_PATH 5486if test -n "$GS_PATH"; then 5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GS_PATH" >&5 5488$as_echo "$GS_PATH" >&6; } 5489else 5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5491$as_echo "no" >&6; } 5492fi 5493 5494 5495 test -n "$GS_PATH" && break 5496done 5497 5498 # Extract the first word of "pnmtopng", so it can be a program name with args. 5499set dummy pnmtopng; ac_word=$2 5500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5501$as_echo_n "checking for $ac_word... " >&6; } 5502if test "${ac_cv_path_PNMTOPNG_PATH+set}" = set; then : 5503 $as_echo_n "(cached) " >&6 5504else 5505 case $PNMTOPNG_PATH in 5506 [\\/]* | ?:[\\/]*) 5507 ac_cv_path_PNMTOPNG_PATH="$PNMTOPNG_PATH" # Let the user override the test with a path. 5508 ;; 5509 *) 5510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5511for as_dir in $PATH 5512do 5513 IFS=$as_save_IFS 5514 test -z "$as_dir" && as_dir=. 5515 for ac_exec_ext in '' $ac_executable_extensions; do 5516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5517 ac_cv_path_PNMTOPNG_PATH="$as_dir/$ac_word$ac_exec_ext" 5518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5519 break 2 5520 fi 5521done 5522 done 5523IFS=$as_save_IFS 5524 5525 ;; 5526esac 5527fi 5528PNMTOPNG_PATH=$ac_cv_path_PNMTOPNG_PATH 5529if test -n "$PNMTOPNG_PATH"; then 5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNMTOPNG_PATH" >&5 5531$as_echo "$PNMTOPNG_PATH" >&6; } 5532else 5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5534$as_echo "no" >&6; } 5535fi 5536 5537 5538 # Extract the first word of "psselect", so it can be a program name with args. 5539set dummy psselect; ac_word=$2 5540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5541$as_echo_n "checking for $ac_word... " >&6; } 5542if test "${ac_cv_path_PSSELECT_PATH+set}" = set; then : 5543 $as_echo_n "(cached) " >&6 5544else 5545 case $PSSELECT_PATH in 5546 [\\/]* | ?:[\\/]*) 5547 ac_cv_path_PSSELECT_PATH="$PSSELECT_PATH" # Let the user override the test with a path. 5548 ;; 5549 *) 5550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5551for as_dir in $PATH 5552do 5553 IFS=$as_save_IFS 5554 test -z "$as_dir" && as_dir=. 5555 for ac_exec_ext in '' $ac_executable_extensions; do 5556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5557 ac_cv_path_PSSELECT_PATH="$as_dir/$ac_word$ac_exec_ext" 5558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5559 break 2 5560 fi 5561done 5562 done 5563IFS=$as_save_IFS 5564 5565 ;; 5566esac 5567fi 5568PSSELECT_PATH=$ac_cv_path_PSSELECT_PATH 5569if test -n "$PSSELECT_PATH"; then 5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSSELECT_PATH" >&5 5571$as_echo "$PSSELECT_PATH" >&6; } 5572else 5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5574$as_echo "no" >&6; } 5575fi 5576 5577 5578 if test "x$GS_PATH" != "x" -a "x$PNMTOPNG_PATH" != "x" -a "x$PSSELECT_PATH" != "x"; then 5579 have_groff_html=yes 5580 else 5581 have_groff_html=no 5582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: grohtml dependencies not found - HTML Documentation skipped. Refer to grohtml man pages" >&5 5583$as_echo "$as_me: WARNING: grohtml dependencies not found - HTML Documentation skipped. Refer to grohtml man pages" >&2;} 5584 fi 5585fi 5586 5587# Set Automake conditionals for Makefiles 5588 if test "$have_groff" = yes; then 5589 HAVE_GROFF_TRUE= 5590 HAVE_GROFF_FALSE='#' 5591else 5592 HAVE_GROFF_TRUE='#' 5593 HAVE_GROFF_FALSE= 5594fi 5595 5596 if test "$groff_ms_works" = yes; then 5597 HAVE_GROFF_MS_TRUE= 5598 HAVE_GROFF_MS_FALSE='#' 5599else 5600 HAVE_GROFF_MS_TRUE='#' 5601 HAVE_GROFF_MS_FALSE= 5602fi 5603 5604 if test "$groff_mm_works" = yes; then 5605 HAVE_GROFF_MM_TRUE= 5606 HAVE_GROFF_MM_FALSE='#' 5607else 5608 HAVE_GROFF_MM_TRUE='#' 5609 HAVE_GROFF_MM_FALSE= 5610fi 5611 5612 if test "$have_groff_html" = yes; then 5613 HAVE_GROFF_HTML_TRUE= 5614 HAVE_GROFF_HTML_FALSE='#' 5615else 5616 HAVE_GROFF_HTML_TRUE='#' 5617 HAVE_GROFF_HTML_FALSE= 5618fi 5619 5620 5621 5622 5623 5624# Check whether --with-ps2pdf was given. 5625if test "${with_ps2pdf+set}" = set; then : 5626 withval=$with_ps2pdf; use_ps2pdf=$withval 5627else 5628 use_ps2pdf=auto 5629fi 5630 5631 5632if test "x$use_ps2pdf" = x"auto"; then 5633 # Extract the first word of "ps2pdf", so it can be a program name with args. 5634set dummy ps2pdf; ac_word=$2 5635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5636$as_echo_n "checking for $ac_word... " >&6; } 5637if test "${ac_cv_path_PS2PDF+set}" = set; then : 5638 $as_echo_n "(cached) " >&6 5639else 5640 case $PS2PDF in 5641 [\\/]* | ?:[\\/]*) 5642 ac_cv_path_PS2PDF="$PS2PDF" # Let the user override the test with a path. 5643 ;; 5644 *) 5645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5646for as_dir in $PATH 5647do 5648 IFS=$as_save_IFS 5649 test -z "$as_dir" && as_dir=. 5650 for ac_exec_ext in '' $ac_executable_extensions; do 5651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5652 ac_cv_path_PS2PDF="$as_dir/$ac_word$ac_exec_ext" 5653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5654 break 2 5655 fi 5656done 5657 done 5658IFS=$as_save_IFS 5659 5660 ;; 5661esac 5662fi 5663PS2PDF=$ac_cv_path_PS2PDF 5664if test -n "$PS2PDF"; then 5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS2PDF" >&5 5666$as_echo "$PS2PDF" >&6; } 5667else 5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5669$as_echo "no" >&6; } 5670fi 5671 5672 5673 if test "x$PS2PDF" = "x"; then 5674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ps2pdf not found - documentation targets will be skipped" >&5 5675$as_echo "$as_me: WARNING: ps2pdf not found - documentation targets will be skipped" >&2;} 5676 have_ps2pdf=no 5677 else 5678 have_ps2pdf=yes 5679 fi 5680elif test "x$use_ps2pdf" = x"yes" ; then 5681 # Extract the first word of "ps2pdf", so it can be a program name with args. 5682set dummy ps2pdf; ac_word=$2 5683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5684$as_echo_n "checking for $ac_word... " >&6; } 5685if test "${ac_cv_path_PS2PDF+set}" = set; then : 5686 $as_echo_n "(cached) " >&6 5687else 5688 case $PS2PDF in 5689 [\\/]* | ?:[\\/]*) 5690 ac_cv_path_PS2PDF="$PS2PDF" # Let the user override the test with a path. 5691 ;; 5692 *) 5693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5694for as_dir in $PATH 5695do 5696 IFS=$as_save_IFS 5697 test -z "$as_dir" && as_dir=. 5698 for ac_exec_ext in '' $ac_executable_extensions; do 5699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5700 ac_cv_path_PS2PDF="$as_dir/$ac_word$ac_exec_ext" 5701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5702 break 2 5703 fi 5704done 5705 done 5706IFS=$as_save_IFS 5707 5708 ;; 5709esac 5710fi 5711PS2PDF=$ac_cv_path_PS2PDF 5712if test -n "$PS2PDF"; then 5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS2PDF" >&5 5714$as_echo "$PS2PDF" >&6; } 5715else 5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5717$as_echo "no" >&6; } 5718fi 5719 5720 5721 if test "x$PS2PDF" = "x"; then 5722 as_fn_error "--with-ps2pdf=yes specified but ps2pdf not found in PATH" "$LINENO" 5 5723 fi 5724 have_ps2pdf=yes 5725elif test "x$use_ps2pdf" = x"no" ; then 5726 if test "x$PS2PDF" != "x"; then 5727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring PS2PDF environment variable since --with-ps2pdf=no was specified" >&5 5728$as_echo "$as_me: WARNING: ignoring PS2PDF environment variable since --with-ps2pdf=no was specified" >&2;} 5729 fi 5730 have_ps2pdf=no 5731else 5732 as_fn_error "--with-ps2pdf expects 'yes' or 'no'" "$LINENO" 5 5733fi 5734 if test "$have_ps2pdf" = yes; then 5735 HAVE_PS2PDF_TRUE= 5736 HAVE_PS2PDF_FALSE='#' 5737else 5738 HAVE_PS2PDF_TRUE='#' 5739 HAVE_PS2PDF_FALSE= 5740fi 5741 5742 5743 5744# Checks for programs. 5745case `pwd` in 5746 *\ * | *\ *) 5747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5748$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5749esac 5750 5751 5752 5753macro_version='2.2.6b' 5754macro_revision='1.3017' 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768ltmain="$ac_aux_dir/ltmain.sh" 5769 5770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5771$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5772if test "${ac_cv_path_SED+set}" = set; then : 5773 $as_echo_n "(cached) " >&6 5774else 5775 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5776 for ac_i in 1 2 3 4 5 6 7; do 5777 ac_script="$ac_script$as_nl$ac_script" 5778 done 5779 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5780 { ac_script=; unset ac_script;} 5781 if test -z "$SED"; then 5782 ac_path_SED_found=false 5783 # Loop through the user's path and test for each of PROGNAME-LIST 5784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5785for as_dir in $PATH 5786do 5787 IFS=$as_save_IFS 5788 test -z "$as_dir" && as_dir=. 5789 for ac_prog in sed gsed; do 5790 for ac_exec_ext in '' $ac_executable_extensions; do 5791 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5792 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 5793# Check for GNU ac_path_SED and select it if it is found. 5794 # Check for GNU $ac_path_SED 5795case `"$ac_path_SED" --version 2>&1` in 5796*GNU*) 5797 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5798*) 5799 ac_count=0 5800 $as_echo_n 0123456789 >"conftest.in" 5801 while : 5802 do 5803 cat "conftest.in" "conftest.in" >"conftest.tmp" 5804 mv "conftest.tmp" "conftest.in" 5805 cp "conftest.in" "conftest.nl" 5806 $as_echo '' >> "conftest.nl" 5807 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5808 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5809 as_fn_arith $ac_count + 1 && ac_count=$as_val 5810 if test $ac_count -gt ${ac_path_SED_max-0}; then 5811 # Best one so far, save it but keep looking for a better one 5812 ac_cv_path_SED="$ac_path_SED" 5813 ac_path_SED_max=$ac_count 5814 fi 5815 # 10*(2^10) chars as input seems more than enough 5816 test $ac_count -gt 10 && break 5817 done 5818 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5819esac 5820 5821 $ac_path_SED_found && break 3 5822 done 5823 done 5824 done 5825IFS=$as_save_IFS 5826 if test -z "$ac_cv_path_SED"; then 5827 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 5828 fi 5829else 5830 ac_cv_path_SED=$SED 5831fi 5832 5833fi 5834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5835$as_echo "$ac_cv_path_SED" >&6; } 5836 SED="$ac_cv_path_SED" 5837 rm -f conftest.sed 5838 5839test -z "$SED" && SED=sed 5840Xsed="$SED -e 1s/^X//" 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5853$as_echo_n "checking for fgrep... " >&6; } 5854if test "${ac_cv_path_FGREP+set}" = set; then : 5855 $as_echo_n "(cached) " >&6 5856else 5857 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5858 then ac_cv_path_FGREP="$GREP -F" 5859 else 5860 if test -z "$FGREP"; then 5861 ac_path_FGREP_found=false 5862 # Loop through the user's path and test for each of PROGNAME-LIST 5863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5864for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5865do 5866 IFS=$as_save_IFS 5867 test -z "$as_dir" && as_dir=. 5868 for ac_prog in fgrep; do 5869 for ac_exec_ext in '' $ac_executable_extensions; do 5870 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5871 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 5872# Check for GNU ac_path_FGREP and select it if it is found. 5873 # Check for GNU $ac_path_FGREP 5874case `"$ac_path_FGREP" --version 2>&1` in 5875*GNU*) 5876 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5877*) 5878 ac_count=0 5879 $as_echo_n 0123456789 >"conftest.in" 5880 while : 5881 do 5882 cat "conftest.in" "conftest.in" >"conftest.tmp" 5883 mv "conftest.tmp" "conftest.in" 5884 cp "conftest.in" "conftest.nl" 5885 $as_echo 'FGREP' >> "conftest.nl" 5886 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5887 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5888 as_fn_arith $ac_count + 1 && ac_count=$as_val 5889 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5890 # Best one so far, save it but keep looking for a better one 5891 ac_cv_path_FGREP="$ac_path_FGREP" 5892 ac_path_FGREP_max=$ac_count 5893 fi 5894 # 10*(2^10) chars as input seems more than enough 5895 test $ac_count -gt 10 && break 5896 done 5897 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5898esac 5899 5900 $ac_path_FGREP_found && break 3 5901 done 5902 done 5903 done 5904IFS=$as_save_IFS 5905 if test -z "$ac_cv_path_FGREP"; then 5906 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5907 fi 5908else 5909 ac_cv_path_FGREP=$FGREP 5910fi 5911 5912 fi 5913fi 5914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5915$as_echo "$ac_cv_path_FGREP" >&6; } 5916 FGREP="$ac_cv_path_FGREP" 5917 5918 5919test -z "$GREP" && GREP=grep 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939# Check whether --with-gnu-ld was given. 5940if test "${with_gnu_ld+set}" = set; then : 5941 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5942else 5943 with_gnu_ld=no 5944fi 5945 5946ac_prog=ld 5947if test "$GCC" = yes; then 5948 # Check if gcc -print-prog-name=ld gives a path. 5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5950$as_echo_n "checking for ld used by $CC... " >&6; } 5951 case $host in 5952 *-*-mingw*) 5953 # gcc leaves a trailing carriage return which upsets mingw 5954 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5955 *) 5956 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5957 esac 5958 case $ac_prog in 5959 # Accept absolute paths. 5960 [\\/]* | ?:[\\/]*) 5961 re_direlt='/[^/][^/]*/\.\./' 5962 # Canonicalize the pathname of ld 5963 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5964 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5965 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5966 done 5967 test -z "$LD" && LD="$ac_prog" 5968 ;; 5969 "") 5970 # If it fails, then pretend we aren't using GCC. 5971 ac_prog=ld 5972 ;; 5973 *) 5974 # If it is relative, then search for the first ld in PATH. 5975 with_gnu_ld=unknown 5976 ;; 5977 esac 5978elif test "$with_gnu_ld" = yes; then 5979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5980$as_echo_n "checking for GNU ld... " >&6; } 5981else 5982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5983$as_echo_n "checking for non-GNU ld... " >&6; } 5984fi 5985if test "${lt_cv_path_LD+set}" = set; then : 5986 $as_echo_n "(cached) " >&6 5987else 5988 if test -z "$LD"; then 5989 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5990 for ac_dir in $PATH; do 5991 IFS="$lt_save_ifs" 5992 test -z "$ac_dir" && ac_dir=. 5993 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5994 lt_cv_path_LD="$ac_dir/$ac_prog" 5995 # Check to see if the program is GNU ld. I'd rather use --version, 5996 # but apparently some variants of GNU ld only accept -v. 5997 # Break only if it was the GNU/non-GNU ld that we prefer. 5998 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5999 *GNU* | *'with BFD'*) 6000 test "$with_gnu_ld" != no && break 6001 ;; 6002 *) 6003 test "$with_gnu_ld" != yes && break 6004 ;; 6005 esac 6006 fi 6007 done 6008 IFS="$lt_save_ifs" 6009else 6010 lt_cv_path_LD="$LD" # Let the user override the test with a path. 6011fi 6012fi 6013 6014LD="$lt_cv_path_LD" 6015if test -n "$LD"; then 6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 6017$as_echo "$LD" >&6; } 6018else 6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6020$as_echo "no" >&6; } 6021fi 6022test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 6023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 6024$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 6025if test "${lt_cv_prog_gnu_ld+set}" = set; then : 6026 $as_echo_n "(cached) " >&6 6027else 6028 # I'd rather use --version here, but apparently some GNU lds only accept -v. 6029case `$LD -v 2>&1 </dev/null` in 6030*GNU* | *'with BFD'*) 6031 lt_cv_prog_gnu_ld=yes 6032 ;; 6033*) 6034 lt_cv_prog_gnu_ld=no 6035 ;; 6036esac 6037fi 6038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 6039$as_echo "$lt_cv_prog_gnu_ld" >&6; } 6040with_gnu_ld=$lt_cv_prog_gnu_ld 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 6051$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 6052if test "${lt_cv_path_NM+set}" = set; then : 6053 $as_echo_n "(cached) " >&6 6054else 6055 if test -n "$NM"; then 6056 # Let the user override the test. 6057 lt_cv_path_NM="$NM" 6058else 6059 lt_nm_to_check="${ac_tool_prefix}nm" 6060 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6061 lt_nm_to_check="$lt_nm_to_check nm" 6062 fi 6063 for lt_tmp_nm in $lt_nm_to_check; do 6064 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6065 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6066 IFS="$lt_save_ifs" 6067 test -z "$ac_dir" && ac_dir=. 6068 tmp_nm="$ac_dir/$lt_tmp_nm" 6069 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 6070 # Check to see if the nm accepts a BSD-compat flag. 6071 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 6072 # nm: unknown option "B" ignored 6073 # Tru64's nm complains that /dev/null is an invalid object file 6074 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 6075 */dev/null* | *'Invalid file or object type'*) 6076 lt_cv_path_NM="$tmp_nm -B" 6077 break 6078 ;; 6079 *) 6080 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6081 */dev/null*) 6082 lt_cv_path_NM="$tmp_nm -p" 6083 break 6084 ;; 6085 *) 6086 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6087 continue # so that we can try to find one that supports BSD flags 6088 ;; 6089 esac 6090 ;; 6091 esac 6092 fi 6093 done 6094 IFS="$lt_save_ifs" 6095 done 6096 : ${lt_cv_path_NM=no} 6097fi 6098fi 6099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 6100$as_echo "$lt_cv_path_NM" >&6; } 6101if test "$lt_cv_path_NM" != "no"; then 6102 NM="$lt_cv_path_NM" 6103else 6104 # Didn't find any BSD compatible name lister, look for dumpbin. 6105 if test -n "$ac_tool_prefix"; then 6106 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 6107 do 6108 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6109set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6111$as_echo_n "checking for $ac_word... " >&6; } 6112if test "${ac_cv_prog_DUMPBIN+set}" = set; then : 6113 $as_echo_n "(cached) " >&6 6114else 6115 if test -n "$DUMPBIN"; then 6116 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 6117else 6118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6119for as_dir in $PATH 6120do 6121 IFS=$as_save_IFS 6122 test -z "$as_dir" && as_dir=. 6123 for ac_exec_ext in '' $ac_executable_extensions; do 6124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6125 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 6126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6127 break 2 6128 fi 6129done 6130 done 6131IFS=$as_save_IFS 6132 6133fi 6134fi 6135DUMPBIN=$ac_cv_prog_DUMPBIN 6136if test -n "$DUMPBIN"; then 6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 6138$as_echo "$DUMPBIN" >&6; } 6139else 6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6141$as_echo "no" >&6; } 6142fi 6143 6144 6145 test -n "$DUMPBIN" && break 6146 done 6147fi 6148if test -z "$DUMPBIN"; then 6149 ac_ct_DUMPBIN=$DUMPBIN 6150 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 6151do 6152 # Extract the first word of "$ac_prog", so it can be a program name with args. 6153set dummy $ac_prog; ac_word=$2 6154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6155$as_echo_n "checking for $ac_word... " >&6; } 6156if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : 6157 $as_echo_n "(cached) " >&6 6158else 6159 if test -n "$ac_ct_DUMPBIN"; then 6160 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6161else 6162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6163for as_dir in $PATH 6164do 6165 IFS=$as_save_IFS 6166 test -z "$as_dir" && as_dir=. 6167 for ac_exec_ext in '' $ac_executable_extensions; do 6168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6169 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6171 break 2 6172 fi 6173done 6174 done 6175IFS=$as_save_IFS 6176 6177fi 6178fi 6179ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 6180if test -n "$ac_ct_DUMPBIN"; then 6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 6182$as_echo "$ac_ct_DUMPBIN" >&6; } 6183else 6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6185$as_echo "no" >&6; } 6186fi 6187 6188 6189 test -n "$ac_ct_DUMPBIN" && break 6190done 6191 6192 if test "x$ac_ct_DUMPBIN" = x; then 6193 DUMPBIN=":" 6194 else 6195 case $cross_compiling:$ac_tool_warned in 6196yes:) 6197{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6198$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6199ac_tool_warned=yes ;; 6200esac 6201 DUMPBIN=$ac_ct_DUMPBIN 6202 fi 6203fi 6204 6205 6206 if test "$DUMPBIN" != ":"; then 6207 NM="$DUMPBIN" 6208 fi 6209fi 6210test -z "$NM" && NM=nm 6211 6212 6213 6214 6215 6216 6217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6218$as_echo_n "checking the name lister ($NM) interface... " >&6; } 6219if test "${lt_cv_nm_interface+set}" = set; then : 6220 $as_echo_n "(cached) " >&6 6221else 6222 lt_cv_nm_interface="BSD nm" 6223 echo "int some_variable = 0;" > conftest.$ac_ext 6224 (eval echo "\"\$as_me:6224: $ac_compile\"" >&5) 6225 (eval "$ac_compile" 2>conftest.err) 6226 cat conftest.err >&5 6227 (eval echo "\"\$as_me:6227: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6228 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6229 cat conftest.err >&5 6230 (eval echo "\"\$as_me:6230: output\"" >&5) 6231 cat conftest.out >&5 6232 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6233 lt_cv_nm_interface="MS dumpbin" 6234 fi 6235 rm -f conftest* 6236fi 6237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6238$as_echo "$lt_cv_nm_interface" >&6; } 6239 6240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 6241$as_echo_n "checking whether ln -s works... " >&6; } 6242LN_S=$as_ln_s 6243if test "$LN_S" = "ln -s"; then 6244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6245$as_echo "yes" >&6; } 6246else 6247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 6248$as_echo "no, using $LN_S" >&6; } 6249fi 6250 6251# find the maximum length of command line arguments 6252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6253$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6254if test "${lt_cv_sys_max_cmd_len+set}" = set; then : 6255 $as_echo_n "(cached) " >&6 6256else 6257 i=0 6258 teststring="ABCD" 6259 6260 case $build_os in 6261 msdosdjgpp*) 6262 # On DJGPP, this test can blow up pretty badly due to problems in libc 6263 # (any single argument exceeding 2000 bytes causes a buffer overrun 6264 # during glob expansion). Even if it were fixed, the result of this 6265 # check would be larger than it should be. 6266 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6267 ;; 6268 6269 gnu*) 6270 # Under GNU Hurd, this test is not required because there is 6271 # no limit to the length of command line arguments. 6272 # Libtool will interpret -1 as no limit whatsoever 6273 lt_cv_sys_max_cmd_len=-1; 6274 ;; 6275 6276 cygwin* | mingw* | cegcc*) 6277 # On Win9x/ME, this test blows up -- it succeeds, but takes 6278 # about 5 minutes as the teststring grows exponentially. 6279 # Worse, since 9x/ME are not pre-emptively multitasking, 6280 # you end up with a "frozen" computer, even though with patience 6281 # the test eventually succeeds (with a max line length of 256k). 6282 # Instead, let's just punt: use the minimum linelength reported by 6283 # all of the supported platforms: 8192 (on NT/2K/XP). 6284 lt_cv_sys_max_cmd_len=8192; 6285 ;; 6286 6287 amigaos*) 6288 # On AmigaOS with pdksh, this test takes hours, literally. 6289 # So we just punt and use a minimum line length of 8192. 6290 lt_cv_sys_max_cmd_len=8192; 6291 ;; 6292 6293 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6294 # This has been around since 386BSD, at least. Likely further. 6295 if test -x /sbin/sysctl; then 6296 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6297 elif test -x /usr/sbin/sysctl; then 6298 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6299 else 6300 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6301 fi 6302 # And add a safety zone 6303 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6304 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6305 ;; 6306 6307 interix*) 6308 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6309 lt_cv_sys_max_cmd_len=196608 6310 ;; 6311 6312 osf*) 6313 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6314 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6315 # nice to cause kernel panics so lets avoid the loop below. 6316 # First set a reasonable default. 6317 lt_cv_sys_max_cmd_len=16384 6318 # 6319 if test -x /sbin/sysconfig; then 6320 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6321 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6322 esac 6323 fi 6324 ;; 6325 sco3.2v5*) 6326 lt_cv_sys_max_cmd_len=102400 6327 ;; 6328 sysv5* | sco5v6* | sysv4.2uw2*) 6329 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6330 if test -n "$kargmax"; then 6331 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6332 else 6333 lt_cv_sys_max_cmd_len=32768 6334 fi 6335 ;; 6336 *) 6337 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6338 if test -n "$lt_cv_sys_max_cmd_len"; then 6339 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6340 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6341 else 6342 # Make teststring a little bigger before we do anything with it. 6343 # a 1K string should be a reasonable start. 6344 for i in 1 2 3 4 5 6 7 8 ; do 6345 teststring=$teststring$teststring 6346 done 6347 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6348 # If test is not a shell built-in, we'll probably end up computing a 6349 # maximum length that is only half of the actual maximum length, but 6350 # we can't tell. 6351 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 6352 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 6353 test $i != 17 # 1/2 MB should be enough 6354 do 6355 i=`expr $i + 1` 6356 teststring=$teststring$teststring 6357 done 6358 # Only check the string length outside the loop. 6359 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6360 teststring= 6361 # Add a significant safety factor because C++ compilers can tack on 6362 # massive amounts of additional arguments before passing them to the 6363 # linker. It appears as though 1/2 is a usable value. 6364 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6365 fi 6366 ;; 6367 esac 6368 6369fi 6370 6371if test -n $lt_cv_sys_max_cmd_len ; then 6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6373$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6374else 6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6376$as_echo "none" >&6; } 6377fi 6378max_cmd_len=$lt_cv_sys_max_cmd_len 6379 6380 6381 6382 6383 6384 6385: ${CP="cp -f"} 6386: ${MV="mv -f"} 6387: ${RM="rm -f"} 6388 6389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 6390$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 6391# Try some XSI features 6392xsi_shell=no 6393( _lt_dummy="a/b/c" 6394 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 6395 = c,a/b,, \ 6396 && eval 'test $(( 1 + 1 )) -eq 2 \ 6397 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 6398 && xsi_shell=yes 6399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 6400$as_echo "$xsi_shell" >&6; } 6401 6402 6403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 6404$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 6405lt_shell_append=no 6406( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 6407 >/dev/null 2>&1 \ 6408 && lt_shell_append=yes 6409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 6410$as_echo "$lt_shell_append" >&6; } 6411 6412 6413if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6414 lt_unset=unset 6415else 6416 lt_unset=false 6417fi 6418 6419 6420 6421 6422 6423# test EBCDIC or ASCII 6424case `echo X|tr X '\101'` in 6425 A) # ASCII based system 6426 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6427 lt_SP2NL='tr \040 \012' 6428 lt_NL2SP='tr \015\012 \040\040' 6429 ;; 6430 *) # EBCDIC based system 6431 lt_SP2NL='tr \100 \n' 6432 lt_NL2SP='tr \r\n \100\100' 6433 ;; 6434esac 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6445$as_echo_n "checking for $LD option to reload object files... " >&6; } 6446if test "${lt_cv_ld_reload_flag+set}" = set; then : 6447 $as_echo_n "(cached) " >&6 6448else 6449 lt_cv_ld_reload_flag='-r' 6450fi 6451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6452$as_echo "$lt_cv_ld_reload_flag" >&6; } 6453reload_flag=$lt_cv_ld_reload_flag 6454case $reload_flag in 6455"" | " "*) ;; 6456*) reload_flag=" $reload_flag" ;; 6457esac 6458reload_cmds='$LD$reload_flag -o $output$reload_objs' 6459case $host_os in 6460 darwin*) 6461 if test "$GCC" = yes; then 6462 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 6463 else 6464 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6465 fi 6466 ;; 6467esac 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477if test -n "$ac_tool_prefix"; then 6478 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6479set dummy ${ac_tool_prefix}objdump; ac_word=$2 6480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6481$as_echo_n "checking for $ac_word... " >&6; } 6482if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 6483 $as_echo_n "(cached) " >&6 6484else 6485 if test -n "$OBJDUMP"; then 6486 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6487else 6488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6489for as_dir in $PATH 6490do 6491 IFS=$as_save_IFS 6492 test -z "$as_dir" && as_dir=. 6493 for ac_exec_ext in '' $ac_executable_extensions; do 6494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6495 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6497 break 2 6498 fi 6499done 6500 done 6501IFS=$as_save_IFS 6502 6503fi 6504fi 6505OBJDUMP=$ac_cv_prog_OBJDUMP 6506if test -n "$OBJDUMP"; then 6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6508$as_echo "$OBJDUMP" >&6; } 6509else 6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6511$as_echo "no" >&6; } 6512fi 6513 6514 6515fi 6516if test -z "$ac_cv_prog_OBJDUMP"; then 6517 ac_ct_OBJDUMP=$OBJDUMP 6518 # Extract the first word of "objdump", so it can be a program name with args. 6519set dummy objdump; ac_word=$2 6520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6521$as_echo_n "checking for $ac_word... " >&6; } 6522if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 6523 $as_echo_n "(cached) " >&6 6524else 6525 if test -n "$ac_ct_OBJDUMP"; then 6526 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6527else 6528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6529for as_dir in $PATH 6530do 6531 IFS=$as_save_IFS 6532 test -z "$as_dir" && as_dir=. 6533 for ac_exec_ext in '' $ac_executable_extensions; do 6534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6535 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6537 break 2 6538 fi 6539done 6540 done 6541IFS=$as_save_IFS 6542 6543fi 6544fi 6545ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6546if test -n "$ac_ct_OBJDUMP"; then 6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6548$as_echo "$ac_ct_OBJDUMP" >&6; } 6549else 6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6551$as_echo "no" >&6; } 6552fi 6553 6554 if test "x$ac_ct_OBJDUMP" = x; then 6555 OBJDUMP="false" 6556 else 6557 case $cross_compiling:$ac_tool_warned in 6558yes:) 6559{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6560$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6561ac_tool_warned=yes ;; 6562esac 6563 OBJDUMP=$ac_ct_OBJDUMP 6564 fi 6565else 6566 OBJDUMP="$ac_cv_prog_OBJDUMP" 6567fi 6568 6569test -z "$OBJDUMP" && OBJDUMP=objdump 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6580$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6581if test "${lt_cv_deplibs_check_method+set}" = set; then : 6582 $as_echo_n "(cached) " >&6 6583else 6584 lt_cv_file_magic_cmd='$MAGIC_CMD' 6585lt_cv_file_magic_test_file= 6586lt_cv_deplibs_check_method='unknown' 6587# Need to set the preceding variable on all platforms that support 6588# interlibrary dependencies. 6589# 'none' -- dependencies not supported. 6590# `unknown' -- same as none, but documents that we really don't know. 6591# 'pass_all' -- all dependencies passed with no checks. 6592# 'test_compile' -- check by making test program. 6593# 'file_magic [[regex]]' -- check by looking for files in library path 6594# which responds to the $file_magic_cmd with a given extended regex. 6595# If you have `file' or equivalent on your system and you're not sure 6596# whether `pass_all' will *always* work, you probably want this one. 6597 6598case $host_os in 6599aix[4-9]*) 6600 lt_cv_deplibs_check_method=pass_all 6601 ;; 6602 6603beos*) 6604 lt_cv_deplibs_check_method=pass_all 6605 ;; 6606 6607bsdi[45]*) 6608 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6609 lt_cv_file_magic_cmd='/usr/bin/file -L' 6610 lt_cv_file_magic_test_file=/shlib/libc.so 6611 ;; 6612 6613cygwin*) 6614 # func_win32_libid is a shell function defined in ltmain.sh 6615 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6616 lt_cv_file_magic_cmd='func_win32_libid' 6617 ;; 6618 6619mingw* | pw32*) 6620 # Base MSYS/MinGW do not provide the 'file' command needed by 6621 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6622 # unless we find 'file', for example because we are cross-compiling. 6623 if ( file / ) >/dev/null 2>&1; then 6624 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6625 lt_cv_file_magic_cmd='func_win32_libid' 6626 else 6627 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 6628 lt_cv_file_magic_cmd='$OBJDUMP -f' 6629 fi 6630 ;; 6631 6632cegcc) 6633 # use the weaker test based on 'objdump'. See mingw*. 6634 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6635 lt_cv_file_magic_cmd='$OBJDUMP -f' 6636 ;; 6637 6638darwin* | rhapsody*) 6639 lt_cv_deplibs_check_method=pass_all 6640 ;; 6641 6642freebsd* | dragonfly*) 6643 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6644 case $host_cpu in 6645 i*86 ) 6646 # Not sure whether the presence of OpenBSD here was a mistake. 6647 # Let's accept both of them until this is cleared up. 6648 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6649 lt_cv_file_magic_cmd=/usr/bin/file 6650 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6651 ;; 6652 esac 6653 else 6654 lt_cv_deplibs_check_method=pass_all 6655 fi 6656 ;; 6657 6658gnu*) 6659 lt_cv_deplibs_check_method=pass_all 6660 ;; 6661 6662hpux10.20* | hpux11*) 6663 lt_cv_file_magic_cmd=/usr/bin/file 6664 case $host_cpu in 6665 ia64*) 6666 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6667 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6668 ;; 6669 hppa*64*) 6670 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' 6671 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6672 ;; 6673 *) 6674 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 6675 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6676 ;; 6677 esac 6678 ;; 6679 6680interix[3-9]*) 6681 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6682 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6683 ;; 6684 6685irix5* | irix6* | nonstopux*) 6686 case $LD in 6687 *-32|*"-32 ") libmagic=32-bit;; 6688 *-n32|*"-n32 ") libmagic=N32;; 6689 *-64|*"-64 ") libmagic=64-bit;; 6690 *) libmagic=never-match;; 6691 esac 6692 lt_cv_deplibs_check_method=pass_all 6693 ;; 6694 6695# This must be Linux ELF. 6696linux* | k*bsd*-gnu) 6697 lt_cv_deplibs_check_method=pass_all 6698 ;; 6699 6700netbsd*) 6701 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6702 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6703 else 6704 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6705 fi 6706 ;; 6707 6708newos6*) 6709 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6710 lt_cv_file_magic_cmd=/usr/bin/file 6711 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6712 ;; 6713 6714*nto* | *qnx*) 6715 lt_cv_deplibs_check_method=pass_all 6716 ;; 6717 6718openbsd*) 6719 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6720 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6721 else 6722 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6723 fi 6724 ;; 6725 6726osf3* | osf4* | osf5*) 6727 lt_cv_deplibs_check_method=pass_all 6728 ;; 6729 6730rdos*) 6731 lt_cv_deplibs_check_method=pass_all 6732 ;; 6733 6734solaris*) 6735 lt_cv_deplibs_check_method=pass_all 6736 ;; 6737 6738sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6739 lt_cv_deplibs_check_method=pass_all 6740 ;; 6741 6742sysv4 | sysv4.3*) 6743 case $host_vendor in 6744 motorola) 6745 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]' 6746 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6747 ;; 6748 ncr) 6749 lt_cv_deplibs_check_method=pass_all 6750 ;; 6751 sequent) 6752 lt_cv_file_magic_cmd='/bin/file' 6753 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6754 ;; 6755 sni) 6756 lt_cv_file_magic_cmd='/bin/file' 6757 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6758 lt_cv_file_magic_test_file=/lib/libc.so 6759 ;; 6760 siemens) 6761 lt_cv_deplibs_check_method=pass_all 6762 ;; 6763 pc) 6764 lt_cv_deplibs_check_method=pass_all 6765 ;; 6766 esac 6767 ;; 6768 6769tpf*) 6770 lt_cv_deplibs_check_method=pass_all 6771 ;; 6772esac 6773 6774fi 6775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6776$as_echo "$lt_cv_deplibs_check_method" >&6; } 6777file_magic_cmd=$lt_cv_file_magic_cmd 6778deplibs_check_method=$lt_cv_deplibs_check_method 6779test -z "$deplibs_check_method" && deplibs_check_method=unknown 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792if test -n "$ac_tool_prefix"; then 6793 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6794set dummy ${ac_tool_prefix}ar; ac_word=$2 6795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6796$as_echo_n "checking for $ac_word... " >&6; } 6797if test "${ac_cv_prog_AR+set}" = set; then : 6798 $as_echo_n "(cached) " >&6 6799else 6800 if test -n "$AR"; then 6801 ac_cv_prog_AR="$AR" # Let the user override the test. 6802else 6803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6804for as_dir in $PATH 6805do 6806 IFS=$as_save_IFS 6807 test -z "$as_dir" && as_dir=. 6808 for ac_exec_ext in '' $ac_executable_extensions; do 6809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6810 ac_cv_prog_AR="${ac_tool_prefix}ar" 6811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6812 break 2 6813 fi 6814done 6815 done 6816IFS=$as_save_IFS 6817 6818fi 6819fi 6820AR=$ac_cv_prog_AR 6821if test -n "$AR"; then 6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6823$as_echo "$AR" >&6; } 6824else 6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6826$as_echo "no" >&6; } 6827fi 6828 6829 6830fi 6831if test -z "$ac_cv_prog_AR"; then 6832 ac_ct_AR=$AR 6833 # Extract the first word of "ar", so it can be a program name with args. 6834set dummy ar; ac_word=$2 6835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6836$as_echo_n "checking for $ac_word... " >&6; } 6837if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 6838 $as_echo_n "(cached) " >&6 6839else 6840 if test -n "$ac_ct_AR"; then 6841 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6842else 6843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6844for as_dir in $PATH 6845do 6846 IFS=$as_save_IFS 6847 test -z "$as_dir" && as_dir=. 6848 for ac_exec_ext in '' $ac_executable_extensions; do 6849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6850 ac_cv_prog_ac_ct_AR="ar" 6851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6852 break 2 6853 fi 6854done 6855 done 6856IFS=$as_save_IFS 6857 6858fi 6859fi 6860ac_ct_AR=$ac_cv_prog_ac_ct_AR 6861if test -n "$ac_ct_AR"; then 6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6863$as_echo "$ac_ct_AR" >&6; } 6864else 6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6866$as_echo "no" >&6; } 6867fi 6868 6869 if test "x$ac_ct_AR" = x; then 6870 AR="false" 6871 else 6872 case $cross_compiling:$ac_tool_warned in 6873yes:) 6874{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6875$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6876ac_tool_warned=yes ;; 6877esac 6878 AR=$ac_ct_AR 6879 fi 6880else 6881 AR="$ac_cv_prog_AR" 6882fi 6883 6884test -z "$AR" && AR=ar 6885test -z "$AR_FLAGS" && AR_FLAGS=cru 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897if test -n "$ac_tool_prefix"; then 6898 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6899set dummy ${ac_tool_prefix}strip; ac_word=$2 6900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6901$as_echo_n "checking for $ac_word... " >&6; } 6902if test "${ac_cv_prog_STRIP+set}" = set; then : 6903 $as_echo_n "(cached) " >&6 6904else 6905 if test -n "$STRIP"; then 6906 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6907else 6908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6909for as_dir in $PATH 6910do 6911 IFS=$as_save_IFS 6912 test -z "$as_dir" && as_dir=. 6913 for ac_exec_ext in '' $ac_executable_extensions; do 6914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6915 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6917 break 2 6918 fi 6919done 6920 done 6921IFS=$as_save_IFS 6922 6923fi 6924fi 6925STRIP=$ac_cv_prog_STRIP 6926if test -n "$STRIP"; then 6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6928$as_echo "$STRIP" >&6; } 6929else 6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6931$as_echo "no" >&6; } 6932fi 6933 6934 6935fi 6936if test -z "$ac_cv_prog_STRIP"; then 6937 ac_ct_STRIP=$STRIP 6938 # Extract the first word of "strip", so it can be a program name with args. 6939set dummy strip; ac_word=$2 6940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6941$as_echo_n "checking for $ac_word... " >&6; } 6942if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 6943 $as_echo_n "(cached) " >&6 6944else 6945 if test -n "$ac_ct_STRIP"; then 6946 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6947else 6948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6949for as_dir in $PATH 6950do 6951 IFS=$as_save_IFS 6952 test -z "$as_dir" && as_dir=. 6953 for ac_exec_ext in '' $ac_executable_extensions; do 6954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6955 ac_cv_prog_ac_ct_STRIP="strip" 6956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6957 break 2 6958 fi 6959done 6960 done 6961IFS=$as_save_IFS 6962 6963fi 6964fi 6965ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6966if test -n "$ac_ct_STRIP"; then 6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6968$as_echo "$ac_ct_STRIP" >&6; } 6969else 6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6971$as_echo "no" >&6; } 6972fi 6973 6974 if test "x$ac_ct_STRIP" = x; then 6975 STRIP=":" 6976 else 6977 case $cross_compiling:$ac_tool_warned in 6978yes:) 6979{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6980$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6981ac_tool_warned=yes ;; 6982esac 6983 STRIP=$ac_ct_STRIP 6984 fi 6985else 6986 STRIP="$ac_cv_prog_STRIP" 6987fi 6988 6989test -z "$STRIP" && STRIP=: 6990 6991 6992 6993 6994 6995 6996if test -n "$ac_tool_prefix"; then 6997 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6998set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7000$as_echo_n "checking for $ac_word... " >&6; } 7001if test "${ac_cv_prog_RANLIB+set}" = set; then : 7002 $as_echo_n "(cached) " >&6 7003else 7004 if test -n "$RANLIB"; then 7005 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7006else 7007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7008for as_dir in $PATH 7009do 7010 IFS=$as_save_IFS 7011 test -z "$as_dir" && as_dir=. 7012 for ac_exec_ext in '' $ac_executable_extensions; do 7013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7014 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7016 break 2 7017 fi 7018done 7019 done 7020IFS=$as_save_IFS 7021 7022fi 7023fi 7024RANLIB=$ac_cv_prog_RANLIB 7025if test -n "$RANLIB"; then 7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7027$as_echo "$RANLIB" >&6; } 7028else 7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7030$as_echo "no" >&6; } 7031fi 7032 7033 7034fi 7035if test -z "$ac_cv_prog_RANLIB"; then 7036 ac_ct_RANLIB=$RANLIB 7037 # Extract the first word of "ranlib", so it can be a program name with args. 7038set dummy ranlib; ac_word=$2 7039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7040$as_echo_n "checking for $ac_word... " >&6; } 7041if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 7042 $as_echo_n "(cached) " >&6 7043else 7044 if test -n "$ac_ct_RANLIB"; then 7045 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7046else 7047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7048for as_dir in $PATH 7049do 7050 IFS=$as_save_IFS 7051 test -z "$as_dir" && as_dir=. 7052 for ac_exec_ext in '' $ac_executable_extensions; do 7053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7054 ac_cv_prog_ac_ct_RANLIB="ranlib" 7055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7056 break 2 7057 fi 7058done 7059 done 7060IFS=$as_save_IFS 7061 7062fi 7063fi 7064ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7065if test -n "$ac_ct_RANLIB"; then 7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7067$as_echo "$ac_ct_RANLIB" >&6; } 7068else 7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7070$as_echo "no" >&6; } 7071fi 7072 7073 if test "x$ac_ct_RANLIB" = x; then 7074 RANLIB=":" 7075 else 7076 case $cross_compiling:$ac_tool_warned in 7077yes:) 7078{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7079$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7080ac_tool_warned=yes ;; 7081esac 7082 RANLIB=$ac_ct_RANLIB 7083 fi 7084else 7085 RANLIB="$ac_cv_prog_RANLIB" 7086fi 7087 7088test -z "$RANLIB" && RANLIB=: 7089 7090 7091 7092 7093 7094 7095# Determine commands to create old-style static archives. 7096old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7097old_postinstall_cmds='chmod 644 $oldlib' 7098old_postuninstall_cmds= 7099 7100if test -n "$RANLIB"; then 7101 case $host_os in 7102 openbsd*) 7103 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 7104 ;; 7105 *) 7106 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 7107 ;; 7108 esac 7109 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7110fi 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145# If no C compiler was specified, use CC. 7146LTCC=${LTCC-"$CC"} 7147 7148# If no C compiler flags were specified, use CFLAGS. 7149LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7150 7151# Allow CC to be a program name with arguments. 7152compiler=$CC 7153 7154 7155# Check for command to grab the raw symbol name followed by C symbol from nm. 7156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7157$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7158if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 7159 $as_echo_n "(cached) " >&6 7160else 7161 7162# These are sane defaults that work on at least a few old systems. 7163# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7164 7165# Character class describing NM global symbol codes. 7166symcode='[BCDEGRST]' 7167 7168# Regexp to match symbols that can be accessed directly from C. 7169sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7170 7171# Define system-specific variables. 7172case $host_os in 7173aix*) 7174 symcode='[BCDT]' 7175 ;; 7176cygwin* | mingw* | pw32* | cegcc*) 7177 symcode='[ABCDGISTW]' 7178 ;; 7179hpux*) 7180 if test "$host_cpu" = ia64; then 7181 symcode='[ABCDEGRST]' 7182 fi 7183 ;; 7184irix* | nonstopux*) 7185 symcode='[BCDEGRST]' 7186 ;; 7187osf*) 7188 symcode='[BCDEGQRST]' 7189 ;; 7190solaris*) 7191 symcode='[BDRT]' 7192 ;; 7193sco3.2v5*) 7194 symcode='[DT]' 7195 ;; 7196sysv4.2uw2*) 7197 symcode='[DT]' 7198 ;; 7199sysv5* | sco5v6* | unixware* | OpenUNIX*) 7200 symcode='[ABDT]' 7201 ;; 7202sysv4) 7203 symcode='[DFNSTU]' 7204 ;; 7205esac 7206 7207# If we're using GNU nm, then use its standard symbol codes. 7208case `$NM -V 2>&1` in 7209*GNU* | *'with BFD'*) 7210 symcode='[ABCDGIRSTW]' ;; 7211esac 7212 7213# Transform an extracted symbol line into a proper C declaration. 7214# Some systems (esp. on ia64) link data and code symbols differently, 7215# so use this general approach. 7216lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7217 7218# Transform an extracted symbol line into symbol name and symbol address 7219lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 7220lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 7221 7222# Handle CRLF in mingw tool chain 7223opt_cr= 7224case $build_os in 7225mingw*) 7226 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7227 ;; 7228esac 7229 7230# Try without a prefix underscore, then with it. 7231for ac_symprfx in "" "_"; do 7232 7233 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7234 symxfrm="\\1 $ac_symprfx\\2 \\2" 7235 7236 # Write the raw and C identifiers. 7237 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7238 # Fake it for dumpbin and say T for any non-static function 7239 # and D for any global variable. 7240 # Also find C++ and __fastcall symbols from MSVC++, 7241 # which start with @ or ?. 7242 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7243" {last_section=section; section=\$ 3};"\ 7244" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7245" \$ 0!~/External *\|/{next};"\ 7246" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7247" {if(hide[section]) next};"\ 7248" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 7249" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 7250" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 7251" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 7252" ' prfx=^$ac_symprfx" 7253 else 7254 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7255 fi 7256 7257 # Check to see that the pipe works correctly. 7258 pipe_works=no 7259 7260 rm -f conftest* 7261 cat > conftest.$ac_ext <<_LT_EOF 7262#ifdef __cplusplus 7263extern "C" { 7264#endif 7265char nm_test_var; 7266void nm_test_func(void); 7267void nm_test_func(void){} 7268#ifdef __cplusplus 7269} 7270#endif 7271int main(){nm_test_var='a';nm_test_func();return(0);} 7272_LT_EOF 7273 7274 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7275 (eval $ac_compile) 2>&5 7276 ac_status=$? 7277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7278 test $ac_status = 0; }; then 7279 # Now try to grab the symbols. 7280 nlist=conftest.nm 7281 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 7282 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 7283 ac_status=$? 7284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7285 test $ac_status = 0; } && test -s "$nlist"; then 7286 # Try sorting and uniquifying the output. 7287 if sort "$nlist" | uniq > "$nlist"T; then 7288 mv -f "$nlist"T "$nlist" 7289 else 7290 rm -f "$nlist"T 7291 fi 7292 7293 # Make sure that we snagged all the symbols we need. 7294 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7295 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7296 cat <<_LT_EOF > conftest.$ac_ext 7297#ifdef __cplusplus 7298extern "C" { 7299#endif 7300 7301_LT_EOF 7302 # Now generate the symbol file. 7303 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7304 7305 cat <<_LT_EOF >> conftest.$ac_ext 7306 7307/* The mapping between symbol names and symbols. */ 7308const struct { 7309 const char *name; 7310 void *address; 7311} 7312lt__PROGRAM__LTX_preloaded_symbols[] = 7313{ 7314 { "@PROGRAM@", (void *) 0 }, 7315_LT_EOF 7316 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7317 cat <<\_LT_EOF >> conftest.$ac_ext 7318 {0, (void *) 0} 7319}; 7320 7321/* This works around a problem in FreeBSD linker */ 7322#ifdef FREEBSD_WORKAROUND 7323static const void *lt_preloaded_setup() { 7324 return lt__PROGRAM__LTX_preloaded_symbols; 7325} 7326#endif 7327 7328#ifdef __cplusplus 7329} 7330#endif 7331_LT_EOF 7332 # Now try linking the two files. 7333 mv conftest.$ac_objext conftstm.$ac_objext 7334 lt_save_LIBS="$LIBS" 7335 lt_save_CFLAGS="$CFLAGS" 7336 LIBS="conftstm.$ac_objext" 7337 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7338 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7339 (eval $ac_link) 2>&5 7340 ac_status=$? 7341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7342 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 7343 pipe_works=yes 7344 fi 7345 LIBS="$lt_save_LIBS" 7346 CFLAGS="$lt_save_CFLAGS" 7347 else 7348 echo "cannot find nm_test_func in $nlist" >&5 7349 fi 7350 else 7351 echo "cannot find nm_test_var in $nlist" >&5 7352 fi 7353 else 7354 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7355 fi 7356 else 7357 echo "$progname: failed program was:" >&5 7358 cat conftest.$ac_ext >&5 7359 fi 7360 rm -rf conftest* conftst* 7361 7362 # Do not use the global_symbol_pipe unless it works. 7363 if test "$pipe_works" = yes; then 7364 break 7365 else 7366 lt_cv_sys_global_symbol_pipe= 7367 fi 7368done 7369 7370fi 7371 7372if test -z "$lt_cv_sys_global_symbol_pipe"; then 7373 lt_cv_sys_global_symbol_to_cdecl= 7374fi 7375if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7377$as_echo "failed" >&6; } 7378else 7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7380$as_echo "ok" >&6; } 7381fi 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404# Check whether --enable-libtool-lock was given. 7405if test "${enable_libtool_lock+set}" = set; then : 7406 enableval=$enable_libtool_lock; 7407fi 7408 7409test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7410 7411# Some flags need to be propagated to the compiler or linker for good 7412# libtool support. 7413case $host in 7414ia64-*-hpux*) 7415 # Find out which ABI we are using. 7416 echo 'int i;' > conftest.$ac_ext 7417 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7418 (eval $ac_compile) 2>&5 7419 ac_status=$? 7420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7421 test $ac_status = 0; }; then 7422 case `/usr/bin/file conftest.$ac_objext` in 7423 *ELF-32*) 7424 HPUX_IA64_MODE="32" 7425 ;; 7426 *ELF-64*) 7427 HPUX_IA64_MODE="64" 7428 ;; 7429 esac 7430 fi 7431 rm -rf conftest* 7432 ;; 7433*-*-irix6*) 7434 # Find out which ABI we are using. 7435 echo '#line 7435 "configure"' > conftest.$ac_ext 7436 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7437 (eval $ac_compile) 2>&5 7438 ac_status=$? 7439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7440 test $ac_status = 0; }; then 7441 if test "$lt_cv_prog_gnu_ld" = yes; then 7442 case `/usr/bin/file conftest.$ac_objext` in 7443 *32-bit*) 7444 LD="${LD-ld} -melf32bsmip" 7445 ;; 7446 *N32*) 7447 LD="${LD-ld} -melf32bmipn32" 7448 ;; 7449 *64-bit*) 7450 LD="${LD-ld} -melf64bmip" 7451 ;; 7452 esac 7453 else 7454 case `/usr/bin/file conftest.$ac_objext` in 7455 *32-bit*) 7456 LD="${LD-ld} -32" 7457 ;; 7458 *N32*) 7459 LD="${LD-ld} -n32" 7460 ;; 7461 *64-bit*) 7462 LD="${LD-ld} -64" 7463 ;; 7464 esac 7465 fi 7466 fi 7467 rm -rf conftest* 7468 ;; 7469 7470x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 7471s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7472 # Find out which ABI we are using. 7473 echo 'int i;' > conftest.$ac_ext 7474 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7475 (eval $ac_compile) 2>&5 7476 ac_status=$? 7477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7478 test $ac_status = 0; }; then 7479 case `/usr/bin/file conftest.o` in 7480 *32-bit*) 7481 case $host in 7482 x86_64-*kfreebsd*-gnu) 7483 LD="${LD-ld} -m elf_i386_fbsd" 7484 ;; 7485 x86_64-*linux*) 7486 LD="${LD-ld} -m elf_i386" 7487 ;; 7488 ppc64-*linux*|powerpc64-*linux*) 7489 LD="${LD-ld} -m elf32ppclinux" 7490 ;; 7491 s390x-*linux*) 7492 LD="${LD-ld} -m elf_s390" 7493 ;; 7494 sparc64-*linux*) 7495 LD="${LD-ld} -m elf32_sparc" 7496 ;; 7497 esac 7498 ;; 7499 *64-bit*) 7500 case $host in 7501 x86_64-*kfreebsd*-gnu) 7502 LD="${LD-ld} -m elf_x86_64_fbsd" 7503 ;; 7504 x86_64-*linux*) 7505 LD="${LD-ld} -m elf_x86_64" 7506 ;; 7507 ppc*-*linux*|powerpc*-*linux*) 7508 LD="${LD-ld} -m elf64ppc" 7509 ;; 7510 s390*-*linux*|s390*-*tpf*) 7511 LD="${LD-ld} -m elf64_s390" 7512 ;; 7513 sparc*-*linux*) 7514 LD="${LD-ld} -m elf64_sparc" 7515 ;; 7516 esac 7517 ;; 7518 esac 7519 fi 7520 rm -rf conftest* 7521 ;; 7522 7523*-*-sco3.2v5*) 7524 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7525 SAVE_CFLAGS="$CFLAGS" 7526 CFLAGS="$CFLAGS -belf" 7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7528$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7529if test "${lt_cv_cc_needs_belf+set}" = set; then : 7530 $as_echo_n "(cached) " >&6 7531else 7532 ac_ext=c 7533ac_cpp='$CPP $CPPFLAGS' 7534ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7535ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7536ac_compiler_gnu=$ac_cv_c_compiler_gnu 7537 7538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7539/* end confdefs.h. */ 7540 7541int 7542main () 7543{ 7544 7545 ; 7546 return 0; 7547} 7548_ACEOF 7549if ac_fn_c_try_link "$LINENO"; then : 7550 lt_cv_cc_needs_belf=yes 7551else 7552 lt_cv_cc_needs_belf=no 7553fi 7554rm -f core conftest.err conftest.$ac_objext \ 7555 conftest$ac_exeext conftest.$ac_ext 7556 ac_ext=c 7557ac_cpp='$CPP $CPPFLAGS' 7558ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7559ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7560ac_compiler_gnu=$ac_cv_c_compiler_gnu 7561 7562fi 7563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7564$as_echo "$lt_cv_cc_needs_belf" >&6; } 7565 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7566 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7567 CFLAGS="$SAVE_CFLAGS" 7568 fi 7569 ;; 7570sparc*-*solaris*) 7571 # Find out which ABI we are using. 7572 echo 'int i;' > conftest.$ac_ext 7573 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7574 (eval $ac_compile) 2>&5 7575 ac_status=$? 7576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7577 test $ac_status = 0; }; then 7578 case `/usr/bin/file conftest.o` in 7579 *64-bit*) 7580 case $lt_cv_prog_gnu_ld in 7581 yes*) LD="${LD-ld} -m elf64_sparc" ;; 7582 *) 7583 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7584 LD="${LD-ld} -64" 7585 fi 7586 ;; 7587 esac 7588 ;; 7589 esac 7590 fi 7591 rm -rf conftest* 7592 ;; 7593esac 7594 7595need_locks="$enable_libtool_lock" 7596 7597 7598 case $host_os in 7599 rhapsody* | darwin*) 7600 if test -n "$ac_tool_prefix"; then 7601 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7602set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7604$as_echo_n "checking for $ac_word... " >&6; } 7605if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : 7606 $as_echo_n "(cached) " >&6 7607else 7608 if test -n "$DSYMUTIL"; then 7609 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7610else 7611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7612for as_dir in $PATH 7613do 7614 IFS=$as_save_IFS 7615 test -z "$as_dir" && as_dir=. 7616 for ac_exec_ext in '' $ac_executable_extensions; do 7617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7618 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7620 break 2 7621 fi 7622done 7623 done 7624IFS=$as_save_IFS 7625 7626fi 7627fi 7628DSYMUTIL=$ac_cv_prog_DSYMUTIL 7629if test -n "$DSYMUTIL"; then 7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7631$as_echo "$DSYMUTIL" >&6; } 7632else 7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7634$as_echo "no" >&6; } 7635fi 7636 7637 7638fi 7639if test -z "$ac_cv_prog_DSYMUTIL"; then 7640 ac_ct_DSYMUTIL=$DSYMUTIL 7641 # Extract the first word of "dsymutil", so it can be a program name with args. 7642set dummy dsymutil; ac_word=$2 7643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7644$as_echo_n "checking for $ac_word... " >&6; } 7645if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : 7646 $as_echo_n "(cached) " >&6 7647else 7648 if test -n "$ac_ct_DSYMUTIL"; then 7649 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7650else 7651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7652for as_dir in $PATH 7653do 7654 IFS=$as_save_IFS 7655 test -z "$as_dir" && as_dir=. 7656 for ac_exec_ext in '' $ac_executable_extensions; do 7657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7658 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7660 break 2 7661 fi 7662done 7663 done 7664IFS=$as_save_IFS 7665 7666fi 7667fi 7668ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7669if test -n "$ac_ct_DSYMUTIL"; then 7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7671$as_echo "$ac_ct_DSYMUTIL" >&6; } 7672else 7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7674$as_echo "no" >&6; } 7675fi 7676 7677 if test "x$ac_ct_DSYMUTIL" = x; then 7678 DSYMUTIL=":" 7679 else 7680 case $cross_compiling:$ac_tool_warned in 7681yes:) 7682{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7683$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7684ac_tool_warned=yes ;; 7685esac 7686 DSYMUTIL=$ac_ct_DSYMUTIL 7687 fi 7688else 7689 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7690fi 7691 7692 if test -n "$ac_tool_prefix"; then 7693 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7694set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7696$as_echo_n "checking for $ac_word... " >&6; } 7697if test "${ac_cv_prog_NMEDIT+set}" = set; then : 7698 $as_echo_n "(cached) " >&6 7699else 7700 if test -n "$NMEDIT"; then 7701 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7702else 7703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7704for as_dir in $PATH 7705do 7706 IFS=$as_save_IFS 7707 test -z "$as_dir" && as_dir=. 7708 for ac_exec_ext in '' $ac_executable_extensions; do 7709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7710 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7712 break 2 7713 fi 7714done 7715 done 7716IFS=$as_save_IFS 7717 7718fi 7719fi 7720NMEDIT=$ac_cv_prog_NMEDIT 7721if test -n "$NMEDIT"; then 7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7723$as_echo "$NMEDIT" >&6; } 7724else 7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7726$as_echo "no" >&6; } 7727fi 7728 7729 7730fi 7731if test -z "$ac_cv_prog_NMEDIT"; then 7732 ac_ct_NMEDIT=$NMEDIT 7733 # Extract the first word of "nmedit", so it can be a program name with args. 7734set dummy nmedit; ac_word=$2 7735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7736$as_echo_n "checking for $ac_word... " >&6; } 7737if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : 7738 $as_echo_n "(cached) " >&6 7739else 7740 if test -n "$ac_ct_NMEDIT"; then 7741 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7742else 7743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7744for as_dir in $PATH 7745do 7746 IFS=$as_save_IFS 7747 test -z "$as_dir" && as_dir=. 7748 for ac_exec_ext in '' $ac_executable_extensions; do 7749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7750 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7752 break 2 7753 fi 7754done 7755 done 7756IFS=$as_save_IFS 7757 7758fi 7759fi 7760ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7761if test -n "$ac_ct_NMEDIT"; then 7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7763$as_echo "$ac_ct_NMEDIT" >&6; } 7764else 7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7766$as_echo "no" >&6; } 7767fi 7768 7769 if test "x$ac_ct_NMEDIT" = x; then 7770 NMEDIT=":" 7771 else 7772 case $cross_compiling:$ac_tool_warned in 7773yes:) 7774{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7775$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7776ac_tool_warned=yes ;; 7777esac 7778 NMEDIT=$ac_ct_NMEDIT 7779 fi 7780else 7781 NMEDIT="$ac_cv_prog_NMEDIT" 7782fi 7783 7784 if test -n "$ac_tool_prefix"; then 7785 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7786set dummy ${ac_tool_prefix}lipo; ac_word=$2 7787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7788$as_echo_n "checking for $ac_word... " >&6; } 7789if test "${ac_cv_prog_LIPO+set}" = set; then : 7790 $as_echo_n "(cached) " >&6 7791else 7792 if test -n "$LIPO"; then 7793 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7794else 7795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7796for as_dir in $PATH 7797do 7798 IFS=$as_save_IFS 7799 test -z "$as_dir" && as_dir=. 7800 for ac_exec_ext in '' $ac_executable_extensions; do 7801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7802 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7804 break 2 7805 fi 7806done 7807 done 7808IFS=$as_save_IFS 7809 7810fi 7811fi 7812LIPO=$ac_cv_prog_LIPO 7813if test -n "$LIPO"; then 7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7815$as_echo "$LIPO" >&6; } 7816else 7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7818$as_echo "no" >&6; } 7819fi 7820 7821 7822fi 7823if test -z "$ac_cv_prog_LIPO"; then 7824 ac_ct_LIPO=$LIPO 7825 # Extract the first word of "lipo", so it can be a program name with args. 7826set dummy lipo; ac_word=$2 7827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7828$as_echo_n "checking for $ac_word... " >&6; } 7829if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : 7830 $as_echo_n "(cached) " >&6 7831else 7832 if test -n "$ac_ct_LIPO"; then 7833 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7834else 7835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7836for as_dir in $PATH 7837do 7838 IFS=$as_save_IFS 7839 test -z "$as_dir" && as_dir=. 7840 for ac_exec_ext in '' $ac_executable_extensions; do 7841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7842 ac_cv_prog_ac_ct_LIPO="lipo" 7843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7844 break 2 7845 fi 7846done 7847 done 7848IFS=$as_save_IFS 7849 7850fi 7851fi 7852ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7853if test -n "$ac_ct_LIPO"; then 7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7855$as_echo "$ac_ct_LIPO" >&6; } 7856else 7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7858$as_echo "no" >&6; } 7859fi 7860 7861 if test "x$ac_ct_LIPO" = x; then 7862 LIPO=":" 7863 else 7864 case $cross_compiling:$ac_tool_warned in 7865yes:) 7866{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7867$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7868ac_tool_warned=yes ;; 7869esac 7870 LIPO=$ac_ct_LIPO 7871 fi 7872else 7873 LIPO="$ac_cv_prog_LIPO" 7874fi 7875 7876 if test -n "$ac_tool_prefix"; then 7877 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7878set dummy ${ac_tool_prefix}otool; ac_word=$2 7879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7880$as_echo_n "checking for $ac_word... " >&6; } 7881if test "${ac_cv_prog_OTOOL+set}" = set; then : 7882 $as_echo_n "(cached) " >&6 7883else 7884 if test -n "$OTOOL"; then 7885 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7886else 7887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7888for as_dir in $PATH 7889do 7890 IFS=$as_save_IFS 7891 test -z "$as_dir" && as_dir=. 7892 for ac_exec_ext in '' $ac_executable_extensions; do 7893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7894 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7896 break 2 7897 fi 7898done 7899 done 7900IFS=$as_save_IFS 7901 7902fi 7903fi 7904OTOOL=$ac_cv_prog_OTOOL 7905if test -n "$OTOOL"; then 7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7907$as_echo "$OTOOL" >&6; } 7908else 7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7910$as_echo "no" >&6; } 7911fi 7912 7913 7914fi 7915if test -z "$ac_cv_prog_OTOOL"; then 7916 ac_ct_OTOOL=$OTOOL 7917 # Extract the first word of "otool", so it can be a program name with args. 7918set dummy otool; ac_word=$2 7919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7920$as_echo_n "checking for $ac_word... " >&6; } 7921if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : 7922 $as_echo_n "(cached) " >&6 7923else 7924 if test -n "$ac_ct_OTOOL"; then 7925 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7926else 7927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7928for as_dir in $PATH 7929do 7930 IFS=$as_save_IFS 7931 test -z "$as_dir" && as_dir=. 7932 for ac_exec_ext in '' $ac_executable_extensions; do 7933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7934 ac_cv_prog_ac_ct_OTOOL="otool" 7935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7936 break 2 7937 fi 7938done 7939 done 7940IFS=$as_save_IFS 7941 7942fi 7943fi 7944ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7945if test -n "$ac_ct_OTOOL"; then 7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7947$as_echo "$ac_ct_OTOOL" >&6; } 7948else 7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7950$as_echo "no" >&6; } 7951fi 7952 7953 if test "x$ac_ct_OTOOL" = x; then 7954 OTOOL=":" 7955 else 7956 case $cross_compiling:$ac_tool_warned in 7957yes:) 7958{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7959$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7960ac_tool_warned=yes ;; 7961esac 7962 OTOOL=$ac_ct_OTOOL 7963 fi 7964else 7965 OTOOL="$ac_cv_prog_OTOOL" 7966fi 7967 7968 if test -n "$ac_tool_prefix"; then 7969 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7970set dummy ${ac_tool_prefix}otool64; ac_word=$2 7971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7972$as_echo_n "checking for $ac_word... " >&6; } 7973if test "${ac_cv_prog_OTOOL64+set}" = set; then : 7974 $as_echo_n "(cached) " >&6 7975else 7976 if test -n "$OTOOL64"; then 7977 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7978else 7979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7980for as_dir in $PATH 7981do 7982 IFS=$as_save_IFS 7983 test -z "$as_dir" && as_dir=. 7984 for ac_exec_ext in '' $ac_executable_extensions; do 7985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7986 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7988 break 2 7989 fi 7990done 7991 done 7992IFS=$as_save_IFS 7993 7994fi 7995fi 7996OTOOL64=$ac_cv_prog_OTOOL64 7997if test -n "$OTOOL64"; then 7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7999$as_echo "$OTOOL64" >&6; } 8000else 8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8002$as_echo "no" >&6; } 8003fi 8004 8005 8006fi 8007if test -z "$ac_cv_prog_OTOOL64"; then 8008 ac_ct_OTOOL64=$OTOOL64 8009 # Extract the first word of "otool64", so it can be a program name with args. 8010set dummy otool64; ac_word=$2 8011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8012$as_echo_n "checking for $ac_word... " >&6; } 8013if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : 8014 $as_echo_n "(cached) " >&6 8015else 8016 if test -n "$ac_ct_OTOOL64"; then 8017 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8018else 8019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8020for as_dir in $PATH 8021do 8022 IFS=$as_save_IFS 8023 test -z "$as_dir" && as_dir=. 8024 for ac_exec_ext in '' $ac_executable_extensions; do 8025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8026 ac_cv_prog_ac_ct_OTOOL64="otool64" 8027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8028 break 2 8029 fi 8030done 8031 done 8032IFS=$as_save_IFS 8033 8034fi 8035fi 8036ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8037if test -n "$ac_ct_OTOOL64"; then 8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8039$as_echo "$ac_ct_OTOOL64" >&6; } 8040else 8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8042$as_echo "no" >&6; } 8043fi 8044 8045 if test "x$ac_ct_OTOOL64" = x; then 8046 OTOOL64=":" 8047 else 8048 case $cross_compiling:$ac_tool_warned in 8049yes:) 8050{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8051$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8052ac_tool_warned=yes ;; 8053esac 8054 OTOOL64=$ac_ct_OTOOL64 8055 fi 8056else 8057 OTOOL64="$ac_cv_prog_OTOOL64" 8058fi 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8087$as_echo_n "checking for -single_module linker flag... " >&6; } 8088if test "${lt_cv_apple_cc_single_mod+set}" = set; then : 8089 $as_echo_n "(cached) " >&6 8090else 8091 lt_cv_apple_cc_single_mod=no 8092 if test -z "${LT_MULTI_MODULE}"; then 8093 # By default we will add the -single_module flag. You can override 8094 # by either setting the environment variable LT_MULTI_MODULE 8095 # non-empty at configure time, or by adding -multi_module to the 8096 # link flags. 8097 rm -rf libconftest.dylib* 8098 echo "int foo(void){return 1;}" > conftest.c 8099 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8100-dynamiclib -Wl,-single_module conftest.c" >&5 8101 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8102 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8103 _lt_result=$? 8104 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 8105 lt_cv_apple_cc_single_mod=yes 8106 else 8107 cat conftest.err >&5 8108 fi 8109 rm -rf libconftest.dylib* 8110 rm -f conftest.* 8111 fi 8112fi 8113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8114$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8116$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8117if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : 8118 $as_echo_n "(cached) " >&6 8119else 8120 lt_cv_ld_exported_symbols_list=no 8121 save_LDFLAGS=$LDFLAGS 8122 echo "_main" > conftest.sym 8123 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8125/* end confdefs.h. */ 8126 8127int 8128main () 8129{ 8130 8131 ; 8132 return 0; 8133} 8134_ACEOF 8135if ac_fn_c_try_link "$LINENO"; then : 8136 lt_cv_ld_exported_symbols_list=yes 8137else 8138 lt_cv_ld_exported_symbols_list=no 8139fi 8140rm -f core conftest.err conftest.$ac_objext \ 8141 conftest$ac_exeext conftest.$ac_ext 8142 LDFLAGS="$save_LDFLAGS" 8143 8144fi 8145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8146$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8147 case $host_os in 8148 rhapsody* | darwin1.[012]) 8149 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 8150 darwin1.*) 8151 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8152 darwin*) # darwin 5.x on 8153 # if running on 10.5 or later, the deployment target defaults 8154 # to the OS version, if on x86, and 10.4, the deployment 8155 # target defaults to 10.4. Don't you love it? 8156 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8157 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8158 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8159 10.[012]*) 8160 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8161 10.*) 8162 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8163 esac 8164 ;; 8165 esac 8166 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 8167 _lt_dar_single_mod='$single_module' 8168 fi 8169 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 8170 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 8171 else 8172 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 8173 fi 8174 if test "$DSYMUTIL" != ":"; then 8175 _lt_dsymutil='~$DSYMUTIL $lib || :' 8176 else 8177 _lt_dsymutil= 8178 fi 8179 ;; 8180 esac 8181 8182for ac_header in dlfcn.h 8183do : 8184 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8185" 8186if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 8187 cat >>confdefs.h <<_ACEOF 8188#define HAVE_DLFCN_H 1 8189_ACEOF 8190 8191fi 8192 8193done 8194 8195 8196 8197# Set options 8198 8199 8200 8201 enable_dlopen=no 8202 8203 8204 enable_win32_dll=no 8205 8206 8207 # Check whether --enable-shared was given. 8208if test "${enable_shared+set}" = set; then : 8209 enableval=$enable_shared; p=${PACKAGE-default} 8210 case $enableval in 8211 yes) enable_shared=yes ;; 8212 no) enable_shared=no ;; 8213 *) 8214 enable_shared=no 8215 # Look at the argument we got. We use all the common list separators. 8216 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8217 for pkg in $enableval; do 8218 IFS="$lt_save_ifs" 8219 if test "X$pkg" = "X$p"; then 8220 enable_shared=yes 8221 fi 8222 done 8223 IFS="$lt_save_ifs" 8224 ;; 8225 esac 8226else 8227 enable_shared=yes 8228fi 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 # Check whether --enable-static was given. 8239if test "${enable_static+set}" = set; then : 8240 enableval=$enable_static; p=${PACKAGE-default} 8241 case $enableval in 8242 yes) enable_static=yes ;; 8243 no) enable_static=no ;; 8244 *) 8245 enable_static=no 8246 # Look at the argument we got. We use all the common list separators. 8247 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8248 for pkg in $enableval; do 8249 IFS="$lt_save_ifs" 8250 if test "X$pkg" = "X$p"; then 8251 enable_static=yes 8252 fi 8253 done 8254 IFS="$lt_save_ifs" 8255 ;; 8256 esac 8257else 8258 enable_static=yes 8259fi 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270# Check whether --with-pic was given. 8271if test "${with_pic+set}" = set; then : 8272 withval=$with_pic; pic_mode="$withval" 8273else 8274 pic_mode=default 8275fi 8276 8277 8278test -z "$pic_mode" && pic_mode=default 8279 8280 8281 8282 8283 8284 8285 8286 # Check whether --enable-fast-install was given. 8287if test "${enable_fast_install+set}" = set; then : 8288 enableval=$enable_fast_install; p=${PACKAGE-default} 8289 case $enableval in 8290 yes) enable_fast_install=yes ;; 8291 no) enable_fast_install=no ;; 8292 *) 8293 enable_fast_install=no 8294 # Look at the argument we got. We use all the common list separators. 8295 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8296 for pkg in $enableval; do 8297 IFS="$lt_save_ifs" 8298 if test "X$pkg" = "X$p"; then 8299 enable_fast_install=yes 8300 fi 8301 done 8302 IFS="$lt_save_ifs" 8303 ;; 8304 esac 8305else 8306 enable_fast_install=yes 8307fi 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319# This can be used to rebuild libtool when needed 8320LIBTOOL_DEPS="$ltmain" 8321 8322# Always use our own libtool. 8323LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349test -z "$LN_S" && LN_S="ln -s" 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364if test -n "${ZSH_VERSION+set}" ; then 8365 setopt NO_GLOB_SUBST 8366fi 8367 8368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8369$as_echo_n "checking for objdir... " >&6; } 8370if test "${lt_cv_objdir+set}" = set; then : 8371 $as_echo_n "(cached) " >&6 8372else 8373 rm -f .libs 2>/dev/null 8374mkdir .libs 2>/dev/null 8375if test -d .libs; then 8376 lt_cv_objdir=.libs 8377else 8378 # MS-DOS does not allow filenames that begin with a dot. 8379 lt_cv_objdir=_libs 8380fi 8381rmdir .libs 2>/dev/null 8382fi 8383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8384$as_echo "$lt_cv_objdir" >&6; } 8385objdir=$lt_cv_objdir 8386 8387 8388 8389 8390 8391cat >>confdefs.h <<_ACEOF 8392#define LT_OBJDIR "$lt_cv_objdir/" 8393_ACEOF 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411case $host_os in 8412aix3*) 8413 # AIX sometimes has problems with the GCC collect2 program. For some 8414 # reason, if we set the COLLECT_NAMES environment variable, the problems 8415 # vanish in a puff of smoke. 8416 if test "X${COLLECT_NAMES+set}" != Xset; then 8417 COLLECT_NAMES= 8418 export COLLECT_NAMES 8419 fi 8420 ;; 8421esac 8422 8423# Sed substitution that helps us do robust quoting. It backslashifies 8424# metacharacters that are still active within double-quoted strings. 8425sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 8426 8427# Same as above, but do not quote variable references. 8428double_quote_subst='s/\(["`\\]\)/\\\1/g' 8429 8430# Sed substitution to delay expansion of an escaped shell variable in a 8431# double_quote_subst'ed string. 8432delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 8433 8434# Sed substitution to delay expansion of an escaped single quote. 8435delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 8436 8437# Sed substitution to avoid accidental globbing in evaled expressions 8438no_glob_subst='s/\*/\\\*/g' 8439 8440# Global variables: 8441ofile=libtool 8442can_build_shared=yes 8443 8444# All known linkers require a `.a' archive for static linking (except MSVC, 8445# which needs '.lib'). 8446libext=a 8447 8448with_gnu_ld="$lt_cv_prog_gnu_ld" 8449 8450old_CC="$CC" 8451old_CFLAGS="$CFLAGS" 8452 8453# Set sane defaults for various variables 8454test -z "$CC" && CC=cc 8455test -z "$LTCC" && LTCC=$CC 8456test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8457test -z "$LD" && LD=ld 8458test -z "$ac_objext" && ac_objext=o 8459 8460for cc_temp in $compiler""; do 8461 case $cc_temp in 8462 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8463 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8464 \-*) ;; 8465 *) break;; 8466 esac 8467done 8468cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8469 8470 8471# Only perform the check for file, if the check method requires it 8472test -z "$MAGIC_CMD" && MAGIC_CMD=file 8473case $deplibs_check_method in 8474file_magic*) 8475 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8477$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8478if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 8479 $as_echo_n "(cached) " >&6 8480else 8481 case $MAGIC_CMD in 8482[\\/*] | ?:[\\/]*) 8483 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8484 ;; 8485*) 8486 lt_save_MAGIC_CMD="$MAGIC_CMD" 8487 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8488 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8489 for ac_dir in $ac_dummy; do 8490 IFS="$lt_save_ifs" 8491 test -z "$ac_dir" && ac_dir=. 8492 if test -f $ac_dir/${ac_tool_prefix}file; then 8493 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8494 if test -n "$file_magic_test_file"; then 8495 case $deplibs_check_method in 8496 "file_magic "*) 8497 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8498 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8499 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8500 $EGREP "$file_magic_regex" > /dev/null; then 8501 : 8502 else 8503 cat <<_LT_EOF 1>&2 8504 8505*** Warning: the command libtool uses to detect shared libraries, 8506*** $file_magic_cmd, produces output that libtool cannot recognize. 8507*** The result is that libtool may fail to recognize shared libraries 8508*** as such. This will affect the creation of libtool libraries that 8509*** depend on shared libraries, but programs linked with such libtool 8510*** libraries will work regardless of this problem. Nevertheless, you 8511*** may want to report the problem to your system manager and/or to 8512*** bug-libtool@gnu.org 8513 8514_LT_EOF 8515 fi ;; 8516 esac 8517 fi 8518 break 8519 fi 8520 done 8521 IFS="$lt_save_ifs" 8522 MAGIC_CMD="$lt_save_MAGIC_CMD" 8523 ;; 8524esac 8525fi 8526 8527MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8528if test -n "$MAGIC_CMD"; then 8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8530$as_echo "$MAGIC_CMD" >&6; } 8531else 8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8533$as_echo "no" >&6; } 8534fi 8535 8536 8537 8538 8539 8540if test -z "$lt_cv_path_MAGIC_CMD"; then 8541 if test -n "$ac_tool_prefix"; then 8542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8543$as_echo_n "checking for file... " >&6; } 8544if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 8545 $as_echo_n "(cached) " >&6 8546else 8547 case $MAGIC_CMD in 8548[\\/*] | ?:[\\/]*) 8549 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8550 ;; 8551*) 8552 lt_save_MAGIC_CMD="$MAGIC_CMD" 8553 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8554 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8555 for ac_dir in $ac_dummy; do 8556 IFS="$lt_save_ifs" 8557 test -z "$ac_dir" && ac_dir=. 8558 if test -f $ac_dir/file; then 8559 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8560 if test -n "$file_magic_test_file"; then 8561 case $deplibs_check_method in 8562 "file_magic "*) 8563 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8564 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8565 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8566 $EGREP "$file_magic_regex" > /dev/null; then 8567 : 8568 else 8569 cat <<_LT_EOF 1>&2 8570 8571*** Warning: the command libtool uses to detect shared libraries, 8572*** $file_magic_cmd, produces output that libtool cannot recognize. 8573*** The result is that libtool may fail to recognize shared libraries 8574*** as such. This will affect the creation of libtool libraries that 8575*** depend on shared libraries, but programs linked with such libtool 8576*** libraries will work regardless of this problem. Nevertheless, you 8577*** may want to report the problem to your system manager and/or to 8578*** bug-libtool@gnu.org 8579 8580_LT_EOF 8581 fi ;; 8582 esac 8583 fi 8584 break 8585 fi 8586 done 8587 IFS="$lt_save_ifs" 8588 MAGIC_CMD="$lt_save_MAGIC_CMD" 8589 ;; 8590esac 8591fi 8592 8593MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8594if test -n "$MAGIC_CMD"; then 8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8596$as_echo "$MAGIC_CMD" >&6; } 8597else 8598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8599$as_echo "no" >&6; } 8600fi 8601 8602 8603 else 8604 MAGIC_CMD=: 8605 fi 8606fi 8607 8608 fi 8609 ;; 8610esac 8611 8612# Use C for the default configuration in the libtool script 8613 8614lt_save_CC="$CC" 8615ac_ext=c 8616ac_cpp='$CPP $CPPFLAGS' 8617ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8618ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8619ac_compiler_gnu=$ac_cv_c_compiler_gnu 8620 8621 8622# Source file extension for C test sources. 8623ac_ext=c 8624 8625# Object file extension for compiled C test sources. 8626objext=o 8627objext=$objext 8628 8629# Code to be used in simple compile tests 8630lt_simple_compile_test_code="int some_variable = 0;" 8631 8632# Code to be used in simple link tests 8633lt_simple_link_test_code='int main(){return(0);}' 8634 8635 8636 8637 8638 8639 8640 8641# If no C compiler was specified, use CC. 8642LTCC=${LTCC-"$CC"} 8643 8644# If no C compiler flags were specified, use CFLAGS. 8645LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8646 8647# Allow CC to be a program name with arguments. 8648compiler=$CC 8649 8650# Save the default compiler, since it gets overwritten when the other 8651# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8652compiler_DEFAULT=$CC 8653 8654# save warnings/boilerplate of simple test code 8655ac_outfile=conftest.$ac_objext 8656echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8657eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8658_lt_compiler_boilerplate=`cat conftest.err` 8659$RM conftest* 8660 8661ac_outfile=conftest.$ac_objext 8662echo "$lt_simple_link_test_code" >conftest.$ac_ext 8663eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8664_lt_linker_boilerplate=`cat conftest.err` 8665$RM -r conftest* 8666 8667 8668if test -n "$compiler"; then 8669 8670lt_prog_compiler_no_builtin_flag= 8671 8672if test "$GCC" = yes; then 8673 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 8674 8675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8676$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8677if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 8678 $as_echo_n "(cached) " >&6 8679else 8680 lt_cv_prog_compiler_rtti_exceptions=no 8681 ac_outfile=conftest.$ac_objext 8682 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8683 lt_compiler_flag="-fno-rtti -fno-exceptions" 8684 # Insert the option either (1) after the last *FLAGS variable, or 8685 # (2) before a word containing "conftest.", or (3) at the end. 8686 # Note that $ac_compile itself does not contain backslashes and begins 8687 # with a dollar sign (not a hyphen), so the echo should work correctly. 8688 # The option is referenced via a variable to avoid confusing sed. 8689 lt_compile=`echo "$ac_compile" | $SED \ 8690 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8691 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8692 -e 's:$: $lt_compiler_flag:'` 8693 (eval echo "\"\$as_me:8693: $lt_compile\"" >&5) 8694 (eval "$lt_compile" 2>conftest.err) 8695 ac_status=$? 8696 cat conftest.err >&5 8697 echo "$as_me:8697: \$? = $ac_status" >&5 8698 if (exit $ac_status) && test -s "$ac_outfile"; then 8699 # The compiler can only warn and ignore the option if not recognized 8700 # So say no if there are warnings other than the usual output. 8701 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8702 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8703 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8704 lt_cv_prog_compiler_rtti_exceptions=yes 8705 fi 8706 fi 8707 $RM conftest* 8708 8709fi 8710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8711$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8712 8713if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8714 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8715else 8716 : 8717fi 8718 8719fi 8720 8721 8722 8723 8724 8725 8726 lt_prog_compiler_wl= 8727lt_prog_compiler_pic= 8728lt_prog_compiler_static= 8729 8730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8731$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8732 8733 if test "$GCC" = yes; then 8734 lt_prog_compiler_wl='-Wl,' 8735 lt_prog_compiler_static='-static' 8736 8737 case $host_os in 8738 aix*) 8739 # All AIX code is PIC. 8740 if test "$host_cpu" = ia64; then 8741 # AIX 5 now supports IA64 processor 8742 lt_prog_compiler_static='-Bstatic' 8743 fi 8744 ;; 8745 8746 amigaos*) 8747 case $host_cpu in 8748 powerpc) 8749 # see comment about AmigaOS4 .so support 8750 lt_prog_compiler_pic='-fPIC' 8751 ;; 8752 m68k) 8753 # FIXME: we need at least 68020 code to build shared libraries, but 8754 # adding the `-m68020' flag to GCC prevents building anything better, 8755 # like `-m68040'. 8756 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8757 ;; 8758 esac 8759 ;; 8760 8761 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8762 # PIC is the default for these OSes. 8763 ;; 8764 8765 mingw* | cygwin* | pw32* | os2* | cegcc*) 8766 # This hack is so that the source file can tell whether it is being 8767 # built for inclusion in a dll (and should export symbols for example). 8768 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8769 # (--disable-auto-import) libraries 8770 lt_prog_compiler_pic='-DDLL_EXPORT' 8771 ;; 8772 8773 darwin* | rhapsody*) 8774 # PIC is the default on this platform 8775 # Common symbols not allowed in MH_DYLIB files 8776 lt_prog_compiler_pic='-fno-common' 8777 ;; 8778 8779 hpux*) 8780 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8781 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8782 # sets the default TLS model and affects inlining. 8783 case $host_cpu in 8784 hppa*64*) 8785 # +Z the default 8786 ;; 8787 *) 8788 lt_prog_compiler_pic='-fPIC' 8789 ;; 8790 esac 8791 ;; 8792 8793 interix[3-9]*) 8794 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8795 # Instead, we relocate shared libraries at runtime. 8796 ;; 8797 8798 msdosdjgpp*) 8799 # Just because we use GCC doesn't mean we suddenly get shared libraries 8800 # on systems that don't support them. 8801 lt_prog_compiler_can_build_shared=no 8802 enable_shared=no 8803 ;; 8804 8805 *nto* | *qnx*) 8806 # QNX uses GNU C++, but need to define -shared option too, otherwise 8807 # it will coredump. 8808 lt_prog_compiler_pic='-fPIC -shared' 8809 ;; 8810 8811 sysv4*MP*) 8812 if test -d /usr/nec; then 8813 lt_prog_compiler_pic=-Kconform_pic 8814 fi 8815 ;; 8816 8817 *) 8818 lt_prog_compiler_pic='-fPIC' 8819 ;; 8820 esac 8821 else 8822 # PORTME Check for flag to pass linker flags through the system compiler. 8823 case $host_os in 8824 aix*) 8825 lt_prog_compiler_wl='-Wl,' 8826 if test "$host_cpu" = ia64; then 8827 # AIX 5 now supports IA64 processor 8828 lt_prog_compiler_static='-Bstatic' 8829 else 8830 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8831 fi 8832 ;; 8833 8834 mingw* | cygwin* | pw32* | os2* | cegcc*) 8835 # This hack is so that the source file can tell whether it is being 8836 # built for inclusion in a dll (and should export symbols for example). 8837 lt_prog_compiler_pic='-DDLL_EXPORT' 8838 ;; 8839 8840 hpux9* | hpux10* | hpux11*) 8841 lt_prog_compiler_wl='-Wl,' 8842 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8843 # not for PA HP-UX. 8844 case $host_cpu in 8845 hppa*64*|ia64*) 8846 # +Z the default 8847 ;; 8848 *) 8849 lt_prog_compiler_pic='+Z' 8850 ;; 8851 esac 8852 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8853 lt_prog_compiler_static='${wl}-a ${wl}archive' 8854 ;; 8855 8856 irix5* | irix6* | nonstopux*) 8857 lt_prog_compiler_wl='-Wl,' 8858 # PIC (with -KPIC) is the default. 8859 lt_prog_compiler_static='-non_shared' 8860 ;; 8861 8862 linux* | k*bsd*-gnu) 8863 case $cc_basename in 8864 # old Intel for x86_64 which still supported -KPIC. 8865 ecc*) 8866 lt_prog_compiler_wl='-Wl,' 8867 lt_prog_compiler_pic='-KPIC' 8868 lt_prog_compiler_static='-static' 8869 ;; 8870 # icc used to be incompatible with GCC. 8871 # ICC 10 doesn't accept -KPIC any more. 8872 icc* | ifort*) 8873 lt_prog_compiler_wl='-Wl,' 8874 lt_prog_compiler_pic='-fPIC' 8875 lt_prog_compiler_static='-static' 8876 ;; 8877 # Lahey Fortran 8.1. 8878 lf95*) 8879 lt_prog_compiler_wl='-Wl,' 8880 lt_prog_compiler_pic='--shared' 8881 lt_prog_compiler_static='--static' 8882 ;; 8883 pgcc* | pgf77* | pgf90* | pgf95*) 8884 # Portland Group compilers (*not* the Pentium gcc compiler, 8885 # which looks to be a dead project) 8886 lt_prog_compiler_wl='-Wl,' 8887 lt_prog_compiler_pic='-fpic' 8888 lt_prog_compiler_static='-Bstatic' 8889 ;; 8890 ccc*) 8891 lt_prog_compiler_wl='-Wl,' 8892 # All Alpha code is PIC. 8893 lt_prog_compiler_static='-non_shared' 8894 ;; 8895 xl*) 8896 # IBM XL C 8.0/Fortran 10.1 on PPC 8897 lt_prog_compiler_wl='-Wl,' 8898 lt_prog_compiler_pic='-qpic' 8899 lt_prog_compiler_static='-qstaticlink' 8900 ;; 8901 *) 8902 case `$CC -V 2>&1 | sed 5q` in 8903 *Sun\ C*) 8904 # Sun C 5.9 8905 lt_prog_compiler_pic='-KPIC' 8906 lt_prog_compiler_static='-Bstatic' 8907 lt_prog_compiler_wl='-Wl,' 8908 ;; 8909 *Sun\ F*) 8910 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8911 lt_prog_compiler_pic='-KPIC' 8912 lt_prog_compiler_static='-Bstatic' 8913 lt_prog_compiler_wl='' 8914 ;; 8915 esac 8916 ;; 8917 esac 8918 ;; 8919 8920 newsos6) 8921 lt_prog_compiler_pic='-KPIC' 8922 lt_prog_compiler_static='-Bstatic' 8923 ;; 8924 8925 *nto* | *qnx*) 8926 # QNX uses GNU C++, but need to define -shared option too, otherwise 8927 # it will coredump. 8928 lt_prog_compiler_pic='-fPIC -shared' 8929 ;; 8930 8931 osf3* | osf4* | osf5*) 8932 lt_prog_compiler_wl='-Wl,' 8933 # All OSF/1 code is PIC. 8934 lt_prog_compiler_static='-non_shared' 8935 ;; 8936 8937 rdos*) 8938 lt_prog_compiler_static='-non_shared' 8939 ;; 8940 8941 solaris*) 8942 lt_prog_compiler_pic='-KPIC' 8943 lt_prog_compiler_static='-Bstatic' 8944 case $cc_basename in 8945 f77* | f90* | f95*) 8946 lt_prog_compiler_wl='-Qoption ld ';; 8947 *) 8948 lt_prog_compiler_wl='-Wl,';; 8949 esac 8950 ;; 8951 8952 sunos4*) 8953 lt_prog_compiler_wl='-Qoption ld ' 8954 lt_prog_compiler_pic='-PIC' 8955 lt_prog_compiler_static='-Bstatic' 8956 ;; 8957 8958 sysv4 | sysv4.2uw2* | sysv4.3*) 8959 lt_prog_compiler_wl='-Wl,' 8960 lt_prog_compiler_pic='-KPIC' 8961 lt_prog_compiler_static='-Bstatic' 8962 ;; 8963 8964 sysv4*MP*) 8965 if test -d /usr/nec ;then 8966 lt_prog_compiler_pic='-Kconform_pic' 8967 lt_prog_compiler_static='-Bstatic' 8968 fi 8969 ;; 8970 8971 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8972 lt_prog_compiler_wl='-Wl,' 8973 lt_prog_compiler_pic='-KPIC' 8974 lt_prog_compiler_static='-Bstatic' 8975 ;; 8976 8977 unicos*) 8978 lt_prog_compiler_wl='-Wl,' 8979 lt_prog_compiler_can_build_shared=no 8980 ;; 8981 8982 uts4*) 8983 lt_prog_compiler_pic='-pic' 8984 lt_prog_compiler_static='-Bstatic' 8985 ;; 8986 8987 *) 8988 lt_prog_compiler_can_build_shared=no 8989 ;; 8990 esac 8991 fi 8992 8993case $host_os in 8994 # For platforms which do not support PIC, -DPIC is meaningless: 8995 *djgpp*) 8996 lt_prog_compiler_pic= 8997 ;; 8998 *) 8999 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9000 ;; 9001esac 9002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 9003$as_echo "$lt_prog_compiler_pic" >&6; } 9004 9005 9006 9007 9008 9009 9010# 9011# Check to make sure the PIC flag actually works. 9012# 9013if test -n "$lt_prog_compiler_pic"; then 9014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9015$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9016if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : 9017 $as_echo_n "(cached) " >&6 9018else 9019 lt_cv_prog_compiler_pic_works=no 9020 ac_outfile=conftest.$ac_objext 9021 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9022 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 9023 # Insert the option either (1) after the last *FLAGS variable, or 9024 # (2) before a word containing "conftest.", or (3) at the end. 9025 # Note that $ac_compile itself does not contain backslashes and begins 9026 # with a dollar sign (not a hyphen), so the echo should work correctly. 9027 # The option is referenced via a variable to avoid confusing sed. 9028 lt_compile=`echo "$ac_compile" | $SED \ 9029 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9030 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9031 -e 's:$: $lt_compiler_flag:'` 9032 (eval echo "\"\$as_me:9032: $lt_compile\"" >&5) 9033 (eval "$lt_compile" 2>conftest.err) 9034 ac_status=$? 9035 cat conftest.err >&5 9036 echo "$as_me:9036: \$? = $ac_status" >&5 9037 if (exit $ac_status) && test -s "$ac_outfile"; then 9038 # The compiler can only warn and ignore the option if not recognized 9039 # So say no if there are warnings other than the usual output. 9040 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 9041 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9042 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9043 lt_cv_prog_compiler_pic_works=yes 9044 fi 9045 fi 9046 $RM conftest* 9047 9048fi 9049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9050$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9051 9052if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 9053 case $lt_prog_compiler_pic in 9054 "" | " "*) ;; 9055 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9056 esac 9057else 9058 lt_prog_compiler_pic= 9059 lt_prog_compiler_can_build_shared=no 9060fi 9061 9062fi 9063 9064 9065 9066 9067 9068 9069# 9070# Check to make sure the static flag actually works. 9071# 9072wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9074$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9075if test "${lt_cv_prog_compiler_static_works+set}" = set; then : 9076 $as_echo_n "(cached) " >&6 9077else 9078 lt_cv_prog_compiler_static_works=no 9079 save_LDFLAGS="$LDFLAGS" 9080 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9081 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9082 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9083 # The linker can only warn and ignore the option if not recognized 9084 # So say no if there are warnings 9085 if test -s conftest.err; then 9086 # Append any errors to the config.log. 9087 cat conftest.err 1>&5 9088 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 9089 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9090 if diff conftest.exp conftest.er2 >/dev/null; then 9091 lt_cv_prog_compiler_static_works=yes 9092 fi 9093 else 9094 lt_cv_prog_compiler_static_works=yes 9095 fi 9096 fi 9097 $RM -r conftest* 9098 LDFLAGS="$save_LDFLAGS" 9099 9100fi 9101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9102$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9103 9104if test x"$lt_cv_prog_compiler_static_works" = xyes; then 9105 : 9106else 9107 lt_prog_compiler_static= 9108fi 9109 9110 9111 9112 9113 9114 9115 9116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9117$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9118if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 9119 $as_echo_n "(cached) " >&6 9120else 9121 lt_cv_prog_compiler_c_o=no 9122 $RM -r conftest 2>/dev/null 9123 mkdir conftest 9124 cd conftest 9125 mkdir out 9126 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9127 9128 lt_compiler_flag="-o out/conftest2.$ac_objext" 9129 # Insert the option either (1) after the last *FLAGS variable, or 9130 # (2) before a word containing "conftest.", or (3) at the end. 9131 # Note that $ac_compile itself does not contain backslashes and begins 9132 # with a dollar sign (not a hyphen), so the echo should work correctly. 9133 lt_compile=`echo "$ac_compile" | $SED \ 9134 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9135 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9136 -e 's:$: $lt_compiler_flag:'` 9137 (eval echo "\"\$as_me:9137: $lt_compile\"" >&5) 9138 (eval "$lt_compile" 2>out/conftest.err) 9139 ac_status=$? 9140 cat out/conftest.err >&5 9141 echo "$as_me:9141: \$? = $ac_status" >&5 9142 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9143 then 9144 # The compiler can only warn and ignore the option if not recognized 9145 # So say no if there are warnings 9146 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 9147 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9148 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9149 lt_cv_prog_compiler_c_o=yes 9150 fi 9151 fi 9152 chmod u+w . 2>&5 9153 $RM conftest* 9154 # SGI C++ compiler will create directory out/ii_files/ for 9155 # template instantiation 9156 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9157 $RM out/* && rmdir out 9158 cd .. 9159 $RM -r conftest 9160 $RM conftest* 9161 9162fi 9163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9164$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9165 9166 9167 9168 9169 9170 9171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9172$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9173if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 9174 $as_echo_n "(cached) " >&6 9175else 9176 lt_cv_prog_compiler_c_o=no 9177 $RM -r conftest 2>/dev/null 9178 mkdir conftest 9179 cd conftest 9180 mkdir out 9181 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9182 9183 lt_compiler_flag="-o out/conftest2.$ac_objext" 9184 # Insert the option either (1) after the last *FLAGS variable, or 9185 # (2) before a word containing "conftest.", or (3) at the end. 9186 # Note that $ac_compile itself does not contain backslashes and begins 9187 # with a dollar sign (not a hyphen), so the echo should work correctly. 9188 lt_compile=`echo "$ac_compile" | $SED \ 9189 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9190 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9191 -e 's:$: $lt_compiler_flag:'` 9192 (eval echo "\"\$as_me:9192: $lt_compile\"" >&5) 9193 (eval "$lt_compile" 2>out/conftest.err) 9194 ac_status=$? 9195 cat out/conftest.err >&5 9196 echo "$as_me:9196: \$? = $ac_status" >&5 9197 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9198 then 9199 # The compiler can only warn and ignore the option if not recognized 9200 # So say no if there are warnings 9201 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 9202 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9203 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9204 lt_cv_prog_compiler_c_o=yes 9205 fi 9206 fi 9207 chmod u+w . 2>&5 9208 $RM conftest* 9209 # SGI C++ compiler will create directory out/ii_files/ for 9210 # template instantiation 9211 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9212 $RM out/* && rmdir out 9213 cd .. 9214 $RM -r conftest 9215 $RM conftest* 9216 9217fi 9218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9219$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9220 9221 9222 9223 9224hard_links="nottested" 9225if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9226 # do not overwrite the value of need_locks provided by the user 9227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9228$as_echo_n "checking if we can lock with hard links... " >&6; } 9229 hard_links=yes 9230 $RM conftest* 9231 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9232 touch conftest.a 9233 ln conftest.a conftest.b 2>&5 || hard_links=no 9234 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9236$as_echo "$hard_links" >&6; } 9237 if test "$hard_links" = no; then 9238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9239$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9240 need_locks=warn 9241 fi 9242else 9243 need_locks=no 9244fi 9245 9246 9247 9248 9249 9250 9251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9252$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9253 9254 runpath_var= 9255 allow_undefined_flag= 9256 always_export_symbols=no 9257 archive_cmds= 9258 archive_expsym_cmds= 9259 compiler_needs_object=no 9260 enable_shared_with_static_runtimes=no 9261 export_dynamic_flag_spec= 9262 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9263 hardcode_automatic=no 9264 hardcode_direct=no 9265 hardcode_direct_absolute=no 9266 hardcode_libdir_flag_spec= 9267 hardcode_libdir_flag_spec_ld= 9268 hardcode_libdir_separator= 9269 hardcode_minus_L=no 9270 hardcode_shlibpath_var=unsupported 9271 inherit_rpath=no 9272 link_all_deplibs=unknown 9273 module_cmds= 9274 module_expsym_cmds= 9275 old_archive_from_new_cmds= 9276 old_archive_from_expsyms_cmds= 9277 thread_safe_flag_spec= 9278 whole_archive_flag_spec= 9279 # include_expsyms should be a list of space-separated symbols to be *always* 9280 # included in the symbol list 9281 include_expsyms= 9282 # exclude_expsyms can be an extended regexp of symbols to exclude 9283 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9284 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9285 # as well as any symbol that contains `d'. 9286 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9287 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9288 # platforms (ab)use it in PIC code, but their linkers get confused if 9289 # the symbol is explicitly referenced. Since portable code cannot 9290 # rely on this symbol name, it's probably fine to never include it in 9291 # preloaded symbol tables. 9292 # Exclude shared library initialization/finalization symbols. 9293 extract_expsyms_cmds= 9294 9295 case $host_os in 9296 cygwin* | mingw* | pw32* | cegcc*) 9297 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9298 # When not using gcc, we currently assume that we are using 9299 # Microsoft Visual C++. 9300 if test "$GCC" != yes; then 9301 with_gnu_ld=no 9302 fi 9303 ;; 9304 interix*) 9305 # we just hope/assume this is gcc and not c89 (= MSVC++) 9306 with_gnu_ld=yes 9307 ;; 9308 openbsd*) 9309 with_gnu_ld=no 9310 ;; 9311 esac 9312 9313 ld_shlibs=yes 9314 if test "$with_gnu_ld" = yes; then 9315 # If archive_cmds runs LD, not CC, wlarc should be empty 9316 wlarc='${wl}' 9317 9318 # Set some defaults for GNU ld with shared library support. These 9319 # are reset later if shared libraries are not supported. Putting them 9320 # here allows them to be overridden if necessary. 9321 runpath_var=LD_RUN_PATH 9322 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9323 export_dynamic_flag_spec='${wl}--export-dynamic' 9324 # ancient GNU ld didn't support --whole-archive et. al. 9325 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9326 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9327 else 9328 whole_archive_flag_spec= 9329 fi 9330 supports_anon_versioning=no 9331 case `$LD -v 2>&1` in 9332 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9333 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9334 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9335 *\ 2.11.*) ;; # other 2.11 versions 9336 *) supports_anon_versioning=yes ;; 9337 esac 9338 9339 # See if GNU ld supports shared libraries. 9340 case $host_os in 9341 aix[3-9]*) 9342 # On AIX/PPC, the GNU linker is very broken 9343 if test "$host_cpu" != ia64; then 9344 ld_shlibs=no 9345 cat <<_LT_EOF 1>&2 9346 9347*** Warning: the GNU linker, at least up to release 2.9.1, is reported 9348*** to be unable to reliably create shared libraries on AIX. 9349*** Therefore, libtool is disabling shared libraries support. If you 9350*** really care for shared libraries, you may want to modify your PATH 9351*** so that a non-GNU linker is found, and then restart. 9352 9353_LT_EOF 9354 fi 9355 ;; 9356 9357 amigaos*) 9358 case $host_cpu in 9359 powerpc) 9360 # see comment about AmigaOS4 .so support 9361 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9362 archive_expsym_cmds='' 9363 ;; 9364 m68k) 9365 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)' 9366 hardcode_libdir_flag_spec='-L$libdir' 9367 hardcode_minus_L=yes 9368 ;; 9369 esac 9370 ;; 9371 9372 beos*) 9373 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9374 allow_undefined_flag=unsupported 9375 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9376 # support --undefined. This deserves some investigation. FIXME 9377 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9378 else 9379 ld_shlibs=no 9380 fi 9381 ;; 9382 9383 cygwin* | mingw* | pw32* | cegcc*) 9384 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9385 # as there is no search path for DLLs. 9386 hardcode_libdir_flag_spec='-L$libdir' 9387 allow_undefined_flag=unsupported 9388 always_export_symbols=no 9389 enable_shared_with_static_runtimes=yes 9390 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9391 9392 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9393 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9394 # If the export-symbols file already is a .def file (1st line 9395 # is EXPORTS), use it as is; otherwise, prepend... 9396 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9397 cp $export_symbols $output_objdir/$soname.def; 9398 else 9399 echo EXPORTS > $output_objdir/$soname.def; 9400 cat $export_symbols >> $output_objdir/$soname.def; 9401 fi~ 9402 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9403 else 9404 ld_shlibs=no 9405 fi 9406 ;; 9407 9408 interix[3-9]*) 9409 hardcode_direct=no 9410 hardcode_shlibpath_var=no 9411 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9412 export_dynamic_flag_spec='${wl}-E' 9413 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9414 # Instead, shared libraries are loaded at an image base (0x10000000 by 9415 # default) and relocated if they conflict, which is a slow very memory 9416 # consuming and fragmenting process. To avoid this, we pick a random, 9417 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9418 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9419 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9420 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9421 ;; 9422 9423 gnu* | linux* | tpf* | k*bsd*-gnu) 9424 tmp_diet=no 9425 if test "$host_os" = linux-dietlibc; then 9426 case $cc_basename in 9427 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9428 esac 9429 fi 9430 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9431 && test "$tmp_diet" = no 9432 then 9433 tmp_addflag= 9434 tmp_sharedflag='-shared' 9435 case $cc_basename,$host_cpu in 9436 pgcc*) # Portland Group C compiler 9437 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 9438 tmp_addflag=' $pic_flag' 9439 ;; 9440 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 9441 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 9442 tmp_addflag=' $pic_flag -Mnomain' ;; 9443 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9444 tmp_addflag=' -i_dynamic' ;; 9445 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9446 tmp_addflag=' -i_dynamic -nofor_main' ;; 9447 ifc* | ifort*) # Intel Fortran compiler 9448 tmp_addflag=' -nofor_main' ;; 9449 lf95*) # Lahey Fortran 8.1 9450 whole_archive_flag_spec= 9451 tmp_sharedflag='--shared' ;; 9452 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9453 tmp_sharedflag='-qmkshrobj' 9454 tmp_addflag= ;; 9455 esac 9456 case `$CC -V 2>&1 | sed 5q` in 9457 *Sun\ C*) # Sun C 5.9 9458 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 9459 compiler_needs_object=yes 9460 tmp_sharedflag='-G' ;; 9461 *Sun\ F*) # Sun Fortran 8.3 9462 tmp_sharedflag='-G' ;; 9463 esac 9464 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9465 9466 if test "x$supports_anon_versioning" = xyes; then 9467 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9468 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9469 echo "local: *; };" >> $output_objdir/$libname.ver~ 9470 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9471 fi 9472 9473 case $cc_basename in 9474 xlf*) 9475 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9476 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9477 hardcode_libdir_flag_spec= 9478 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9479 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 9480 if test "x$supports_anon_versioning" = xyes; then 9481 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9482 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9483 echo "local: *; };" >> $output_objdir/$libname.ver~ 9484 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9485 fi 9486 ;; 9487 esac 9488 else 9489 ld_shlibs=no 9490 fi 9491 ;; 9492 9493 netbsd*) 9494 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9495 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9496 wlarc= 9497 else 9498 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9499 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9500 fi 9501 ;; 9502 9503 solaris*) 9504 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9505 ld_shlibs=no 9506 cat <<_LT_EOF 1>&2 9507 9508*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9509*** create shared libraries on Solaris systems. Therefore, libtool 9510*** is disabling shared libraries support. We urge you to upgrade GNU 9511*** binutils to release 2.9.1 or newer. Another option is to modify 9512*** your PATH or compiler configuration so that the native linker is 9513*** used, and then restart. 9514 9515_LT_EOF 9516 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9517 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9518 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9519 else 9520 ld_shlibs=no 9521 fi 9522 ;; 9523 9524 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9525 case `$LD -v 2>&1` in 9526 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9527 ld_shlibs=no 9528 cat <<_LT_EOF 1>&2 9529 9530*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9531*** reliably create shared libraries on SCO systems. Therefore, libtool 9532*** is disabling shared libraries support. We urge you to upgrade GNU 9533*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9534*** your PATH or compiler configuration so that the native linker is 9535*** used, and then restart. 9536 9537_LT_EOF 9538 ;; 9539 *) 9540 # For security reasons, it is highly recommended that you always 9541 # use absolute paths for naming shared libraries, and exclude the 9542 # DT_RUNPATH tag from executables and libraries. But doing so 9543 # requires that you compile everything twice, which is a pain. 9544 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9545 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9546 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9547 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9548 else 9549 ld_shlibs=no 9550 fi 9551 ;; 9552 esac 9553 ;; 9554 9555 sunos4*) 9556 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9557 wlarc= 9558 hardcode_direct=yes 9559 hardcode_shlibpath_var=no 9560 ;; 9561 9562 *) 9563 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9564 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9565 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9566 else 9567 ld_shlibs=no 9568 fi 9569 ;; 9570 esac 9571 9572 if test "$ld_shlibs" = no; then 9573 runpath_var= 9574 hardcode_libdir_flag_spec= 9575 export_dynamic_flag_spec= 9576 whole_archive_flag_spec= 9577 fi 9578 else 9579 # PORTME fill in a description of your system's linker (not GNU ld) 9580 case $host_os in 9581 aix3*) 9582 allow_undefined_flag=unsupported 9583 always_export_symbols=yes 9584 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' 9585 # Note: this linker hardcodes the directories in LIBPATH if there 9586 # are no directories specified by -L. 9587 hardcode_minus_L=yes 9588 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9589 # Neither direct hardcoding nor static linking is supported with a 9590 # broken collect2. 9591 hardcode_direct=unsupported 9592 fi 9593 ;; 9594 9595 aix[4-9]*) 9596 if test "$host_cpu" = ia64; then 9597 # On IA64, the linker does run time linking by default, so we don't 9598 # have to do anything special. 9599 aix_use_runtimelinking=no 9600 exp_sym_flag='-Bexport' 9601 no_entry_flag="" 9602 else 9603 # If we're using GNU nm, then we don't want the "-C" option. 9604 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9605 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9606 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9607 else 9608 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9609 fi 9610 aix_use_runtimelinking=no 9611 9612 # Test if we are trying to use run time linking or normal 9613 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9614 # need to do runtime linking. 9615 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9616 for ld_flag in $LDFLAGS; do 9617 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9618 aix_use_runtimelinking=yes 9619 break 9620 fi 9621 done 9622 ;; 9623 esac 9624 9625 exp_sym_flag='-bexport' 9626 no_entry_flag='-bnoentry' 9627 fi 9628 9629 # When large executables or shared objects are built, AIX ld can 9630 # have problems creating the table of contents. If linking a library 9631 # or program results in "error TOC overflow" add -mminimal-toc to 9632 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9633 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9634 9635 archive_cmds='' 9636 hardcode_direct=yes 9637 hardcode_direct_absolute=yes 9638 hardcode_libdir_separator=':' 9639 link_all_deplibs=yes 9640 file_list_spec='${wl}-f,' 9641 9642 if test "$GCC" = yes; then 9643 case $host_os in aix4.[012]|aix4.[012].*) 9644 # We only want to do this on AIX 4.2 and lower, the check 9645 # below for broken collect2 doesn't work under 4.3+ 9646 collect2name=`${CC} -print-prog-name=collect2` 9647 if test -f "$collect2name" && 9648 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9649 then 9650 # We have reworked collect2 9651 : 9652 else 9653 # We have old collect2 9654 hardcode_direct=unsupported 9655 # It fails to find uninstalled libraries when the uninstalled 9656 # path is not listed in the libpath. Setting hardcode_minus_L 9657 # to unsupported forces relinking 9658 hardcode_minus_L=yes 9659 hardcode_libdir_flag_spec='-L$libdir' 9660 hardcode_libdir_separator= 9661 fi 9662 ;; 9663 esac 9664 shared_flag='-shared' 9665 if test "$aix_use_runtimelinking" = yes; then 9666 shared_flag="$shared_flag "'${wl}-G' 9667 fi 9668 else 9669 # not using gcc 9670 if test "$host_cpu" = ia64; then 9671 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9672 # chokes on -Wl,-G. The following line is correct: 9673 shared_flag='-G' 9674 else 9675 if test "$aix_use_runtimelinking" = yes; then 9676 shared_flag='${wl}-G' 9677 else 9678 shared_flag='${wl}-bM:SRE' 9679 fi 9680 fi 9681 fi 9682 9683 export_dynamic_flag_spec='${wl}-bexpall' 9684 # It seems that -bexpall does not export symbols beginning with 9685 # underscore (_), so it is better to generate a list of symbols to export. 9686 always_export_symbols=yes 9687 if test "$aix_use_runtimelinking" = yes; then 9688 # Warning - without using the other runtime loading flags (-brtl), 9689 # -berok will link without error, but may produce a broken library. 9690 allow_undefined_flag='-berok' 9691 # Determine the default libpath from the value encoded in an 9692 # empty executable. 9693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9694/* end confdefs.h. */ 9695 9696int 9697main () 9698{ 9699 9700 ; 9701 return 0; 9702} 9703_ACEOF 9704if ac_fn_c_try_link "$LINENO"; then : 9705 9706lt_aix_libpath_sed=' 9707 /Import File Strings/,/^$/ { 9708 /^0/ { 9709 s/^0 *\(.*\)$/\1/ 9710 p 9711 } 9712 }' 9713aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9714# Check for a 64-bit object if we didn't find anything. 9715if test -z "$aix_libpath"; then 9716 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9717fi 9718fi 9719rm -f core conftest.err conftest.$ac_objext \ 9720 conftest$ac_exeext conftest.$ac_ext 9721if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9722 9723 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9724 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 9725 else 9726 if test "$host_cpu" = ia64; then 9727 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9728 allow_undefined_flag="-z nodefs" 9729 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 9730 else 9731 # Determine the default libpath from the value encoded in an 9732 # empty executable. 9733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9734/* end confdefs.h. */ 9735 9736int 9737main () 9738{ 9739 9740 ; 9741 return 0; 9742} 9743_ACEOF 9744if ac_fn_c_try_link "$LINENO"; then : 9745 9746lt_aix_libpath_sed=' 9747 /Import File Strings/,/^$/ { 9748 /^0/ { 9749 s/^0 *\(.*\)$/\1/ 9750 p 9751 } 9752 }' 9753aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9754# Check for a 64-bit object if we didn't find anything. 9755if test -z "$aix_libpath"; then 9756 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9757fi 9758fi 9759rm -f core conftest.err conftest.$ac_objext \ 9760 conftest$ac_exeext conftest.$ac_ext 9761if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9762 9763 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9764 # Warning - without using the other run time loading flags, 9765 # -berok will link without error, but may produce a broken library. 9766 no_undefined_flag=' ${wl}-bernotok' 9767 allow_undefined_flag=' ${wl}-berok' 9768 # Exported symbols can be pulled into shared objects from archives 9769 whole_archive_flag_spec='$convenience' 9770 archive_cmds_need_lc=yes 9771 # This is similar to how AIX traditionally builds its shared libraries. 9772 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 9773 fi 9774 fi 9775 ;; 9776 9777 amigaos*) 9778 case $host_cpu in 9779 powerpc) 9780 # see comment about AmigaOS4 .so support 9781 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9782 archive_expsym_cmds='' 9783 ;; 9784 m68k) 9785 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)' 9786 hardcode_libdir_flag_spec='-L$libdir' 9787 hardcode_minus_L=yes 9788 ;; 9789 esac 9790 ;; 9791 9792 bsdi[45]*) 9793 export_dynamic_flag_spec=-rdynamic 9794 ;; 9795 9796 cygwin* | mingw* | pw32* | cegcc*) 9797 # When not using gcc, we currently assume that we are using 9798 # Microsoft Visual C++. 9799 # hardcode_libdir_flag_spec is actually meaningless, as there is 9800 # no search path for DLLs. 9801 hardcode_libdir_flag_spec=' ' 9802 allow_undefined_flag=unsupported 9803 # Tell ltmain to make .lib files, not .a files. 9804 libext=lib 9805 # Tell ltmain to make .dll files, not .so files. 9806 shrext_cmds=".dll" 9807 # FIXME: Setting linknames here is a bad hack. 9808 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 9809 # The linker will automatically build a .lib file if we build a DLL. 9810 old_archive_from_new_cmds='true' 9811 # FIXME: Should let the user specify the lib program. 9812 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9813 fix_srcfile_path='`cygpath -w "$srcfile"`' 9814 enable_shared_with_static_runtimes=yes 9815 ;; 9816 9817 darwin* | rhapsody*) 9818 9819 9820 archive_cmds_need_lc=no 9821 hardcode_direct=no 9822 hardcode_automatic=yes 9823 hardcode_shlibpath_var=unsupported 9824 whole_archive_flag_spec='' 9825 link_all_deplibs=yes 9826 allow_undefined_flag="$_lt_dar_allow_undefined" 9827 case $cc_basename in 9828 ifort*) _lt_dar_can_shared=yes ;; 9829 *) _lt_dar_can_shared=$GCC ;; 9830 esac 9831 if test "$_lt_dar_can_shared" = "yes"; then 9832 output_verbose_link_cmd=echo 9833 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9834 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9835 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 9836 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 9837 9838 else 9839 ld_shlibs=no 9840 fi 9841 9842 ;; 9843 9844 dgux*) 9845 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9846 hardcode_libdir_flag_spec='-L$libdir' 9847 hardcode_shlibpath_var=no 9848 ;; 9849 9850 freebsd1*) 9851 ld_shlibs=no 9852 ;; 9853 9854 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9855 # support. Future versions do this automatically, but an explicit c++rt0.o 9856 # does not break anything, and helps significantly (at the cost of a little 9857 # extra space). 9858 freebsd2.2*) 9859 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9860 hardcode_libdir_flag_spec='-R$libdir' 9861 hardcode_direct=yes 9862 hardcode_shlibpath_var=no 9863 ;; 9864 9865 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9866 freebsd2*) 9867 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9868 hardcode_direct=yes 9869 hardcode_minus_L=yes 9870 hardcode_shlibpath_var=no 9871 ;; 9872 9873 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9874 freebsd* | dragonfly*) 9875 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9876 hardcode_libdir_flag_spec='-R$libdir' 9877 hardcode_direct=yes 9878 hardcode_shlibpath_var=no 9879 ;; 9880 9881 hpux9*) 9882 if test "$GCC" = yes; then 9883 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9884 else 9885 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' 9886 fi 9887 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9888 hardcode_libdir_separator=: 9889 hardcode_direct=yes 9890 9891 # hardcode_minus_L: Not really in the search PATH, 9892 # but as the default location of the library. 9893 hardcode_minus_L=yes 9894 export_dynamic_flag_spec='${wl}-E' 9895 ;; 9896 9897 hpux10*) 9898 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9899 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9900 else 9901 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9902 fi 9903 if test "$with_gnu_ld" = no; then 9904 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9905 hardcode_libdir_flag_spec_ld='+b $libdir' 9906 hardcode_libdir_separator=: 9907 hardcode_direct=yes 9908 hardcode_direct_absolute=yes 9909 export_dynamic_flag_spec='${wl}-E' 9910 # hardcode_minus_L: Not really in the search PATH, 9911 # but as the default location of the library. 9912 hardcode_minus_L=yes 9913 fi 9914 ;; 9915 9916 hpux11*) 9917 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9918 case $host_cpu in 9919 hppa*64*) 9920 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9921 ;; 9922 ia64*) 9923 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9924 ;; 9925 *) 9926 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9927 ;; 9928 esac 9929 else 9930 case $host_cpu in 9931 hppa*64*) 9932 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9933 ;; 9934 ia64*) 9935 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9936 ;; 9937 *) 9938 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9939 ;; 9940 esac 9941 fi 9942 if test "$with_gnu_ld" = no; then 9943 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9944 hardcode_libdir_separator=: 9945 9946 case $host_cpu in 9947 hppa*64*|ia64*) 9948 hardcode_direct=no 9949 hardcode_shlibpath_var=no 9950 ;; 9951 *) 9952 hardcode_direct=yes 9953 hardcode_direct_absolute=yes 9954 export_dynamic_flag_spec='${wl}-E' 9955 9956 # hardcode_minus_L: Not really in the search PATH, 9957 # but as the default location of the library. 9958 hardcode_minus_L=yes 9959 ;; 9960 esac 9961 fi 9962 ;; 9963 9964 irix5* | irix6* | nonstopux*) 9965 if test "$GCC" = yes; then 9966 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9967 # Try to use the -exported_symbol ld option, if it does not 9968 # work, assume that -exports_file does not work either and 9969 # implicitly export all symbols. 9970 save_LDFLAGS="$LDFLAGS" 9971 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9973/* end confdefs.h. */ 9974int foo(void) {} 9975_ACEOF 9976if ac_fn_c_try_link "$LINENO"; then : 9977 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 9978 9979fi 9980rm -f core conftest.err conftest.$ac_objext \ 9981 conftest$ac_exeext conftest.$ac_ext 9982 LDFLAGS="$save_LDFLAGS" 9983 else 9984 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 9985 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 9986 fi 9987 archive_cmds_need_lc='no' 9988 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9989 hardcode_libdir_separator=: 9990 inherit_rpath=yes 9991 link_all_deplibs=yes 9992 ;; 9993 9994 netbsd*) 9995 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9996 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9997 else 9998 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9999 fi 10000 hardcode_libdir_flag_spec='-R$libdir' 10001 hardcode_direct=yes 10002 hardcode_shlibpath_var=no 10003 ;; 10004 10005 newsos6) 10006 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10007 hardcode_direct=yes 10008 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10009 hardcode_libdir_separator=: 10010 hardcode_shlibpath_var=no 10011 ;; 10012 10013 *nto* | *qnx*) 10014 ;; 10015 10016 openbsd*) 10017 if test -f /usr/libexec/ld.so; then 10018 hardcode_direct=yes 10019 hardcode_shlibpath_var=no 10020 hardcode_direct_absolute=yes 10021 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10022 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10023 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 10024 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10025 export_dynamic_flag_spec='${wl}-E' 10026 else 10027 case $host_os in 10028 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10029 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10030 hardcode_libdir_flag_spec='-R$libdir' 10031 ;; 10032 *) 10033 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10034 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10035 ;; 10036 esac 10037 fi 10038 else 10039 ld_shlibs=no 10040 fi 10041 ;; 10042 10043 os2*) 10044 hardcode_libdir_flag_spec='-L$libdir' 10045 hardcode_minus_L=yes 10046 allow_undefined_flag=unsupported 10047 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' 10048 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10049 ;; 10050 10051 osf3*) 10052 if test "$GCC" = yes; then 10053 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10054 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10055 else 10056 allow_undefined_flag=' -expect_unresolved \*' 10057 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 10058 fi 10059 archive_cmds_need_lc='no' 10060 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10061 hardcode_libdir_separator=: 10062 ;; 10063 10064 osf4* | osf5*) # as osf3* with the addition of -msym flag 10065 if test "$GCC" = yes; then 10066 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10067 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10068 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10069 else 10070 allow_undefined_flag=' -expect_unresolved \*' 10071 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 10072 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 10073 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 10074 10075 # Both c and cxx compiler support -rpath directly 10076 hardcode_libdir_flag_spec='-rpath $libdir' 10077 fi 10078 archive_cmds_need_lc='no' 10079 hardcode_libdir_separator=: 10080 ;; 10081 10082 solaris*) 10083 no_undefined_flag=' -z defs' 10084 if test "$GCC" = yes; then 10085 wlarc='${wl}' 10086 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10087 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10088 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10089 else 10090 case `$CC -V 2>&1` in 10091 *"Compilers 5.0"*) 10092 wlarc='' 10093 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10094 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10095 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10096 ;; 10097 *) 10098 wlarc='${wl}' 10099 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10100 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10101 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10102 ;; 10103 esac 10104 fi 10105 hardcode_libdir_flag_spec='-R$libdir' 10106 hardcode_shlibpath_var=no 10107 case $host_os in 10108 solaris2.[0-5] | solaris2.[0-5].*) ;; 10109 *) 10110 # The compiler driver will combine and reorder linker options, 10111 # but understands `-z linker_flag'. GCC discards it without `$wl', 10112 # but is careful enough not to reorder. 10113 # Supported since Solaris 2.6 (maybe 2.5.1?) 10114 if test "$GCC" = yes; then 10115 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10116 else 10117 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10118 fi 10119 ;; 10120 esac 10121 link_all_deplibs=yes 10122 ;; 10123 10124 sunos4*) 10125 if test "x$host_vendor" = xsequent; then 10126 # Use $CC to link under sequent, because it throws in some extra .o 10127 # files that make .init and .fini sections work. 10128 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10129 else 10130 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10131 fi 10132 hardcode_libdir_flag_spec='-L$libdir' 10133 hardcode_direct=yes 10134 hardcode_minus_L=yes 10135 hardcode_shlibpath_var=no 10136 ;; 10137 10138 sysv4) 10139 case $host_vendor in 10140 sni) 10141 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10142 hardcode_direct=yes # is this really true??? 10143 ;; 10144 siemens) 10145 ## LD is ld it makes a PLAMLIB 10146 ## CC just makes a GrossModule. 10147 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10148 reload_cmds='$CC -r -o $output$reload_objs' 10149 hardcode_direct=no 10150 ;; 10151 motorola) 10152 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10153 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10154 ;; 10155 esac 10156 runpath_var='LD_RUN_PATH' 10157 hardcode_shlibpath_var=no 10158 ;; 10159 10160 sysv4.3*) 10161 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10162 hardcode_shlibpath_var=no 10163 export_dynamic_flag_spec='-Bexport' 10164 ;; 10165 10166 sysv4*MP*) 10167 if test -d /usr/nec; then 10168 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10169 hardcode_shlibpath_var=no 10170 runpath_var=LD_RUN_PATH 10171 hardcode_runpath_var=yes 10172 ld_shlibs=yes 10173 fi 10174 ;; 10175 10176 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10177 no_undefined_flag='${wl}-z,text' 10178 archive_cmds_need_lc=no 10179 hardcode_shlibpath_var=no 10180 runpath_var='LD_RUN_PATH' 10181 10182 if test "$GCC" = yes; then 10183 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10184 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10185 else 10186 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10187 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10188 fi 10189 ;; 10190 10191 sysv5* | sco3.2v5* | sco5v6*) 10192 # Note: We can NOT use -z defs as we might desire, because we do not 10193 # link with -lc, and that would cause any symbols used from libc to 10194 # always be unresolved, which means just about no library would 10195 # ever link correctly. If we're not using GNU ld we use -z text 10196 # though, which does catch some bad symbols but isn't as heavy-handed 10197 # as -z defs. 10198 no_undefined_flag='${wl}-z,text' 10199 allow_undefined_flag='${wl}-z,nodefs' 10200 archive_cmds_need_lc=no 10201 hardcode_shlibpath_var=no 10202 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10203 hardcode_libdir_separator=':' 10204 link_all_deplibs=yes 10205 export_dynamic_flag_spec='${wl}-Bexport' 10206 runpath_var='LD_RUN_PATH' 10207 10208 if test "$GCC" = yes; then 10209 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10210 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10211 else 10212 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10213 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10214 fi 10215 ;; 10216 10217 uts4*) 10218 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10219 hardcode_libdir_flag_spec='-L$libdir' 10220 hardcode_shlibpath_var=no 10221 ;; 10222 10223 *) 10224 ld_shlibs=no 10225 ;; 10226 esac 10227 10228 if test x$host_vendor = xsni; then 10229 case $host in 10230 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10231 export_dynamic_flag_spec='${wl}-Blargedynsym' 10232 ;; 10233 esac 10234 fi 10235 fi 10236 10237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10238$as_echo "$ld_shlibs" >&6; } 10239test "$ld_shlibs" = no && can_build_shared=no 10240 10241with_gnu_ld=$with_gnu_ld 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257# 10258# Do we need to explicitly link libc? 10259# 10260case "x$archive_cmds_need_lc" in 10261x|xyes) 10262 # Assume -lc should be added 10263 archive_cmds_need_lc=yes 10264 10265 if test "$enable_shared" = yes && test "$GCC" = yes; then 10266 case $archive_cmds in 10267 *'~'*) 10268 # FIXME: we may have to deal with multi-command sequences. 10269 ;; 10270 '$CC '*) 10271 # Test whether the compiler implicitly links with -lc since on some 10272 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10273 # to ld, don't add -lc before -lgcc. 10274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10275$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10276 $RM conftest* 10277 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10278 10279 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10280 (eval $ac_compile) 2>&5 10281 ac_status=$? 10282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10283 test $ac_status = 0; } 2>conftest.err; then 10284 soname=conftest 10285 lib=conftest 10286 libobjs=conftest.$ac_objext 10287 deplibs= 10288 wl=$lt_prog_compiler_wl 10289 pic_flag=$lt_prog_compiler_pic 10290 compiler_flags=-v 10291 linker_flags=-v 10292 verstring= 10293 output_objdir=. 10294 libname=conftest 10295 lt_save_allow_undefined_flag=$allow_undefined_flag 10296 allow_undefined_flag= 10297 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10298 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10299 ac_status=$? 10300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10301 test $ac_status = 0; } 10302 then 10303 archive_cmds_need_lc=no 10304 else 10305 archive_cmds_need_lc=yes 10306 fi 10307 allow_undefined_flag=$lt_save_allow_undefined_flag 10308 else 10309 cat conftest.err 1>&5 10310 fi 10311 $RM conftest* 10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 10313$as_echo "$archive_cmds_need_lc" >&6; } 10314 ;; 10315 esac 10316 fi 10317 ;; 10318esac 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10477$as_echo_n "checking dynamic linker characteristics... " >&6; } 10478 10479if test "$GCC" = yes; then 10480 case $host_os in 10481 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10482 *) lt_awk_arg="/^libraries:/" ;; 10483 esac 10484 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10485 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 10486 # if the path contains ";" then we assume it to be the separator 10487 # otherwise default to the standard path separator (i.e. ":") - it is 10488 # assumed that no part of a normal pathname contains ";" but that should 10489 # okay in the real world where ";" in dirpaths is itself problematic. 10490 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 10491 else 10492 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10493 fi 10494 # Ok, now we have the path, separated by spaces, we can step through it 10495 # and add multilib dir if necessary. 10496 lt_tmp_lt_search_path_spec= 10497 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10498 for lt_sys_path in $lt_search_path_spec; do 10499 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10500 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10501 else 10502 test -d "$lt_sys_path" && \ 10503 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10504 fi 10505 done 10506 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 10507BEGIN {RS=" "; FS="/|\n";} { 10508 lt_foo=""; 10509 lt_count=0; 10510 for (lt_i = NF; lt_i > 0; lt_i--) { 10511 if ($lt_i != "" && $lt_i != ".") { 10512 if ($lt_i == "..") { 10513 lt_count++; 10514 } else { 10515 if (lt_count == 0) { 10516 lt_foo="/" $lt_i lt_foo; 10517 } else { 10518 lt_count--; 10519 } 10520 } 10521 } 10522 } 10523 if (lt_foo != "") { lt_freq[lt_foo]++; } 10524 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10525}'` 10526 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 10527else 10528 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10529fi 10530library_names_spec= 10531libname_spec='lib$name' 10532soname_spec= 10533shrext_cmds=".so" 10534postinstall_cmds= 10535postuninstall_cmds= 10536finish_cmds= 10537finish_eval= 10538shlibpath_var= 10539shlibpath_overrides_runpath=unknown 10540version_type=none 10541dynamic_linker="$host_os ld.so" 10542sys_lib_dlsearch_path_spec="/lib /usr/lib" 10543need_lib_prefix=unknown 10544hardcode_into_libs=no 10545 10546# when you set need_version to no, make sure it does not cause -set_version 10547# flags to be left without arguments 10548need_version=unknown 10549 10550case $host_os in 10551aix3*) 10552 version_type=linux 10553 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10554 shlibpath_var=LIBPATH 10555 10556 # AIX 3 has no versioning support, so we append a major version to the name. 10557 soname_spec='${libname}${release}${shared_ext}$major' 10558 ;; 10559 10560aix[4-9]*) 10561 version_type=linux 10562 need_lib_prefix=no 10563 need_version=no 10564 hardcode_into_libs=yes 10565 if test "$host_cpu" = ia64; then 10566 # AIX 5 supports IA64 10567 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10568 shlibpath_var=LD_LIBRARY_PATH 10569 else 10570 # With GCC up to 2.95.x, collect2 would create an import file 10571 # for dependence libraries. The import file would start with 10572 # the line `#! .'. This would cause the generated library to 10573 # depend on `.', always an invalid library. This was fixed in 10574 # development snapshots of GCC prior to 3.0. 10575 case $host_os in 10576 aix4 | aix4.[01] | aix4.[01].*) 10577 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10578 echo ' yes ' 10579 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10580 : 10581 else 10582 can_build_shared=no 10583 fi 10584 ;; 10585 esac 10586 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10587 # soname into executable. Probably we can add versioning support to 10588 # collect2, so additional links can be useful in future. 10589 if test "$aix_use_runtimelinking" = yes; then 10590 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10591 # instead of lib<name>.a to let people know that these are not 10592 # typical AIX shared libraries. 10593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10594 else 10595 # We preserve .a as extension for shared libraries through AIX4.2 10596 # and later when we are not doing run time linking. 10597 library_names_spec='${libname}${release}.a $libname.a' 10598 soname_spec='${libname}${release}${shared_ext}$major' 10599 fi 10600 shlibpath_var=LIBPATH 10601 fi 10602 ;; 10603 10604amigaos*) 10605 case $host_cpu in 10606 powerpc) 10607 # Since July 2007 AmigaOS4 officially supports .so libraries. 10608 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10610 ;; 10611 m68k) 10612 library_names_spec='$libname.ixlibrary $libname.a' 10613 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10614 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' 10615 ;; 10616 esac 10617 ;; 10618 10619beos*) 10620 library_names_spec='${libname}${shared_ext}' 10621 dynamic_linker="$host_os ld.so" 10622 shlibpath_var=LIBRARY_PATH 10623 ;; 10624 10625bsdi[45]*) 10626 version_type=linux 10627 need_version=no 10628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10629 soname_spec='${libname}${release}${shared_ext}$major' 10630 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10631 shlibpath_var=LD_LIBRARY_PATH 10632 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10633 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10634 # the default ld.so.conf also contains /usr/contrib/lib and 10635 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10636 # libtool to hard-code these into programs 10637 ;; 10638 10639cygwin* | mingw* | pw32* | cegcc*) 10640 version_type=windows 10641 shrext_cmds=".dll" 10642 need_version=no 10643 need_lib_prefix=no 10644 10645 case $GCC,$host_os in 10646 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 10647 library_names_spec='$libname.dll.a' 10648 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10649 postinstall_cmds='base_file=`basename \${file}`~ 10650 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10651 dldir=$destdir/`dirname \$dlpath`~ 10652 test -d \$dldir || mkdir -p \$dldir~ 10653 $install_prog $dir/$dlname \$dldir/$dlname~ 10654 chmod a+x \$dldir/$dlname~ 10655 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10656 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10657 fi' 10658 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10659 dlpath=$dir/\$dldll~ 10660 $RM \$dlpath' 10661 shlibpath_overrides_runpath=yes 10662 10663 case $host_os in 10664 cygwin*) 10665 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10666 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10667 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 10668 ;; 10669 mingw* | cegcc*) 10670 # MinGW DLLs use traditional 'lib' prefix 10671 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10672 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10673 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10674 # It is most probably a Windows format PATH printed by 10675 # mingw gcc, but we are running on Cygwin. Gcc prints its search 10676 # path with ; separators, and with drive letters. We can handle the 10677 # drive letters (cygwin fileutils understands them), so leave them, 10678 # especially as we might pass files found there to a mingw objdump, 10679 # which wouldn't understand a cygwinified path. Ahh. 10680 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10681 else 10682 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10683 fi 10684 ;; 10685 pw32*) 10686 # pw32 DLLs use 'pw' prefix rather than 'lib' 10687 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10688 ;; 10689 esac 10690 ;; 10691 10692 *) 10693 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10694 ;; 10695 esac 10696 dynamic_linker='Win32 ld.exe' 10697 # FIXME: first we should search . and the directory the executable is in 10698 shlibpath_var=PATH 10699 ;; 10700 10701darwin* | rhapsody*) 10702 dynamic_linker="$host_os dyld" 10703 version_type=darwin 10704 need_lib_prefix=no 10705 need_version=no 10706 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10707 soname_spec='${libname}${release}${major}$shared_ext' 10708 shlibpath_overrides_runpath=yes 10709 shlibpath_var=DYLD_LIBRARY_PATH 10710 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10711 10712 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10713 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10714 ;; 10715 10716dgux*) 10717 version_type=linux 10718 need_lib_prefix=no 10719 need_version=no 10720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10721 soname_spec='${libname}${release}${shared_ext}$major' 10722 shlibpath_var=LD_LIBRARY_PATH 10723 ;; 10724 10725freebsd1*) 10726 dynamic_linker=no 10727 ;; 10728 10729freebsd* | dragonfly*) 10730 # DragonFly does not have aout. When/if they implement a new 10731 # versioning mechanism, adjust this. 10732 if test -x /usr/bin/objformat; then 10733 objformat=`/usr/bin/objformat` 10734 else 10735 case $host_os in 10736 freebsd[123]*) objformat=aout ;; 10737 *) objformat=elf ;; 10738 esac 10739 fi 10740 version_type=freebsd-$objformat 10741 case $version_type in 10742 freebsd-elf*) 10743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10744 need_version=no 10745 need_lib_prefix=no 10746 ;; 10747 freebsd-*) 10748 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10749 need_version=yes 10750 ;; 10751 esac 10752 shlibpath_var=LD_LIBRARY_PATH 10753 case $host_os in 10754 freebsd2*) 10755 shlibpath_overrides_runpath=yes 10756 ;; 10757 freebsd3.[01]* | freebsdelf3.[01]*) 10758 shlibpath_overrides_runpath=yes 10759 hardcode_into_libs=yes 10760 ;; 10761 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10762 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10763 shlibpath_overrides_runpath=no 10764 hardcode_into_libs=yes 10765 ;; 10766 *) # from 4.6 on, and DragonFly 10767 shlibpath_overrides_runpath=yes 10768 hardcode_into_libs=yes 10769 ;; 10770 esac 10771 ;; 10772 10773gnu*) 10774 version_type=linux 10775 need_lib_prefix=no 10776 need_version=no 10777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10778 soname_spec='${libname}${release}${shared_ext}$major' 10779 shlibpath_var=LD_LIBRARY_PATH 10780 hardcode_into_libs=yes 10781 ;; 10782 10783hpux9* | hpux10* | hpux11*) 10784 # Give a soname corresponding to the major version so that dld.sl refuses to 10785 # link against other versions. 10786 version_type=sunos 10787 need_lib_prefix=no 10788 need_version=no 10789 case $host_cpu in 10790 ia64*) 10791 shrext_cmds='.so' 10792 hardcode_into_libs=yes 10793 dynamic_linker="$host_os dld.so" 10794 shlibpath_var=LD_LIBRARY_PATH 10795 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10797 soname_spec='${libname}${release}${shared_ext}$major' 10798 if test "X$HPUX_IA64_MODE" = X32; then 10799 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10800 else 10801 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10802 fi 10803 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10804 ;; 10805 hppa*64*) 10806 shrext_cmds='.sl' 10807 hardcode_into_libs=yes 10808 dynamic_linker="$host_os dld.sl" 10809 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10810 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10812 soname_spec='${libname}${release}${shared_ext}$major' 10813 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10814 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10815 ;; 10816 *) 10817 shrext_cmds='.sl' 10818 dynamic_linker="$host_os dld.sl" 10819 shlibpath_var=SHLIB_PATH 10820 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10822 soname_spec='${libname}${release}${shared_ext}$major' 10823 ;; 10824 esac 10825 # HP-UX runs *really* slowly unless shared libraries are mode 555. 10826 postinstall_cmds='chmod 555 $lib' 10827 ;; 10828 10829interix[3-9]*) 10830 version_type=linux 10831 need_lib_prefix=no 10832 need_version=no 10833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10834 soname_spec='${libname}${release}${shared_ext}$major' 10835 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10836 shlibpath_var=LD_LIBRARY_PATH 10837 shlibpath_overrides_runpath=no 10838 hardcode_into_libs=yes 10839 ;; 10840 10841irix5* | irix6* | nonstopux*) 10842 case $host_os in 10843 nonstopux*) version_type=nonstopux ;; 10844 *) 10845 if test "$lt_cv_prog_gnu_ld" = yes; then 10846 version_type=linux 10847 else 10848 version_type=irix 10849 fi ;; 10850 esac 10851 need_lib_prefix=no 10852 need_version=no 10853 soname_spec='${libname}${release}${shared_ext}$major' 10854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10855 case $host_os in 10856 irix5* | nonstopux*) 10857 libsuff= shlibsuff= 10858 ;; 10859 *) 10860 case $LD in # libtool.m4 will add one of these switches to LD 10861 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10862 libsuff= shlibsuff= libmagic=32-bit;; 10863 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10864 libsuff=32 shlibsuff=N32 libmagic=N32;; 10865 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10866 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10867 *) libsuff= shlibsuff= libmagic=never-match;; 10868 esac 10869 ;; 10870 esac 10871 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10872 shlibpath_overrides_runpath=no 10873 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10874 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10875 hardcode_into_libs=yes 10876 ;; 10877 10878# No shared lib support for Linux oldld, aout, or coff. 10879linux*oldld* | linux*aout* | linux*coff*) 10880 dynamic_linker=no 10881 ;; 10882 10883# This must be Linux ELF. 10884linux* | k*bsd*-gnu) 10885 version_type=linux 10886 need_lib_prefix=no 10887 need_version=no 10888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10889 soname_spec='${libname}${release}${shared_ext}$major' 10890 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10891 shlibpath_var=LD_LIBRARY_PATH 10892 shlibpath_overrides_runpath=no 10893 # Some binutils ld are patched to set DT_RUNPATH 10894 save_LDFLAGS=$LDFLAGS 10895 save_libdir=$libdir 10896 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10897 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10899/* end confdefs.h. */ 10900 10901int 10902main () 10903{ 10904 10905 ; 10906 return 0; 10907} 10908_ACEOF 10909if ac_fn_c_try_link "$LINENO"; then : 10910 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10911 shlibpath_overrides_runpath=yes 10912fi 10913fi 10914rm -f core conftest.err conftest.$ac_objext \ 10915 conftest$ac_exeext conftest.$ac_ext 10916 LDFLAGS=$save_LDFLAGS 10917 libdir=$save_libdir 10918 10919 # This implies no fast_install, which is unacceptable. 10920 # Some rework will be needed to allow for fast_install 10921 # before this can be enabled. 10922 hardcode_into_libs=yes 10923 10924 # Append ld.so.conf contents to the search path 10925 if test -f /etc/ld.so.conf; then 10926 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 10927 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10928 fi 10929 10930 # We used to test for /lib/ld.so.1 and disable shared libraries on 10931 # powerpc, because MkLinux only supported shared libraries with the 10932 # GNU dynamic linker. Since this was broken with cross compilers, 10933 # most powerpc-linux boxes support dynamic linking these days and 10934 # people can always --disable-shared, the test was removed, and we 10935 # assume the GNU/Linux dynamic linker is in use. 10936 dynamic_linker='GNU/Linux ld.so' 10937 ;; 10938 10939netbsd*) 10940 version_type=sunos 10941 need_lib_prefix=no 10942 need_version=no 10943 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10945 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10946 dynamic_linker='NetBSD (a.out) ld.so' 10947 else 10948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10949 soname_spec='${libname}${release}${shared_ext}$major' 10950 dynamic_linker='NetBSD ld.elf_so' 10951 fi 10952 shlibpath_var=LD_LIBRARY_PATH 10953 shlibpath_overrides_runpath=yes 10954 hardcode_into_libs=yes 10955 ;; 10956 10957newsos6) 10958 version_type=linux 10959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10960 shlibpath_var=LD_LIBRARY_PATH 10961 shlibpath_overrides_runpath=yes 10962 ;; 10963 10964*nto* | *qnx*) 10965 version_type=qnx 10966 need_lib_prefix=no 10967 need_version=no 10968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10969 soname_spec='${libname}${release}${shared_ext}$major' 10970 shlibpath_var=LD_LIBRARY_PATH 10971 shlibpath_overrides_runpath=no 10972 hardcode_into_libs=yes 10973 dynamic_linker='ldqnx.so' 10974 ;; 10975 10976openbsd*) 10977 version_type=sunos 10978 sys_lib_dlsearch_path_spec="/usr/lib" 10979 need_lib_prefix=no 10980 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10981 case $host_os in 10982 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10983 *) need_version=no ;; 10984 esac 10985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10986 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10987 shlibpath_var=LD_LIBRARY_PATH 10988 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10989 case $host_os in 10990 openbsd2.[89] | openbsd2.[89].*) 10991 shlibpath_overrides_runpath=no 10992 ;; 10993 *) 10994 shlibpath_overrides_runpath=yes 10995 ;; 10996 esac 10997 else 10998 shlibpath_overrides_runpath=yes 10999 fi 11000 ;; 11001 11002os2*) 11003 libname_spec='$name' 11004 shrext_cmds=".dll" 11005 need_lib_prefix=no 11006 library_names_spec='$libname${shared_ext} $libname.a' 11007 dynamic_linker='OS/2 ld.exe' 11008 shlibpath_var=LIBPATH 11009 ;; 11010 11011osf3* | osf4* | osf5*) 11012 version_type=osf 11013 need_lib_prefix=no 11014 need_version=no 11015 soname_spec='${libname}${release}${shared_ext}$major' 11016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11017 shlibpath_var=LD_LIBRARY_PATH 11018 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11019 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11020 ;; 11021 11022rdos*) 11023 dynamic_linker=no 11024 ;; 11025 11026solaris*) 11027 version_type=linux 11028 need_lib_prefix=no 11029 need_version=no 11030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11031 soname_spec='${libname}${release}${shared_ext}$major' 11032 shlibpath_var=LD_LIBRARY_PATH 11033 shlibpath_overrides_runpath=yes 11034 hardcode_into_libs=yes 11035 # ldd complains unless libraries are executable 11036 postinstall_cmds='chmod +x $lib' 11037 ;; 11038 11039sunos4*) 11040 version_type=sunos 11041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11042 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11043 shlibpath_var=LD_LIBRARY_PATH 11044 shlibpath_overrides_runpath=yes 11045 if test "$with_gnu_ld" = yes; then 11046 need_lib_prefix=no 11047 fi 11048 need_version=yes 11049 ;; 11050 11051sysv4 | sysv4.3*) 11052 version_type=linux 11053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11054 soname_spec='${libname}${release}${shared_ext}$major' 11055 shlibpath_var=LD_LIBRARY_PATH 11056 case $host_vendor in 11057 sni) 11058 shlibpath_overrides_runpath=no 11059 need_lib_prefix=no 11060 runpath_var=LD_RUN_PATH 11061 ;; 11062 siemens) 11063 need_lib_prefix=no 11064 ;; 11065 motorola) 11066 need_lib_prefix=no 11067 need_version=no 11068 shlibpath_overrides_runpath=no 11069 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11070 ;; 11071 esac 11072 ;; 11073 11074sysv4*MP*) 11075 if test -d /usr/nec ;then 11076 version_type=linux 11077 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11078 soname_spec='$libname${shared_ext}.$major' 11079 shlibpath_var=LD_LIBRARY_PATH 11080 fi 11081 ;; 11082 11083sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11084 version_type=freebsd-elf 11085 need_lib_prefix=no 11086 need_version=no 11087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11088 soname_spec='${libname}${release}${shared_ext}$major' 11089 shlibpath_var=LD_LIBRARY_PATH 11090 shlibpath_overrides_runpath=yes 11091 hardcode_into_libs=yes 11092 if test "$with_gnu_ld" = yes; then 11093 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11094 else 11095 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11096 case $host_os in 11097 sco3.2v5*) 11098 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11099 ;; 11100 esac 11101 fi 11102 sys_lib_dlsearch_path_spec='/usr/lib' 11103 ;; 11104 11105tpf*) 11106 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11107 version_type=linux 11108 need_lib_prefix=no 11109 need_version=no 11110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11111 shlibpath_var=LD_LIBRARY_PATH 11112 shlibpath_overrides_runpath=no 11113 hardcode_into_libs=yes 11114 ;; 11115 11116uts4*) 11117 version_type=linux 11118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11119 soname_spec='${libname}${release}${shared_ext}$major' 11120 shlibpath_var=LD_LIBRARY_PATH 11121 ;; 11122 11123*) 11124 dynamic_linker=no 11125 ;; 11126esac 11127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11128$as_echo "$dynamic_linker" >&6; } 11129test "$dynamic_linker" = no && can_build_shared=no 11130 11131variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11132if test "$GCC" = yes; then 11133 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11134fi 11135 11136if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11137 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11138fi 11139if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11140 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11141fi 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11230$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11231hardcode_action= 11232if test -n "$hardcode_libdir_flag_spec" || 11233 test -n "$runpath_var" || 11234 test "X$hardcode_automatic" = "Xyes" ; then 11235 11236 # We can hardcode non-existent directories. 11237 if test "$hardcode_direct" != no && 11238 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11239 # have to relink, otherwise we might link with an installed library 11240 # when we should be linking with a yet-to-be-installed one 11241 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11242 test "$hardcode_minus_L" != no; then 11243 # Linking always hardcodes the temporary library directory. 11244 hardcode_action=relink 11245 else 11246 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11247 hardcode_action=immediate 11248 fi 11249else 11250 # We cannot hardcode anything, or else we can only hardcode existing 11251 # directories. 11252 hardcode_action=unsupported 11253fi 11254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11255$as_echo "$hardcode_action" >&6; } 11256 11257if test "$hardcode_action" = relink || 11258 test "$inherit_rpath" = yes; then 11259 # Fast installation is not supported 11260 enable_fast_install=no 11261elif test "$shlibpath_overrides_runpath" = yes || 11262 test "$enable_shared" = no; then 11263 # Fast installation is not necessary 11264 enable_fast_install=needless 11265fi 11266 11267 11268 11269 11270 11271 11272 if test "x$enable_dlopen" != xyes; then 11273 enable_dlopen=unknown 11274 enable_dlopen_self=unknown 11275 enable_dlopen_self_static=unknown 11276else 11277 lt_cv_dlopen=no 11278 lt_cv_dlopen_libs= 11279 11280 case $host_os in 11281 beos*) 11282 lt_cv_dlopen="load_add_on" 11283 lt_cv_dlopen_libs= 11284 lt_cv_dlopen_self=yes 11285 ;; 11286 11287 mingw* | pw32* | cegcc*) 11288 lt_cv_dlopen="LoadLibrary" 11289 lt_cv_dlopen_libs= 11290 ;; 11291 11292 cygwin*) 11293 lt_cv_dlopen="dlopen" 11294 lt_cv_dlopen_libs= 11295 ;; 11296 11297 darwin*) 11298 # if libdl is installed we need to link against it 11299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11300$as_echo_n "checking for dlopen in -ldl... " >&6; } 11301if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 11302 $as_echo_n "(cached) " >&6 11303else 11304 ac_check_lib_save_LIBS=$LIBS 11305LIBS="-ldl $LIBS" 11306cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11307/* end confdefs.h. */ 11308 11309/* Override any GCC internal prototype to avoid an error. 11310 Use char because int might match the return type of a GCC 11311 builtin and then its argument prototype would still apply. */ 11312#ifdef __cplusplus 11313extern "C" 11314#endif 11315char dlopen (); 11316int 11317main () 11318{ 11319return dlopen (); 11320 ; 11321 return 0; 11322} 11323_ACEOF 11324if ac_fn_c_try_link "$LINENO"; then : 11325 ac_cv_lib_dl_dlopen=yes 11326else 11327 ac_cv_lib_dl_dlopen=no 11328fi 11329rm -f core conftest.err conftest.$ac_objext \ 11330 conftest$ac_exeext conftest.$ac_ext 11331LIBS=$ac_check_lib_save_LIBS 11332fi 11333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11334$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11335if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 11336 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11337else 11338 11339 lt_cv_dlopen="dyld" 11340 lt_cv_dlopen_libs= 11341 lt_cv_dlopen_self=yes 11342 11343fi 11344 11345 ;; 11346 11347 *) 11348 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11349if test "x$ac_cv_func_shl_load" = x""yes; then : 11350 lt_cv_dlopen="shl_load" 11351else 11352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11353$as_echo_n "checking for shl_load in -ldld... " >&6; } 11354if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 11355 $as_echo_n "(cached) " >&6 11356else 11357 ac_check_lib_save_LIBS=$LIBS 11358LIBS="-ldld $LIBS" 11359cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11360/* end confdefs.h. */ 11361 11362/* Override any GCC internal prototype to avoid an error. 11363 Use char because int might match the return type of a GCC 11364 builtin and then its argument prototype would still apply. */ 11365#ifdef __cplusplus 11366extern "C" 11367#endif 11368char shl_load (); 11369int 11370main () 11371{ 11372return shl_load (); 11373 ; 11374 return 0; 11375} 11376_ACEOF 11377if ac_fn_c_try_link "$LINENO"; then : 11378 ac_cv_lib_dld_shl_load=yes 11379else 11380 ac_cv_lib_dld_shl_load=no 11381fi 11382rm -f core conftest.err conftest.$ac_objext \ 11383 conftest$ac_exeext conftest.$ac_ext 11384LIBS=$ac_check_lib_save_LIBS 11385fi 11386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11387$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11388if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 11389 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11390else 11391 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11392if test "x$ac_cv_func_dlopen" = x""yes; then : 11393 lt_cv_dlopen="dlopen" 11394else 11395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11396$as_echo_n "checking for dlopen in -ldl... " >&6; } 11397if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 11398 $as_echo_n "(cached) " >&6 11399else 11400 ac_check_lib_save_LIBS=$LIBS 11401LIBS="-ldl $LIBS" 11402cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11403/* end confdefs.h. */ 11404 11405/* Override any GCC internal prototype to avoid an error. 11406 Use char because int might match the return type of a GCC 11407 builtin and then its argument prototype would still apply. */ 11408#ifdef __cplusplus 11409extern "C" 11410#endif 11411char dlopen (); 11412int 11413main () 11414{ 11415return dlopen (); 11416 ; 11417 return 0; 11418} 11419_ACEOF 11420if ac_fn_c_try_link "$LINENO"; then : 11421 ac_cv_lib_dl_dlopen=yes 11422else 11423 ac_cv_lib_dl_dlopen=no 11424fi 11425rm -f core conftest.err conftest.$ac_objext \ 11426 conftest$ac_exeext conftest.$ac_ext 11427LIBS=$ac_check_lib_save_LIBS 11428fi 11429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11430$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11431if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 11432 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11433else 11434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11435$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11436if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 11437 $as_echo_n "(cached) " >&6 11438else 11439 ac_check_lib_save_LIBS=$LIBS 11440LIBS="-lsvld $LIBS" 11441cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11442/* end confdefs.h. */ 11443 11444/* Override any GCC internal prototype to avoid an error. 11445 Use char because int might match the return type of a GCC 11446 builtin and then its argument prototype would still apply. */ 11447#ifdef __cplusplus 11448extern "C" 11449#endif 11450char dlopen (); 11451int 11452main () 11453{ 11454return dlopen (); 11455 ; 11456 return 0; 11457} 11458_ACEOF 11459if ac_fn_c_try_link "$LINENO"; then : 11460 ac_cv_lib_svld_dlopen=yes 11461else 11462 ac_cv_lib_svld_dlopen=no 11463fi 11464rm -f core conftest.err conftest.$ac_objext \ 11465 conftest$ac_exeext conftest.$ac_ext 11466LIBS=$ac_check_lib_save_LIBS 11467fi 11468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11469$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11470if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 11471 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11472else 11473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11474$as_echo_n "checking for dld_link in -ldld... " >&6; } 11475if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 11476 $as_echo_n "(cached) " >&6 11477else 11478 ac_check_lib_save_LIBS=$LIBS 11479LIBS="-ldld $LIBS" 11480cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11481/* end confdefs.h. */ 11482 11483/* Override any GCC internal prototype to avoid an error. 11484 Use char because int might match the return type of a GCC 11485 builtin and then its argument prototype would still apply. */ 11486#ifdef __cplusplus 11487extern "C" 11488#endif 11489char dld_link (); 11490int 11491main () 11492{ 11493return dld_link (); 11494 ; 11495 return 0; 11496} 11497_ACEOF 11498if ac_fn_c_try_link "$LINENO"; then : 11499 ac_cv_lib_dld_dld_link=yes 11500else 11501 ac_cv_lib_dld_dld_link=no 11502fi 11503rm -f core conftest.err conftest.$ac_objext \ 11504 conftest$ac_exeext conftest.$ac_ext 11505LIBS=$ac_check_lib_save_LIBS 11506fi 11507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11508$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11509if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 11510 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11511fi 11512 11513 11514fi 11515 11516 11517fi 11518 11519 11520fi 11521 11522 11523fi 11524 11525 11526fi 11527 11528 ;; 11529 esac 11530 11531 if test "x$lt_cv_dlopen" != xno; then 11532 enable_dlopen=yes 11533 else 11534 enable_dlopen=no 11535 fi 11536 11537 case $lt_cv_dlopen in 11538 dlopen) 11539 save_CPPFLAGS="$CPPFLAGS" 11540 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11541 11542 save_LDFLAGS="$LDFLAGS" 11543 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11544 11545 save_LIBS="$LIBS" 11546 LIBS="$lt_cv_dlopen_libs $LIBS" 11547 11548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11549$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11550if test "${lt_cv_dlopen_self+set}" = set; then : 11551 $as_echo_n "(cached) " >&6 11552else 11553 if test "$cross_compiling" = yes; then : 11554 lt_cv_dlopen_self=cross 11555else 11556 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11557 lt_status=$lt_dlunknown 11558 cat > conftest.$ac_ext <<_LT_EOF 11559#line 11559 "configure" 11560#include "confdefs.h" 11561 11562#if HAVE_DLFCN_H 11563#include <dlfcn.h> 11564#endif 11565 11566#include <stdio.h> 11567 11568#ifdef RTLD_GLOBAL 11569# define LT_DLGLOBAL RTLD_GLOBAL 11570#else 11571# ifdef DL_GLOBAL 11572# define LT_DLGLOBAL DL_GLOBAL 11573# else 11574# define LT_DLGLOBAL 0 11575# endif 11576#endif 11577 11578/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11579 find out it does not work in some platform. */ 11580#ifndef LT_DLLAZY_OR_NOW 11581# ifdef RTLD_LAZY 11582# define LT_DLLAZY_OR_NOW RTLD_LAZY 11583# else 11584# ifdef DL_LAZY 11585# define LT_DLLAZY_OR_NOW DL_LAZY 11586# else 11587# ifdef RTLD_NOW 11588# define LT_DLLAZY_OR_NOW RTLD_NOW 11589# else 11590# ifdef DL_NOW 11591# define LT_DLLAZY_OR_NOW DL_NOW 11592# else 11593# define LT_DLLAZY_OR_NOW 0 11594# endif 11595# endif 11596# endif 11597# endif 11598#endif 11599 11600void fnord() { int i=42;} 11601int main () 11602{ 11603 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11604 int status = $lt_dlunknown; 11605 11606 if (self) 11607 { 11608 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11609 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11610 /* dlclose (self); */ 11611 } 11612 else 11613 puts (dlerror ()); 11614 11615 return status; 11616} 11617_LT_EOF 11618 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11619 (eval $ac_link) 2>&5 11620 ac_status=$? 11621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11622 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11623 (./conftest; exit; ) >&5 2>/dev/null 11624 lt_status=$? 11625 case x$lt_status in 11626 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11627 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11628 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11629 esac 11630 else : 11631 # compilation failed 11632 lt_cv_dlopen_self=no 11633 fi 11634fi 11635rm -fr conftest* 11636 11637 11638fi 11639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11640$as_echo "$lt_cv_dlopen_self" >&6; } 11641 11642 if test "x$lt_cv_dlopen_self" = xyes; then 11643 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11645$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11646if test "${lt_cv_dlopen_self_static+set}" = set; then : 11647 $as_echo_n "(cached) " >&6 11648else 11649 if test "$cross_compiling" = yes; then : 11650 lt_cv_dlopen_self_static=cross 11651else 11652 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11653 lt_status=$lt_dlunknown 11654 cat > conftest.$ac_ext <<_LT_EOF 11655#line 11655 "configure" 11656#include "confdefs.h" 11657 11658#if HAVE_DLFCN_H 11659#include <dlfcn.h> 11660#endif 11661 11662#include <stdio.h> 11663 11664#ifdef RTLD_GLOBAL 11665# define LT_DLGLOBAL RTLD_GLOBAL 11666#else 11667# ifdef DL_GLOBAL 11668# define LT_DLGLOBAL DL_GLOBAL 11669# else 11670# define LT_DLGLOBAL 0 11671# endif 11672#endif 11673 11674/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11675 find out it does not work in some platform. */ 11676#ifndef LT_DLLAZY_OR_NOW 11677# ifdef RTLD_LAZY 11678# define LT_DLLAZY_OR_NOW RTLD_LAZY 11679# else 11680# ifdef DL_LAZY 11681# define LT_DLLAZY_OR_NOW DL_LAZY 11682# else 11683# ifdef RTLD_NOW 11684# define LT_DLLAZY_OR_NOW RTLD_NOW 11685# else 11686# ifdef DL_NOW 11687# define LT_DLLAZY_OR_NOW DL_NOW 11688# else 11689# define LT_DLLAZY_OR_NOW 0 11690# endif 11691# endif 11692# endif 11693# endif 11694#endif 11695 11696void fnord() { int i=42;} 11697int main () 11698{ 11699 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11700 int status = $lt_dlunknown; 11701 11702 if (self) 11703 { 11704 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11705 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11706 /* dlclose (self); */ 11707 } 11708 else 11709 puts (dlerror ()); 11710 11711 return status; 11712} 11713_LT_EOF 11714 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11715 (eval $ac_link) 2>&5 11716 ac_status=$? 11717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11718 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11719 (./conftest; exit; ) >&5 2>/dev/null 11720 lt_status=$? 11721 case x$lt_status in 11722 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11723 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11724 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11725 esac 11726 else : 11727 # compilation failed 11728 lt_cv_dlopen_self_static=no 11729 fi 11730fi 11731rm -fr conftest* 11732 11733 11734fi 11735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11736$as_echo "$lt_cv_dlopen_self_static" >&6; } 11737 fi 11738 11739 CPPFLAGS="$save_CPPFLAGS" 11740 LDFLAGS="$save_LDFLAGS" 11741 LIBS="$save_LIBS" 11742 ;; 11743 esac 11744 11745 case $lt_cv_dlopen_self in 11746 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11747 *) enable_dlopen_self=unknown ;; 11748 esac 11749 11750 case $lt_cv_dlopen_self_static in 11751 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11752 *) enable_dlopen_self_static=unknown ;; 11753 esac 11754fi 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772striplib= 11773old_striplib= 11774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11775$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11776if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11777 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11778 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11780$as_echo "yes" >&6; } 11781else 11782# FIXME - insert some real tests, host_os isn't really good enough 11783 case $host_os in 11784 darwin*) 11785 if test -n "$STRIP" ; then 11786 striplib="$STRIP -x" 11787 old_striplib="$STRIP -S" 11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11789$as_echo "yes" >&6; } 11790 else 11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11792$as_echo "no" >&6; } 11793 fi 11794 ;; 11795 *) 11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11797$as_echo "no" >&6; } 11798 ;; 11799 esac 11800fi 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 # Report which library types will actually be built 11814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11815$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11817$as_echo "$can_build_shared" >&6; } 11818 11819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11820$as_echo_n "checking whether to build shared libraries... " >&6; } 11821 test "$can_build_shared" = "no" && enable_shared=no 11822 11823 # On AIX, shared libraries and static libraries use the same namespace, and 11824 # are all built from PIC. 11825 case $host_os in 11826 aix3*) 11827 test "$enable_shared" = yes && enable_static=no 11828 if test -n "$RANLIB"; then 11829 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11830 postinstall_cmds='$RANLIB $lib' 11831 fi 11832 ;; 11833 11834 aix[4-9]*) 11835 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11836 test "$enable_shared" = yes && enable_static=no 11837 fi 11838 ;; 11839 esac 11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11841$as_echo "$enable_shared" >&6; } 11842 11843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11844$as_echo_n "checking whether to build static libraries... " >&6; } 11845 # Make sure either enable_shared or enable_static is yes. 11846 test "$enable_shared" = yes || enable_static=yes 11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11848$as_echo "$enable_static" >&6; } 11849 11850 11851 11852 11853fi 11854ac_ext=c 11855ac_cpp='$CPP $CPPFLAGS' 11856ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11857ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11858ac_compiler_gnu=$ac_cv_c_compiler_gnu 11859 11860CC="$lt_save_CC" 11861 11862 11863 11864 11865 11866 11867 11868 11869 11870 11871 11872 11873 11874 ac_config_commands="$ac_config_commands libtool" 11875 11876 11877 11878 11879# Only expand once: 11880 11881 11882 11883 11884# dolt, a replacement for libtool 11885# Josh Triplett <josh@freedesktop.org> 11886# Extract the first word of "bash", so it can be a program name with args. 11887set dummy bash; ac_word=$2 11888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11889$as_echo_n "checking for $ac_word... " >&6; } 11890if test "${ac_cv_path_DOLT_BASH+set}" = set; then : 11891 $as_echo_n "(cached) " >&6 11892else 11893 case $DOLT_BASH in 11894 [\\/]* | ?:[\\/]*) 11895 ac_cv_path_DOLT_BASH="$DOLT_BASH" # Let the user override the test with a path. 11896 ;; 11897 *) 11898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11899for as_dir in $PATH 11900do 11901 IFS=$as_save_IFS 11902 test -z "$as_dir" && as_dir=. 11903 for ac_exec_ext in '' $ac_executable_extensions; do 11904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11905 ac_cv_path_DOLT_BASH="$as_dir/$ac_word$ac_exec_ext" 11906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11907 break 2 11908 fi 11909done 11910 done 11911IFS=$as_save_IFS 11912 11913 ;; 11914esac 11915fi 11916DOLT_BASH=$ac_cv_path_DOLT_BASH 11917if test -n "$DOLT_BASH"; then 11918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOLT_BASH" >&5 11919$as_echo "$DOLT_BASH" >&6; } 11920else 11921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11922$as_echo "no" >&6; } 11923fi 11924 11925 11926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if dolt supports this host" >&5 11927$as_echo_n "checking if dolt supports this host... " >&6; } 11928dolt_supported=yes 11929if test x$DOLT_BASH = x; then 11930 dolt_supported=no 11931fi 11932if test x$GCC != xyes; then 11933 dolt_supported=no 11934fi 11935case $host in 11936i?86-*-linux*|x86_64-*-linux*|powerpc-*-linux* \ 11937|amd64-*-freebsd*|i?86-*-freebsd*|ia64-*-freebsd*) 11938 pic_options='-fPIC' 11939 ;; 11940i?86-pc-cygwin*) 11941 pic_options='-DDLL_EXPORT' 11942 ;; 11943i?86-apple-darwin*) 11944 pic_options='-fno-common' 11945 ;; 11946*) 11947 dolt_supported=no 11948 ;; 11949esac 11950if test x$dolt_supported = xno ; then 11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, falling back to libtool" >&5 11952$as_echo "no, falling back to libtool" >&6; } 11953 LTCOMPILE='$(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(COMPILE)' 11954 LTCXXCOMPILE='$(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXXCOMPILE)' 11955else 11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, replacing libtool" >&5 11957$as_echo "yes, replacing libtool" >&6; } 11958 11959 cat <<__DOLTCOMPILE__EOF__ >doltcompile 11960#!$DOLT_BASH 11961__DOLTCOMPILE__EOF__ 11962 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile 11963args=("$@") 11964for ((arg=0; arg<${#args[@]}; arg++)) ; do 11965 if test x"${args[$arg]}" = x-o ; then 11966 objarg=$((arg+1)) 11967 break 11968 fi 11969done 11970if test x$objarg = x ; then 11971 echo 'Error: no -o on compiler command line' 1>&2 11972 exit 1 11973fi 11974lo="${args[$objarg]}" 11975obj="${lo%.lo}" 11976if test x"$lo" = x"$obj" ; then 11977 echo "Error: libtool object file name \"$lo\" does not end in .lo" 1>&2 11978 exit 1 11979fi 11980objbase="${obj##*/}" 11981__DOLTCOMPILE__EOF__ 11982 11983 if test x$enable_shared = xyes; then 11984 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile 11985libobjdir="${obj%$objbase}.libs" 11986if test ! -d "$libobjdir" ; then 11987 mkdir_out="$(mkdir "$libobjdir" 2>&1)" 11988 mkdir_ret=$? 11989 if test "$mkdir_ret" -ne 0 && test ! -d "$libobjdir" ; then 11990 echo "$mkdir_out" 1>&2 11991 exit $mkdir_ret 11992 fi 11993fi 11994pic_object="$libobjdir/$objbase.o" 11995args[$objarg]="$pic_object" 11996__DOLTCOMPILE__EOF__ 11997 cat <<__DOLTCOMPILE__EOF__ >>doltcompile 11998"\${args[@]}" $pic_options -DPIC || exit \$? 11999__DOLTCOMPILE__EOF__ 12000 fi 12001 12002 if test x$enable_static = xyes; then 12003 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile 12004non_pic_object="$obj.o" 12005args[$objarg]="$non_pic_object" 12006__DOLTCOMPILE__EOF__ 12007 if test x$enable_shared = xyes; then 12008 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile 12009"${args[@]}" >/dev/null 2>&1 || exit $? 12010__DOLTCOMPILE__EOF__ 12011 else 12012 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile 12013"${args[@]}" || exit $? 12014__DOLTCOMPILE__EOF__ 12015 fi 12016 fi 12017 12018 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile 12019{ 12020echo "# $lo - a libtool object file" 12021echo "# Generated by doltcompile, not libtool" 12022__DOLTCOMPILE__EOF__ 12023 12024 if test x$enable_shared = xyes; then 12025 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile 12026echo "pic_object='.libs/${objbase}.o'" 12027__DOLTCOMPILE__EOF__ 12028 else 12029 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile 12030echo pic_object=none 12031__DOLTCOMPILE__EOF__ 12032 fi 12033 12034 if test x$enable_static = xyes; then 12035 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile 12036echo "non_pic_object='${objbase}.o'" 12037__DOLTCOMPILE__EOF__ 12038 else 12039 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile 12040echo non_pic_object=none 12041__DOLTCOMPILE__EOF__ 12042 fi 12043 12044 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile 12045} > "$lo" 12046__DOLTCOMPILE__EOF__ 12047 12048 chmod +x doltcompile 12049 LTCOMPILE='$(top_builddir)/doltcompile $(COMPILE)' 12050 LTCXXCOMPILE='$(top_builddir)/doltcompile $(CXXCOMPILE)' 12051 12052 cat <<__DOLTLIBTOOL__EOF__ > doltlibtool 12053#!$DOLT_BASH 12054__DOLTLIBTOOL__EOF__ 12055 cat <<'__DOLTLIBTOOL__EOF__' >>doltlibtool 12056top_builddir_slash="${0%%doltlibtool}" 12057: ${top_builddir_slash:=./} 12058args=() 12059modeok=false 12060tagok=false 12061for arg in "$@"; do 12062 case "$arg" in 12063 --mode=compile) modeok=true ;; 12064 --tag=CC|--tag=CXX) tagok=true ;; 12065 *) args[${#args[@]}]="$arg" ;; 12066 esac 12067done 12068if $modeok && $tagok ; then 12069 . ${top_builddir_slash}doltcompile "${args[@]}" 12070else 12071 exec ${top_builddir_slash}libtool "$@" 12072fi 12073__DOLTLIBTOOL__EOF__ 12074 12075 chmod +x doltlibtool 12076 LIBTOOL='$(top_builddir)/doltlibtool' 12077fi 12078 12079 12080# end dolt 12081 12082ac_ext=c 12083ac_cpp='$CPP $CPPFLAGS' 12084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12086ac_compiler_gnu=$ac_cv_c_compiler_gnu 12087if test -n "$ac_tool_prefix"; then 12088 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 12089set dummy ${ac_tool_prefix}gcc; ac_word=$2 12090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12091$as_echo_n "checking for $ac_word... " >&6; } 12092if test "${ac_cv_prog_CC+set}" = set; then : 12093 $as_echo_n "(cached) " >&6 12094else 12095 if test -n "$CC"; then 12096 ac_cv_prog_CC="$CC" # Let the user override the test. 12097else 12098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12099for as_dir in $PATH 12100do 12101 IFS=$as_save_IFS 12102 test -z "$as_dir" && as_dir=. 12103 for ac_exec_ext in '' $ac_executable_extensions; do 12104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12105 ac_cv_prog_CC="${ac_tool_prefix}gcc" 12106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12107 break 2 12108 fi 12109done 12110 done 12111IFS=$as_save_IFS 12112 12113fi 12114fi 12115CC=$ac_cv_prog_CC 12116if test -n "$CC"; then 12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12118$as_echo "$CC" >&6; } 12119else 12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12121$as_echo "no" >&6; } 12122fi 12123 12124 12125fi 12126if test -z "$ac_cv_prog_CC"; then 12127 ac_ct_CC=$CC 12128 # Extract the first word of "gcc", so it can be a program name with args. 12129set dummy gcc; ac_word=$2 12130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12131$as_echo_n "checking for $ac_word... " >&6; } 12132if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 12133 $as_echo_n "(cached) " >&6 12134else 12135 if test -n "$ac_ct_CC"; then 12136 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 12137else 12138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12139for as_dir in $PATH 12140do 12141 IFS=$as_save_IFS 12142 test -z "$as_dir" && as_dir=. 12143 for ac_exec_ext in '' $ac_executable_extensions; do 12144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12145 ac_cv_prog_ac_ct_CC="gcc" 12146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12147 break 2 12148 fi 12149done 12150 done 12151IFS=$as_save_IFS 12152 12153fi 12154fi 12155ac_ct_CC=$ac_cv_prog_ac_ct_CC 12156if test -n "$ac_ct_CC"; then 12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 12158$as_echo "$ac_ct_CC" >&6; } 12159else 12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12161$as_echo "no" >&6; } 12162fi 12163 12164 if test "x$ac_ct_CC" = x; then 12165 CC="" 12166 else 12167 case $cross_compiling:$ac_tool_warned in 12168yes:) 12169{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12170$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12171ac_tool_warned=yes ;; 12172esac 12173 CC=$ac_ct_CC 12174 fi 12175else 12176 CC="$ac_cv_prog_CC" 12177fi 12178 12179if test -z "$CC"; then 12180 if test -n "$ac_tool_prefix"; then 12181 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 12182set dummy ${ac_tool_prefix}cc; ac_word=$2 12183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12184$as_echo_n "checking for $ac_word... " >&6; } 12185if test "${ac_cv_prog_CC+set}" = set; then : 12186 $as_echo_n "(cached) " >&6 12187else 12188 if test -n "$CC"; then 12189 ac_cv_prog_CC="$CC" # Let the user override the test. 12190else 12191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12192for as_dir in $PATH 12193do 12194 IFS=$as_save_IFS 12195 test -z "$as_dir" && as_dir=. 12196 for ac_exec_ext in '' $ac_executable_extensions; do 12197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12198 ac_cv_prog_CC="${ac_tool_prefix}cc" 12199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12200 break 2 12201 fi 12202done 12203 done 12204IFS=$as_save_IFS 12205 12206fi 12207fi 12208CC=$ac_cv_prog_CC 12209if test -n "$CC"; then 12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12211$as_echo "$CC" >&6; } 12212else 12213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12214$as_echo "no" >&6; } 12215fi 12216 12217 12218 fi 12219fi 12220if test -z "$CC"; then 12221 # Extract the first word of "cc", so it can be a program name with args. 12222set dummy cc; ac_word=$2 12223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12224$as_echo_n "checking for $ac_word... " >&6; } 12225if test "${ac_cv_prog_CC+set}" = set; then : 12226 $as_echo_n "(cached) " >&6 12227else 12228 if test -n "$CC"; then 12229 ac_cv_prog_CC="$CC" # Let the user override the test. 12230else 12231 ac_prog_rejected=no 12232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12233for as_dir in $PATH 12234do 12235 IFS=$as_save_IFS 12236 test -z "$as_dir" && as_dir=. 12237 for ac_exec_ext in '' $ac_executable_extensions; do 12238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12239 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 12240 ac_prog_rejected=yes 12241 continue 12242 fi 12243 ac_cv_prog_CC="cc" 12244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12245 break 2 12246 fi 12247done 12248 done 12249IFS=$as_save_IFS 12250 12251if test $ac_prog_rejected = yes; then 12252 # We found a bogon in the path, so make sure we never use it. 12253 set dummy $ac_cv_prog_CC 12254 shift 12255 if test $# != 0; then 12256 # We chose a different compiler from the bogus one. 12257 # However, it has the same basename, so the bogon will be chosen 12258 # first if we set CC to just the basename; use the full file name. 12259 shift 12260 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 12261 fi 12262fi 12263fi 12264fi 12265CC=$ac_cv_prog_CC 12266if test -n "$CC"; then 12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12268$as_echo "$CC" >&6; } 12269else 12270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12271$as_echo "no" >&6; } 12272fi 12273 12274 12275fi 12276if test -z "$CC"; then 12277 if test -n "$ac_tool_prefix"; then 12278 for ac_prog in cl.exe 12279 do 12280 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12281set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12283$as_echo_n "checking for $ac_word... " >&6; } 12284if test "${ac_cv_prog_CC+set}" = set; then : 12285 $as_echo_n "(cached) " >&6 12286else 12287 if test -n "$CC"; then 12288 ac_cv_prog_CC="$CC" # Let the user override the test. 12289else 12290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12291for as_dir in $PATH 12292do 12293 IFS=$as_save_IFS 12294 test -z "$as_dir" && as_dir=. 12295 for ac_exec_ext in '' $ac_executable_extensions; do 12296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12297 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 12298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12299 break 2 12300 fi 12301done 12302 done 12303IFS=$as_save_IFS 12304 12305fi 12306fi 12307CC=$ac_cv_prog_CC 12308if test -n "$CC"; then 12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12310$as_echo "$CC" >&6; } 12311else 12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12313$as_echo "no" >&6; } 12314fi 12315 12316 12317 test -n "$CC" && break 12318 done 12319fi 12320if test -z "$CC"; then 12321 ac_ct_CC=$CC 12322 for ac_prog in cl.exe 12323do 12324 # Extract the first word of "$ac_prog", so it can be a program name with args. 12325set dummy $ac_prog; ac_word=$2 12326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12327$as_echo_n "checking for $ac_word... " >&6; } 12328if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 12329 $as_echo_n "(cached) " >&6 12330else 12331 if test -n "$ac_ct_CC"; then 12332 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 12333else 12334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12335for as_dir in $PATH 12336do 12337 IFS=$as_save_IFS 12338 test -z "$as_dir" && as_dir=. 12339 for ac_exec_ext in '' $ac_executable_extensions; do 12340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12341 ac_cv_prog_ac_ct_CC="$ac_prog" 12342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12343 break 2 12344 fi 12345done 12346 done 12347IFS=$as_save_IFS 12348 12349fi 12350fi 12351ac_ct_CC=$ac_cv_prog_ac_ct_CC 12352if test -n "$ac_ct_CC"; then 12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 12354$as_echo "$ac_ct_CC" >&6; } 12355else 12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12357$as_echo "no" >&6; } 12358fi 12359 12360 12361 test -n "$ac_ct_CC" && break 12362done 12363 12364 if test "x$ac_ct_CC" = x; then 12365 CC="" 12366 else 12367 case $cross_compiling:$ac_tool_warned in 12368yes:) 12369{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12370$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12371ac_tool_warned=yes ;; 12372esac 12373 CC=$ac_ct_CC 12374 fi 12375fi 12376 12377fi 12378 12379 12380test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12381$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12382as_fn_error "no acceptable C compiler found in \$PATH 12383See \`config.log' for more details." "$LINENO" 5; } 12384 12385# Provide some information about the compiler. 12386$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 12387set X $ac_compile 12388ac_compiler=$2 12389for ac_option in --version -v -V -qversion; do 12390 { { ac_try="$ac_compiler $ac_option >&5" 12391case "(($ac_try" in 12392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12393 *) ac_try_echo=$ac_try;; 12394esac 12395eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12396$as_echo "$ac_try_echo"; } >&5 12397 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 12398 ac_status=$? 12399 if test -s conftest.err; then 12400 sed '10a\ 12401... rest of stderr output deleted ... 12402 10q' conftest.err >conftest.er1 12403 cat conftest.er1 >&5 12404 fi 12405 rm -f conftest.er1 conftest.err 12406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12407 test $ac_status = 0; } 12408done 12409 12410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 12411$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 12412if test "${ac_cv_c_compiler_gnu+set}" = set; then : 12413 $as_echo_n "(cached) " >&6 12414else 12415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12416/* end confdefs.h. */ 12417 12418int 12419main () 12420{ 12421#ifndef __GNUC__ 12422 choke me 12423#endif 12424 12425 ; 12426 return 0; 12427} 12428_ACEOF 12429if ac_fn_c_try_compile "$LINENO"; then : 12430 ac_compiler_gnu=yes 12431else 12432 ac_compiler_gnu=no 12433fi 12434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12435ac_cv_c_compiler_gnu=$ac_compiler_gnu 12436 12437fi 12438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 12439$as_echo "$ac_cv_c_compiler_gnu" >&6; } 12440if test $ac_compiler_gnu = yes; then 12441 GCC=yes 12442else 12443 GCC= 12444fi 12445ac_test_CFLAGS=${CFLAGS+set} 12446ac_save_CFLAGS=$CFLAGS 12447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 12448$as_echo_n "checking whether $CC accepts -g... " >&6; } 12449if test "${ac_cv_prog_cc_g+set}" = set; then : 12450 $as_echo_n "(cached) " >&6 12451else 12452 ac_save_c_werror_flag=$ac_c_werror_flag 12453 ac_c_werror_flag=yes 12454 ac_cv_prog_cc_g=no 12455 CFLAGS="-g" 12456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12457/* end confdefs.h. */ 12458 12459int 12460main () 12461{ 12462 12463 ; 12464 return 0; 12465} 12466_ACEOF 12467if ac_fn_c_try_compile "$LINENO"; then : 12468 ac_cv_prog_cc_g=yes 12469else 12470 CFLAGS="" 12471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12472/* end confdefs.h. */ 12473 12474int 12475main () 12476{ 12477 12478 ; 12479 return 0; 12480} 12481_ACEOF 12482if ac_fn_c_try_compile "$LINENO"; then : 12483 12484else 12485 ac_c_werror_flag=$ac_save_c_werror_flag 12486 CFLAGS="-g" 12487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12488/* end confdefs.h. */ 12489 12490int 12491main () 12492{ 12493 12494 ; 12495 return 0; 12496} 12497_ACEOF 12498if ac_fn_c_try_compile "$LINENO"; then : 12499 ac_cv_prog_cc_g=yes 12500fi 12501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12502fi 12503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12504fi 12505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12506 ac_c_werror_flag=$ac_save_c_werror_flag 12507fi 12508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 12509$as_echo "$ac_cv_prog_cc_g" >&6; } 12510if test "$ac_test_CFLAGS" = set; then 12511 CFLAGS=$ac_save_CFLAGS 12512elif test $ac_cv_prog_cc_g = yes; then 12513 if test "$GCC" = yes; then 12514 CFLAGS="-g -O2" 12515 else 12516 CFLAGS="-g" 12517 fi 12518else 12519 if test "$GCC" = yes; then 12520 CFLAGS="-O2" 12521 else 12522 CFLAGS= 12523 fi 12524fi 12525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 12526$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 12527if test "${ac_cv_prog_cc_c89+set}" = set; then : 12528 $as_echo_n "(cached) " >&6 12529else 12530 ac_cv_prog_cc_c89=no 12531ac_save_CC=$CC 12532cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12533/* end confdefs.h. */ 12534#include <stdarg.h> 12535#include <stdio.h> 12536#include <sys/types.h> 12537#include <sys/stat.h> 12538/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 12539struct buf { int x; }; 12540FILE * (*rcsopen) (struct buf *, struct stat *, int); 12541static char *e (p, i) 12542 char **p; 12543 int i; 12544{ 12545 return p[i]; 12546} 12547static char *f (char * (*g) (char **, int), char **p, ...) 12548{ 12549 char *s; 12550 va_list v; 12551 va_start (v,p); 12552 s = g (p, va_arg (v,int)); 12553 va_end (v); 12554 return s; 12555} 12556 12557/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 12558 function prototypes and stuff, but not '\xHH' hex character constants. 12559 These don't provoke an error unfortunately, instead are silently treated 12560 as 'x'. The following induces an error, until -std is added to get 12561 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 12562 array size at least. It's necessary to write '\x00'==0 to get something 12563 that's true only with -std. */ 12564int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 12565 12566/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 12567 inside strings and character constants. */ 12568#define FOO(x) 'x' 12569int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 12570 12571int test (int i, double x); 12572struct s1 {int (*f) (int a);}; 12573struct s2 {int (*f) (double a);}; 12574int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 12575int argc; 12576char **argv; 12577int 12578main () 12579{ 12580return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 12581 ; 12582 return 0; 12583} 12584_ACEOF 12585for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 12586 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 12587do 12588 CC="$ac_save_CC $ac_arg" 12589 if ac_fn_c_try_compile "$LINENO"; then : 12590 ac_cv_prog_cc_c89=$ac_arg 12591fi 12592rm -f core conftest.err conftest.$ac_objext 12593 test "x$ac_cv_prog_cc_c89" != "xno" && break 12594done 12595rm -f conftest.$ac_ext 12596CC=$ac_save_CC 12597 12598fi 12599# AC_CACHE_VAL 12600case "x$ac_cv_prog_cc_c89" in 12601 x) 12602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 12603$as_echo "none needed" >&6; } ;; 12604 xno) 12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 12606$as_echo "unsupported" >&6; } ;; 12607 *) 12608 CC="$CC $ac_cv_prog_cc_c89" 12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 12610$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 12611esac 12612if test "x$ac_cv_prog_cc_c89" != xno; then : 12613 12614fi 12615 12616ac_ext=c 12617ac_cpp='$CPP $CPPFLAGS' 12618ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12619ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12620ac_compiler_gnu=$ac_cv_c_compiler_gnu 12621 12622depcc="$CC" am_compiler_list= 12623 12624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 12625$as_echo_n "checking dependency style of $depcc... " >&6; } 12626if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 12627 $as_echo_n "(cached) " >&6 12628else 12629 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 12630 # We make a subdir and do the tests there. Otherwise we can end up 12631 # making bogus files that we don't know about and never remove. For 12632 # instance it was reported that on HP-UX the gcc test will end up 12633 # making a dummy file named `D' -- because `-MD' means `put the output 12634 # in D'. 12635 mkdir conftest.dir 12636 # Copy depcomp to subdir because otherwise we won't find it if we're 12637 # using a relative directory. 12638 cp "$am_depcomp" conftest.dir 12639 cd conftest.dir 12640 # We will build objects and dependencies in a subdirectory because 12641 # it helps to detect inapplicable dependency modes. For instance 12642 # both Tru64's cc and ICC support -MD to output dependencies as a 12643 # side effect of compilation, but ICC will put the dependencies in 12644 # the current directory while Tru64 will put them in the object 12645 # directory. 12646 mkdir sub 12647 12648 am_cv_CC_dependencies_compiler_type=none 12649 if test "$am_compiler_list" = ""; then 12650 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 12651 fi 12652 am__universal=false 12653 case " $depcc " in #( 12654 *\ -arch\ *\ -arch\ *) am__universal=true ;; 12655 esac 12656 12657 for depmode in $am_compiler_list; do 12658 # Setup a source with many dependencies, because some compilers 12659 # like to wrap large dependency lists on column 80 (with \), and 12660 # we should not choose a depcomp mode which is confused by this. 12661 # 12662 # We need to recreate these files for each test, as the compiler may 12663 # overwrite some of them when testing with obscure command lines. 12664 # This happens at least with the AIX C compiler. 12665 : > sub/conftest.c 12666 for i in 1 2 3 4 5 6; do 12667 echo '#include "conftst'$i'.h"' >> sub/conftest.c 12668 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 12669 # Solaris 8's {/usr,}/bin/sh. 12670 touch sub/conftst$i.h 12671 done 12672 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 12673 12674 # We check with `-c' and `-o' for the sake of the "dashmstdout" 12675 # mode. It turns out that the SunPro C++ compiler does not properly 12676 # handle `-M -o', and we need to detect this. Also, some Intel 12677 # versions had trouble with output in subdirs 12678 am__obj=sub/conftest.${OBJEXT-o} 12679 am__minus_obj="-o $am__obj" 12680 case $depmode in 12681 gcc) 12682 # This depmode causes a compiler race in universal mode. 12683 test "$am__universal" = false || continue 12684 ;; 12685 nosideeffect) 12686 # after this tag, mechanisms are not by side-effect, so they'll 12687 # only be used when explicitly requested 12688 if test "x$enable_dependency_tracking" = xyes; then 12689 continue 12690 else 12691 break 12692 fi 12693 ;; 12694 msvisualcpp | msvcmsys) 12695 # This compiler won't grok `-c -o', but also, the minuso test has 12696 # not run yet. These depmodes are late enough in the game, and 12697 # so weak that their functioning should not be impacted. 12698 am__obj=conftest.${OBJEXT-o} 12699 am__minus_obj= 12700 ;; 12701 none) break ;; 12702 esac 12703 if depmode=$depmode \ 12704 source=sub/conftest.c object=$am__obj \ 12705 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 12706 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 12707 >/dev/null 2>conftest.err && 12708 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 12709 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 12710 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 12711 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 12712 # icc doesn't choke on unknown options, it will just issue warnings 12713 # or remarks (even with -Werror). So we grep stderr for any message 12714 # that says an option was ignored or not supported. 12715 # When given -MP, icc 7.0 and 7.1 complain thusly: 12716 # icc: Command line warning: ignoring option '-M'; no argument required 12717 # The diagnosis changed in icc 8.0: 12718 # icc: Command line remark: option '-MP' not supported 12719 if (grep 'ignoring option' conftest.err || 12720 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 12721 am_cv_CC_dependencies_compiler_type=$depmode 12722 break 12723 fi 12724 fi 12725 done 12726 12727 cd .. 12728 rm -rf conftest.dir 12729else 12730 am_cv_CC_dependencies_compiler_type=none 12731fi 12732 12733fi 12734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 12735$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 12736CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 12737 12738 if 12739 test "x$enable_dependency_tracking" != xno \ 12740 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 12741 am__fastdepCC_TRUE= 12742 am__fastdepCC_FALSE='#' 12743else 12744 am__fastdepCC_TRUE='#' 12745 am__fastdepCC_FALSE= 12746fi 12747 12748 12749 12750 12751if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12752 if test -n "$ac_tool_prefix"; then 12753 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12754set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12756$as_echo_n "checking for $ac_word... " >&6; } 12757if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 12758 $as_echo_n "(cached) " >&6 12759else 12760 case $PKG_CONFIG in 12761 [\\/]* | ?:[\\/]*) 12762 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12763 ;; 12764 *) 12765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12766for as_dir in $PATH 12767do 12768 IFS=$as_save_IFS 12769 test -z "$as_dir" && as_dir=. 12770 for ac_exec_ext in '' $ac_executable_extensions; do 12771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12772 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12774 break 2 12775 fi 12776done 12777 done 12778IFS=$as_save_IFS 12779 12780 ;; 12781esac 12782fi 12783PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12784if test -n "$PKG_CONFIG"; then 12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12786$as_echo "$PKG_CONFIG" >&6; } 12787else 12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12789$as_echo "no" >&6; } 12790fi 12791 12792 12793fi 12794if test -z "$ac_cv_path_PKG_CONFIG"; then 12795 ac_pt_PKG_CONFIG=$PKG_CONFIG 12796 # Extract the first word of "pkg-config", so it can be a program name with args. 12797set dummy pkg-config; ac_word=$2 12798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12799$as_echo_n "checking for $ac_word... " >&6; } 12800if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : 12801 $as_echo_n "(cached) " >&6 12802else 12803 case $ac_pt_PKG_CONFIG in 12804 [\\/]* | ?:[\\/]*) 12805 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12806 ;; 12807 *) 12808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12809for as_dir in $PATH 12810do 12811 IFS=$as_save_IFS 12812 test -z "$as_dir" && as_dir=. 12813 for ac_exec_ext in '' $ac_executable_extensions; do 12814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12815 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12817 break 2 12818 fi 12819done 12820 done 12821IFS=$as_save_IFS 12822 12823 ;; 12824esac 12825fi 12826ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12827if test -n "$ac_pt_PKG_CONFIG"; then 12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 12829$as_echo "$ac_pt_PKG_CONFIG" >&6; } 12830else 12831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12832$as_echo "no" >&6; } 12833fi 12834 12835 if test "x$ac_pt_PKG_CONFIG" = x; then 12836 PKG_CONFIG="" 12837 else 12838 case $cross_compiling:$ac_tool_warned in 12839yes:) 12840{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12841$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12842ac_tool_warned=yes ;; 12843esac 12844 PKG_CONFIG=$ac_pt_PKG_CONFIG 12845 fi 12846else 12847 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12848fi 12849 12850fi 12851if test -n "$PKG_CONFIG"; then 12852 _pkg_min_version=0.9.0 12853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 12854$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12855 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12857$as_echo "yes" >&6; } 12858 else 12859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12860$as_echo "no" >&6; } 12861 PKG_CONFIG="" 12862 fi 12863 12864fi 12865 12866if test x"$CC_FOR_BUILD" = x; then 12867 if test x"$cross_compiling" = xyes; then 12868 for ac_prog in gcc cc 12869do 12870 # Extract the first word of "$ac_prog", so it can be a program name with args. 12871set dummy $ac_prog; ac_word=$2 12872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12873$as_echo_n "checking for $ac_word... " >&6; } 12874if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then : 12875 $as_echo_n "(cached) " >&6 12876else 12877 if test -n "$CC_FOR_BUILD"; then 12878 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test. 12879else 12880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12881for as_dir in $PATH 12882do 12883 IFS=$as_save_IFS 12884 test -z "$as_dir" && as_dir=. 12885 for ac_exec_ext in '' $ac_executable_extensions; do 12886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12887 ac_cv_prog_CC_FOR_BUILD="$ac_prog" 12888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12889 break 2 12890 fi 12891done 12892 done 12893IFS=$as_save_IFS 12894 12895fi 12896fi 12897CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD 12898if test -n "$CC_FOR_BUILD"; then 12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5 12900$as_echo "$CC_FOR_BUILD" >&6; } 12901else 12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12903$as_echo "no" >&6; } 12904fi 12905 12906 12907 test -n "$CC_FOR_BUILD" && break 12908done 12909 12910 else 12911 CC_FOR_BUILD="$CC" 12912 fi 12913fi 12914 12915 12916if test x"$CPPFLAGS_FOR_BUILD" = x; then 12917 if test ! x"$cross_compiling" = xyes; then 12918 CPPFLAGS_FOR_BUILD=${CPPFLAGS} 12919 fi 12920fi 12921 12922 12923if test x"$CFLAGS_FOR_BUILD" = x; then 12924 if test ! x"$cross_compiling" = xyes; then 12925 CFLAGS_FOR_BUILD=${CFLAGS} 12926 fi 12927fi 12928 12929 12930if test x"$LDFLAGS_FOR_BUILD" = x; then 12931 if test ! x"$cross_compiling" = xyes; then 12932 LDFLAGS_FOR_BUILD=${LDFLAGS} 12933 fi 12934fi 12935 12936 12937 12938 12939for ac_prog in cpp 12940do 12941 # Extract the first word of "$ac_prog", so it can be a program name with args. 12942set dummy $ac_prog; ac_word=$2 12943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12944$as_echo_n "checking for $ac_word... " >&6; } 12945if test "${ac_cv_path_RAWCPP+set}" = set; then : 12946 $as_echo_n "(cached) " >&6 12947else 12948 case $RAWCPP in 12949 [\\/]* | ?:[\\/]*) 12950 ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path. 12951 ;; 12952 *) 12953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12954as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib" 12955for as_dir in $as_dummy 12956do 12957 IFS=$as_save_IFS 12958 test -z "$as_dir" && as_dir=. 12959 for ac_exec_ext in '' $ac_executable_extensions; do 12960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12961 ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext" 12962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12963 break 2 12964 fi 12965done 12966 done 12967IFS=$as_save_IFS 12968 12969 ;; 12970esac 12971fi 12972RAWCPP=$ac_cv_path_RAWCPP 12973if test -n "$RAWCPP"; then 12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5 12975$as_echo "$RAWCPP" >&6; } 12976else 12977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12978$as_echo "no" >&6; } 12979fi 12980 12981 12982 test -n "$RAWCPP" && break 12983done 12984test -n "$RAWCPP" || RAWCPP="${CPP}" 12985 12986 12987# Check for flag to avoid builtin definitions - assumes unix is predefined, 12988# which is not the best choice for supporting other OS'es, but covers most 12989# of the ones we need for now. 12990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5 12991$as_echo_n "checking if $RAWCPP requires -undef... " >&6; } 12992cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12993/* end confdefs.h. */ 12994Does cpp redefine unix ? 12995_ACEOF 12996if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 12997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12998$as_echo "no" >&6; } 12999else 13000 if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 13001 RAWCPPFLAGS=-undef 13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13003$as_echo "yes" >&6; } 13004 # under Cygwin unix is still defined even with -undef 13005 elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 13006 RAWCPPFLAGS="-undef -ansi" 13007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5 13008$as_echo "yes, with -ansi" >&6; } 13009 else 13010 as_fn_error "${RAWCPP} defines unix with or without -undef. I don't know what to do." "$LINENO" 5 13011 fi 13012fi 13013rm -f conftest.$ac_ext 13014 13015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5 13016$as_echo_n "checking if $RAWCPP requires -traditional... " >&6; } 13017cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13018/* end confdefs.h. */ 13019Does cpp preserve "whitespace"? 13020_ACEOF 13021if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 13022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13023$as_echo "no" >&6; } 13024else 13025 if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 13026 RAWCPPFLAGS="${RAWCPPFLAGS} -traditional" 13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13028$as_echo "yes" >&6; } 13029 else 13030 as_fn_error "${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do." "$LINENO" 5 13031 fi 13032fi 13033rm -f conftest.$ac_ext 13034 13035 13036 13037# Find perl for "make check" tests in nls/localerules.in 13038 13039# Check whether --with-perl was given. 13040if test "${with_perl+set}" = set; then : 13041 withval=$with_perl; PERL=$withval ; { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl" >&5 13042$as_echo_n "checking perl... " >&6; } ; 13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (from --with-perl) $PERL" >&5 13044$as_echo "(from --with-perl) $PERL" >&6; } 13045else 13046 for ac_prog in perl 13047do 13048 # Extract the first word of "$ac_prog", so it can be a program name with args. 13049set dummy $ac_prog; ac_word=$2 13050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13051$as_echo_n "checking for $ac_word... " >&6; } 13052if test "${ac_cv_prog_PERL+set}" = set; then : 13053 $as_echo_n "(cached) " >&6 13054else 13055 if test -n "$PERL"; then 13056 ac_cv_prog_PERL="$PERL" # Let the user override the test. 13057else 13058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13059for as_dir in $PATH 13060do 13061 IFS=$as_save_IFS 13062 test -z "$as_dir" && as_dir=. 13063 for ac_exec_ext in '' $ac_executable_extensions; do 13064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13065 ac_cv_prog_PERL="$ac_prog" 13066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13067 break 2 13068 fi 13069done 13070 done 13071IFS=$as_save_IFS 13072 13073fi 13074fi 13075PERL=$ac_cv_prog_PERL 13076if test -n "$PERL"; then 13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 13078$as_echo "$PERL" >&6; } 13079else 13080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13081$as_echo "no" >&6; } 13082fi 13083 13084 13085 test -n "$PERL" && break 13086done 13087test -n "$PERL" || PERL="no" 13088 13089fi 13090 13091 if test x$PERL != xno; then 13092 HAVE_PERL_TRUE= 13093 HAVE_PERL_FALSE='#' 13094else 13095 HAVE_PERL_TRUE='#' 13096 HAVE_PERL_FALSE= 13097fi 13098 13099 13100# Build with XCB support? 13101 13102# Check whether --with-xcb was given. 13103if test "${with_xcb+set}" = set; then : 13104 withval=$with_xcb; ac_cv_use_xcb=$withval 13105else 13106 ac_cv_use_xcb=yes 13107fi 13108 13109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use XCB" >&5 13110$as_echo_n "checking whether to use XCB... " >&6; } 13111if test "${ac_cv_use_xcb+set}" = set; then : 13112 $as_echo_n "(cached) " >&6 13113else 13114 ac_cv_use_xcb=yes 13115fi 13116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_use_xcb" >&5 13117$as_echo "$ac_cv_use_xcb" >&6; } 13118 if test x$ac_cv_use_xcb != xno; then 13119 XCB_TRUE= 13120 XCB_FALSE='#' 13121else 13122 XCB_TRUE='#' 13123 XCB_FALSE= 13124fi 13125 13126 13127# Checks for pkg-config packages 13128 13129# Always required 13130X11_REQUIRES='xproto >= 7.0.13 xextproto xtrans' 13131 13132 13133 13134if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 13135 if test -n "$ac_tool_prefix"; then 13136 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 13137set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 13138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13139$as_echo_n "checking for $ac_word... " >&6; } 13140if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 13141 $as_echo_n "(cached) " >&6 13142else 13143 case $PKG_CONFIG in 13144 [\\/]* | ?:[\\/]*) 13145 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 13146 ;; 13147 *) 13148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13149for as_dir in $PATH 13150do 13151 IFS=$as_save_IFS 13152 test -z "$as_dir" && as_dir=. 13153 for ac_exec_ext in '' $ac_executable_extensions; do 13154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13155 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13157 break 2 13158 fi 13159done 13160 done 13161IFS=$as_save_IFS 13162 13163 ;; 13164esac 13165fi 13166PKG_CONFIG=$ac_cv_path_PKG_CONFIG 13167if test -n "$PKG_CONFIG"; then 13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13169$as_echo "$PKG_CONFIG" >&6; } 13170else 13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13172$as_echo "no" >&6; } 13173fi 13174 13175 13176fi 13177if test -z "$ac_cv_path_PKG_CONFIG"; then 13178 ac_pt_PKG_CONFIG=$PKG_CONFIG 13179 # Extract the first word of "pkg-config", so it can be a program name with args. 13180set dummy pkg-config; ac_word=$2 13181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13182$as_echo_n "checking for $ac_word... " >&6; } 13183if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : 13184 $as_echo_n "(cached) " >&6 13185else 13186 case $ac_pt_PKG_CONFIG in 13187 [\\/]* | ?:[\\/]*) 13188 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 13189 ;; 13190 *) 13191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13192for as_dir in $PATH 13193do 13194 IFS=$as_save_IFS 13195 test -z "$as_dir" && as_dir=. 13196 for ac_exec_ext in '' $ac_executable_extensions; do 13197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13198 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13200 break 2 13201 fi 13202done 13203 done 13204IFS=$as_save_IFS 13205 13206 ;; 13207esac 13208fi 13209ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 13210if test -n "$ac_pt_PKG_CONFIG"; then 13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 13212$as_echo "$ac_pt_PKG_CONFIG" >&6; } 13213else 13214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13215$as_echo "no" >&6; } 13216fi 13217 13218 if test "x$ac_pt_PKG_CONFIG" = x; then 13219 PKG_CONFIG="" 13220 else 13221 case $cross_compiling:$ac_tool_warned in 13222yes:) 13223{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13224$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13225ac_tool_warned=yes ;; 13226esac 13227 PKG_CONFIG=$ac_pt_PKG_CONFIG 13228 fi 13229else 13230 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 13231fi 13232 13233fi 13234if test -n "$PKG_CONFIG"; then 13235 _pkg_min_version=0.9.0 13236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 13237$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 13238 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13240$as_echo "yes" >&6; } 13241 else 13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13243$as_echo "no" >&6; } 13244 PKG_CONFIG="" 13245 fi 13246 13247fi 13248 13249case "$ac_cv_use_xcb" in 13250no) 13251 X11_REQUIRES="${X11_REQUIRES} xau xcmiscproto bigreqsproto" 13252 X11_EXTRA_DEPS="xau" 13253 13254pkg_failed=no 13255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDMCP" >&5 13256$as_echo_n "checking for XDMCP... " >&6; } 13257 13258if test -n "$XDMCP_CFLAGS"; then 13259 pkg_cv_XDMCP_CFLAGS="$XDMCP_CFLAGS" 13260 elif test -n "$PKG_CONFIG"; then 13261 if test -n "$PKG_CONFIG" && \ 13262 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5 13263 ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5 13264 ac_status=$? 13265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13266 test $ac_status = 0; }; then 13267 pkg_cv_XDMCP_CFLAGS=`$PKG_CONFIG --cflags "xdmcp" 2>/dev/null` 13268else 13269 pkg_failed=yes 13270fi 13271 else 13272 pkg_failed=untried 13273fi 13274if test -n "$XDMCP_LIBS"; then 13275 pkg_cv_XDMCP_LIBS="$XDMCP_LIBS" 13276 elif test -n "$PKG_CONFIG"; then 13277 if test -n "$PKG_CONFIG" && \ 13278 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5 13279 ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5 13280 ac_status=$? 13281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13282 test $ac_status = 0; }; then 13283 pkg_cv_XDMCP_LIBS=`$PKG_CONFIG --libs "xdmcp" 2>/dev/null` 13284else 13285 pkg_failed=yes 13286fi 13287 else 13288 pkg_failed=untried 13289fi 13290 13291 13292 13293if test $pkg_failed = yes; then 13294 13295if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13296 _pkg_short_errors_supported=yes 13297else 13298 _pkg_short_errors_supported=no 13299fi 13300 if test $_pkg_short_errors_supported = yes; then 13301 XDMCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xdmcp" 2>&1` 13302 else 13303 XDMCP_PKG_ERRORS=`$PKG_CONFIG --print-errors "xdmcp" 2>&1` 13304 fi 13305 # Put the nasty error message in config.log where it belongs 13306 echo "$XDMCP_PKG_ERRORS" >&5 13307 13308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13309$as_echo "no" >&6; } 13310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13311$as_echo "no" >&6; } 13312elif test $pkg_failed = untried; then 13313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13314$as_echo "no" >&6; } 13315else 13316 XDMCP_CFLAGS=$pkg_cv_XDMCP_CFLAGS 13317 XDMCP_LIBS=$pkg_cv_XDMCP_LIBS 13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13319$as_echo "yes" >&6; } 13320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XdmcpWrap in -lXdmcp" >&5 13321$as_echo_n "checking for XdmcpWrap in -lXdmcp... " >&6; } 13322if test "${ac_cv_lib_Xdmcp_XdmcpWrap+set}" = set; then : 13323 $as_echo_n "(cached) " >&6 13324else 13325 ac_check_lib_save_LIBS=$LIBS 13326LIBS="-lXdmcp $XDMCP_LIBS $LIBS" 13327cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13328/* end confdefs.h. */ 13329 13330/* Override any GCC internal prototype to avoid an error. 13331 Use char because int might match the return type of a GCC 13332 builtin and then its argument prototype would still apply. */ 13333#ifdef __cplusplus 13334extern "C" 13335#endif 13336char XdmcpWrap (); 13337int 13338main () 13339{ 13340return XdmcpWrap (); 13341 ; 13342 return 0; 13343} 13344_ACEOF 13345if ac_fn_c_try_link "$LINENO"; then : 13346 ac_cv_lib_Xdmcp_XdmcpWrap=yes 13347else 13348 ac_cv_lib_Xdmcp_XdmcpWrap=no 13349fi 13350rm -f core conftest.err conftest.$ac_objext \ 13351 conftest$ac_exeext conftest.$ac_ext 13352LIBS=$ac_check_lib_save_LIBS 13353fi 13354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp_XdmcpWrap" >&5 13355$as_echo "$ac_cv_lib_Xdmcp_XdmcpWrap" >&6; } 13356if test "x$ac_cv_lib_Xdmcp_XdmcpWrap" = x""yes; then : 13357 13358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XdmcpWrap in -lXdmcp" >&5 13359$as_echo_n "checking for XdmcpWrap in -lXdmcp... " >&6; } 13360if test "${ac_cv_lib_Xdmcp_XdmcpWrap+set}" = set; then : 13361 $as_echo_n "(cached) " >&6 13362else 13363 ac_check_lib_save_LIBS=$LIBS 13364LIBS="-lXdmcp $XDMCP_LIBS $LIBS" 13365cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13366/* end confdefs.h. */ 13367 13368/* Override any GCC internal prototype to avoid an error. 13369 Use char because int might match the return type of a GCC 13370 builtin and then its argument prototype would still apply. */ 13371#ifdef __cplusplus 13372extern "C" 13373#endif 13374char XdmcpWrap (); 13375int 13376main () 13377{ 13378return XdmcpWrap (); 13379 ; 13380 return 0; 13381} 13382_ACEOF 13383if ac_fn_c_try_link "$LINENO"; then : 13384 ac_cv_lib_Xdmcp_XdmcpWrap=yes 13385else 13386 ac_cv_lib_Xdmcp_XdmcpWrap=no 13387fi 13388rm -f core conftest.err conftest.$ac_objext \ 13389 conftest$ac_exeext conftest.$ac_ext 13390LIBS=$ac_check_lib_save_LIBS 13391fi 13392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp_XdmcpWrap" >&5 13393$as_echo "$ac_cv_lib_Xdmcp_XdmcpWrap" >&6; } 13394if test "x$ac_cv_lib_Xdmcp_XdmcpWrap" = x""yes; then : 13395 xdmauth="yes" 13396else 13397 xdmauth="no" 13398fi 13399 13400 X11_EXTRA_DEPS="$X11_EXTRA_DEPS xdmcp" 13401 13402else 13403 13404 XDMCP_CFLAGS= 13405 XDMCP_LIBS= 13406 13407fi 13408 13409fi 13410 13411$as_echo "#define USE_XCB 0" >>confdefs.h 13412 13413 ;; 13414*) 13415 X11_REQUIRES="${X11_REQUIRES} xcb >= 1.1.92" 13416 X11_EXTRA_DEPS="xcb >= 1.1.92" 13417 xdmauth="no" # XCB handles all auth 13418 13419$as_echo "#define USE_XCB 1" >>confdefs.h 13420 13421 ;; 13422esac 13423 13424 13425 13426 13427# Transport selection macro from xtrans.m4 13428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 13429$as_echo_n "checking return type of signal handlers... " >&6; } 13430if test "${ac_cv_type_signal+set}" = set; then : 13431 $as_echo_n "(cached) " >&6 13432else 13433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13434/* end confdefs.h. */ 13435#include <sys/types.h> 13436#include <signal.h> 13437 13438int 13439main () 13440{ 13441return *(signal (0, 0)) (0) == 1; 13442 ; 13443 return 0; 13444} 13445_ACEOF 13446if ac_fn_c_try_compile "$LINENO"; then : 13447 ac_cv_type_signal=int 13448else 13449 ac_cv_type_signal=void 13450fi 13451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13452fi 13453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 13454$as_echo "$ac_cv_type_signal" >&6; } 13455 13456cat >>confdefs.h <<_ACEOF 13457#define RETSIGTYPE $ac_cv_type_signal 13458_ACEOF 13459 13460 13461 13462 13463 13464 case $host_os in 13465 mingw*) unixdef="no" ;; 13466 *) unixdef="yes" ;; 13467 esac 13468 # Check whether --enable-unix-transport was given. 13469if test "${enable_unix_transport+set}" = set; then : 13470 enableval=$enable_unix_transport; UNIXCONN=$enableval 13471else 13472 UNIXCONN=$unixdef 13473fi 13474 13475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5 13476$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; } 13477 if test "$UNIXCONN" = "yes"; then 13478 13479$as_echo "#define UNIXCONN 1" >>confdefs.h 13480 13481 fi 13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5 13483$as_echo "$UNIXCONN" >&6; } 13484 # Check whether --enable-tcp-transport was given. 13485if test "${enable_tcp_transport+set}" = set; then : 13486 enableval=$enable_tcp_transport; TCPCONN=$enableval 13487else 13488 TCPCONN=yes 13489fi 13490 13491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5 13492$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; } 13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5 13494$as_echo "$TCPCONN" >&6; } 13495 if test "$TCPCONN" = "yes"; then 13496 13497$as_echo "#define TCPCONN 1" >>confdefs.h 13498 13499 13500 # SVR4 hides these in libraries other than libc 13501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 13502$as_echo_n "checking for library containing socket... " >&6; } 13503if test "${ac_cv_search_socket+set}" = set; then : 13504 $as_echo_n "(cached) " >&6 13505else 13506 ac_func_search_save_LIBS=$LIBS 13507cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13508/* end confdefs.h. */ 13509 13510/* Override any GCC internal prototype to avoid an error. 13511 Use char because int might match the return type of a GCC 13512 builtin and then its argument prototype would still apply. */ 13513#ifdef __cplusplus 13514extern "C" 13515#endif 13516char socket (); 13517int 13518main () 13519{ 13520return socket (); 13521 ; 13522 return 0; 13523} 13524_ACEOF 13525for ac_lib in '' socket; do 13526 if test -z "$ac_lib"; then 13527 ac_res="none required" 13528 else 13529 ac_res=-l$ac_lib 13530 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13531 fi 13532 if ac_fn_c_try_link "$LINENO"; then : 13533 ac_cv_search_socket=$ac_res 13534fi 13535rm -f core conftest.err conftest.$ac_objext \ 13536 conftest$ac_exeext 13537 if test "${ac_cv_search_socket+set}" = set; then : 13538 break 13539fi 13540done 13541if test "${ac_cv_search_socket+set}" = set; then : 13542 13543else 13544 ac_cv_search_socket=no 13545fi 13546rm conftest.$ac_ext 13547LIBS=$ac_func_search_save_LIBS 13548fi 13549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 13550$as_echo "$ac_cv_search_socket" >&6; } 13551ac_res=$ac_cv_search_socket 13552if test "$ac_res" != no; then : 13553 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13554 13555fi 13556 13557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 13558$as_echo_n "checking for library containing gethostbyname... " >&6; } 13559if test "${ac_cv_search_gethostbyname+set}" = set; then : 13560 $as_echo_n "(cached) " >&6 13561else 13562 ac_func_search_save_LIBS=$LIBS 13563cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13564/* end confdefs.h. */ 13565 13566/* Override any GCC internal prototype to avoid an error. 13567 Use char because int might match the return type of a GCC 13568 builtin and then its argument prototype would still apply. */ 13569#ifdef __cplusplus 13570extern "C" 13571#endif 13572char gethostbyname (); 13573int 13574main () 13575{ 13576return gethostbyname (); 13577 ; 13578 return 0; 13579} 13580_ACEOF 13581for ac_lib in '' nsl; do 13582 if test -z "$ac_lib"; then 13583 ac_res="none required" 13584 else 13585 ac_res=-l$ac_lib 13586 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13587 fi 13588 if ac_fn_c_try_link "$LINENO"; then : 13589 ac_cv_search_gethostbyname=$ac_res 13590fi 13591rm -f core conftest.err conftest.$ac_objext \ 13592 conftest$ac_exeext 13593 if test "${ac_cv_search_gethostbyname+set}" = set; then : 13594 break 13595fi 13596done 13597if test "${ac_cv_search_gethostbyname+set}" = set; then : 13598 13599else 13600 ac_cv_search_gethostbyname=no 13601fi 13602rm conftest.$ac_ext 13603LIBS=$ac_func_search_save_LIBS 13604fi 13605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 13606$as_echo "$ac_cv_search_gethostbyname" >&6; } 13607ac_res=$ac_cv_search_gethostbyname 13608if test "$ac_res" != no; then : 13609 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13610 13611fi 13612 13613 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then 13614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 13615$as_echo_n "checking for main in -lws2_32... " >&6; } 13616if test "${ac_cv_lib_ws2_32_main+set}" = set; then : 13617 $as_echo_n "(cached) " >&6 13618else 13619 ac_check_lib_save_LIBS=$LIBS 13620LIBS="-lws2_32 $LIBS" 13621cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13622/* end confdefs.h. */ 13623 13624 13625int 13626main () 13627{ 13628return main (); 13629 ; 13630 return 0; 13631} 13632_ACEOF 13633if ac_fn_c_try_link "$LINENO"; then : 13634 ac_cv_lib_ws2_32_main=yes 13635else 13636 ac_cv_lib_ws2_32_main=no 13637fi 13638rm -f core conftest.err conftest.$ac_objext \ 13639 conftest$ac_exeext conftest.$ac_ext 13640LIBS=$ac_check_lib_save_LIBS 13641fi 13642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 13643$as_echo "$ac_cv_lib_ws2_32_main" >&6; } 13644if test "x$ac_cv_lib_ws2_32_main" = x""yes; then : 13645 cat >>confdefs.h <<_ACEOF 13646#define HAVE_LIBWS2_32 1 13647_ACEOF 13648 13649 LIBS="-lws2_32 $LIBS" 13650 13651fi 13652ac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main 13653 13654 fi 13655 13656 # Needs to come after above checks for libsocket & libnsl for SVR4 systems 13657 # Check whether --enable-ipv6 was given. 13658if test "${enable_ipv6+set}" = set; then : 13659 enableval=$enable_ipv6; IPV6CONN=$enableval 13660else 13661 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 13662if test "x$ac_cv_func_getaddrinfo" = x""yes; then : 13663 IPV6CONN=yes 13664else 13665 IPV6CONN=no 13666fi 13667 13668fi 13669 13670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5 13671$as_echo_n "checking if IPv6 support should be built... " >&6; } 13672 if test "$IPV6CONN" = "yes"; then 13673 13674$as_echo "#define IPv6 1" >>confdefs.h 13675 13676 fi 13677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5 13678$as_echo "$IPV6CONN" >&6; } 13679 13680 # 4.3BSD-Reno added a new member to struct sockaddr_in 13681 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" " 13682#include <sys/types.h> 13683#include <sys/socket.h> 13684#include <netinet/in.h> 13685 13686" 13687if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = x""yes; then : 13688 13689$as_echo "#define BSD44SOCKETS 1" >>confdefs.h 13690 13691fi 13692 13693 13694 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc. 13695 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 13696$ac_includes_default 13697#include <sys/socket.h> 13698" 13699if test "x$ac_cv_type_socklen_t" = x""yes; then : 13700 13701cat >>confdefs.h <<_ACEOF 13702#define HAVE_SOCKLEN_T 1 13703_ACEOF 13704 13705 13706fi 13707 13708 13709 13710 fi 13711 case $host_os in 13712 solaris*|sco*|sysv4*) localdef="yes" ;; 13713 *) localdef="no" ;; 13714 esac 13715 # Check whether --enable-local-transport was given. 13716if test "${enable_local_transport+set}" = set; then : 13717 enableval=$enable_local_transport; LOCALCONN=$enableval 13718else 13719 LOCALCONN=$localdef 13720fi 13721 13722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5 13723$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; } 13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5 13725$as_echo "$LOCALCONN" >&6; } 13726 if test "$LOCALCONN" = "yes"; then 13727 13728$as_echo "#define LOCALCONN 1" >>confdefs.h 13729 13730 fi 13731 13732 13733 13734# Secure RPC detection macro from xtrans.m4 13735 13736 # Check whether --enable-secure-rpc was given. 13737if test "${enable_secure_rpc+set}" = set; then : 13738 enableval=$enable_secure_rpc; SECURE_RPC=$enableval 13739else 13740 SECURE_RPC="try" 13741fi 13742 13743 13744 if test "x$SECURE_RPC" = "xyes" -o "x$SECURE_RPC" = "xtry" ; then 13745 FOUND_SECURE_RPC="no" 13746 for ac_func in authdes_seccreate authdes_create 13747do : 13748 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13749ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13750eval as_val=\$$as_ac_var 13751 if test "x$as_val" = x""yes; then : 13752 cat >>confdefs.h <<_ACEOF 13753#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13754_ACEOF 13755 FOUND_SECURE_RPC="yes" 13756fi 13757done 13758 13759 if test "x$FOUND_SECURE_RPC" = "xno" ; then 13760 if test "x$SECURE_RPC" = "xyes" ; then 13761 as_fn_error "Secure RPC requested, but required functions not found" "$LINENO" 5 13762 fi 13763 SECURE_RPC="no" 13764 else 13765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsecretkey" >&5 13766$as_echo_n "checking for library containing getsecretkey... " >&6; } 13767if test "${ac_cv_search_getsecretkey+set}" = set; then : 13768 $as_echo_n "(cached) " >&6 13769else 13770 ac_func_search_save_LIBS=$LIBS 13771cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13772/* end confdefs.h. */ 13773 13774/* Override any GCC internal prototype to avoid an error. 13775 Use char because int might match the return type of a GCC 13776 builtin and then its argument prototype would still apply. */ 13777#ifdef __cplusplus 13778extern "C" 13779#endif 13780char getsecretkey (); 13781int 13782main () 13783{ 13784return getsecretkey (); 13785 ; 13786 return 0; 13787} 13788_ACEOF 13789for ac_lib in '' rpcsvc; do 13790 if test -z "$ac_lib"; then 13791 ac_res="none required" 13792 else 13793 ac_res=-l$ac_lib 13794 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13795 fi 13796 if ac_fn_c_try_link "$LINENO"; then : 13797 ac_cv_search_getsecretkey=$ac_res 13798fi 13799rm -f core conftest.err conftest.$ac_objext \ 13800 conftest$ac_exeext 13801 if test "${ac_cv_search_getsecretkey+set}" = set; then : 13802 break 13803fi 13804done 13805if test "${ac_cv_search_getsecretkey+set}" = set; then : 13806 13807else 13808 ac_cv_search_getsecretkey=no 13809fi 13810rm conftest.$ac_ext 13811LIBS=$ac_func_search_save_LIBS 13812fi 13813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsecretkey" >&5 13814$as_echo "$ac_cv_search_getsecretkey" >&6; } 13815ac_res=$ac_cv_search_getsecretkey 13816if test "$ac_res" != no; then : 13817 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13818 13819fi 13820 13821 SECURE_RPC="yes" 13822 fi 13823 fi 13824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Secure RPC authentication (\"SUN-DES-1\") should be supported" >&5 13825$as_echo_n "checking if Secure RPC authentication (\"SUN-DES-1\") should be supported... " >&6; } 13826 if test "x$SECURE_RPC" = "xyes" ; then 13827 13828$as_echo "#define SECURE_RPC 1" >>confdefs.h 13829 13830 fi 13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SECURE_RPC" >&5 13832$as_echo "$SECURE_RPC" >&6; } 13833 13834 13835# Preferred order to try transports for local connections 13836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what order to try transports in for local connections" >&5 13837$as_echo_n "checking what order to try transports in for local connections... " >&6; } 13838DEFAULT_LOCAL_TRANS="" 13839case $host_os in 13840 solaris*) 13841 # On Solaris 2.6 through 9, named pipes (LOCAL_TRANS) were 13842 # faster than Unix domain sockets, but on Solaris 10 & later, 13843 # Unix domain sockets are faster now. 13844 if test "$UNIXCONN" = "yes" ; then 13845 if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then 13846 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}," 13847 fi 13848 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}UNIX_TRANS" 13849 fi 13850 if test "$LOCALCONN" = "yes" ; then 13851 if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then 13852 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}," 13853 fi 13854 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}LOCAL_TRANS" 13855 fi 13856 if test "$TCPCONN" = "yes" ; then 13857 if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then 13858 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}," 13859 fi 13860 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}TCP_TRANS" 13861 fi 13862 ;; 13863 linux*) 13864 # LOCAL_TRANS is used for abstract sockets. 13865 if test "$UNIXCONN" = "yes" ; then 13866 if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then 13867 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}," 13868 fi 13869 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}LOCAL_TRANS,UNIX_TRANS" 13870 fi 13871 if test "$TCPCONN" = "yes" ; then 13872 if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then 13873 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}," 13874 fi 13875 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}TCP_TRANS" 13876 fi 13877 ;; 13878 *) 13879 if test "$LOCALCONN" = "yes" ; then 13880 if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then 13881 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}," 13882 fi 13883 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}LOCAL_TRANS" 13884 fi 13885 if test "$UNIXCONN" = "yes" ; then 13886 if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then 13887 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}," 13888 fi 13889 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}UNIX_TRANS" 13890 fi 13891 if test "$TCPCONN" = "yes" ; then 13892 if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then 13893 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}," 13894 fi 13895 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}TCP_TRANS" 13896 fi 13897 ;; 13898esac 13899 13900 13901# Check whether --with-local-transport-order was given. 13902if test "${with_local_transport_order+set}" = set; then : 13903 withval=$with_local_transport_order; LOCAL_TRANSPORT_LIST=$withval 13904else 13905 LOCAL_TRANSPORT_LIST=$DEFAULT_LOCAL_TRANS 13906fi 13907 13908 13909cat >>confdefs.h <<_ACEOF 13910#define LOCAL_TRANSPORT_LIST $LOCAL_TRANSPORT_LIST 13911_ACEOF 13912 13913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCAL_TRANSPORT_LIST" >&5 13914$as_echo "$LOCAL_TRANSPORT_LIST" >&6; } 13915 13916# Check for dlopen 13917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if run-time linking is supported" >&5 13918$as_echo_n "checking if run-time linking is supported... " >&6; } 13919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 13920$as_echo_n "checking for library containing dlopen... " >&6; } 13921if test "${ac_cv_search_dlopen+set}" = set; then : 13922 $as_echo_n "(cached) " >&6 13923else 13924 ac_func_search_save_LIBS=$LIBS 13925cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13926/* end confdefs.h. */ 13927 13928/* Override any GCC internal prototype to avoid an error. 13929 Use char because int might match the return type of a GCC 13930 builtin and then its argument prototype would still apply. */ 13931#ifdef __cplusplus 13932extern "C" 13933#endif 13934char dlopen (); 13935int 13936main () 13937{ 13938return dlopen (); 13939 ; 13940 return 0; 13941} 13942_ACEOF 13943for ac_lib in '' dl svld; do 13944 if test -z "$ac_lib"; then 13945 ac_res="none required" 13946 else 13947 ac_res=-l$ac_lib 13948 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13949 fi 13950 if ac_fn_c_try_link "$LINENO"; then : 13951 ac_cv_search_dlopen=$ac_res 13952fi 13953rm -f core conftest.err conftest.$ac_objext \ 13954 conftest$ac_exeext 13955 if test "${ac_cv_search_dlopen+set}" = set; then : 13956 break 13957fi 13958done 13959if test "${ac_cv_search_dlopen+set}" = set; then : 13960 13961else 13962 ac_cv_search_dlopen=no 13963fi 13964rm conftest.$ac_ext 13965LIBS=$ac_func_search_save_LIBS 13966fi 13967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 13968$as_echo "$ac_cv_search_dlopen" >&6; } 13969ac_res=$ac_cv_search_dlopen 13970if test "$ac_res" != no; then : 13971 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13972 13973fi 13974 13975if test "x$ac_cv_search_dlopen" = xno; then 13976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5 13977$as_echo_n "checking for library containing shl_load... " >&6; } 13978if test "${ac_cv_search_shl_load+set}" = set; then : 13979 $as_echo_n "(cached) " >&6 13980else 13981 ac_func_search_save_LIBS=$LIBS 13982cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13983/* end confdefs.h. */ 13984 13985/* Override any GCC internal prototype to avoid an error. 13986 Use char because int might match the return type of a GCC 13987 builtin and then its argument prototype would still apply. */ 13988#ifdef __cplusplus 13989extern "C" 13990#endif 13991char shl_load (); 13992int 13993main () 13994{ 13995return shl_load (); 13996 ; 13997 return 0; 13998} 13999_ACEOF 14000for ac_lib in '' dld; do 14001 if test -z "$ac_lib"; then 14002 ac_res="none required" 14003 else 14004 ac_res=-l$ac_lib 14005 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14006 fi 14007 if ac_fn_c_try_link "$LINENO"; then : 14008 ac_cv_search_shl_load=$ac_res 14009fi 14010rm -f core conftest.err conftest.$ac_objext \ 14011 conftest$ac_exeext 14012 if test "${ac_cv_search_shl_load+set}" = set; then : 14013 break 14014fi 14015done 14016if test "${ac_cv_search_shl_load+set}" = set; then : 14017 14018else 14019 ac_cv_search_shl_load=no 14020fi 14021rm conftest.$ac_ext 14022LIBS=$ac_func_search_save_LIBS 14023fi 14024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5 14025$as_echo "$ac_cv_search_shl_load" >&6; } 14026ac_res=$ac_cv_search_shl_load 14027if test "$ac_res" != no; then : 14028 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14029 14030fi 14031 14032 if test "x$ac_cv_search_shl_load" != xno; then 14033 14034$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h 14035 14036 for ac_header in dl.h 14037do : 14038 ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default" 14039if test "x$ac_cv_header_dl_h" = x""yes; then : 14040 cat >>confdefs.h <<_ACEOF 14041#define HAVE_DL_H 1 14042_ACEOF 14043 14044fi 14045 14046done 14047 14048 fi 14049else 14050 14051$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h 14052 14053 for ac_header in dlfcn.h 14054do : 14055 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 14056if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 14057 cat >>confdefs.h <<_ACEOF 14058#define HAVE_DLFCN_H 1 14059_ACEOF 14060 14061fi 14062 14063done 14064 14065fi 14066if test x$ac_cv_header_dlcfn_h -o x$ac_cv_header_dl_h; then 14067 HAVE_LOADABLE_MODULES=yes 14068else 14069 HAVE_LOADABLE_MODULES=no 14070fi 14071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_LOADABLE_MODULES" >&5 14072$as_echo "$HAVE_LOADABLE_MODULES" >&6; } 14073 14074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if loadable i18n module support should be enabled" >&5 14075$as_echo_n "checking if loadable i18n module support should be enabled... " >&6; } 14076# Check whether --enable-loadable-i18n was given. 14077if test "${enable_loadable_i18n+set}" = set; then : 14078 enableval=$enable_loadable_i18n; XLIB_LOADABLE_I18N=$enableval 14079else 14080 XLIB_LOADABLE_I18N="no" 14081fi 14082 14083if test x$XLIB_LOADABLE_I18N = xyes; then 14084 if test x$HAVE_LOADABLE_MODULES = xno; then 14085 as_fn_error "Loadable module support is required to enable loadable i18n module support" "$LINENO" 5 14086 fi 14087 14088$as_echo "#define USE_DYNAMIC_LC 1" >>confdefs.h 14089 14090 I18N_MODULE_LIBS='${top_builddir}/src/libX11.la' 14091 14092fi 14093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XLIB_LOADABLE_I18N" >&5 14094$as_echo "$XLIB_LOADABLE_I18N" >&6; } 14095 14096 if test x$XLIB_LOADABLE_I18N = xyes; then 14097 XLIB_LOADABLE_I18N_TRUE= 14098 XLIB_LOADABLE_I18N_FALSE='#' 14099else 14100 XLIB_LOADABLE_I18N_TRUE='#' 14101 XLIB_LOADABLE_I18N_FALSE= 14102fi 14103 14104 14105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if loadable Xcursor library support should be enabled" >&5 14106$as_echo_n "checking if loadable Xcursor library support should be enabled... " >&6; } 14107# Check whether --enable-loadable-xcursor was given. 14108if test "${enable_loadable_xcursor+set}" = set; then : 14109 enableval=$enable_loadable_xcursor; XLIB_LOADABLE_XCURSOR=$enableval 14110else 14111 XLIB_LOADABLE_XCURSOR=$HAVE_LOADABLE_MODULES 14112fi 14113 14114if test x$XLIB_LOADABLE_XCURSOR = xyes; then 14115 14116$as_echo "#define USE_DYNAMIC_XCURSOR 1" >>confdefs.h 14117 14118fi 14119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XLIB_LOADABLE_XCURSOR" >&5 14120$as_echo "$XLIB_LOADABLE_XCURSOR" >&6; } 14121 14122# Checks for header files. 14123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 14124$as_echo_n "checking for ANSI C header files... " >&6; } 14125if test "${ac_cv_header_stdc+set}" = set; then : 14126 $as_echo_n "(cached) " >&6 14127else 14128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14129/* end confdefs.h. */ 14130#include <stdlib.h> 14131#include <stdarg.h> 14132#include <string.h> 14133#include <float.h> 14134 14135int 14136main () 14137{ 14138 14139 ; 14140 return 0; 14141} 14142_ACEOF 14143if ac_fn_c_try_compile "$LINENO"; then : 14144 ac_cv_header_stdc=yes 14145else 14146 ac_cv_header_stdc=no 14147fi 14148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14149 14150if test $ac_cv_header_stdc = yes; then 14151 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 14152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14153/* end confdefs.h. */ 14154#include <string.h> 14155 14156_ACEOF 14157if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14158 $EGREP "memchr" >/dev/null 2>&1; then : 14159 14160else 14161 ac_cv_header_stdc=no 14162fi 14163rm -f conftest* 14164 14165fi 14166 14167if test $ac_cv_header_stdc = yes; then 14168 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 14169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14170/* end confdefs.h. */ 14171#include <stdlib.h> 14172 14173_ACEOF 14174if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14175 $EGREP "free" >/dev/null 2>&1; then : 14176 14177else 14178 ac_cv_header_stdc=no 14179fi 14180rm -f conftest* 14181 14182fi 14183 14184if test $ac_cv_header_stdc = yes; then 14185 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 14186 if test "$cross_compiling" = yes; then : 14187 : 14188else 14189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14190/* end confdefs.h. */ 14191#include <ctype.h> 14192#include <stdlib.h> 14193#if ((' ' & 0x0FF) == 0x020) 14194# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 14195# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 14196#else 14197# define ISLOWER(c) \ 14198 (('a' <= (c) && (c) <= 'i') \ 14199 || ('j' <= (c) && (c) <= 'r') \ 14200 || ('s' <= (c) && (c) <= 'z')) 14201# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 14202#endif 14203 14204#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 14205int 14206main () 14207{ 14208 int i; 14209 for (i = 0; i < 256; i++) 14210 if (XOR (islower (i), ISLOWER (i)) 14211 || toupper (i) != TOUPPER (i)) 14212 return 2; 14213 return 0; 14214} 14215_ACEOF 14216if ac_fn_c_try_run "$LINENO"; then : 14217 14218else 14219 ac_cv_header_stdc=no 14220fi 14221rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14222 conftest.$ac_objext conftest.beam conftest.$ac_ext 14223fi 14224 14225fi 14226fi 14227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 14228$as_echo "$ac_cv_header_stdc" >&6; } 14229if test $ac_cv_header_stdc = yes; then 14230 14231$as_echo "#define STDC_HEADERS 1" >>confdefs.h 14232 14233fi 14234 14235for ac_header in sys/select.h 14236do : 14237 ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default" 14238if test "x$ac_cv_header_sys_select_h" = x""yes; then : 14239 cat >>confdefs.h <<_ACEOF 14240#define HAVE_SYS_SELECT_H 1 14241_ACEOF 14242 14243fi 14244 14245done 14246 14247 14248# Checks for typedefs, structures, and compiler characteristics. 14249 14250# Checks for library functions. 14251for ac_func in strtol 14252do : 14253 ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol" 14254if test "x$ac_cv_func_strtol" = x""yes; then : 14255 cat >>confdefs.h <<_ACEOF 14256#define HAVE_STRTOL 1 14257_ACEOF 14258 14259fi 14260done 14261 14262# Used in lcFile.c (see also --enable-xlocaledir settings below) 14263XLOCALEDIR_IS_SAFE="no" 14264ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid" 14265if test "x$ac_cv_func_issetugid" = x""yes; then : 14266 XLOCALEDIR_IS_SAFE="yes" 14267 14268$as_echo "#define HASSETUGID 1" >>confdefs.h 14269 14270fi 14271 14272ac_fn_c_check_func "$LINENO" "getresuid" "ac_cv_func_getresuid" 14273if test "x$ac_cv_func_getresuid" = x""yes; then : 14274 XLOCALEDIR_IS_SAFE="yes" 14275 14276$as_echo "#define HASGETRESUID 1" >>confdefs.h 14277 14278fi 14279 14280# Used in Font.c 14281ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 14282if test "x$ac_cv_func_shmat" = x""yes; then : 14283 14284$as_echo "#define HAS_SHM 1" >>confdefs.h 14285 14286fi 14287 14288 14289# Checks for system services 14290 14291# arch specific things 14292WCHAR32="1" 14293case $target_alias in 14294 *os2*) os2="true" ; WCHAR32="0" ;; 14295 *) ;; 14296esac 14297 14298 14299 if test x$os2 = xtrue; then 14300 OS2_TRUE= 14301 OS2_FALSE='#' 14302else 14303 OS2_TRUE='#' 14304 OS2_FALSE= 14305fi 14306 14307 14308 14309# Check whether --with-launchd was given. 14310if test "${with_launchd+set}" = set; then : 14311 withval=$with_launchd; LAUNCHD=$withval 14312else 14313 LAUNCHD=auto 14314fi 14315 14316if test "x$LAUNCHD" = xauto; then 14317 unset LAUNCHD 14318 # Extract the first word of "launchd", so it can be a program name with args. 14319set dummy launchd; ac_word=$2 14320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14321$as_echo_n "checking for $ac_word... " >&6; } 14322if test "${ac_cv_prog_LAUNCHD+set}" = set; then : 14323 $as_echo_n "(cached) " >&6 14324else 14325 if test -n "$LAUNCHD"; then 14326 ac_cv_prog_LAUNCHD="$LAUNCHD" # Let the user override the test. 14327else 14328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14329for as_dir in $PATH$PATH_SEPARATOR/sbin 14330do 14331 IFS=$as_save_IFS 14332 test -z "$as_dir" && as_dir=. 14333 for ac_exec_ext in '' $ac_executable_extensions; do 14334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 14335 ac_cv_prog_LAUNCHD="yes" 14336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14337 break 2 14338 fi 14339done 14340 done 14341IFS=$as_save_IFS 14342 14343 test -z "$ac_cv_prog_LAUNCHD" && ac_cv_prog_LAUNCHD="no" 14344fi 14345fi 14346LAUNCHD=$ac_cv_prog_LAUNCHD 14347if test -n "$LAUNCHD"; then 14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LAUNCHD" >&5 14349$as_echo "$LAUNCHD" >&6; } 14350else 14351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14352$as_echo "no" >&6; } 14353fi 14354 14355 14356fi 14357 14358if test "x$LAUNCHD" = xyes ; then 14359 14360$as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h 14361 14362 14363$as_echo "#define TRANS_REOPEN 1" >>confdefs.h 14364 14365fi 14366 14367# Check whether --enable-xthreads was given. 14368if test "${enable_xthreads+set}" = set; then : 14369 enableval=$enable_xthreads; xthreads=$enableval 14370else 14371 xthreads=yes 14372fi 14373 14374 14375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwuid_r in -lc" >&5 14376$as_echo_n "checking for getpwuid_r in -lc... " >&6; } 14377if test "${ac_cv_lib_c_getpwuid_r+set}" = set; then : 14378 $as_echo_n "(cached) " >&6 14379else 14380 ac_check_lib_save_LIBS=$LIBS 14381LIBS="-lc $LIBS" 14382cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14383/* end confdefs.h. */ 14384 14385/* Override any GCC internal prototype to avoid an error. 14386 Use char because int might match the return type of a GCC 14387 builtin and then its argument prototype would still apply. */ 14388#ifdef __cplusplus 14389extern "C" 14390#endif 14391char getpwuid_r (); 14392int 14393main () 14394{ 14395return getpwuid_r (); 14396 ; 14397 return 0; 14398} 14399_ACEOF 14400if ac_fn_c_try_link "$LINENO"; then : 14401 ac_cv_lib_c_getpwuid_r=yes 14402else 14403 ac_cv_lib_c_getpwuid_r=no 14404fi 14405rm -f core conftest.err conftest.$ac_objext \ 14406 conftest$ac_exeext conftest.$ac_ext 14407LIBS=$ac_check_lib_save_LIBS 14408fi 14409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getpwuid_r" >&5 14410$as_echo "$ac_cv_lib_c_getpwuid_r" >&6; } 14411if test "x$ac_cv_lib_c_getpwuid_r" = x""yes; then : 14412 mtsafeapi="yes" 14413else 14414 mtsafeapi="no" 14415fi 14416 14417 14418case x$xthreads in 14419xyes) 14420 14421$as_echo "#define XTHREADS 1" >>confdefs.h 14422 14423 if test x$mtsafeapi = xyes 14424 then 14425 14426$as_echo "#define XUSE_MTSAFE_API 1" >>confdefs.h 14427 14428 fi 14429 ;; 14430*) 14431 ;; 14432esac 14433 14434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lc" >&5 14435$as_echo_n "checking for pthread_self in -lc... " >&6; } 14436if test "${ac_cv_lib_c_pthread_self+set}" = set; then : 14437 $as_echo_n "(cached) " >&6 14438else 14439 ac_check_lib_save_LIBS=$LIBS 14440LIBS="-lc $LIBS" 14441cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14442/* end confdefs.h. */ 14443 14444/* Override any GCC internal prototype to avoid an error. 14445 Use char because int might match the return type of a GCC 14446 builtin and then its argument prototype would still apply. */ 14447#ifdef __cplusplus 14448extern "C" 14449#endif 14450char pthread_self (); 14451int 14452main () 14453{ 14454return pthread_self (); 14455 ; 14456 return 0; 14457} 14458_ACEOF 14459if ac_fn_c_try_link "$LINENO"; then : 14460 ac_cv_lib_c_pthread_self=yes 14461else 14462 ac_cv_lib_c_pthread_self=no 14463fi 14464rm -f core conftest.err conftest.$ac_objext \ 14465 conftest$ac_exeext conftest.$ac_ext 14466LIBS=$ac_check_lib_save_LIBS 14467fi 14468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_self" >&5 14469$as_echo "$ac_cv_lib_c_pthread_self" >&6; } 14470if test "x$ac_cv_lib_c_pthread_self" = x""yes; then : 14471 thrstubs="no" 14472else 14473 thrstubs="yes" 14474fi 14475 14476 if test x$thrstubs = xyes; then 14477 THRSTUBS_TRUE= 14478 THRSTUBS_FALSE='#' 14479else 14480 THRSTUBS_TRUE='#' 14481 THRSTUBS_FALSE= 14482fi 14483 14484 14485if test x$xthreads = xyes ; then 14486 case $host_os in 14487 linux*|openbsd*|gnu*|k*bsd*-gnu) 14488 XTHREADLIB=-lpthread ;; 14489 netbsd*) 14490 XTHREAD_CFLAGS="-D_POSIX_THREAD_SAFE_FUNCTIONS" 14491 XTHREADLIB="-lpthread" ;; 14492 freebsd*) 14493 XTHREAD_CFLAGS="-D_THREAD_SAFE" 14494 XTHREADLIB="-pthread" ;; 14495 dragonfly*) 14496 XTHREADLIB="-pthread" ;; 14497 solaris*) 14498 XTHREAD_CFLAGS="-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS" ;; 14499 esac 14500fi 14501 14502 14503 14504case x$xdmauth in 14505xyes) 14506 XDMCP_CFLAGS="$XDMCP_CFLAGS -DHASXDMAUTH" 14507 ;; 14508xno) 14509 XDMCP_LIBS="" 14510 ;; 14511esac 14512 14513 14514 14515ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 14516if test "x$ac_cv_func_poll" = x""yes; then : 14517 14518$as_echo "#define USE_POLL 1" >>confdefs.h 14519 14520fi 14521 14522 14523# 14524# Find keysymdef.h 14525# 14526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking keysymdef.h" >&5 14527$as_echo_n "checking keysymdef.h... " >&6; } 14528dir=`$PKG_CONFIG --variable=includedir xproto` 14529KEYSYMDEF="$dir/X11/keysymdef.h" 14530if test -f "$KEYSYMDEF"; then 14531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KEYSYMDEF" >&5 14532$as_echo "$KEYSYMDEF" >&6; } 14533else 14534 as_fn_error "Cannot find keysymdef.h" "$LINENO" 5 14535fi 14536 14537 14538 if test xfalse = xtrue; then 14539 UDC_TRUE= 14540 UDC_FALSE='#' 14541else 14542 UDC_TRUE='#' 14543 UDC_FALSE= 14544fi 14545 14546 14547# Check whether --enable-xcms was given. 14548if test "${enable_xcms+set}" = set; then : 14549 enableval=$enable_xcms; XCMS=$enableval 14550else 14551 XCMS=yes 14552fi 14553 14554 if test x$XCMS = xyes ; then 14555 XCMS_TRUE= 14556 XCMS_FALSE='#' 14557else 14558 XCMS_TRUE='#' 14559 XCMS_FALSE= 14560fi 14561 14562if test x"$XCMS" = "xyes"; then 14563 14564$as_echo "#define XCMS 1" >>confdefs.h 14565 14566fi 14567 14568# Check whether --enable-xlocale was given. 14569if test "${enable_xlocale+set}" = set; then : 14570 enableval=$enable_xlocale; XLOCALE=$enableval 14571else 14572 XLOCALE=yes 14573fi 14574 14575 14576 if test x$XLOCALE = xyes ; then 14577 XLOCALE_TRUE= 14578 XLOCALE_FALSE='#' 14579else 14580 XLOCALE_TRUE='#' 14581 XLOCALE_FALSE= 14582fi 14583 14584if test x"$XLOCALE" = "xyes"; then 14585 14586$as_echo "#define XLOCALE 1" >>confdefs.h 14587 14588fi 14589 14590# This disables XLOCALEDIR. Set it if you're using BuildLoadableXlibI18n, 14591# don't have either issetugid() or getresuid(), and you need to protect 14592# clients that are setgid or setuid to an id other than 0. 14593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XLOCALEDIR support should be enabled" >&5 14594$as_echo_n "checking if XLOCALEDIR support should be enabled... " >&6; } 14595# Check whether --enable-xlocaledir was given. 14596if test "${enable_xlocaledir+set}" = set; then : 14597 enableval=$enable_xlocaledir; ENABLE_XLOCALEDIR=$enableval 14598else 14599 ENABLE_XLOCALEDIR=$XLOCALEDIR_IS_SAFE 14600fi 14601 14602if test "x$ENABLE_XLOCALEDIR" = "xno"; then 14603 14604$as_echo "#define NO_XLOCALEDIR 1" >>confdefs.h 14605 14606fi 14607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_XLOCALEDIR" >&5 14608$as_echo "$ENABLE_XLOCALEDIR" >&6; } 14609 14610# Check whether --enable-xf86bigfont was given. 14611if test "${enable_xf86bigfont+set}" = set; then : 14612 enableval=$enable_xf86bigfont; XF86BIGFONT=$enableval 14613else 14614 XF86BIGFONT="yes" 14615fi 14616 14617if test "x$XF86BIGFONT" = "xyes"; then 14618 14619pkg_failed=no 14620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BIGFONT" >&5 14621$as_echo_n "checking for BIGFONT... " >&6; } 14622 14623if test -n "$BIGFONT_CFLAGS"; then 14624 pkg_cv_BIGFONT_CFLAGS="$BIGFONT_CFLAGS" 14625 elif test -n "$PKG_CONFIG"; then 14626 if test -n "$PKG_CONFIG" && \ 14627 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86bigfontproto\""; } >&5 14628 ($PKG_CONFIG --exists --print-errors "xf86bigfontproto") 2>&5 14629 ac_status=$? 14630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14631 test $ac_status = 0; }; then 14632 pkg_cv_BIGFONT_CFLAGS=`$PKG_CONFIG --cflags "xf86bigfontproto" 2>/dev/null` 14633else 14634 pkg_failed=yes 14635fi 14636 else 14637 pkg_failed=untried 14638fi 14639if test -n "$BIGFONT_LIBS"; then 14640 pkg_cv_BIGFONT_LIBS="$BIGFONT_LIBS" 14641 elif test -n "$PKG_CONFIG"; then 14642 if test -n "$PKG_CONFIG" && \ 14643 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86bigfontproto\""; } >&5 14644 ($PKG_CONFIG --exists --print-errors "xf86bigfontproto") 2>&5 14645 ac_status=$? 14646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14647 test $ac_status = 0; }; then 14648 pkg_cv_BIGFONT_LIBS=`$PKG_CONFIG --libs "xf86bigfontproto" 2>/dev/null` 14649else 14650 pkg_failed=yes 14651fi 14652 else 14653 pkg_failed=untried 14654fi 14655 14656 14657 14658if test $pkg_failed = yes; then 14659 14660if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 14661 _pkg_short_errors_supported=yes 14662else 14663 _pkg_short_errors_supported=no 14664fi 14665 if test $_pkg_short_errors_supported = yes; then 14666 BIGFONT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xf86bigfontproto" 2>&1` 14667 else 14668 BIGFONT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xf86bigfontproto" 2>&1` 14669 fi 14670 # Put the nasty error message in config.log where it belongs 14671 echo "$BIGFONT_PKG_ERRORS" >&5 14672 14673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14674$as_echo "no" >&6; } 14675 XF86BIGFONT="no" 14676elif test $pkg_failed = untried; then 14677 XF86BIGFONT="no" 14678else 14679 BIGFONT_CFLAGS=$pkg_cv_BIGFONT_CFLAGS 14680 BIGFONT_LIBS=$pkg_cv_BIGFONT_LIBS 14681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14682$as_echo "yes" >&6; } 14683 14684$as_echo "#define XF86BIGFONT 1" >>confdefs.h 14685 14686fi 14687 14688 14689fi 14690 14691# Check whether --enable-xkb was given. 14692if test "${enable_xkb+set}" = set; then : 14693 enableval=$enable_xkb; XKB=$enableval 14694else 14695 XKB=yes 14696fi 14697 14698 14699# Check whether --enable-man-pages was given. 14700if test "${enable_man_pages+set}" = set; then : 14701 enableval=$enable_man_pages; LIBMAN=$enableval 14702else 14703 LIBMAN=yes 14704fi 14705 14706 14707if test "x$LIBMAN" != "xyes"; then 14708 LIB_MAN_SUFFIX=$LIBMAN 14709fi 14710 14711 if test x$LIBMAN '!=' xno ; then 14712 MANPAGES_TRUE= 14713 MANPAGES_FALSE='#' 14714else 14715 MANPAGES_TRUE='#' 14716 MANPAGES_FALSE= 14717fi 14718 14719 14720 if test x$XKB = xyes ; then 14721 XKB_TRUE= 14722 XKB_FALSE='#' 14723else 14724 XKB_TRUE='#' 14725 XKB_FALSE= 14726fi 14727 14728if test x"$XKB" = "xyes"; then 14729 XKBPROTO_REQUIRES="kbproto" 14730 X11_REQUIRES="${X11_REQUIRES} kbproto inputproto" 14731 14732$as_echo "#define XKB 1" >>confdefs.h 14733 14734else 14735 XKBPROTO_REQUIRES="" 14736fi 14737 14738 14739 14740 14741 14742 for ac_header in $ac_header_list 14743do : 14744 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14745ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 14746" 14747eval as_val=\$$as_ac_Header 14748 if test "x$as_val" = x""yes; then : 14749 cat >>confdefs.h <<_ACEOF 14750#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14751_ACEOF 14752 14753fi 14754 14755done 14756 14757 14758 14759 14760 14761 14762 14763 14764for ac_func in getpagesize 14765do : 14766 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 14767if test "x$ac_cv_func_getpagesize" = x""yes; then : 14768 cat >>confdefs.h <<_ACEOF 14769#define HAVE_GETPAGESIZE 1 14770_ACEOF 14771 14772fi 14773done 14774 14775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 14776$as_echo_n "checking for working mmap... " >&6; } 14777if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then : 14778 $as_echo_n "(cached) " >&6 14779else 14780 if test "$cross_compiling" = yes; then : 14781 ac_cv_func_mmap_fixed_mapped=no 14782else 14783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14784/* end confdefs.h. */ 14785$ac_includes_default 14786/* malloc might have been renamed as rpl_malloc. */ 14787#undef malloc 14788 14789/* Thanks to Mike Haertel and Jim Avera for this test. 14790 Here is a matrix of mmap possibilities: 14791 mmap private not fixed 14792 mmap private fixed at somewhere currently unmapped 14793 mmap private fixed at somewhere already mapped 14794 mmap shared not fixed 14795 mmap shared fixed at somewhere currently unmapped 14796 mmap shared fixed at somewhere already mapped 14797 For private mappings, we should verify that changes cannot be read() 14798 back from the file, nor mmap's back from the file at a different 14799 address. (There have been systems where private was not correctly 14800 implemented like the infamous i386 svr4.0, and systems where the 14801 VM page cache was not coherent with the file system buffer cache 14802 like early versions of FreeBSD and possibly contemporary NetBSD.) 14803 For shared mappings, we should conversely verify that changes get 14804 propagated back to all the places they're supposed to be. 14805 14806 Grep wants private fixed already mapped. 14807 The main things grep needs to know about mmap are: 14808 * does it exist and is it safe to write into the mmap'd area 14809 * how to use it (BSD variants) */ 14810 14811#include <fcntl.h> 14812#include <sys/mman.h> 14813 14814#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 14815char *malloc (); 14816#endif 14817 14818/* This mess was copied from the GNU getpagesize.h. */ 14819#ifndef HAVE_GETPAGESIZE 14820# ifdef _SC_PAGESIZE 14821# define getpagesize() sysconf(_SC_PAGESIZE) 14822# else /* no _SC_PAGESIZE */ 14823# ifdef HAVE_SYS_PARAM_H 14824# include <sys/param.h> 14825# ifdef EXEC_PAGESIZE 14826# define getpagesize() EXEC_PAGESIZE 14827# else /* no EXEC_PAGESIZE */ 14828# ifdef NBPG 14829# define getpagesize() NBPG * CLSIZE 14830# ifndef CLSIZE 14831# define CLSIZE 1 14832# endif /* no CLSIZE */ 14833# else /* no NBPG */ 14834# ifdef NBPC 14835# define getpagesize() NBPC 14836# else /* no NBPC */ 14837# ifdef PAGESIZE 14838# define getpagesize() PAGESIZE 14839# endif /* PAGESIZE */ 14840# endif /* no NBPC */ 14841# endif /* no NBPG */ 14842# endif /* no EXEC_PAGESIZE */ 14843# else /* no HAVE_SYS_PARAM_H */ 14844# define getpagesize() 8192 /* punt totally */ 14845# endif /* no HAVE_SYS_PARAM_H */ 14846# endif /* no _SC_PAGESIZE */ 14847 14848#endif /* no HAVE_GETPAGESIZE */ 14849 14850int 14851main () 14852{ 14853 char *data, *data2, *data3; 14854 int i, pagesize; 14855 int fd, fd2; 14856 14857 pagesize = getpagesize (); 14858 14859 /* First, make a file with some known garbage in it. */ 14860 data = (char *) malloc (pagesize); 14861 if (!data) 14862 return 1; 14863 for (i = 0; i < pagesize; ++i) 14864 *(data + i) = rand (); 14865 umask (0); 14866 fd = creat ("conftest.mmap", 0600); 14867 if (fd < 0) 14868 return 2; 14869 if (write (fd, data, pagesize) != pagesize) 14870 return 3; 14871 close (fd); 14872 14873 /* Next, check that the tail of a page is zero-filled. File must have 14874 non-zero length, otherwise we risk SIGBUS for entire page. */ 14875 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 14876 if (fd2 < 0) 14877 return 4; 14878 data2 = ""; 14879 if (write (fd2, data2, 1) != 1) 14880 return 5; 14881 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 14882 if (data2 == MAP_FAILED) 14883 return 6; 14884 for (i = 0; i < pagesize; ++i) 14885 if (*(data2 + i)) 14886 return 7; 14887 close (fd2); 14888 if (munmap (data2, pagesize)) 14889 return 8; 14890 14891 /* Next, try to mmap the file at a fixed address which already has 14892 something else allocated at it. If we can, also make sure that 14893 we see the same garbage. */ 14894 fd = open ("conftest.mmap", O_RDWR); 14895 if (fd < 0) 14896 return 9; 14897 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 14898 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 14899 return 10; 14900 for (i = 0; i < pagesize; ++i) 14901 if (*(data + i) != *(data2 + i)) 14902 return 11; 14903 14904 /* Finally, make sure that changes to the mapped area do not 14905 percolate back to the file as seen by read(). (This is a bug on 14906 some variants of i386 svr4.0.) */ 14907 for (i = 0; i < pagesize; ++i) 14908 *(data2 + i) = *(data2 + i) + 1; 14909 data3 = (char *) malloc (pagesize); 14910 if (!data3) 14911 return 12; 14912 if (read (fd, data3, pagesize) != pagesize) 14913 return 13; 14914 for (i = 0; i < pagesize; ++i) 14915 if (*(data + i) != *(data3 + i)) 14916 return 14; 14917 close (fd); 14918 return 0; 14919} 14920_ACEOF 14921if ac_fn_c_try_run "$LINENO"; then : 14922 ac_cv_func_mmap_fixed_mapped=yes 14923else 14924 ac_cv_func_mmap_fixed_mapped=no 14925fi 14926rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14927 conftest.$ac_objext conftest.beam conftest.$ac_ext 14928fi 14929 14930fi 14931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 14932$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 14933if test $ac_cv_func_mmap_fixed_mapped = yes; then 14934 14935$as_echo "#define HAVE_MMAP 1" >>confdefs.h 14936 14937fi 14938rm -f conftest.mmap conftest.txt 14939 14940composecache_default=$ac_cv_func_mmap_fixed_mapped 14941ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo" 14942if test "x$ac_cv_func_nl_langinfo" = x""yes; then : 14943 14944else 14945 composecache_default=no 14946fi 14947 14948# Check whether --enable-composecache was given. 14949if test "${enable_composecache+set}" = set; then : 14950 enableval=$enable_composecache; COMPOSECACHE=$enableval 14951else 14952 COMPOSECACHE=$composecache_default 14953fi 14954 14955if test x"$COMPOSECACHE" = "xyes"; then 14956 14957$as_echo "#define COMPOSECACHE 1" >>confdefs.h 14958 14959fi 14960 14961 14962 14963 14964 14965 14966# Check whether --with-lint was given. 14967if test "${with_lint+set}" = set; then : 14968 withval=$with_lint; use_lint=$withval 14969else 14970 use_lint=no 14971fi 14972 14973 14974# Obtain platform specific info like program name and options 14975# The lint program on FreeBSD and NetBSD is different from the one on Solaris 14976case $host_os in 14977 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 14978 lint_name=splint 14979 lint_options="-badflag" 14980 ;; 14981 *freebsd* | *netbsd*) 14982 lint_name=lint 14983 lint_options="-u -b" 14984 ;; 14985 *solaris*) 14986 lint_name=lint 14987 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 14988 ;; 14989esac 14990 14991# Test for the presence of the program (either guessed by the code or spelled out by the user) 14992if test "x$use_lint" = x"yes" ; then 14993 # Extract the first word of "$lint_name", so it can be a program name with args. 14994set dummy $lint_name; ac_word=$2 14995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14996$as_echo_n "checking for $ac_word... " >&6; } 14997if test "${ac_cv_path_LINT+set}" = set; then : 14998 $as_echo_n "(cached) " >&6 14999else 15000 case $LINT in 15001 [\\/]* | ?:[\\/]*) 15002 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 15003 ;; 15004 *) 15005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15006for as_dir in $PATH 15007do 15008 IFS=$as_save_IFS 15009 test -z "$as_dir" && as_dir=. 15010 for ac_exec_ext in '' $ac_executable_extensions; do 15011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 15012 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext" 15013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15014 break 2 15015 fi 15016done 15017 done 15018IFS=$as_save_IFS 15019 15020 ;; 15021esac 15022fi 15023LINT=$ac_cv_path_LINT 15024if test -n "$LINT"; then 15025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 15026$as_echo "$LINT" >&6; } 15027else 15028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15029$as_echo "no" >&6; } 15030fi 15031 15032 15033 if test "x$LINT" = "x"; then 15034 as_fn_error "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 15035 fi 15036elif test "x$use_lint" = x"no" ; then 15037 if test "x$LINT" != "x"; then 15038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 15039$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 15040 fi 15041else 15042 as_fn_error "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 15043fi 15044 15045# User supplied flags override default flags 15046if test "x$LINT_FLAGS" != "x"; then 15047 lint_options=$LINT_FLAGS 15048fi 15049 15050LINT_FLAGS=$lint_options 15051 15052 if test "x$LINT" != x; then 15053 LINT_TRUE= 15054 LINT_FALSE='#' 15055else 15056 LINT_TRUE='#' 15057 LINT_FALSE= 15058fi 15059 15060 15061 15062 15063 15064# Check whether --enable-lint-library was given. 15065if test "${enable_lint_library+set}" = set; then : 15066 enableval=$enable_lint_library; make_lint_lib=$enableval 15067else 15068 make_lint_lib=no 15069fi 15070 15071 15072if test "x$make_lint_lib" = x"yes" ; then 15073 LINTLIB=llib-lX11.ln 15074 if test "x$LINT" = "x"; then 15075 as_fn_error "Cannot make lint library without --with-lint" "$LINENO" 5 15076 fi 15077elif test "x$make_lint_lib" != x"no" ; then 15078 as_fn_error "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5 15079fi 15080 15081 15082 if test x$make_lint_lib != xno; then 15083 MAKE_LINT_LIB_TRUE= 15084 MAKE_LINT_LIB_FALSE='#' 15085else 15086 MAKE_LINT_LIB_TRUE='#' 15087 MAKE_LINT_LIB_FALSE= 15088fi 15089 15090 15091 15092 15093X11_DATADIR="${datadir}/X11" 15094 15095 prefix_NONE= 15096 exec_prefix_NONE= 15097 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 15098 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 15099 eval ax_define_dir="\"$X11_DATADIR\"" 15100 eval ax_define_dir="\"$ax_define_dir\"" 15101 X11_DATADIR="$ax_define_dir" 15102 15103 15104cat >>confdefs.h <<_ACEOF 15105#define X11_DATADIR "$ax_define_dir" 15106_ACEOF 15107 15108 test "$prefix_NONE" && prefix=NONE 15109 test "$exec_prefix_NONE" && exec_prefix=NONE 15110 15111 15112 15113X11_LIBDIR="${libdir}/X11" 15114 15115 prefix_NONE= 15116 exec_prefix_NONE= 15117 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 15118 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 15119 eval ax_define_dir="\"$X11_LIBDIR\"" 15120 eval ax_define_dir="\"$ax_define_dir\"" 15121 X11_LIBDIR="$ax_define_dir" 15122 15123 15124cat >>confdefs.h <<_ACEOF 15125#define X11_LIBDIR "$ax_define_dir" 15126_ACEOF 15127 15128 test "$prefix_NONE" && prefix=NONE 15129 test "$exec_prefix_NONE" && exec_prefix=NONE 15130 15131 15132 15133 15134pkg_failed=no 15135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5 15136$as_echo_n "checking for X11... " >&6; } 15137 15138if test -n "$X11_CFLAGS"; then 15139 pkg_cv_X11_CFLAGS="$X11_CFLAGS" 15140 elif test -n "$PKG_CONFIG"; then 15141 if test -n "$PKG_CONFIG" && \ 15142 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$X11_REQUIRES\""; } >&5 15143 ($PKG_CONFIG --exists --print-errors "$X11_REQUIRES") 2>&5 15144 ac_status=$? 15145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15146 test $ac_status = 0; }; then 15147 pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "$X11_REQUIRES" 2>/dev/null` 15148else 15149 pkg_failed=yes 15150fi 15151 else 15152 pkg_failed=untried 15153fi 15154if test -n "$X11_LIBS"; then 15155 pkg_cv_X11_LIBS="$X11_LIBS" 15156 elif test -n "$PKG_CONFIG"; then 15157 if test -n "$PKG_CONFIG" && \ 15158 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$X11_REQUIRES\""; } >&5 15159 ($PKG_CONFIG --exists --print-errors "$X11_REQUIRES") 2>&5 15160 ac_status=$? 15161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15162 test $ac_status = 0; }; then 15163 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "$X11_REQUIRES" 2>/dev/null` 15164else 15165 pkg_failed=yes 15166fi 15167 else 15168 pkg_failed=untried 15169fi 15170 15171 15172 15173if test $pkg_failed = yes; then 15174 15175if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 15176 _pkg_short_errors_supported=yes 15177else 15178 _pkg_short_errors_supported=no 15179fi 15180 if test $_pkg_short_errors_supported = yes; then 15181 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$X11_REQUIRES" 2>&1` 15182 else 15183 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors "$X11_REQUIRES" 2>&1` 15184 fi 15185 # Put the nasty error message in config.log where it belongs 15186 echo "$X11_PKG_ERRORS" >&5 15187 15188 as_fn_error "Package requirements ($X11_REQUIRES) were not met: 15189 15190$X11_PKG_ERRORS 15191 15192Consider adjusting the PKG_CONFIG_PATH environment variable if you 15193installed software in a non-standard prefix. 15194 15195Alternatively, you may set the environment variables X11_CFLAGS 15196and X11_LIBS to avoid the need to call pkg-config. 15197See the pkg-config man page for more details. 15198" "$LINENO" 5 15199elif test $pkg_failed = untried; then 15200 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15201$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15202as_fn_error "The pkg-config script could not be found or is too old. Make sure it 15203is in your PATH or set the PKG_CONFIG environment variable to the full 15204path to pkg-config. 15205 15206Alternatively, you may set the environment variables X11_CFLAGS 15207and X11_LIBS to avoid the need to call pkg-config. 15208See the pkg-config man page for more details. 15209 15210To get pkg-config, see <http://pkg-config.freedesktop.org/>. 15211See \`config.log' for more details." "$LINENO" 5; } 15212else 15213 X11_CFLAGS=$pkg_cv_X11_CFLAGS 15214 X11_LIBS=$pkg_cv_X11_LIBS 15215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15216$as_echo "yes" >&6; } 15217 : 15218fi 15219X11_CFLAGS="$X11_CFLAGS $XTHREAD_CFLAGS" 15220 15221# 15222# Yes, it would be nice to put the locale data in 15223# /usr/share, but the locale stuff includes loadable 15224# libraries which must be located in the same directory 15225# as the other locale data, so for now, everything lives 15226# in ${libdir} 15227# 15228 15229X11_LOCALEDATADIR="${X11_DATADIR}/locale" 15230 15231 prefix_NONE= 15232 exec_prefix_NONE= 15233 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 15234 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 15235 eval ax_define_dir="\"$X11_LOCALEDATADIR\"" 15236 eval ax_define_dir="\"$ax_define_dir\"" 15237 XLOCALEDATADIR="$ax_define_dir" 15238 15239 15240cat >>confdefs.h <<_ACEOF 15241#define XLOCALEDATADIR "$ax_define_dir" 15242_ACEOF 15243 15244 test "$prefix_NONE" && prefix=NONE 15245 test "$exec_prefix_NONE" && exec_prefix=NONE 15246 15247 15248 15249 15250# Check whether --with-locale-lib-dir was given. 15251if test "${with_locale_lib_dir+set}" = set; then : 15252 withval=$with_locale_lib_dir; X11_LOCALELIBDIR="$withval" 15253else 15254 X11_LOCALELIBDIR="${X11_LIBDIR}/locale" 15255fi 15256 15257 15258 prefix_NONE= 15259 exec_prefix_NONE= 15260 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 15261 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 15262 eval ax_define_dir="\"$X11_LOCALELIBDIR\"" 15263 eval ax_define_dir="\"$ax_define_dir\"" 15264 XLOCALELIBDIR="$ax_define_dir" 15265 15266 15267cat >>confdefs.h <<_ACEOF 15268#define XLOCALELIBDIR "$ax_define_dir" 15269_ACEOF 15270 15271 test "$prefix_NONE" && prefix=NONE 15272 test "$exec_prefix_NONE" && exec_prefix=NONE 15273 15274 15275 15276X11_LOCALEDIR="${X11_LOCALEDATADIR}" 15277 15278 prefix_NONE= 15279 exec_prefix_NONE= 15280 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 15281 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 15282 eval ax_define_dir="\"$X11_LOCALEDIR\"" 15283 eval ax_define_dir="\"$ax_define_dir\"" 15284 XLOCALEDIR="$ax_define_dir" 15285 15286 15287cat >>confdefs.h <<_ACEOF 15288#define XLOCALEDIR "$ax_define_dir" 15289_ACEOF 15290 15291 test "$prefix_NONE" && prefix=NONE 15292 test "$exec_prefix_NONE" && exec_prefix=NONE 15293 15294 15295 15296XKEYSYMDB="${X11_DATADIR}/XKeysymDB" 15297 15298 prefix_NONE= 15299 exec_prefix_NONE= 15300 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 15301 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 15302 eval ax_define_dir="\"$XKEYSYMDB\"" 15303 eval ax_define_dir="\"$ax_define_dir\"" 15304 XKEYSYMDB="$ax_define_dir" 15305 15306 15307cat >>confdefs.h <<_ACEOF 15308#define XKEYSYMDB "$ax_define_dir" 15309_ACEOF 15310 15311 test "$prefix_NONE" && prefix=NONE 15312 test "$exec_prefix_NONE" && exec_prefix=NONE 15313 15314 15315XERRORDB="${X11_DATADIR}/XErrorDB" 15316 15317 prefix_NONE= 15318 exec_prefix_NONE= 15319 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 15320 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 15321 eval ax_define_dir="\"$XERRORDB\"" 15322 eval ax_define_dir="\"$ax_define_dir\"" 15323 XERRORDB="$ax_define_dir" 15324 15325 15326cat >>confdefs.h <<_ACEOF 15327#define XERRORDB "$ax_define_dir" 15328_ACEOF 15329 15330 test "$prefix_NONE" && prefix=NONE 15331 test "$exec_prefix_NONE" && exec_prefix=NONE 15332 15333 15334 15335# Check whether --enable-malloc0returnsnull was given. 15336if test "${enable_malloc0returnsnull+set}" = set; then : 15337 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval 15338else 15339 MALLOC_ZERO_RETURNS_NULL=auto 15340fi 15341 15342 15343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5 15344$as_echo_n "checking whether malloc(0) returns NULL... " >&6; } 15345if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 15346 if test "$cross_compiling" = yes; then : 15347 MALLOC_ZERO_RETURNS_NULL=yes 15348else 15349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15350/* end confdefs.h. */ 15351 15352char *malloc(); 15353char *realloc(); 15354char *calloc(); 15355main() { 15356 char *m0, *r0, *c0, *p; 15357 m0 = malloc(0); 15358 p = malloc(10); 15359 r0 = realloc(p,0); 15360 c0 = calloc(0); 15361 exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1); 15362} 15363_ACEOF 15364if ac_fn_c_try_run "$LINENO"; then : 15365 MALLOC_ZERO_RETURNS_NULL=yes 15366else 15367 MALLOC_ZERO_RETURNS_NULL=no 15368fi 15369rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15370 conftest.$ac_objext conftest.beam conftest.$ac_ext 15371fi 15372 15373fi 15374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5 15375$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; } 15376 15377if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 15378 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 15379 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 15380 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 15381else 15382 MALLOC_ZERO_CFLAGS="" 15383 XMALLOC_ZERO_CFLAGS="" 15384 XTMALLOC_ZERO_CFLAGS="" 15385fi 15386 15387 15388 15389 15390 15391 15392ac_config_files="$ac_config_files Makefile include/Makefile man/Makefile man/xkb/Makefile src/Makefile src/util/Makefile src/xcms/Makefile src/xlibi18n/Makefile modules/Makefile modules/im/Makefile modules/im/ximcp/Makefile modules/lc/Makefile modules/lc/def/Makefile modules/lc/gen/Makefile modules/lc/Utf8/Makefile modules/lc/xlocale/Makefile modules/om/Makefile modules/om/generic/Makefile src/xkb/Makefile nls/Makefile nls/am_ET.UTF-8/Makefile nls/armscii-8/Makefile nls/C/Makefile nls/el_GR.UTF-8/Makefile nls/en_US.UTF-8/Makefile nls/fi_FI.UTF-8/Makefile nls/georgian-academy/Makefile nls/georgian-ps/Makefile nls/ibm-cp1133/Makefile nls/iscii-dev/Makefile nls/isiri-3342/Makefile nls/iso8859-1/Makefile nls/iso8859-10/Makefile nls/iso8859-11/Makefile nls/iso8859-13/Makefile nls/iso8859-14/Makefile nls/iso8859-15/Makefile nls/iso8859-2/Makefile nls/iso8859-3/Makefile nls/iso8859-4/Makefile nls/iso8859-5/Makefile nls/iso8859-6/Makefile nls/iso8859-7/Makefile nls/iso8859-8/Makefile nls/iso8859-9/Makefile nls/iso8859-9e/Makefile nls/ja/Makefile nls/ja.JIS/Makefile nls/ja_JP.UTF-8/Makefile nls/ja.S90/Makefile nls/ja.SJIS/Makefile nls/ja.U90/Makefile nls/ko/Makefile nls/koi8-c/Makefile nls/koi8-r/Makefile nls/koi8-u/Makefile nls/ko_KR.UTF-8/Makefile nls/microsoft-cp1251/Makefile nls/microsoft-cp1255/Makefile nls/microsoft-cp1256/Makefile nls/mulelao-1/Makefile nls/nokhchi-1/Makefile nls/pt_BR.UTF-8/Makefile nls/ru_RU.UTF-8/Makefile nls/tatar-cyr/Makefile nls/th_TH/Makefile nls/th_TH.UTF-8/Makefile nls/tscii-0/Makefile nls/vi_VN.tcvn/Makefile nls/vi_VN.viscii/Makefile nls/zh_CN/Makefile nls/zh_CN.gb18030/Makefile nls/zh_CN.gbk/Makefile nls/zh_CN.UTF-8/Makefile nls/zh_HK.big5/Makefile nls/zh_HK.big5hkscs/Makefile nls/zh_HK.UTF-8/Makefile nls/zh_TW/Makefile nls/zh_TW.big5/Makefile nls/zh_TW.UTF-8/Makefile specs/Makefile specs/i18n/Makefile specs/libX11/Makefile specs/XIM/Makefile x11.pc x11-xcb.pc" 15393 15394cat >confcache <<\_ACEOF 15395# This file is a shell script that caches the results of configure 15396# tests run on this system so they can be shared between configure 15397# scripts and configure runs, see configure's option --config-cache. 15398# It is not useful on other systems. If it contains results you don't 15399# want to keep, you may remove or edit it. 15400# 15401# config.status only pays attention to the cache file if you give it 15402# the --recheck option to rerun configure. 15403# 15404# `ac_cv_env_foo' variables (set or unset) will be overridden when 15405# loading this file, other *unset* `ac_cv_foo' will be assigned the 15406# following values. 15407 15408_ACEOF 15409 15410# The following way of writing the cache mishandles newlines in values, 15411# but we know of no workaround that is simple, portable, and efficient. 15412# So, we kill variables containing newlines. 15413# Ultrix sh set writes to stderr and can't be redirected directly, 15414# and sets the high bit in the cache file unless we assign to the vars. 15415( 15416 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 15417 eval ac_val=\$$ac_var 15418 case $ac_val in #( 15419 *${as_nl}*) 15420 case $ac_var in #( 15421 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 15422$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 15423 esac 15424 case $ac_var in #( 15425 _ | IFS | as_nl) ;; #( 15426 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 15427 *) { eval $ac_var=; unset $ac_var;} ;; 15428 esac ;; 15429 esac 15430 done 15431 15432 (set) 2>&1 | 15433 case $as_nl`(ac_space=' '; set) 2>&1` in #( 15434 *${as_nl}ac_space=\ *) 15435 # `set' does not quote correctly, so add quotes: double-quote 15436 # substitution turns \\\\ into \\, and sed turns \\ into \. 15437 sed -n \ 15438 "s/'/'\\\\''/g; 15439 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 15440 ;; #( 15441 *) 15442 # `set' quotes correctly as required by POSIX, so do not add quotes. 15443 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 15444 ;; 15445 esac | 15446 sort 15447) | 15448 sed ' 15449 /^ac_cv_env_/b end 15450 t clear 15451 :clear 15452 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 15453 t end 15454 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 15455 :end' >>confcache 15456if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 15457 if test -w "$cache_file"; then 15458 test "x$cache_file" != "x/dev/null" && 15459 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 15460$as_echo "$as_me: updating cache $cache_file" >&6;} 15461 cat confcache >$cache_file 15462 else 15463 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 15464$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 15465 fi 15466fi 15467rm -f confcache 15468 15469test "x$prefix" = xNONE && prefix=$ac_default_prefix 15470# Let make expand exec_prefix. 15471test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 15472 15473DEFS=-DHAVE_CONFIG_H 15474 15475ac_libobjs= 15476ac_ltlibobjs= 15477for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 15478 # 1. Remove the extension, and $U if already installed. 15479 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 15480 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 15481 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 15482 # will be set to the directory where LIBOBJS objects are built. 15483 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 15484 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 15485done 15486LIBOBJS=$ac_libobjs 15487 15488LTLIBOBJS=$ac_ltlibobjs 15489 15490 15491 if test -n "$EXEEXT"; then 15492 am__EXEEXT_TRUE= 15493 am__EXEEXT_FALSE='#' 15494else 15495 am__EXEEXT_TRUE='#' 15496 am__EXEEXT_FALSE= 15497fi 15498 15499if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 15500 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. 15501Usually this means the macro was only invoked conditionally." "$LINENO" 5 15502fi 15503if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 15504 as_fn_error "conditional \"AMDEP\" was never defined. 15505Usually this means the macro was only invoked conditionally." "$LINENO" 5 15506fi 15507if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 15508 as_fn_error "conditional \"am__fastdepCC\" was never defined. 15509Usually this means the macro was only invoked conditionally." "$LINENO" 5 15510fi 15511if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then 15512 as_fn_error "conditional \"ENABLE_SPECS\" was never defined. 15513Usually this means the macro was only invoked conditionally." "$LINENO" 5 15514fi 15515if test -z "${HAVE_GROFF_TRUE}" && test -z "${HAVE_GROFF_FALSE}"; then 15516 as_fn_error "conditional \"HAVE_GROFF\" was never defined. 15517Usually this means the macro was only invoked conditionally." "$LINENO" 5 15518fi 15519if test -z "${HAVE_GROFF_MS_TRUE}" && test -z "${HAVE_GROFF_MS_FALSE}"; then 15520 as_fn_error "conditional \"HAVE_GROFF_MS\" was never defined. 15521Usually this means the macro was only invoked conditionally." "$LINENO" 5 15522fi 15523if test -z "${HAVE_GROFF_MM_TRUE}" && test -z "${HAVE_GROFF_MM_FALSE}"; then 15524 as_fn_error "conditional \"HAVE_GROFF_MM\" was never defined. 15525Usually this means the macro was only invoked conditionally." "$LINENO" 5 15526fi 15527if test -z "${HAVE_GROFF_HTML_TRUE}" && test -z "${HAVE_GROFF_HTML_FALSE}"; then 15528 as_fn_error "conditional \"HAVE_GROFF_HTML\" was never defined. 15529Usually this means the macro was only invoked conditionally." "$LINENO" 5 15530fi 15531if test -z "${HAVE_PS2PDF_TRUE}" && test -z "${HAVE_PS2PDF_FALSE}"; then 15532 as_fn_error "conditional \"HAVE_PS2PDF\" was never defined. 15533Usually this means the macro was only invoked conditionally." "$LINENO" 5 15534fi 15535if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 15536 as_fn_error "conditional \"am__fastdepCC\" was never defined. 15537Usually this means the macro was only invoked conditionally." "$LINENO" 5 15538fi 15539if test -z "${HAVE_PERL_TRUE}" && test -z "${HAVE_PERL_FALSE}"; then 15540 as_fn_error "conditional \"HAVE_PERL\" was never defined. 15541Usually this means the macro was only invoked conditionally." "$LINENO" 5 15542fi 15543if test -z "${XCB_TRUE}" && test -z "${XCB_FALSE}"; then 15544 as_fn_error "conditional \"XCB\" was never defined. 15545Usually this means the macro was only invoked conditionally." "$LINENO" 5 15546fi 15547if test -z "${XLIB_LOADABLE_I18N_TRUE}" && test -z "${XLIB_LOADABLE_I18N_FALSE}"; then 15548 as_fn_error "conditional \"XLIB_LOADABLE_I18N\" was never defined. 15549Usually this means the macro was only invoked conditionally." "$LINENO" 5 15550fi 15551if test -z "${OS2_TRUE}" && test -z "${OS2_FALSE}"; then 15552 as_fn_error "conditional \"OS2\" was never defined. 15553Usually this means the macro was only invoked conditionally." "$LINENO" 5 15554fi 15555if test -z "${THRSTUBS_TRUE}" && test -z "${THRSTUBS_FALSE}"; then 15556 as_fn_error "conditional \"THRSTUBS\" was never defined. 15557Usually this means the macro was only invoked conditionally." "$LINENO" 5 15558fi 15559if test -z "${UDC_TRUE}" && test -z "${UDC_FALSE}"; then 15560 as_fn_error "conditional \"UDC\" was never defined. 15561Usually this means the macro was only invoked conditionally." "$LINENO" 5 15562fi 15563if test -z "${XCMS_TRUE}" && test -z "${XCMS_FALSE}"; then 15564 as_fn_error "conditional \"XCMS\" was never defined. 15565Usually this means the macro was only invoked conditionally." "$LINENO" 5 15566fi 15567if test -z "${XLOCALE_TRUE}" && test -z "${XLOCALE_FALSE}"; then 15568 as_fn_error "conditional \"XLOCALE\" was never defined. 15569Usually this means the macro was only invoked conditionally." "$LINENO" 5 15570fi 15571if test -z "${MANPAGES_TRUE}" && test -z "${MANPAGES_FALSE}"; then 15572 as_fn_error "conditional \"MANPAGES\" was never defined. 15573Usually this means the macro was only invoked conditionally." "$LINENO" 5 15574fi 15575if test -z "${XKB_TRUE}" && test -z "${XKB_FALSE}"; then 15576 as_fn_error "conditional \"XKB\" was never defined. 15577Usually this means the macro was only invoked conditionally." "$LINENO" 5 15578fi 15579if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 15580 as_fn_error "conditional \"LINT\" was never defined. 15581Usually this means the macro was only invoked conditionally." "$LINENO" 5 15582fi 15583if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then 15584 as_fn_error "conditional \"MAKE_LINT_LIB\" was never defined. 15585Usually this means the macro was only invoked conditionally." "$LINENO" 5 15586fi 15587 15588: ${CONFIG_STATUS=./config.status} 15589ac_write_fail=0 15590ac_clean_files_save=$ac_clean_files 15591ac_clean_files="$ac_clean_files $CONFIG_STATUS" 15592{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 15593$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 15594as_write_fail=0 15595cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 15596#! $SHELL 15597# Generated by $as_me. 15598# Run this file to recreate the current configuration. 15599# Compiler output produced by configure, useful for debugging 15600# configure, is in config.log if it exists. 15601 15602debug=false 15603ac_cs_recheck=false 15604ac_cs_silent=false 15605 15606SHELL=\${CONFIG_SHELL-$SHELL} 15607export SHELL 15608_ASEOF 15609cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 15610## -------------------- ## 15611## M4sh Initialization. ## 15612## -------------------- ## 15613 15614# Be more Bourne compatible 15615DUALCASE=1; export DUALCASE # for MKS sh 15616if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 15617 emulate sh 15618 NULLCMD=: 15619 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 15620 # is contrary to our usage. Disable this feature. 15621 alias -g '${1+"$@"}'='"$@"' 15622 setopt NO_GLOB_SUBST 15623else 15624 case `(set -o) 2>/dev/null` in #( 15625 *posix*) : 15626 set -o posix ;; #( 15627 *) : 15628 ;; 15629esac 15630fi 15631 15632 15633as_nl=' 15634' 15635export as_nl 15636# Printing a long string crashes Solaris 7 /usr/bin/printf. 15637as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 15638as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 15639as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 15640# Prefer a ksh shell builtin over an external printf program on Solaris, 15641# but without wasting forks for bash or zsh. 15642if test -z "$BASH_VERSION$ZSH_VERSION" \ 15643 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 15644 as_echo='print -r --' 15645 as_echo_n='print -rn --' 15646elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 15647 as_echo='printf %s\n' 15648 as_echo_n='printf %s' 15649else 15650 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 15651 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 15652 as_echo_n='/usr/ucb/echo -n' 15653 else 15654 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 15655 as_echo_n_body='eval 15656 arg=$1; 15657 case $arg in #( 15658 *"$as_nl"*) 15659 expr "X$arg" : "X\\(.*\\)$as_nl"; 15660 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 15661 esac; 15662 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 15663 ' 15664 export as_echo_n_body 15665 as_echo_n='sh -c $as_echo_n_body as_echo' 15666 fi 15667 export as_echo_body 15668 as_echo='sh -c $as_echo_body as_echo' 15669fi 15670 15671# The user is always right. 15672if test "${PATH_SEPARATOR+set}" != set; then 15673 PATH_SEPARATOR=: 15674 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 15675 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 15676 PATH_SEPARATOR=';' 15677 } 15678fi 15679 15680 15681# IFS 15682# We need space, tab and new line, in precisely that order. Quoting is 15683# there to prevent editors from complaining about space-tab. 15684# (If _AS_PATH_WALK were called with IFS unset, it would disable word 15685# splitting by setting IFS to empty value.) 15686IFS=" "" $as_nl" 15687 15688# Find who we are. Look in the path if we contain no directory separator. 15689case $0 in #(( 15690 *[\\/]* ) as_myself=$0 ;; 15691 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15692for as_dir in $PATH 15693do 15694 IFS=$as_save_IFS 15695 test -z "$as_dir" && as_dir=. 15696 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 15697 done 15698IFS=$as_save_IFS 15699 15700 ;; 15701esac 15702# We did not find ourselves, most probably we were run as `sh COMMAND' 15703# in which case we are not to be found in the path. 15704if test "x$as_myself" = x; then 15705 as_myself=$0 15706fi 15707if test ! -f "$as_myself"; then 15708 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 15709 exit 1 15710fi 15711 15712# Unset variables that we do not need and which cause bugs (e.g. in 15713# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 15714# suppresses any "Segmentation fault" message there. '((' could 15715# trigger a bug in pdksh 5.2.14. 15716for as_var in BASH_ENV ENV MAIL MAILPATH 15717do eval test x\${$as_var+set} = xset \ 15718 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 15719done 15720PS1='$ ' 15721PS2='> ' 15722PS4='+ ' 15723 15724# NLS nuisances. 15725LC_ALL=C 15726export LC_ALL 15727LANGUAGE=C 15728export LANGUAGE 15729 15730# CDPATH. 15731(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15732 15733 15734# as_fn_error ERROR [LINENO LOG_FD] 15735# --------------------------------- 15736# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 15737# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 15738# script with status $?, using 1 if that was 0. 15739as_fn_error () 15740{ 15741 as_status=$?; test $as_status -eq 0 && as_status=1 15742 if test "$3"; then 15743 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15744 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 15745 fi 15746 $as_echo "$as_me: error: $1" >&2 15747 as_fn_exit $as_status 15748} # as_fn_error 15749 15750 15751# as_fn_set_status STATUS 15752# ----------------------- 15753# Set $? to STATUS, without forking. 15754as_fn_set_status () 15755{ 15756 return $1 15757} # as_fn_set_status 15758 15759# as_fn_exit STATUS 15760# ----------------- 15761# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 15762as_fn_exit () 15763{ 15764 set +e 15765 as_fn_set_status $1 15766 exit $1 15767} # as_fn_exit 15768 15769# as_fn_unset VAR 15770# --------------- 15771# Portably unset VAR. 15772as_fn_unset () 15773{ 15774 { eval $1=; unset $1;} 15775} 15776as_unset=as_fn_unset 15777# as_fn_append VAR VALUE 15778# ---------------------- 15779# Append the text in VALUE to the end of the definition contained in VAR. Take 15780# advantage of any shell optimizations that allow amortized linear growth over 15781# repeated appends, instead of the typical quadratic growth present in naive 15782# implementations. 15783if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 15784 eval 'as_fn_append () 15785 { 15786 eval $1+=\$2 15787 }' 15788else 15789 as_fn_append () 15790 { 15791 eval $1=\$$1\$2 15792 } 15793fi # as_fn_append 15794 15795# as_fn_arith ARG... 15796# ------------------ 15797# Perform arithmetic evaluation on the ARGs, and store the result in the 15798# global $as_val. Take advantage of shells that can avoid forks. The arguments 15799# must be portable across $(()) and expr. 15800if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 15801 eval 'as_fn_arith () 15802 { 15803 as_val=$(( $* )) 15804 }' 15805else 15806 as_fn_arith () 15807 { 15808 as_val=`expr "$@" || test $? -eq 1` 15809 } 15810fi # as_fn_arith 15811 15812 15813if expr a : '\(a\)' >/dev/null 2>&1 && 15814 test "X`expr 00001 : '.*\(...\)'`" = X001; then 15815 as_expr=expr 15816else 15817 as_expr=false 15818fi 15819 15820if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 15821 as_basename=basename 15822else 15823 as_basename=false 15824fi 15825 15826if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 15827 as_dirname=dirname 15828else 15829 as_dirname=false 15830fi 15831 15832as_me=`$as_basename -- "$0" || 15833$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 15834 X"$0" : 'X\(//\)$' \| \ 15835 X"$0" : 'X\(/\)' \| . 2>/dev/null || 15836$as_echo X/"$0" | 15837 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15838 s//\1/ 15839 q 15840 } 15841 /^X\/\(\/\/\)$/{ 15842 s//\1/ 15843 q 15844 } 15845 /^X\/\(\/\).*/{ 15846 s//\1/ 15847 q 15848 } 15849 s/.*/./; q'` 15850 15851# Avoid depending upon Character Ranges. 15852as_cr_letters='abcdefghijklmnopqrstuvwxyz' 15853as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 15854as_cr_Letters=$as_cr_letters$as_cr_LETTERS 15855as_cr_digits='0123456789' 15856as_cr_alnum=$as_cr_Letters$as_cr_digits 15857 15858ECHO_C= ECHO_N= ECHO_T= 15859case `echo -n x` in #((((( 15860-n*) 15861 case `echo 'xy\c'` in 15862 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 15863 xy) ECHO_C='\c';; 15864 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 15865 ECHO_T=' ';; 15866 esac;; 15867*) 15868 ECHO_N='-n';; 15869esac 15870 15871rm -f conf$$ conf$$.exe conf$$.file 15872if test -d conf$$.dir; then 15873 rm -f conf$$.dir/conf$$.file 15874else 15875 rm -f conf$$.dir 15876 mkdir conf$$.dir 2>/dev/null 15877fi 15878if (echo >conf$$.file) 2>/dev/null; then 15879 if ln -s conf$$.file conf$$ 2>/dev/null; then 15880 as_ln_s='ln -s' 15881 # ... but there are two gotchas: 15882 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 15883 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 15884 # In both cases, we have to default to `cp -p'. 15885 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 15886 as_ln_s='cp -p' 15887 elif ln conf$$.file conf$$ 2>/dev/null; then 15888 as_ln_s=ln 15889 else 15890 as_ln_s='cp -p' 15891 fi 15892else 15893 as_ln_s='cp -p' 15894fi 15895rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 15896rmdir conf$$.dir 2>/dev/null 15897 15898 15899# as_fn_mkdir_p 15900# ------------- 15901# Create "$as_dir" as a directory, including parents if necessary. 15902as_fn_mkdir_p () 15903{ 15904 15905 case $as_dir in #( 15906 -*) as_dir=./$as_dir;; 15907 esac 15908 test -d "$as_dir" || eval $as_mkdir_p || { 15909 as_dirs= 15910 while :; do 15911 case $as_dir in #( 15912 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 15913 *) as_qdir=$as_dir;; 15914 esac 15915 as_dirs="'$as_qdir' $as_dirs" 15916 as_dir=`$as_dirname -- "$as_dir" || 15917$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15918 X"$as_dir" : 'X\(//\)[^/]' \| \ 15919 X"$as_dir" : 'X\(//\)$' \| \ 15920 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15921$as_echo X"$as_dir" | 15922 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15923 s//\1/ 15924 q 15925 } 15926 /^X\(\/\/\)[^/].*/{ 15927 s//\1/ 15928 q 15929 } 15930 /^X\(\/\/\)$/{ 15931 s//\1/ 15932 q 15933 } 15934 /^X\(\/\).*/{ 15935 s//\1/ 15936 q 15937 } 15938 s/.*/./; q'` 15939 test -d "$as_dir" && break 15940 done 15941 test -z "$as_dirs" || eval "mkdir $as_dirs" 15942 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 15943 15944 15945} # as_fn_mkdir_p 15946if mkdir -p . 2>/dev/null; then 15947 as_mkdir_p='mkdir -p "$as_dir"' 15948else 15949 test -d ./-p && rmdir ./-p 15950 as_mkdir_p=false 15951fi 15952 15953if test -x / >/dev/null 2>&1; then 15954 as_test_x='test -x' 15955else 15956 if ls -dL / >/dev/null 2>&1; then 15957 as_ls_L_option=L 15958 else 15959 as_ls_L_option= 15960 fi 15961 as_test_x=' 15962 eval sh -c '\'' 15963 if test -d "$1"; then 15964 test -d "$1/."; 15965 else 15966 case $1 in #( 15967 -*)set "./$1";; 15968 esac; 15969 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 15970 ???[sx]*):;;*)false;;esac;fi 15971 '\'' sh 15972 ' 15973fi 15974as_executable_p=$as_test_x 15975 15976# Sed expression to map a string onto a valid CPP name. 15977as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 15978 15979# Sed expression to map a string onto a valid variable name. 15980as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 15981 15982 15983exec 6>&1 15984## ----------------------------------- ## 15985## Main body of $CONFIG_STATUS script. ## 15986## ----------------------------------- ## 15987_ASEOF 15988test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 15989 15990cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15991# Save the log message, to keep $0 and so on meaningful, and to 15992# report actual input values of CONFIG_FILES etc. instead of their 15993# values after options handling. 15994ac_log=" 15995This file was extended by libX11 $as_me 1.3.5, which was 15996generated by GNU Autoconf 2.65. Invocation command line was 15997 15998 CONFIG_FILES = $CONFIG_FILES 15999 CONFIG_HEADERS = $CONFIG_HEADERS 16000 CONFIG_LINKS = $CONFIG_LINKS 16001 CONFIG_COMMANDS = $CONFIG_COMMANDS 16002 $ $0 $@ 16003 16004on `(hostname || uname -n) 2>/dev/null | sed 1q` 16005" 16006 16007_ACEOF 16008 16009case $ac_config_files in *" 16010"*) set x $ac_config_files; shift; ac_config_files=$*;; 16011esac 16012 16013case $ac_config_headers in *" 16014"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 16015esac 16016 16017 16018cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16019# Files that config.status was made for. 16020config_files="$ac_config_files" 16021config_headers="$ac_config_headers" 16022config_commands="$ac_config_commands" 16023 16024_ACEOF 16025 16026cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16027ac_cs_usage="\ 16028\`$as_me' instantiates files and other configuration actions 16029from templates according to the current configuration. Unless the files 16030and actions are specified as TAGs, all are instantiated by default. 16031 16032Usage: $0 [OPTION]... [TAG]... 16033 16034 -h, --help print this help, then exit 16035 -V, --version print version number and configuration settings, then exit 16036 --config print configuration, then exit 16037 -q, --quiet, --silent 16038 do not print progress messages 16039 -d, --debug don't remove temporary files 16040 --recheck update $as_me by reconfiguring in the same conditions 16041 --file=FILE[:TEMPLATE] 16042 instantiate the configuration file FILE 16043 --header=FILE[:TEMPLATE] 16044 instantiate the configuration header FILE 16045 16046Configuration files: 16047$config_files 16048 16049Configuration headers: 16050$config_headers 16051 16052Configuration commands: 16053$config_commands 16054 16055Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 16056 16057_ACEOF 16058cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16059ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 16060ac_cs_version="\\ 16061libX11 config.status 1.3.5 16062configured by $0, generated by GNU Autoconf 2.65, 16063 with options \\"\$ac_cs_config\\" 16064 16065Copyright (C) 2009 Free Software Foundation, Inc. 16066This config.status script is free software; the Free Software Foundation 16067gives unlimited permission to copy, distribute and modify it." 16068 16069ac_pwd='$ac_pwd' 16070srcdir='$srcdir' 16071INSTALL='$INSTALL' 16072MKDIR_P='$MKDIR_P' 16073AWK='$AWK' 16074test -n "\$AWK" || AWK=awk 16075_ACEOF 16076 16077cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16078# The default lists apply if the user does not specify any file. 16079ac_need_defaults=: 16080while test $# != 0 16081do 16082 case $1 in 16083 --*=*) 16084 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16085 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 16086 ac_shift=: 16087 ;; 16088 *) 16089 ac_option=$1 16090 ac_optarg=$2 16091 ac_shift=shift 16092 ;; 16093 esac 16094 16095 case $ac_option in 16096 # Handling of the options. 16097 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 16098 ac_cs_recheck=: ;; 16099 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 16100 $as_echo "$ac_cs_version"; exit ;; 16101 --config | --confi | --conf | --con | --co | --c ) 16102 $as_echo "$ac_cs_config"; exit ;; 16103 --debug | --debu | --deb | --de | --d | -d ) 16104 debug=: ;; 16105 --file | --fil | --fi | --f ) 16106 $ac_shift 16107 case $ac_optarg in 16108 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16109 esac 16110 as_fn_append CONFIG_FILES " '$ac_optarg'" 16111 ac_need_defaults=false;; 16112 --header | --heade | --head | --hea ) 16113 $ac_shift 16114 case $ac_optarg in 16115 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16116 esac 16117 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 16118 ac_need_defaults=false;; 16119 --he | --h) 16120 # Conflict between --help and --header 16121 as_fn_error "ambiguous option: \`$1' 16122Try \`$0 --help' for more information.";; 16123 --help | --hel | -h ) 16124 $as_echo "$ac_cs_usage"; exit ;; 16125 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 16126 | -silent | --silent | --silen | --sile | --sil | --si | --s) 16127 ac_cs_silent=: ;; 16128 16129 # This is an error. 16130 -*) as_fn_error "unrecognized option: \`$1' 16131Try \`$0 --help' for more information." ;; 16132 16133 *) as_fn_append ac_config_targets " $1" 16134 ac_need_defaults=false ;; 16135 16136 esac 16137 shift 16138done 16139 16140ac_configure_extra_args= 16141 16142if $ac_cs_silent; then 16143 exec 6>/dev/null 16144 ac_configure_extra_args="$ac_configure_extra_args --silent" 16145fi 16146 16147_ACEOF 16148cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16149if \$ac_cs_recheck; then 16150 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 16151 shift 16152 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 16153 CONFIG_SHELL='$SHELL' 16154 export CONFIG_SHELL 16155 exec "\$@" 16156fi 16157 16158_ACEOF 16159cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16160exec 5>>config.log 16161{ 16162 echo 16163 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 16164## Running $as_me. ## 16165_ASBOX 16166 $as_echo "$ac_log" 16167} >&5 16168 16169_ACEOF 16170cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16171# 16172# INIT-COMMANDS 16173# 16174AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 16175 16176 16177# The HP-UX ksh and POSIX shell print the target directory to stdout 16178# if CDPATH is set. 16179(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16180 16181sed_quote_subst='$sed_quote_subst' 16182double_quote_subst='$double_quote_subst' 16183delay_variable_subst='$delay_variable_subst' 16184macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 16185macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 16186enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 16187enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 16188pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 16189enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 16190host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 16191host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 16192host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 16193build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 16194build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 16195build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 16196SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 16197Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 16198GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 16199EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 16200FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 16201LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 16202NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 16203LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 16204max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 16205ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 16206exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 16207lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 16208lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 16209lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 16210reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 16211reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16212OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 16213deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 16214file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 16215AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 16216AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 16217STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 16218RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 16219old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16220old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16221old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16222CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 16223CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 16224compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 16225GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 16226lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 16227lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 16228lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' 16229lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 16230objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 16231SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 16232ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 16233MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 16234lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 16235lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 16236lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 16237lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 16238lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 16239need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 16240DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 16241NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 16242LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 16243OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 16244OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 16245libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 16246shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16247extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16248archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 16249enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 16250export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 16251whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 16252compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 16253old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16254old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16255archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16256archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16257module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16258module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16259with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 16260allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 16261no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 16262hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 16263hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 16264hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 16265hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 16266hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 16267hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 16268hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 16269hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 16270inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 16271link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 16272fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 16273always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 16274export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16275exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 16276include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 16277prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16278file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 16279variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 16280need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 16281need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 16282version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 16283runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 16284shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 16285shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 16286libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 16287library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 16288soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 16289postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16290postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16291finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16292finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 16293hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 16294sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 16295sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 16296hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 16297enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 16298enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 16299enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 16300old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 16301striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 16302 16303LTCC='$LTCC' 16304LTCFLAGS='$LTCFLAGS' 16305compiler='$compiler_DEFAULT' 16306 16307# Quote evaled strings. 16308for var in SED \ 16309GREP \ 16310EGREP \ 16311FGREP \ 16312LD \ 16313NM \ 16314LN_S \ 16315lt_SP2NL \ 16316lt_NL2SP \ 16317reload_flag \ 16318OBJDUMP \ 16319deplibs_check_method \ 16320file_magic_cmd \ 16321AR \ 16322AR_FLAGS \ 16323STRIP \ 16324RANLIB \ 16325CC \ 16326CFLAGS \ 16327compiler \ 16328lt_cv_sys_global_symbol_pipe \ 16329lt_cv_sys_global_symbol_to_cdecl \ 16330lt_cv_sys_global_symbol_to_c_name_address \ 16331lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 16332SHELL \ 16333ECHO \ 16334lt_prog_compiler_no_builtin_flag \ 16335lt_prog_compiler_wl \ 16336lt_prog_compiler_pic \ 16337lt_prog_compiler_static \ 16338lt_cv_prog_compiler_c_o \ 16339need_locks \ 16340DSYMUTIL \ 16341NMEDIT \ 16342LIPO \ 16343OTOOL \ 16344OTOOL64 \ 16345shrext_cmds \ 16346export_dynamic_flag_spec \ 16347whole_archive_flag_spec \ 16348compiler_needs_object \ 16349with_gnu_ld \ 16350allow_undefined_flag \ 16351no_undefined_flag \ 16352hardcode_libdir_flag_spec \ 16353hardcode_libdir_flag_spec_ld \ 16354hardcode_libdir_separator \ 16355fix_srcfile_path \ 16356exclude_expsyms \ 16357include_expsyms \ 16358file_list_spec \ 16359variables_saved_for_relink \ 16360libname_spec \ 16361library_names_spec \ 16362soname_spec \ 16363finish_eval \ 16364old_striplib \ 16365striplib; do 16366 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 16367 *[\\\\\\\`\\"\\\$]*) 16368 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 16369 ;; 16370 *) 16371 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16372 ;; 16373 esac 16374done 16375 16376# Double-quote double-evaled strings. 16377for var in reload_cmds \ 16378old_postinstall_cmds \ 16379old_postuninstall_cmds \ 16380old_archive_cmds \ 16381extract_expsyms_cmds \ 16382old_archive_from_new_cmds \ 16383old_archive_from_expsyms_cmds \ 16384archive_cmds \ 16385archive_expsym_cmds \ 16386module_cmds \ 16387module_expsym_cmds \ 16388export_symbols_cmds \ 16389prelink_cmds \ 16390postinstall_cmds \ 16391postuninstall_cmds \ 16392finish_cmds \ 16393sys_lib_search_path_spec \ 16394sys_lib_dlsearch_path_spec; do 16395 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 16396 *[\\\\\\\`\\"\\\$]*) 16397 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 16398 ;; 16399 *) 16400 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16401 ;; 16402 esac 16403done 16404 16405# Fix-up fallback echo if it was mangled by the above quoting rules. 16406case \$lt_ECHO in 16407*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 16408 ;; 16409esac 16410 16411ac_aux_dir='$ac_aux_dir' 16412xsi_shell='$xsi_shell' 16413lt_shell_append='$lt_shell_append' 16414 16415# See if we are running on zsh, and set the options which allow our 16416# commands through without removal of \ escapes INIT. 16417if test -n "\${ZSH_VERSION+set}" ; then 16418 setopt NO_GLOB_SUBST 16419fi 16420 16421 16422 PACKAGE='$PACKAGE' 16423 VERSION='$VERSION' 16424 TIMESTAMP='$TIMESTAMP' 16425 RM='$RM' 16426 ofile='$ofile' 16427 16428 16429 16430 16431_ACEOF 16432 16433cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16434 16435# Handling of arguments. 16436for ac_config_target in $ac_config_targets 16437do 16438 case $ac_config_target in 16439 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; 16440 "include/X11/XlibConf.h") CONFIG_HEADERS="$CONFIG_HEADERS include/X11/XlibConf.h" ;; 16441 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 16442 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 16443 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 16444 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 16445 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 16446 "man/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES man/xkb/Makefile" ;; 16447 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 16448 "src/util/Makefile") CONFIG_FILES="$CONFIG_FILES src/util/Makefile" ;; 16449 "src/xcms/Makefile") CONFIG_FILES="$CONFIG_FILES src/xcms/Makefile" ;; 16450 "src/xlibi18n/Makefile") CONFIG_FILES="$CONFIG_FILES src/xlibi18n/Makefile" ;; 16451 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;; 16452 "modules/im/Makefile") CONFIG_FILES="$CONFIG_FILES modules/im/Makefile" ;; 16453 "modules/im/ximcp/Makefile") CONFIG_FILES="$CONFIG_FILES modules/im/ximcp/Makefile" ;; 16454 "modules/lc/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/Makefile" ;; 16455 "modules/lc/def/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/def/Makefile" ;; 16456 "modules/lc/gen/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/gen/Makefile" ;; 16457 "modules/lc/Utf8/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/Utf8/Makefile" ;; 16458 "modules/lc/xlocale/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/xlocale/Makefile" ;; 16459 "modules/om/Makefile") CONFIG_FILES="$CONFIG_FILES modules/om/Makefile" ;; 16460 "modules/om/generic/Makefile") CONFIG_FILES="$CONFIG_FILES modules/om/generic/Makefile" ;; 16461 "src/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES src/xkb/Makefile" ;; 16462 "nls/Makefile") CONFIG_FILES="$CONFIG_FILES nls/Makefile" ;; 16463 "nls/am_ET.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/am_ET.UTF-8/Makefile" ;; 16464 "nls/armscii-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/armscii-8/Makefile" ;; 16465 "nls/C/Makefile") CONFIG_FILES="$CONFIG_FILES nls/C/Makefile" ;; 16466 "nls/el_GR.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/el_GR.UTF-8/Makefile" ;; 16467 "nls/en_US.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/en_US.UTF-8/Makefile" ;; 16468 "nls/fi_FI.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/fi_FI.UTF-8/Makefile" ;; 16469 "nls/georgian-academy/Makefile") CONFIG_FILES="$CONFIG_FILES nls/georgian-academy/Makefile" ;; 16470 "nls/georgian-ps/Makefile") CONFIG_FILES="$CONFIG_FILES nls/georgian-ps/Makefile" ;; 16471 "nls/ibm-cp1133/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ibm-cp1133/Makefile" ;; 16472 "nls/iscii-dev/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iscii-dev/Makefile" ;; 16473 "nls/isiri-3342/Makefile") CONFIG_FILES="$CONFIG_FILES nls/isiri-3342/Makefile" ;; 16474 "nls/iso8859-1/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-1/Makefile" ;; 16475 "nls/iso8859-10/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-10/Makefile" ;; 16476 "nls/iso8859-11/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-11/Makefile" ;; 16477 "nls/iso8859-13/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-13/Makefile" ;; 16478 "nls/iso8859-14/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-14/Makefile" ;; 16479 "nls/iso8859-15/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-15/Makefile" ;; 16480 "nls/iso8859-2/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-2/Makefile" ;; 16481 "nls/iso8859-3/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-3/Makefile" ;; 16482 "nls/iso8859-4/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-4/Makefile" ;; 16483 "nls/iso8859-5/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-5/Makefile" ;; 16484 "nls/iso8859-6/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-6/Makefile" ;; 16485 "nls/iso8859-7/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-7/Makefile" ;; 16486 "nls/iso8859-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-8/Makefile" ;; 16487 "nls/iso8859-9/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-9/Makefile" ;; 16488 "nls/iso8859-9e/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-9e/Makefile" ;; 16489 "nls/ja/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ja/Makefile" ;; 16490 "nls/ja.JIS/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ja.JIS/Makefile" ;; 16491 "nls/ja_JP.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ja_JP.UTF-8/Makefile" ;; 16492 "nls/ja.S90/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ja.S90/Makefile" ;; 16493 "nls/ja.SJIS/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ja.SJIS/Makefile" ;; 16494 "nls/ja.U90/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ja.U90/Makefile" ;; 16495 "nls/ko/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ko/Makefile" ;; 16496 "nls/koi8-c/Makefile") CONFIG_FILES="$CONFIG_FILES nls/koi8-c/Makefile" ;; 16497 "nls/koi8-r/Makefile") CONFIG_FILES="$CONFIG_FILES nls/koi8-r/Makefile" ;; 16498 "nls/koi8-u/Makefile") CONFIG_FILES="$CONFIG_FILES nls/koi8-u/Makefile" ;; 16499 "nls/ko_KR.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ko_KR.UTF-8/Makefile" ;; 16500 "nls/microsoft-cp1251/Makefile") CONFIG_FILES="$CONFIG_FILES nls/microsoft-cp1251/Makefile" ;; 16501 "nls/microsoft-cp1255/Makefile") CONFIG_FILES="$CONFIG_FILES nls/microsoft-cp1255/Makefile" ;; 16502 "nls/microsoft-cp1256/Makefile") CONFIG_FILES="$CONFIG_FILES nls/microsoft-cp1256/Makefile" ;; 16503 "nls/mulelao-1/Makefile") CONFIG_FILES="$CONFIG_FILES nls/mulelao-1/Makefile" ;; 16504 "nls/nokhchi-1/Makefile") CONFIG_FILES="$CONFIG_FILES nls/nokhchi-1/Makefile" ;; 16505 "nls/pt_BR.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/pt_BR.UTF-8/Makefile" ;; 16506 "nls/ru_RU.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ru_RU.UTF-8/Makefile" ;; 16507 "nls/tatar-cyr/Makefile") CONFIG_FILES="$CONFIG_FILES nls/tatar-cyr/Makefile" ;; 16508 "nls/th_TH/Makefile") CONFIG_FILES="$CONFIG_FILES nls/th_TH/Makefile" ;; 16509 "nls/th_TH.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/th_TH.UTF-8/Makefile" ;; 16510 "nls/tscii-0/Makefile") CONFIG_FILES="$CONFIG_FILES nls/tscii-0/Makefile" ;; 16511 "nls/vi_VN.tcvn/Makefile") CONFIG_FILES="$CONFIG_FILES nls/vi_VN.tcvn/Makefile" ;; 16512 "nls/vi_VN.viscii/Makefile") CONFIG_FILES="$CONFIG_FILES nls/vi_VN.viscii/Makefile" ;; 16513 "nls/zh_CN/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_CN/Makefile" ;; 16514 "nls/zh_CN.gb18030/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_CN.gb18030/Makefile" ;; 16515 "nls/zh_CN.gbk/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_CN.gbk/Makefile" ;; 16516 "nls/zh_CN.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_CN.UTF-8/Makefile" ;; 16517 "nls/zh_HK.big5/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_HK.big5/Makefile" ;; 16518 "nls/zh_HK.big5hkscs/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_HK.big5hkscs/Makefile" ;; 16519 "nls/zh_HK.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_HK.UTF-8/Makefile" ;; 16520 "nls/zh_TW/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_TW/Makefile" ;; 16521 "nls/zh_TW.big5/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_TW.big5/Makefile" ;; 16522 "nls/zh_TW.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_TW.UTF-8/Makefile" ;; 16523 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;; 16524 "specs/i18n/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/Makefile" ;; 16525 "specs/libX11/Makefile") CONFIG_FILES="$CONFIG_FILES specs/libX11/Makefile" ;; 16526 "specs/XIM/Makefile") CONFIG_FILES="$CONFIG_FILES specs/XIM/Makefile" ;; 16527 "x11.pc") CONFIG_FILES="$CONFIG_FILES x11.pc" ;; 16528 "x11-xcb.pc") CONFIG_FILES="$CONFIG_FILES x11-xcb.pc" ;; 16529 16530 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 16531 esac 16532done 16533 16534 16535# If the user did not use the arguments to specify the items to instantiate, 16536# then the envvar interface is used. Set only those that are not. 16537# We use the long form for the default assignment because of an extremely 16538# bizarre bug on SunOS 4.1.3. 16539if $ac_need_defaults; then 16540 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 16541 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 16542 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 16543fi 16544 16545# Have a temporary directory for convenience. Make it in the build tree 16546# simply because there is no reason against having it here, and in addition, 16547# creating and moving files from /tmp can sometimes cause problems. 16548# Hook for its removal unless debugging. 16549# Note that there is a small window in which the directory will not be cleaned: 16550# after its creation but before its name has been assigned to `$tmp'. 16551$debug || 16552{ 16553 tmp= 16554 trap 'exit_status=$? 16555 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 16556' 0 16557 trap 'as_fn_exit 1' 1 2 13 15 16558} 16559# Create a (secure) tmp directory for tmp files. 16560 16561{ 16562 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 16563 test -n "$tmp" && test -d "$tmp" 16564} || 16565{ 16566 tmp=./conf$$-$RANDOM 16567 (umask 077 && mkdir "$tmp") 16568} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 16569 16570# Set up the scripts for CONFIG_FILES section. 16571# No need to generate them if there are no CONFIG_FILES. 16572# This happens for instance with `./config.status config.h'. 16573if test -n "$CONFIG_FILES"; then 16574 16575 16576ac_cr=`echo X | tr X '\015'` 16577# On cygwin, bash can eat \r inside `` if the user requested igncr. 16578# But we know of no other shell where ac_cr would be empty at this 16579# point, so we can use a bashism as a fallback. 16580if test "x$ac_cr" = x; then 16581 eval ac_cr=\$\'\\r\' 16582fi 16583ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 16584if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 16585 ac_cs_awk_cr='\r' 16586else 16587 ac_cs_awk_cr=$ac_cr 16588fi 16589 16590echo 'BEGIN {' >"$tmp/subs1.awk" && 16591_ACEOF 16592 16593 16594{ 16595 echo "cat >conf$$subs.awk <<_ACEOF" && 16596 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 16597 echo "_ACEOF" 16598} >conf$$subs.sh || 16599 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 16600ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 16601ac_delim='%!_!# ' 16602for ac_last_try in false false false false false :; do 16603 . ./conf$$subs.sh || 16604 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 16605 16606 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 16607 if test $ac_delim_n = $ac_delim_num; then 16608 break 16609 elif $ac_last_try; then 16610 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 16611 else 16612 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16613 fi 16614done 16615rm -f conf$$subs.sh 16616 16617cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16618cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 16619_ACEOF 16620sed -n ' 16621h 16622s/^/S["/; s/!.*/"]=/ 16623p 16624g 16625s/^[^!]*!// 16626:repl 16627t repl 16628s/'"$ac_delim"'$// 16629t delim 16630:nl 16631h 16632s/\(.\{148\}\)..*/\1/ 16633t more1 16634s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 16635p 16636n 16637b repl 16638:more1 16639s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16640p 16641g 16642s/.\{148\}// 16643t nl 16644:delim 16645h 16646s/\(.\{148\}\)..*/\1/ 16647t more2 16648s/["\\]/\\&/g; s/^/"/; s/$/"/ 16649p 16650b 16651:more2 16652s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16653p 16654g 16655s/.\{148\}// 16656t delim 16657' <conf$$subs.awk | sed ' 16658/^[^""]/{ 16659 N 16660 s/\n// 16661} 16662' >>$CONFIG_STATUS || ac_write_fail=1 16663rm -f conf$$subs.awk 16664cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16665_ACAWK 16666cat >>"\$tmp/subs1.awk" <<_ACAWK && 16667 for (key in S) S_is_set[key] = 1 16668 FS = "" 16669 16670} 16671{ 16672 line = $ 0 16673 nfields = split(line, field, "@") 16674 substed = 0 16675 len = length(field[1]) 16676 for (i = 2; i < nfields; i++) { 16677 key = field[i] 16678 keylen = length(key) 16679 if (S_is_set[key]) { 16680 value = S[key] 16681 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 16682 len += length(value) + length(field[++i]) 16683 substed = 1 16684 } else 16685 len += 1 + keylen 16686 } 16687 16688 print line 16689} 16690 16691_ACAWK 16692_ACEOF 16693cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16694if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 16695 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 16696else 16697 cat 16698fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 16699 || as_fn_error "could not setup config files machinery" "$LINENO" 5 16700_ACEOF 16701 16702# VPATH may cause trouble with some makes, so we remove $(srcdir), 16703# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 16704# trailing colons and then remove the whole line if VPATH becomes empty 16705# (actually we leave an empty line to preserve line numbers). 16706if test "x$srcdir" = x.; then 16707 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 16708s/:*\$(srcdir):*/:/ 16709s/:*\${srcdir}:*/:/ 16710s/:*@srcdir@:*/:/ 16711s/^\([^=]*=[ ]*\):*/\1/ 16712s/:*$// 16713s/^[^=]*=[ ]*$// 16714}' 16715fi 16716 16717cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16718fi # test -n "$CONFIG_FILES" 16719 16720# Set up the scripts for CONFIG_HEADERS section. 16721# No need to generate them if there are no CONFIG_HEADERS. 16722# This happens for instance with `./config.status Makefile'. 16723if test -n "$CONFIG_HEADERS"; then 16724cat >"$tmp/defines.awk" <<\_ACAWK || 16725BEGIN { 16726_ACEOF 16727 16728# Transform confdefs.h into an awk script `defines.awk', embedded as 16729# here-document in config.status, that substitutes the proper values into 16730# config.h.in to produce config.h. 16731 16732# Create a delimiter string that does not exist in confdefs.h, to ease 16733# handling of long lines. 16734ac_delim='%!_!# ' 16735for ac_last_try in false false :; do 16736 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 16737 if test -z "$ac_t"; then 16738 break 16739 elif $ac_last_try; then 16740 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 16741 else 16742 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16743 fi 16744done 16745 16746# For the awk script, D is an array of macro values keyed by name, 16747# likewise P contains macro parameters if any. Preserve backslash 16748# newline sequences. 16749 16750ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 16751sed -n ' 16752s/.\{148\}/&'"$ac_delim"'/g 16753t rset 16754:rset 16755s/^[ ]*#[ ]*define[ ][ ]*/ / 16756t def 16757d 16758:def 16759s/\\$// 16760t bsnl 16761s/["\\]/\\&/g 16762s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16763D["\1"]=" \3"/p 16764s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 16765d 16766:bsnl 16767s/["\\]/\\&/g 16768s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16769D["\1"]=" \3\\\\\\n"\\/p 16770t cont 16771s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 16772t cont 16773d 16774:cont 16775n 16776s/.\{148\}/&'"$ac_delim"'/g 16777t clear 16778:clear 16779s/\\$// 16780t bsnlc 16781s/["\\]/\\&/g; s/^/"/; s/$/"/p 16782d 16783:bsnlc 16784s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 16785b cont 16786' <confdefs.h | sed ' 16787s/'"$ac_delim"'/"\\\ 16788"/g' >>$CONFIG_STATUS || ac_write_fail=1 16789 16790cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16791 for (key in D) D_is_set[key] = 1 16792 FS = "" 16793} 16794/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 16795 line = \$ 0 16796 split(line, arg, " ") 16797 if (arg[1] == "#") { 16798 defundef = arg[2] 16799 mac1 = arg[3] 16800 } else { 16801 defundef = substr(arg[1], 2) 16802 mac1 = arg[2] 16803 } 16804 split(mac1, mac2, "(") #) 16805 macro = mac2[1] 16806 prefix = substr(line, 1, index(line, defundef) - 1) 16807 if (D_is_set[macro]) { 16808 # Preserve the white space surrounding the "#". 16809 print prefix "define", macro P[macro] D[macro] 16810 next 16811 } else { 16812 # Replace #undef with comments. This is necessary, for example, 16813 # in the case of _POSIX_SOURCE, which is predefined and required 16814 # on some systems where configure will not decide to define it. 16815 if (defundef == "undef") { 16816 print "/*", prefix defundef, macro, "*/" 16817 next 16818 } 16819 } 16820} 16821{ print } 16822_ACAWK 16823_ACEOF 16824cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16825 as_fn_error "could not setup config headers machinery" "$LINENO" 5 16826fi # test -n "$CONFIG_HEADERS" 16827 16828 16829eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 16830shift 16831for ac_tag 16832do 16833 case $ac_tag in 16834 :[FHLC]) ac_mode=$ac_tag; continue;; 16835 esac 16836 case $ac_mode$ac_tag in 16837 :[FHL]*:*);; 16838 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 16839 :[FH]-) ac_tag=-:-;; 16840 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 16841 esac 16842 ac_save_IFS=$IFS 16843 IFS=: 16844 set x $ac_tag 16845 IFS=$ac_save_IFS 16846 shift 16847 ac_file=$1 16848 shift 16849 16850 case $ac_mode in 16851 :L) ac_source=$1;; 16852 :[FH]) 16853 ac_file_inputs= 16854 for ac_f 16855 do 16856 case $ac_f in 16857 -) ac_f="$tmp/stdin";; 16858 *) # Look for the file first in the build tree, then in the source tree 16859 # (if the path is not absolute). The absolute path cannot be DOS-style, 16860 # because $ac_f cannot contain `:'. 16861 test -f "$ac_f" || 16862 case $ac_f in 16863 [\\/$]*) false;; 16864 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 16865 esac || 16866 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 16867 esac 16868 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 16869 as_fn_append ac_file_inputs " '$ac_f'" 16870 done 16871 16872 # Let's still pretend it is `configure' which instantiates (i.e., don't 16873 # use $as_me), people would be surprised to read: 16874 # /* config.h. Generated by config.status. */ 16875 configure_input='Generated from '` 16876 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 16877 `' by configure.' 16878 if test x"$ac_file" != x-; then 16879 configure_input="$ac_file. $configure_input" 16880 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 16881$as_echo "$as_me: creating $ac_file" >&6;} 16882 fi 16883 # Neutralize special characters interpreted by sed in replacement strings. 16884 case $configure_input in #( 16885 *\&* | *\|* | *\\* ) 16886 ac_sed_conf_input=`$as_echo "$configure_input" | 16887 sed 's/[\\\\&|]/\\\\&/g'`;; #( 16888 *) ac_sed_conf_input=$configure_input;; 16889 esac 16890 16891 case $ac_tag in 16892 *:-:* | *:-) cat >"$tmp/stdin" \ 16893 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 16894 esac 16895 ;; 16896 esac 16897 16898 ac_dir=`$as_dirname -- "$ac_file" || 16899$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16900 X"$ac_file" : 'X\(//\)[^/]' \| \ 16901 X"$ac_file" : 'X\(//\)$' \| \ 16902 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 16903$as_echo X"$ac_file" | 16904 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16905 s//\1/ 16906 q 16907 } 16908 /^X\(\/\/\)[^/].*/{ 16909 s//\1/ 16910 q 16911 } 16912 /^X\(\/\/\)$/{ 16913 s//\1/ 16914 q 16915 } 16916 /^X\(\/\).*/{ 16917 s//\1/ 16918 q 16919 } 16920 s/.*/./; q'` 16921 as_dir="$ac_dir"; as_fn_mkdir_p 16922 ac_builddir=. 16923 16924case "$ac_dir" in 16925.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 16926*) 16927 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 16928 # A ".." for each directory in $ac_dir_suffix. 16929 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 16930 case $ac_top_builddir_sub in 16931 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 16932 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 16933 esac ;; 16934esac 16935ac_abs_top_builddir=$ac_pwd 16936ac_abs_builddir=$ac_pwd$ac_dir_suffix 16937# for backward compatibility: 16938ac_top_builddir=$ac_top_build_prefix 16939 16940case $srcdir in 16941 .) # We are building in place. 16942 ac_srcdir=. 16943 ac_top_srcdir=$ac_top_builddir_sub 16944 ac_abs_top_srcdir=$ac_pwd ;; 16945 [\\/]* | ?:[\\/]* ) # Absolute name. 16946 ac_srcdir=$srcdir$ac_dir_suffix; 16947 ac_top_srcdir=$srcdir 16948 ac_abs_top_srcdir=$srcdir ;; 16949 *) # Relative name. 16950 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 16951 ac_top_srcdir=$ac_top_build_prefix$srcdir 16952 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 16953esac 16954ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 16955 16956 16957 case $ac_mode in 16958 :F) 16959 # 16960 # CONFIG_FILE 16961 # 16962 16963 case $INSTALL in 16964 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 16965 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 16966 esac 16967 ac_MKDIR_P=$MKDIR_P 16968 case $MKDIR_P in 16969 [\\/$]* | ?:[\\/]* ) ;; 16970 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 16971 esac 16972_ACEOF 16973 16974cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16975# If the template does not know about datarootdir, expand it. 16976# FIXME: This hack should be removed a few years after 2.60. 16977ac_datarootdir_hack=; ac_datarootdir_seen= 16978ac_sed_dataroot=' 16979/datarootdir/ { 16980 p 16981 q 16982} 16983/@datadir@/p 16984/@docdir@/p 16985/@infodir@/p 16986/@localedir@/p 16987/@mandir@/p' 16988case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 16989*datarootdir*) ac_datarootdir_seen=yes;; 16990*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 16991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 16992$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 16993_ACEOF 16994cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16995 ac_datarootdir_hack=' 16996 s&@datadir@&$datadir&g 16997 s&@docdir@&$docdir&g 16998 s&@infodir@&$infodir&g 16999 s&@localedir@&$localedir&g 17000 s&@mandir@&$mandir&g 17001 s&\\\${datarootdir}&$datarootdir&g' ;; 17002esac 17003_ACEOF 17004 17005# Neutralize VPATH when `$srcdir' = `.'. 17006# Shell code in configure.ac might set extrasub. 17007# FIXME: do we really want to maintain this feature? 17008cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17009ac_sed_extra="$ac_vpsub 17010$extrasub 17011_ACEOF 17012cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17013:t 17014/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 17015s|@configure_input@|$ac_sed_conf_input|;t t 17016s&@top_builddir@&$ac_top_builddir_sub&;t t 17017s&@top_build_prefix@&$ac_top_build_prefix&;t t 17018s&@srcdir@&$ac_srcdir&;t t 17019s&@abs_srcdir@&$ac_abs_srcdir&;t t 17020s&@top_srcdir@&$ac_top_srcdir&;t t 17021s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 17022s&@builddir@&$ac_builddir&;t t 17023s&@abs_builddir@&$ac_abs_builddir&;t t 17024s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 17025s&@INSTALL@&$ac_INSTALL&;t t 17026s&@MKDIR_P@&$ac_MKDIR_P&;t t 17027$ac_datarootdir_hack 17028" 17029eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 17030 || as_fn_error "could not create $ac_file" "$LINENO" 5 17031 17032test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 17033 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 17034 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 17035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17036which seems to be undefined. Please make sure it is defined." >&5 17037$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17038which seems to be undefined. Please make sure it is defined." >&2;} 17039 17040 rm -f "$tmp/stdin" 17041 case $ac_file in 17042 -) cat "$tmp/out" && rm -f "$tmp/out";; 17043 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 17044 esac \ 17045 || as_fn_error "could not create $ac_file" "$LINENO" 5 17046 ;; 17047 :H) 17048 # 17049 # CONFIG_HEADER 17050 # 17051 if test x"$ac_file" != x-; then 17052 { 17053 $as_echo "/* $configure_input */" \ 17054 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 17055 } >"$tmp/config.h" \ 17056 || as_fn_error "could not create $ac_file" "$LINENO" 5 17057 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 17058 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 17059$as_echo "$as_me: $ac_file is unchanged" >&6;} 17060 else 17061 rm -f "$ac_file" 17062 mv "$tmp/config.h" "$ac_file" \ 17063 || as_fn_error "could not create $ac_file" "$LINENO" 5 17064 fi 17065 else 17066 $as_echo "/* $configure_input */" \ 17067 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 17068 || as_fn_error "could not create -" "$LINENO" 5 17069 fi 17070# Compute "$ac_file"'s index in $config_headers. 17071_am_arg="$ac_file" 17072_am_stamp_count=1 17073for _am_header in $config_headers :; do 17074 case $_am_header in 17075 $_am_arg | $_am_arg:* ) 17076 break ;; 17077 * ) 17078 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 17079 esac 17080done 17081echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 17082$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17083 X"$_am_arg" : 'X\(//\)[^/]' \| \ 17084 X"$_am_arg" : 'X\(//\)$' \| \ 17085 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 17086$as_echo X"$_am_arg" | 17087 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17088 s//\1/ 17089 q 17090 } 17091 /^X\(\/\/\)[^/].*/{ 17092 s//\1/ 17093 q 17094 } 17095 /^X\(\/\/\)$/{ 17096 s//\1/ 17097 q 17098 } 17099 /^X\(\/\).*/{ 17100 s//\1/ 17101 q 17102 } 17103 s/.*/./; q'`/stamp-h$_am_stamp_count 17104 ;; 17105 17106 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 17107$as_echo "$as_me: executing $ac_file commands" >&6;} 17108 ;; 17109 esac 17110 17111 17112 case $ac_file$ac_mode in 17113 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 17114 # Autoconf 2.62 quotes --file arguments for eval, but not when files 17115 # are listed without --file. Let's play safe and only enable the eval 17116 # if we detect the quoting. 17117 case $CONFIG_FILES in 17118 *\'*) eval set x "$CONFIG_FILES" ;; 17119 *) set x $CONFIG_FILES ;; 17120 esac 17121 shift 17122 for mf 17123 do 17124 # Strip MF so we end up with the name of the file. 17125 mf=`echo "$mf" | sed -e 's/:.*$//'` 17126 # Check whether this is an Automake generated Makefile or not. 17127 # We used to match only the files named `Makefile.in', but 17128 # some people rename them; so instead we look at the file content. 17129 # Grep'ing the first line is not enough: some people post-process 17130 # each Makefile.in and add a new line on top of each file to say so. 17131 # Grep'ing the whole file is not good either: AIX grep has a line 17132 # limit of 2048, but all sed's we know have understand at least 4000. 17133 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 17134 dirpart=`$as_dirname -- "$mf" || 17135$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17136 X"$mf" : 'X\(//\)[^/]' \| \ 17137 X"$mf" : 'X\(//\)$' \| \ 17138 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 17139$as_echo X"$mf" | 17140 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17141 s//\1/ 17142 q 17143 } 17144 /^X\(\/\/\)[^/].*/{ 17145 s//\1/ 17146 q 17147 } 17148 /^X\(\/\/\)$/{ 17149 s//\1/ 17150 q 17151 } 17152 /^X\(\/\).*/{ 17153 s//\1/ 17154 q 17155 } 17156 s/.*/./; q'` 17157 else 17158 continue 17159 fi 17160 # Extract the definition of DEPDIR, am__include, and am__quote 17161 # from the Makefile without running `make'. 17162 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 17163 test -z "$DEPDIR" && continue 17164 am__include=`sed -n 's/^am__include = //p' < "$mf"` 17165 test -z "am__include" && continue 17166 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 17167 # When using ansi2knr, U may be empty or an underscore; expand it 17168 U=`sed -n 's/^U = //p' < "$mf"` 17169 # Find all dependency output files, they are included files with 17170 # $(DEPDIR) in their names. We invoke sed twice because it is the 17171 # simplest approach to changing $(DEPDIR) to its actual value in the 17172 # expansion. 17173 for file in `sed -n " 17174 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 17175 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 17176 # Make sure the directory exists. 17177 test -f "$dirpart/$file" && continue 17178 fdir=`$as_dirname -- "$file" || 17179$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17180 X"$file" : 'X\(//\)[^/]' \| \ 17181 X"$file" : 'X\(//\)$' \| \ 17182 X"$file" : 'X\(/\)' \| . 2>/dev/null || 17183$as_echo X"$file" | 17184 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17185 s//\1/ 17186 q 17187 } 17188 /^X\(\/\/\)[^/].*/{ 17189 s//\1/ 17190 q 17191 } 17192 /^X\(\/\/\)$/{ 17193 s//\1/ 17194 q 17195 } 17196 /^X\(\/\).*/{ 17197 s//\1/ 17198 q 17199 } 17200 s/.*/./; q'` 17201 as_dir=$dirpart/$fdir; as_fn_mkdir_p 17202 # echo "creating $dirpart/$file" 17203 echo '# dummy' > "$dirpart/$file" 17204 done 17205 done 17206} 17207 ;; 17208 "libtool":C) 17209 17210 # See if we are running on zsh, and set the options which allow our 17211 # commands through without removal of \ escapes. 17212 if test -n "${ZSH_VERSION+set}" ; then 17213 setopt NO_GLOB_SUBST 17214 fi 17215 17216 cfgfile="${ofile}T" 17217 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 17218 $RM "$cfgfile" 17219 17220 cat <<_LT_EOF >> "$cfgfile" 17221#! $SHELL 17222 17223# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 17224# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 17225# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17226# NOTE: Changes made to this file will be lost: look at ltmain.sh. 17227# 17228# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 17229# 2006, 2007, 2008 Free Software Foundation, Inc. 17230# Written by Gordon Matzigkeit, 1996 17231# 17232# This file is part of GNU Libtool. 17233# 17234# GNU Libtool is free software; you can redistribute it and/or 17235# modify it under the terms of the GNU General Public License as 17236# published by the Free Software Foundation; either version 2 of 17237# the License, or (at your option) any later version. 17238# 17239# As a special exception to the GNU General Public License, 17240# if you distribute this file as part of a program or library that 17241# is built using GNU Libtool, you may include this file under the 17242# same distribution terms that you use for the rest of that program. 17243# 17244# GNU Libtool is distributed in the hope that it will be useful, 17245# but WITHOUT ANY WARRANTY; without even the implied warranty of 17246# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17247# GNU General Public License for more details. 17248# 17249# You should have received a copy of the GNU General Public License 17250# along with GNU Libtool; see the file COPYING. If not, a copy 17251# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 17252# obtained by writing to the Free Software Foundation, Inc., 17253# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17254 17255 17256# The names of the tagged configurations supported by this script. 17257available_tags="" 17258 17259# ### BEGIN LIBTOOL CONFIG 17260 17261# Which release of libtool.m4 was used? 17262macro_version=$macro_version 17263macro_revision=$macro_revision 17264 17265# Whether or not to build shared libraries. 17266build_libtool_libs=$enable_shared 17267 17268# Whether or not to build static libraries. 17269build_old_libs=$enable_static 17270 17271# What type of objects to build. 17272pic_mode=$pic_mode 17273 17274# Whether or not to optimize for fast installation. 17275fast_install=$enable_fast_install 17276 17277# The host system. 17278host_alias=$host_alias 17279host=$host 17280host_os=$host_os 17281 17282# The build system. 17283build_alias=$build_alias 17284build=$build 17285build_os=$build_os 17286 17287# A sed program that does not truncate output. 17288SED=$lt_SED 17289 17290# Sed that helps us avoid accidentally triggering echo(1) options like -n. 17291Xsed="\$SED -e 1s/^X//" 17292 17293# A grep program that handles long lines. 17294GREP=$lt_GREP 17295 17296# An ERE matcher. 17297EGREP=$lt_EGREP 17298 17299# A literal string matcher. 17300FGREP=$lt_FGREP 17301 17302# A BSD- or MS-compatible name lister. 17303NM=$lt_NM 17304 17305# Whether we need soft or hard links. 17306LN_S=$lt_LN_S 17307 17308# What is the maximum length of a command? 17309max_cmd_len=$max_cmd_len 17310 17311# Object file suffix (normally "o"). 17312objext=$ac_objext 17313 17314# Executable file suffix (normally ""). 17315exeext=$exeext 17316 17317# whether the shell understands "unset". 17318lt_unset=$lt_unset 17319 17320# turn spaces into newlines. 17321SP2NL=$lt_lt_SP2NL 17322 17323# turn newlines into spaces. 17324NL2SP=$lt_lt_NL2SP 17325 17326# How to create reloadable object files. 17327reload_flag=$lt_reload_flag 17328reload_cmds=$lt_reload_cmds 17329 17330# An object symbol dumper. 17331OBJDUMP=$lt_OBJDUMP 17332 17333# Method to check whether dependent libraries are shared objects. 17334deplibs_check_method=$lt_deplibs_check_method 17335 17336# Command to use when deplibs_check_method == "file_magic". 17337file_magic_cmd=$lt_file_magic_cmd 17338 17339# The archiver. 17340AR=$lt_AR 17341AR_FLAGS=$lt_AR_FLAGS 17342 17343# A symbol stripping program. 17344STRIP=$lt_STRIP 17345 17346# Commands used to install an old-style archive. 17347RANLIB=$lt_RANLIB 17348old_postinstall_cmds=$lt_old_postinstall_cmds 17349old_postuninstall_cmds=$lt_old_postuninstall_cmds 17350 17351# A C compiler. 17352LTCC=$lt_CC 17353 17354# LTCC compiler flags. 17355LTCFLAGS=$lt_CFLAGS 17356 17357# Take the output of nm and produce a listing of raw symbols and C names. 17358global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17359 17360# Transform the output of nm in a proper C declaration. 17361global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17362 17363# Transform the output of nm in a C name address pair. 17364global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17365 17366# Transform the output of nm in a C name address pair when lib prefix is needed. 17367global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 17368 17369# The name of the directory that contains temporary libtool files. 17370objdir=$objdir 17371 17372# Shell to use when invoking shell scripts. 17373SHELL=$lt_SHELL 17374 17375# An echo program that does not interpret backslashes. 17376ECHO=$lt_ECHO 17377 17378# Used to examine libraries when file_magic_cmd begins with "file". 17379MAGIC_CMD=$MAGIC_CMD 17380 17381# Must we lock files when doing compilation? 17382need_locks=$lt_need_locks 17383 17384# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 17385DSYMUTIL=$lt_DSYMUTIL 17386 17387# Tool to change global to local symbols on Mac OS X. 17388NMEDIT=$lt_NMEDIT 17389 17390# Tool to manipulate fat objects and archives on Mac OS X. 17391LIPO=$lt_LIPO 17392 17393# ldd/readelf like tool for Mach-O binaries on Mac OS X. 17394OTOOL=$lt_OTOOL 17395 17396# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 17397OTOOL64=$lt_OTOOL64 17398 17399# Old archive suffix (normally "a"). 17400libext=$libext 17401 17402# Shared library suffix (normally ".so"). 17403shrext_cmds=$lt_shrext_cmds 17404 17405# The commands to extract the exported symbol list from a shared archive. 17406extract_expsyms_cmds=$lt_extract_expsyms_cmds 17407 17408# Variables whose values should be saved in libtool wrapper scripts and 17409# restored at link time. 17410variables_saved_for_relink=$lt_variables_saved_for_relink 17411 17412# Do we need the "lib" prefix for modules? 17413need_lib_prefix=$need_lib_prefix 17414 17415# Do we need a version for libraries? 17416need_version=$need_version 17417 17418# Library versioning type. 17419version_type=$version_type 17420 17421# Shared library runtime path variable. 17422runpath_var=$runpath_var 17423 17424# Shared library path variable. 17425shlibpath_var=$shlibpath_var 17426 17427# Is shlibpath searched before the hard-coded library search path? 17428shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17429 17430# Format of library name prefix. 17431libname_spec=$lt_libname_spec 17432 17433# List of archive names. First name is the real one, the rest are links. 17434# The last name is the one that the linker finds with -lNAME 17435library_names_spec=$lt_library_names_spec 17436 17437# The coded name of the library, if different from the real name. 17438soname_spec=$lt_soname_spec 17439 17440# Command to use after installation of a shared archive. 17441postinstall_cmds=$lt_postinstall_cmds 17442 17443# Command to use after uninstallation of a shared archive. 17444postuninstall_cmds=$lt_postuninstall_cmds 17445 17446# Commands used to finish a libtool library installation in a directory. 17447finish_cmds=$lt_finish_cmds 17448 17449# As "finish_cmds", except a single script fragment to be evaled but 17450# not shown. 17451finish_eval=$lt_finish_eval 17452 17453# Whether we should hardcode library paths into libraries. 17454hardcode_into_libs=$hardcode_into_libs 17455 17456# Compile-time system search path for libraries. 17457sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17458 17459# Run-time system search path for libraries. 17460sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 17461 17462# Whether dlopen is supported. 17463dlopen_support=$enable_dlopen 17464 17465# Whether dlopen of programs is supported. 17466dlopen_self=$enable_dlopen_self 17467 17468# Whether dlopen of statically linked programs is supported. 17469dlopen_self_static=$enable_dlopen_self_static 17470 17471# Commands to strip libraries. 17472old_striplib=$lt_old_striplib 17473striplib=$lt_striplib 17474 17475 17476# The linker used to build libraries. 17477LD=$lt_LD 17478 17479# Commands used to build an old-style archive. 17480old_archive_cmds=$lt_old_archive_cmds 17481 17482# A language specific compiler. 17483CC=$lt_compiler 17484 17485# Is the compiler the GNU compiler? 17486with_gcc=$GCC 17487 17488# Compiler flag to turn off builtin functions. 17489no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 17490 17491# How to pass a linker flag through the compiler. 17492wl=$lt_lt_prog_compiler_wl 17493 17494# Additional compiler flags for building library objects. 17495pic_flag=$lt_lt_prog_compiler_pic 17496 17497# Compiler flag to prevent dynamic linking. 17498link_static_flag=$lt_lt_prog_compiler_static 17499 17500# Does compiler simultaneously support -c and -o options? 17501compiler_c_o=$lt_lt_cv_prog_compiler_c_o 17502 17503# Whether or not to add -lc for building shared libraries. 17504build_libtool_need_lc=$archive_cmds_need_lc 17505 17506# Whether or not to disallow shared libs when runtime libs are static. 17507allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 17508 17509# Compiler flag to allow reflexive dlopens. 17510export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 17511 17512# Compiler flag to generate shared objects directly from archives. 17513whole_archive_flag_spec=$lt_whole_archive_flag_spec 17514 17515# Whether the compiler copes with passing no objects directly. 17516compiler_needs_object=$lt_compiler_needs_object 17517 17518# Create an old-style archive from a shared archive. 17519old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 17520 17521# Create a temporary old-style archive to link instead of a shared archive. 17522old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 17523 17524# Commands used to build a shared archive. 17525archive_cmds=$lt_archive_cmds 17526archive_expsym_cmds=$lt_archive_expsym_cmds 17527 17528# Commands used to build a loadable module if different from building 17529# a shared archive. 17530module_cmds=$lt_module_cmds 17531module_expsym_cmds=$lt_module_expsym_cmds 17532 17533# Whether we are building with GNU ld or not. 17534with_gnu_ld=$lt_with_gnu_ld 17535 17536# Flag that allows shared libraries with undefined symbols to be built. 17537allow_undefined_flag=$lt_allow_undefined_flag 17538 17539# Flag that enforces no undefined symbols. 17540no_undefined_flag=$lt_no_undefined_flag 17541 17542# Flag to hardcode \$libdir into a binary during linking. 17543# This must work even if \$libdir does not exist 17544hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 17545 17546# If ld is used when linking, flag to hardcode \$libdir into a binary 17547# during linking. This must work even if \$libdir does not exist. 17548hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 17549 17550# Whether we need a single "-rpath" flag with a separated argument. 17551hardcode_libdir_separator=$lt_hardcode_libdir_separator 17552 17553# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17554# DIR into the resulting binary. 17555hardcode_direct=$hardcode_direct 17556 17557# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17558# DIR into the resulting binary and the resulting library dependency is 17559# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 17560# library is relocated. 17561hardcode_direct_absolute=$hardcode_direct_absolute 17562 17563# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 17564# into the resulting binary. 17565hardcode_minus_L=$hardcode_minus_L 17566 17567# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 17568# into the resulting binary. 17569hardcode_shlibpath_var=$hardcode_shlibpath_var 17570 17571# Set to "yes" if building a shared library automatically hardcodes DIR 17572# into the library and all subsequent libraries and executables linked 17573# against it. 17574hardcode_automatic=$hardcode_automatic 17575 17576# Set to yes if linker adds runtime paths of dependent libraries 17577# to runtime path list. 17578inherit_rpath=$inherit_rpath 17579 17580# Whether libtool must link a program against all its dependency libraries. 17581link_all_deplibs=$link_all_deplibs 17582 17583# Fix the shell variable \$srcfile for the compiler. 17584fix_srcfile_path=$lt_fix_srcfile_path 17585 17586# Set to "yes" if exported symbols are required. 17587always_export_symbols=$always_export_symbols 17588 17589# The commands to list exported symbols. 17590export_symbols_cmds=$lt_export_symbols_cmds 17591 17592# Symbols that should not be listed in the preloaded symbols. 17593exclude_expsyms=$lt_exclude_expsyms 17594 17595# Symbols that must always be exported. 17596include_expsyms=$lt_include_expsyms 17597 17598# Commands necessary for linking programs (against libraries) with templates. 17599prelink_cmds=$lt_prelink_cmds 17600 17601# Specify filename containing input files. 17602file_list_spec=$lt_file_list_spec 17603 17604# How to hardcode a shared library path into an executable. 17605hardcode_action=$hardcode_action 17606 17607# ### END LIBTOOL CONFIG 17608 17609_LT_EOF 17610 17611 case $host_os in 17612 aix3*) 17613 cat <<\_LT_EOF >> "$cfgfile" 17614# AIX sometimes has problems with the GCC collect2 program. For some 17615# reason, if we set the COLLECT_NAMES environment variable, the problems 17616# vanish in a puff of smoke. 17617if test "X${COLLECT_NAMES+set}" != Xset; then 17618 COLLECT_NAMES= 17619 export COLLECT_NAMES 17620fi 17621_LT_EOF 17622 ;; 17623 esac 17624 17625 17626ltmain="$ac_aux_dir/ltmain.sh" 17627 17628 17629 # We use sed instead of cat because bash on DJGPP gets confused if 17630 # if finds mixed CR/LF and LF-only lines. Since sed operates in 17631 # text mode, it properly converts lines to CR/LF. This bash problem 17632 # is reportedly fixed, but why not run on old versions too? 17633 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 17634 || (rm -f "$cfgfile"; exit 1) 17635 17636 case $xsi_shell in 17637 yes) 17638 cat << \_LT_EOF >> "$cfgfile" 17639 17640# func_dirname file append nondir_replacement 17641# Compute the dirname of FILE. If nonempty, add APPEND to the result, 17642# otherwise set result to NONDIR_REPLACEMENT. 17643func_dirname () 17644{ 17645 case ${1} in 17646 */*) func_dirname_result="${1%/*}${2}" ;; 17647 * ) func_dirname_result="${3}" ;; 17648 esac 17649} 17650 17651# func_basename file 17652func_basename () 17653{ 17654 func_basename_result="${1##*/}" 17655} 17656 17657# func_dirname_and_basename file append nondir_replacement 17658# perform func_basename and func_dirname in a single function 17659# call: 17660# dirname: Compute the dirname of FILE. If nonempty, 17661# add APPEND to the result, otherwise set result 17662# to NONDIR_REPLACEMENT. 17663# value returned in "$func_dirname_result" 17664# basename: Compute filename of FILE. 17665# value retuned in "$func_basename_result" 17666# Implementation must be kept synchronized with func_dirname 17667# and func_basename. For efficiency, we do not delegate to 17668# those functions but instead duplicate the functionality here. 17669func_dirname_and_basename () 17670{ 17671 case ${1} in 17672 */*) func_dirname_result="${1%/*}${2}" ;; 17673 * ) func_dirname_result="${3}" ;; 17674 esac 17675 func_basename_result="${1##*/}" 17676} 17677 17678# func_stripname prefix suffix name 17679# strip PREFIX and SUFFIX off of NAME. 17680# PREFIX and SUFFIX must not contain globbing or regex special 17681# characters, hashes, percent signs, but SUFFIX may contain a leading 17682# dot (in which case that matches only a dot). 17683func_stripname () 17684{ 17685 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 17686 # positional parameters, so assign one to ordinary parameter first. 17687 func_stripname_result=${3} 17688 func_stripname_result=${func_stripname_result#"${1}"} 17689 func_stripname_result=${func_stripname_result%"${2}"} 17690} 17691 17692# func_opt_split 17693func_opt_split () 17694{ 17695 func_opt_split_opt=${1%%=*} 17696 func_opt_split_arg=${1#*=} 17697} 17698 17699# func_lo2o object 17700func_lo2o () 17701{ 17702 case ${1} in 17703 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 17704 *) func_lo2o_result=${1} ;; 17705 esac 17706} 17707 17708# func_xform libobj-or-source 17709func_xform () 17710{ 17711 func_xform_result=${1%.*}.lo 17712} 17713 17714# func_arith arithmetic-term... 17715func_arith () 17716{ 17717 func_arith_result=$(( $* )) 17718} 17719 17720# func_len string 17721# STRING may not start with a hyphen. 17722func_len () 17723{ 17724 func_len_result=${#1} 17725} 17726 17727_LT_EOF 17728 ;; 17729 *) # Bourne compatible functions. 17730 cat << \_LT_EOF >> "$cfgfile" 17731 17732# func_dirname file append nondir_replacement 17733# Compute the dirname of FILE. If nonempty, add APPEND to the result, 17734# otherwise set result to NONDIR_REPLACEMENT. 17735func_dirname () 17736{ 17737 # Extract subdirectory from the argument. 17738 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 17739 if test "X$func_dirname_result" = "X${1}"; then 17740 func_dirname_result="${3}" 17741 else 17742 func_dirname_result="$func_dirname_result${2}" 17743 fi 17744} 17745 17746# func_basename file 17747func_basename () 17748{ 17749 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 17750} 17751 17752 17753# func_stripname prefix suffix name 17754# strip PREFIX and SUFFIX off of NAME. 17755# PREFIX and SUFFIX must not contain globbing or regex special 17756# characters, hashes, percent signs, but SUFFIX may contain a leading 17757# dot (in which case that matches only a dot). 17758# func_strip_suffix prefix name 17759func_stripname () 17760{ 17761 case ${2} in 17762 .*) func_stripname_result=`$ECHO "X${3}" \ 17763 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 17764 *) func_stripname_result=`$ECHO "X${3}" \ 17765 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 17766 esac 17767} 17768 17769# sed scripts: 17770my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 17771my_sed_long_arg='1s/^-[^=]*=//' 17772 17773# func_opt_split 17774func_opt_split () 17775{ 17776 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 17777 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 17778} 17779 17780# func_lo2o object 17781func_lo2o () 17782{ 17783 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 17784} 17785 17786# func_xform libobj-or-source 17787func_xform () 17788{ 17789 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 17790} 17791 17792# func_arith arithmetic-term... 17793func_arith () 17794{ 17795 func_arith_result=`expr "$@"` 17796} 17797 17798# func_len string 17799# STRING may not start with a hyphen. 17800func_len () 17801{ 17802 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 17803} 17804 17805_LT_EOF 17806esac 17807 17808case $lt_shell_append in 17809 yes) 17810 cat << \_LT_EOF >> "$cfgfile" 17811 17812# func_append var value 17813# Append VALUE to the end of shell variable VAR. 17814func_append () 17815{ 17816 eval "$1+=\$2" 17817} 17818_LT_EOF 17819 ;; 17820 *) 17821 cat << \_LT_EOF >> "$cfgfile" 17822 17823# func_append var value 17824# Append VALUE to the end of shell variable VAR. 17825func_append () 17826{ 17827 eval "$1=\$$1\$2" 17828} 17829 17830_LT_EOF 17831 ;; 17832 esac 17833 17834 17835 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 17836 || (rm -f "$cfgfile"; exit 1) 17837 17838 mv -f "$cfgfile" "$ofile" || 17839 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 17840 chmod +x "$ofile" 17841 17842 ;; 17843 17844 esac 17845done # for ac_tag 17846 17847 17848as_fn_exit 0 17849_ACEOF 17850ac_clean_files=$ac_clean_files_save 17851 17852test $ac_write_fail = 0 || 17853 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 17854 17855 17856# configure is writing to config.log, and then calls config.status. 17857# config.status does its own redirection, appending to config.log. 17858# Unfortunately, on DOS this fails, as config.log is still kept open 17859# by configure, so config.status won't be able to write to it; its 17860# output is simply discarded. So we exec the FD to /dev/null, 17861# effectively closing config.log, so it can be properly (re)opened and 17862# appended to by config.status. When coming back to configure, we 17863# need to make the FD available again. 17864if test "$no_create" != yes; then 17865 ac_cs_success=: 17866 ac_config_status_args= 17867 test "$silent" = yes && 17868 ac_config_status_args="$ac_config_status_args --quiet" 17869 exec 5>/dev/null 17870 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 17871 exec 5>>config.log 17872 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 17873 # would make configure fail if this is the last instruction. 17874 $ac_cs_success || as_fn_exit $? 17875fi 17876if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 17877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 17878$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 17879fi 17880 17881 17882man_pages_suffix=$LIB_MAN_SUFFIX 17883if test -z "$man_pages_suffix"; then 17884 man_pages_suffix=none 17885fi 17886 17887echo "" 17888echo "X11 will be built with the following settings:" 17889echo " Loadable i18n module support: "$XLIB_LOADABLE_I18N 17890echo " Loadable xcursor library support: "$XLIB_LOADABLE_XCURSOR 17891echo " Use XCB: "$ac_cv_use_xcb 17892echo " Threading support: "$xthreads 17893echo " Use Threads safe API: "$mtsafeapi 17894echo " Threads stubs in libX11: "$thrstubs 17895echo " XCMS: "$XCMS 17896echo " Internationalization support: "$XLOCALE 17897echo " XF86BigFont support: "$XF86BIGFONT 17898echo " XKB support: "$XKB 17899echo " XLOCALEDIR environment variable support: "$ENABLE_XLOCALEDIR 17900echo " Manual pages suffix: "$man_pages_suffix 17901echo " Compose table cache enabled: "$COMPOSECACHE 17902echo " Functional specs building enabled: "$build_specs 17903echo "" 17904