configure revision 5ffd6003
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.65 for xdm 1.1.10. 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='xdm' 704PACKAGE_TARNAME='xdm' 705PACKAGE_VERSION='1.1.10' 706PACKAGE_STRING='xdm 1.1.10' 707PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 708PACKAGE_URL='' 709 710# Factoring default headers for most tests. 711ac_includes_default="\ 712#include <stdio.h> 713#ifdef HAVE_SYS_TYPES_H 714# include <sys/types.h> 715#endif 716#ifdef HAVE_SYS_STAT_H 717# include <sys/stat.h> 718#endif 719#ifdef STDC_HEADERS 720# include <stdlib.h> 721# include <stddef.h> 722#else 723# ifdef HAVE_STDLIB_H 724# include <stdlib.h> 725# endif 726#endif 727#ifdef HAVE_STRING_H 728# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 729# include <memory.h> 730# endif 731# include <string.h> 732#endif 733#ifdef HAVE_STRINGS_H 734# include <strings.h> 735#endif 736#ifdef HAVE_INTTYPES_H 737# include <inttypes.h> 738#endif 739#ifdef HAVE_STDINT_H 740# include <stdint.h> 741#endif 742#ifdef HAVE_UNISTD_H 743# include <unistd.h> 744#endif" 745 746ac_subst_vars='am__EXEEXT_FALSE 747am__EXEEXT_TRUE 748LTLIBOBJS 749LIBOBJS 750appdefaultdir 751APPDEFS_LIBS 752APPDEFS_CFLAGS 753DEF_AUTH_DIR 754XDMXAUTHDIR 755DEF_CHOOSER 756DEF_XDM_CONFIG 757DEF_FAILSAFE_CLIENT 758DEF_SYSTEM_SHELL 759DEF_SYSTEM_PATH 760DEF_USER_PATH 761DEF_SESSION 762XRDB_PROGRAM 763DEF_SERVER_LINE 764CHOOSER_LIBS 765CHOOSER_CFLAGS 766XDMSHELL_LIBS 767XDMSHELL_CFLAGS 768XT_LIBS 769XT_CFLAGS 770XDM_LDFLAGS 771HAS_XDM_AUTH_FALSE 772HAS_XDM_AUTH_TRUE 773DYNAMIC_GREETER_FALSE 774DYNAMIC_GREETER_TRUE 775DEF_GREETER_LIB 776XDMGREET_LIBS 777XDMGREET_CFLAGS 778AUTH_LIBS 779AUTH_CFLAGS 780XLIB_LIBS 781XLIB_CFLAGS 782DMCP_LIBS 783DMCP_CFLAGS 784XDM_PRINT_LIBS 785XDM_PRINT_CFLAGS 786XDM_PIXMAPDIR 787XDM_BWPIXMAP 788XDM_PIXMAP 789USE_XPM_FALSE 790USE_XPM_TRUE 791XPM_LIBS 792XPM_CFLAGS 793XFT_LIBS 794XFT_CFLAGS 795XINERAMA_LIBS 796XINERAMA_CFLAGS 797XDM_LIBS 798XDM_CFLAGS 799SHELL_CMD 800WTMP_FILE 801UTMP_FILE 802SERVERSTYPE 803DEFAULTVT 804XDMPIDDIR 805XDMLOGDIR 806XDMSCRIPTDIR 807XDMCONFIGDIR 808XDMLIBDIR 809HAS_KERBEROS_FIVE_FALSE 810HAS_KERBEROS_FIVE_TRUE 811RANDOMMANDEFS 812HAS_ARC4_RANDOM_FALSE 813HAS_ARC4_RANDOM_TRUE 814SU 815HAS_SECURE_RPC_FALSE 816HAS_SECURE_RPC_TRUE 817HAVE_MKTEMP_COMMAND_FALSE 818HAVE_MKTEMP_COMMAND_TRUE 819MKTEMP_COMMAND 820HAVE_AM_SILENT_RULES_FALSE 821HAVE_AM_SILENT_RULES_TRUE 822LINT_FALSE 823LINT_TRUE 824LINT_FLAGS 825LINT 826RAWCPPFLAGS 827RAWCPP 828OTOOL64 829OTOOL 830LIPO 831NMEDIT 832DSYMUTIL 833lt_ECHO 834RANLIB 835AR 836LN_S 837NM 838ac_ct_DUMPBIN 839DUMPBIN 840LD 841FGREP 842SED 843LIBTOOL 844OBJDUMP 845DLLTOOL 846AS 847ADMIN_MAN_DIR 848DRIVER_MAN_DIR 849MISC_MAN_DIR 850FILE_MAN_DIR 851LIB_MAN_DIR 852APP_MAN_DIR 853ADMIN_MAN_SUFFIX 854DRIVER_MAN_SUFFIX 855MISC_MAN_SUFFIX 856FILE_MAN_SUFFIX 857LIB_MAN_SUFFIX 858APP_MAN_SUFFIX 859host_os 860host_vendor 861host_cpu 862host 863build_os 864build_vendor 865build_cpu 866build 867INSTALL_CMD 868PKG_CONFIG 869CHANGELOG_CMD 870AM_BACKSLASH 871AM_DEFAULT_VERBOSITY 872CWARNFLAGS 873EGREP 874GREP 875CPP 876am__fastdepCC_FALSE 877am__fastdepCC_TRUE 878CCDEPMODE 879AMDEPBACKSLASH 880AMDEP_FALSE 881AMDEP_TRUE 882am__quote 883am__include 884DEPDIR 885OBJEXT 886EXEEXT 887ac_ct_CC 888CPPFLAGS 889LDFLAGS 890CFLAGS 891CC 892MAINT 893MAINTAINER_MODE_FALSE 894MAINTAINER_MODE_TRUE 895am__untar 896am__tar 897AMTAR 898am__leading_dot 899SET_MAKE 900AWK 901mkdir_p 902MKDIR_P 903INSTALL_STRIP_PROGRAM 904STRIP 905install_sh 906MAKEINFO 907AUTOHEADER 908AUTOMAKE 909AUTOCONF 910ACLOCAL 911VERSION 912PACKAGE 913CYGPATH_W 914am__isrc 915INSTALL_DATA 916INSTALL_SCRIPT 917INSTALL_PROGRAM 918target_alias 919host_alias 920build_alias 921LIBS 922ECHO_T 923ECHO_N 924ECHO_C 925DEFS 926mandir 927localedir 928libdir 929psdir 930pdfdir 931dvidir 932htmldir 933infodir 934docdir 935oldincludedir 936includedir 937localstatedir 938sharedstatedir 939sysconfdir 940datadir 941datarootdir 942libexecdir 943sbindir 944bindir 945program_transform_name 946prefix 947exec_prefix 948PACKAGE_URL 949PACKAGE_BUGREPORT 950PACKAGE_STRING 951PACKAGE_VERSION 952PACKAGE_TARNAME 953PACKAGE_NAME 954PATH_SEPARATOR 955SHELL' 956ac_subst_files='' 957ac_user_opts=' 958enable_option_checking 959enable_maintainer_mode 960enable_dependency_tracking 961enable_silent_rules 962enable_strict_compilation 963with_release_version 964enable_shared 965enable_static 966with_pic 967enable_fast_install 968with_gnu_ld 969enable_libtool_lock 970with_lint 971enable_unix_transport 972enable_tcp_transport 973enable_ipv6 974enable_local_transport 975enable_secure_rpc 976with_pam 977with_selinux 978with_random_device 979with_xdmlibdir 980with_xdmconfigdir 981with_xdmscriptdir 982with_logdir 983with_piddir 984with_default_vt 985with_config_type 986with_utmp_file 987with_wtmp_file 988with_xft 989enable_xpm_logos 990with_color_pixmap 991with_bw_pixmap 992with_pixmapdir 993enable_dynamic_greeter 994enable_xdm_auth 995with_xrdb 996with_default_session 997with_authdir 998with_appdefaultdir 999' 1000 ac_precious_vars='build_alias 1001host_alias 1002target_alias 1003CC 1004CFLAGS 1005LDFLAGS 1006LIBS 1007CPPFLAGS 1008CPP 1009PKG_CONFIG 1010XDM_CFLAGS 1011XDM_LIBS 1012XINERAMA_CFLAGS 1013XINERAMA_LIBS 1014XFT_CFLAGS 1015XFT_LIBS 1016XPM_CFLAGS 1017XPM_LIBS 1018XDM_PRINT_CFLAGS 1019XDM_PRINT_LIBS 1020DMCP_CFLAGS 1021DMCP_LIBS 1022XLIB_CFLAGS 1023XLIB_LIBS 1024AUTH_CFLAGS 1025AUTH_LIBS 1026XDMGREET_CFLAGS 1027XDMGREET_LIBS 1028XT_CFLAGS 1029XT_LIBS 1030APPDEFS_CFLAGS 1031APPDEFS_LIBS' 1032 1033 1034# Initialize some variables set by options. 1035ac_init_help= 1036ac_init_version=false 1037ac_unrecognized_opts= 1038ac_unrecognized_sep= 1039# The variables have the same names as the options, with 1040# dashes changed to underlines. 1041cache_file=/dev/null 1042exec_prefix=NONE 1043no_create= 1044no_recursion= 1045prefix=NONE 1046program_prefix=NONE 1047program_suffix=NONE 1048program_transform_name=s,x,x, 1049silent= 1050site= 1051srcdir= 1052verbose= 1053x_includes=NONE 1054x_libraries=NONE 1055 1056# Installation directory options. 1057# These are left unexpanded so users can "make install exec_prefix=/foo" 1058# and all the variables that are supposed to be based on exec_prefix 1059# by default will actually change. 1060# Use braces instead of parens because sh, perl, etc. also accept them. 1061# (The list follows the same order as the GNU Coding Standards.) 1062bindir='${exec_prefix}/bin' 1063sbindir='${exec_prefix}/sbin' 1064libexecdir='${exec_prefix}/libexec' 1065datarootdir='${prefix}/share' 1066datadir='${datarootdir}' 1067sysconfdir='${prefix}/etc' 1068sharedstatedir='${prefix}/com' 1069localstatedir='${prefix}/var' 1070includedir='${prefix}/include' 1071oldincludedir='/usr/include' 1072docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1073infodir='${datarootdir}/info' 1074htmldir='${docdir}' 1075dvidir='${docdir}' 1076pdfdir='${docdir}' 1077psdir='${docdir}' 1078libdir='${exec_prefix}/lib' 1079localedir='${datarootdir}/locale' 1080mandir='${datarootdir}/man' 1081 1082ac_prev= 1083ac_dashdash= 1084for ac_option 1085do 1086 # If the previous option needs an argument, assign it. 1087 if test -n "$ac_prev"; then 1088 eval $ac_prev=\$ac_option 1089 ac_prev= 1090 continue 1091 fi 1092 1093 case $ac_option in 1094 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1095 *) ac_optarg=yes ;; 1096 esac 1097 1098 # Accept the important Cygnus configure options, so we can diagnose typos. 1099 1100 case $ac_dashdash$ac_option in 1101 --) 1102 ac_dashdash=yes ;; 1103 1104 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1105 ac_prev=bindir ;; 1106 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1107 bindir=$ac_optarg ;; 1108 1109 -build | --build | --buil | --bui | --bu) 1110 ac_prev=build_alias ;; 1111 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1112 build_alias=$ac_optarg ;; 1113 1114 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1115 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1116 ac_prev=cache_file ;; 1117 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1118 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1119 cache_file=$ac_optarg ;; 1120 1121 --config-cache | -C) 1122 cache_file=config.cache ;; 1123 1124 -datadir | --datadir | --datadi | --datad) 1125 ac_prev=datadir ;; 1126 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1127 datadir=$ac_optarg ;; 1128 1129 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1130 | --dataroo | --dataro | --datar) 1131 ac_prev=datarootdir ;; 1132 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1133 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1134 datarootdir=$ac_optarg ;; 1135 1136 -disable-* | --disable-*) 1137 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1138 # Reject names that are not valid shell variable names. 1139 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1140 as_fn_error "invalid feature name: $ac_useropt" 1141 ac_useropt_orig=$ac_useropt 1142 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1143 case $ac_user_opts in 1144 *" 1145"enable_$ac_useropt" 1146"*) ;; 1147 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1148 ac_unrecognized_sep=', ';; 1149 esac 1150 eval enable_$ac_useropt=no ;; 1151 1152 -docdir | --docdir | --docdi | --doc | --do) 1153 ac_prev=docdir ;; 1154 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1155 docdir=$ac_optarg ;; 1156 1157 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1158 ac_prev=dvidir ;; 1159 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1160 dvidir=$ac_optarg ;; 1161 1162 -enable-* | --enable-*) 1163 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1164 # Reject names that are not valid shell variable names. 1165 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1166 as_fn_error "invalid feature name: $ac_useropt" 1167 ac_useropt_orig=$ac_useropt 1168 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1169 case $ac_user_opts in 1170 *" 1171"enable_$ac_useropt" 1172"*) ;; 1173 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1174 ac_unrecognized_sep=', ';; 1175 esac 1176 eval enable_$ac_useropt=\$ac_optarg ;; 1177 1178 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1179 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1180 | --exec | --exe | --ex) 1181 ac_prev=exec_prefix ;; 1182 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1183 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1184 | --exec=* | --exe=* | --ex=*) 1185 exec_prefix=$ac_optarg ;; 1186 1187 -gas | --gas | --ga | --g) 1188 # Obsolete; use --with-gas. 1189 with_gas=yes ;; 1190 1191 -help | --help | --hel | --he | -h) 1192 ac_init_help=long ;; 1193 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1194 ac_init_help=recursive ;; 1195 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1196 ac_init_help=short ;; 1197 1198 -host | --host | --hos | --ho) 1199 ac_prev=host_alias ;; 1200 -host=* | --host=* | --hos=* | --ho=*) 1201 host_alias=$ac_optarg ;; 1202 1203 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1204 ac_prev=htmldir ;; 1205 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1206 | --ht=*) 1207 htmldir=$ac_optarg ;; 1208 1209 -includedir | --includedir | --includedi | --included | --include \ 1210 | --includ | --inclu | --incl | --inc) 1211 ac_prev=includedir ;; 1212 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1213 | --includ=* | --inclu=* | --incl=* | --inc=*) 1214 includedir=$ac_optarg ;; 1215 1216 -infodir | --infodir | --infodi | --infod | --info | --inf) 1217 ac_prev=infodir ;; 1218 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1219 infodir=$ac_optarg ;; 1220 1221 -libdir | --libdir | --libdi | --libd) 1222 ac_prev=libdir ;; 1223 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1224 libdir=$ac_optarg ;; 1225 1226 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1227 | --libexe | --libex | --libe) 1228 ac_prev=libexecdir ;; 1229 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1230 | --libexe=* | --libex=* | --libe=*) 1231 libexecdir=$ac_optarg ;; 1232 1233 -localedir | --localedir | --localedi | --localed | --locale) 1234 ac_prev=localedir ;; 1235 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1236 localedir=$ac_optarg ;; 1237 1238 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1239 | --localstate | --localstat | --localsta | --localst | --locals) 1240 ac_prev=localstatedir ;; 1241 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1242 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1243 localstatedir=$ac_optarg ;; 1244 1245 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1246 ac_prev=mandir ;; 1247 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1248 mandir=$ac_optarg ;; 1249 1250 -nfp | --nfp | --nf) 1251 # Obsolete; use --without-fp. 1252 with_fp=no ;; 1253 1254 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1255 | --no-cr | --no-c | -n) 1256 no_create=yes ;; 1257 1258 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1259 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1260 no_recursion=yes ;; 1261 1262 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1263 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1264 | --oldin | --oldi | --old | --ol | --o) 1265 ac_prev=oldincludedir ;; 1266 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1267 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1268 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1269 oldincludedir=$ac_optarg ;; 1270 1271 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1272 ac_prev=prefix ;; 1273 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1274 prefix=$ac_optarg ;; 1275 1276 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1277 | --program-pre | --program-pr | --program-p) 1278 ac_prev=program_prefix ;; 1279 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1280 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1281 program_prefix=$ac_optarg ;; 1282 1283 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1284 | --program-suf | --program-su | --program-s) 1285 ac_prev=program_suffix ;; 1286 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1287 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1288 program_suffix=$ac_optarg ;; 1289 1290 -program-transform-name | --program-transform-name \ 1291 | --program-transform-nam | --program-transform-na \ 1292 | --program-transform-n | --program-transform- \ 1293 | --program-transform | --program-transfor \ 1294 | --program-transfo | --program-transf \ 1295 | --program-trans | --program-tran \ 1296 | --progr-tra | --program-tr | --program-t) 1297 ac_prev=program_transform_name ;; 1298 -program-transform-name=* | --program-transform-name=* \ 1299 | --program-transform-nam=* | --program-transform-na=* \ 1300 | --program-transform-n=* | --program-transform-=* \ 1301 | --program-transform=* | --program-transfor=* \ 1302 | --program-transfo=* | --program-transf=* \ 1303 | --program-trans=* | --program-tran=* \ 1304 | --progr-tra=* | --program-tr=* | --program-t=*) 1305 program_transform_name=$ac_optarg ;; 1306 1307 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1308 ac_prev=pdfdir ;; 1309 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1310 pdfdir=$ac_optarg ;; 1311 1312 -psdir | --psdir | --psdi | --psd | --ps) 1313 ac_prev=psdir ;; 1314 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1315 psdir=$ac_optarg ;; 1316 1317 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1318 | -silent | --silent | --silen | --sile | --sil) 1319 silent=yes ;; 1320 1321 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1322 ac_prev=sbindir ;; 1323 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1324 | --sbi=* | --sb=*) 1325 sbindir=$ac_optarg ;; 1326 1327 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1328 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1329 | --sharedst | --shareds | --shared | --share | --shar \ 1330 | --sha | --sh) 1331 ac_prev=sharedstatedir ;; 1332 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1333 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1334 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1335 | --sha=* | --sh=*) 1336 sharedstatedir=$ac_optarg ;; 1337 1338 -site | --site | --sit) 1339 ac_prev=site ;; 1340 -site=* | --site=* | --sit=*) 1341 site=$ac_optarg ;; 1342 1343 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1344 ac_prev=srcdir ;; 1345 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1346 srcdir=$ac_optarg ;; 1347 1348 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1349 | --syscon | --sysco | --sysc | --sys | --sy) 1350 ac_prev=sysconfdir ;; 1351 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1352 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1353 sysconfdir=$ac_optarg ;; 1354 1355 -target | --target | --targe | --targ | --tar | --ta | --t) 1356 ac_prev=target_alias ;; 1357 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1358 target_alias=$ac_optarg ;; 1359 1360 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1361 verbose=yes ;; 1362 1363 -version | --version | --versio | --versi | --vers | -V) 1364 ac_init_version=: ;; 1365 1366 -with-* | --with-*) 1367 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1368 # Reject names that are not valid shell variable names. 1369 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1370 as_fn_error "invalid package name: $ac_useropt" 1371 ac_useropt_orig=$ac_useropt 1372 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1373 case $ac_user_opts in 1374 *" 1375"with_$ac_useropt" 1376"*) ;; 1377 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1378 ac_unrecognized_sep=', ';; 1379 esac 1380 eval with_$ac_useropt=\$ac_optarg ;; 1381 1382 -without-* | --without-*) 1383 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1384 # Reject names that are not valid shell variable names. 1385 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1386 as_fn_error "invalid package name: $ac_useropt" 1387 ac_useropt_orig=$ac_useropt 1388 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1389 case $ac_user_opts in 1390 *" 1391"with_$ac_useropt" 1392"*) ;; 1393 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1394 ac_unrecognized_sep=', ';; 1395 esac 1396 eval with_$ac_useropt=no ;; 1397 1398 --x) 1399 # Obsolete; use --with-x. 1400 with_x=yes ;; 1401 1402 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1403 | --x-incl | --x-inc | --x-in | --x-i) 1404 ac_prev=x_includes ;; 1405 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1406 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1407 x_includes=$ac_optarg ;; 1408 1409 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1410 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1411 ac_prev=x_libraries ;; 1412 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1413 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1414 x_libraries=$ac_optarg ;; 1415 1416 -*) as_fn_error "unrecognized option: \`$ac_option' 1417Try \`$0 --help' for more information." 1418 ;; 1419 1420 *=*) 1421 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1422 # Reject names that are not valid shell variable names. 1423 case $ac_envvar in #( 1424 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1425 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1426 esac 1427 eval $ac_envvar=\$ac_optarg 1428 export $ac_envvar ;; 1429 1430 *) 1431 # FIXME: should be removed in autoconf 3.0. 1432 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1433 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1434 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1435 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1436 ;; 1437 1438 esac 1439done 1440 1441if test -n "$ac_prev"; then 1442 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1443 as_fn_error "missing argument to $ac_option" 1444fi 1445 1446if test -n "$ac_unrecognized_opts"; then 1447 case $enable_option_checking in 1448 no) ;; 1449 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1450 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1451 esac 1452fi 1453 1454# Check all directory arguments for consistency. 1455for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1456 datadir sysconfdir sharedstatedir localstatedir includedir \ 1457 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1458 libdir localedir mandir 1459do 1460 eval ac_val=\$$ac_var 1461 # Remove trailing slashes. 1462 case $ac_val in 1463 */ ) 1464 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1465 eval $ac_var=\$ac_val;; 1466 esac 1467 # Be sure to have absolute directory names. 1468 case $ac_val in 1469 [\\/$]* | ?:[\\/]* ) continue;; 1470 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1471 esac 1472 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1473done 1474 1475# There might be people who depend on the old broken behavior: `$host' 1476# used to hold the argument of --host etc. 1477# FIXME: To remove some day. 1478build=$build_alias 1479host=$host_alias 1480target=$target_alias 1481 1482# FIXME: To remove some day. 1483if test "x$host_alias" != x; then 1484 if test "x$build_alias" = x; then 1485 cross_compiling=maybe 1486 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1487 If a cross compiler is detected then cross compile mode will be used." >&2 1488 elif test "x$build_alias" != "x$host_alias"; then 1489 cross_compiling=yes 1490 fi 1491fi 1492 1493ac_tool_prefix= 1494test -n "$host_alias" && ac_tool_prefix=$host_alias- 1495 1496test "$silent" = yes && exec 6>/dev/null 1497 1498 1499ac_pwd=`pwd` && test -n "$ac_pwd" && 1500ac_ls_di=`ls -di .` && 1501ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1502 as_fn_error "working directory cannot be determined" 1503test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1504 as_fn_error "pwd does not report name of working directory" 1505 1506 1507# Find the source files, if location was not specified. 1508if test -z "$srcdir"; then 1509 ac_srcdir_defaulted=yes 1510 # Try the directory containing this script, then the parent directory. 1511 ac_confdir=`$as_dirname -- "$as_myself" || 1512$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1513 X"$as_myself" : 'X\(//\)[^/]' \| \ 1514 X"$as_myself" : 'X\(//\)$' \| \ 1515 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1516$as_echo X"$as_myself" | 1517 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1518 s//\1/ 1519 q 1520 } 1521 /^X\(\/\/\)[^/].*/{ 1522 s//\1/ 1523 q 1524 } 1525 /^X\(\/\/\)$/{ 1526 s//\1/ 1527 q 1528 } 1529 /^X\(\/\).*/{ 1530 s//\1/ 1531 q 1532 } 1533 s/.*/./; q'` 1534 srcdir=$ac_confdir 1535 if test ! -r "$srcdir/$ac_unique_file"; then 1536 srcdir=.. 1537 fi 1538else 1539 ac_srcdir_defaulted=no 1540fi 1541if test ! -r "$srcdir/$ac_unique_file"; then 1542 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1543 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1544fi 1545ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1546ac_abs_confdir=`( 1547 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1548 pwd)` 1549# When building in place, set srcdir=. 1550if test "$ac_abs_confdir" = "$ac_pwd"; then 1551 srcdir=. 1552fi 1553# Remove unnecessary trailing slashes from srcdir. 1554# Double slashes in file names in object file debugging info 1555# mess up M-x gdb in Emacs. 1556case $srcdir in 1557*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1558esac 1559for ac_var in $ac_precious_vars; do 1560 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1561 eval ac_env_${ac_var}_value=\$${ac_var} 1562 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1563 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1564done 1565 1566# 1567# Report the --help message. 1568# 1569if test "$ac_init_help" = "long"; then 1570 # Omit some internal or obsolete options to make the list less imposing. 1571 # This message is too long to be a string in the A/UX 3.1 sh. 1572 cat <<_ACEOF 1573\`configure' configures xdm 1.1.10 to adapt to many kinds of systems. 1574 1575Usage: $0 [OPTION]... [VAR=VALUE]... 1576 1577To assign environment variables (e.g., CC, CFLAGS...), specify them as 1578VAR=VALUE. See below for descriptions of some of the useful variables. 1579 1580Defaults for the options are specified in brackets. 1581 1582Configuration: 1583 -h, --help display this help and exit 1584 --help=short display options specific to this package 1585 --help=recursive display the short help of all the included packages 1586 -V, --version display version information and exit 1587 -q, --quiet, --silent do not print \`checking...' messages 1588 --cache-file=FILE cache test results in FILE [disabled] 1589 -C, --config-cache alias for \`--cache-file=config.cache' 1590 -n, --no-create do not create output files 1591 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1592 1593Installation directories: 1594 --prefix=PREFIX install architecture-independent files in PREFIX 1595 [$ac_default_prefix] 1596 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1597 [PREFIX] 1598 1599By default, \`make install' will install all the files in 1600\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1601an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1602for instance \`--prefix=\$HOME'. 1603 1604For better control, use the options below. 1605 1606Fine tuning of the installation directories: 1607 --bindir=DIR user executables [EPREFIX/bin] 1608 --sbindir=DIR system admin executables [EPREFIX/sbin] 1609 --libexecdir=DIR program executables [EPREFIX/libexec] 1610 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1611 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1612 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1613 --libdir=DIR object code libraries [EPREFIX/lib] 1614 --includedir=DIR C header files [PREFIX/include] 1615 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1616 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1617 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1618 --infodir=DIR info documentation [DATAROOTDIR/info] 1619 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1620 --mandir=DIR man documentation [DATAROOTDIR/man] 1621 --docdir=DIR documentation root [DATAROOTDIR/doc/xdm] 1622 --htmldir=DIR html documentation [DOCDIR] 1623 --dvidir=DIR dvi documentation [DOCDIR] 1624 --pdfdir=DIR pdf documentation [DOCDIR] 1625 --psdir=DIR ps documentation [DOCDIR] 1626_ACEOF 1627 1628 cat <<\_ACEOF 1629 1630Program names: 1631 --program-prefix=PREFIX prepend PREFIX to installed program names 1632 --program-suffix=SUFFIX append SUFFIX to installed program names 1633 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1634 1635System types: 1636 --build=BUILD configure for building on BUILD [guessed] 1637 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1638_ACEOF 1639fi 1640 1641if test -n "$ac_init_help"; then 1642 case $ac_init_help in 1643 short | recursive ) echo "Configuration of xdm 1.1.10:";; 1644 esac 1645 cat <<\_ACEOF 1646 1647Optional Features: 1648 --disable-option-checking ignore unrecognized --enable/--with options 1649 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1650 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1651 --enable-maintainer-mode enable make rules and dependencies not useful 1652 (and sometimes confusing) to the casual installer 1653 --disable-dependency-tracking speeds up one-time build 1654 --enable-dependency-tracking do not reject slow dependency extractors 1655 --enable-silent-rules less verbose build output (undo: `make V=1') 1656 --disable-silent-rules verbose build output (undo: `make V=0') 1657 --enable-strict-compilation 1658 Enable all warnings from compiler and make them 1659 errors (default: disabled) 1660 --enable-shared[=PKGS] build shared libraries [default=yes] 1661 --enable-static[=PKGS] build static libraries [default=yes] 1662 --enable-fast-install[=PKGS] 1663 optimize for fast installation [default=yes] 1664 --disable-libtool-lock avoid locking (might break parallel builds) 1665 --enable-unix-transport Enable UNIX domain socket transport 1666 --enable-tcp-transport Enable TCP socket transport 1667 --enable-ipv6 Enable IPv6 support 1668 --enable-local-transport 1669 Enable os-specific local transport 1670 --enable-secure-rpc Enable Secure RPC 1671 --enable-xpm-logos Display xpm logos in greeter (default is YES) 1672 --enable-dynamic-greeter 1673 Build greeter as dynamically loaded shared object 1674 --enable-xdm-auth Support XDM-AUTHENTICATION-1 and XDM-AUTHORIZATION-1 1675 (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-release-version=STRING 1681 Use release version string in package name 1682 --with-pic try to use only PIC/non-PIC objects [default=use 1683 both] 1684 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1685 --with-lint Use a lint-style source code checker (default: 1686 disabled) 1687 --with-pam Use PAM for authentication 1688 --with-selinux Add support for selinux 1689 --with-random-device\=<pathname>\ 1690 Use <pathname> as a source of randomness 1691 --with-xdmlibdir=<pathname> 1692 specify directory for xdm scripts and modules 1693 (default=${libdir}/X11/xdm) 1694 --with-xdmconfigdir=<pathname> 1695 specify directory for xdm config files (default is 1696 same as xdmlibdir) 1697 --with-xdmscriptdir=<pathname> 1698 specify directory for xdm scripts (default is same 1699 as xdmlibdir) 1700 --with-logdir=<pathname> 1701 specify directory for xdm log files 1702 (default=/var/log) 1703 --with-piddir=<pathname> 1704 specify directory for xdm pid files 1705 (default=/var/run) 1706 --with-default-vt=<vtname> 1707 specify default vt to start xdm on (default=none) 1708 --with-config-type={ws|fs} 1709 default config file type to use - workstation (ws) 1710 or fileserver (fs) (default=ws) 1711 --with-utmp-file=<pathname> 1712 specify file to pass to sessreg -u for current 1713 logins 1714 --with-wtmp-file=<pathname> 1715 specify file to pass to sessreg -w for login history 1716 --with-xft Use Xft to draw text (default is YES if installed) 1717 --with-color-pixmap=<filename> 1718 specify xpm file to use as color logo 1719 (default=xorg.xpm) 1720 --with-bw-pixmap=<filename> 1721 specify xpm file to use as black-and-white logo 1722 (default=xorg-bw.xpm) 1723 --with-pixmapdir=<pathname> 1724 specify directory for xpm files 1725 (default=xdmlibdir/pixmaps) 1726 --with-xrdb=path Use path for xrdb (default: bindir/xrdb) 1727 --with-default-session=command 1728 Use command for default session (default: 1729 bindir/xterm -ls) 1730 --with-authdir=<pathname> 1731 specify directory for X auth files 1732 (default=/var/lib/xdm) 1733 --with-appdefaultdir=<pathname> 1734 specify directory for app-defaults files (default is 1735 autodetected) 1736 1737Some influential environment variables: 1738 CC C compiler command 1739 CFLAGS C compiler flags 1740 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1741 nonstandard directory <lib dir> 1742 LIBS libraries to pass to the linker, e.g. -l<library> 1743 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1744 you have headers in a nonstandard directory <include dir> 1745 CPP C preprocessor 1746 PKG_CONFIG path to pkg-config utility 1747 XDM_CFLAGS C compiler flags for XDM, overriding pkg-config 1748 XDM_LIBS linker flags for XDM, overriding pkg-config 1749 XINERAMA_CFLAGS 1750 C compiler flags for XINERAMA, overriding pkg-config 1751 XINERAMA_LIBS 1752 linker flags for XINERAMA, overriding pkg-config 1753 XFT_CFLAGS C compiler flags for XFT, overriding pkg-config 1754 XFT_LIBS linker flags for XFT, overriding pkg-config 1755 XPM_CFLAGS C compiler flags for XPM, overriding pkg-config 1756 XPM_LIBS linker flags for XPM, overriding pkg-config 1757 XDM_PRINT_CFLAGS 1758 C compiler flags for XDM_PRINT, overriding pkg-config 1759 XDM_PRINT_LIBS 1760 linker flags for XDM_PRINT, overriding pkg-config 1761 DMCP_CFLAGS C compiler flags for DMCP, overriding pkg-config 1762 DMCP_LIBS linker flags for DMCP, overriding pkg-config 1763 XLIB_CFLAGS C compiler flags for XLIB, overriding pkg-config 1764 XLIB_LIBS linker flags for XLIB, overriding pkg-config 1765 AUTH_CFLAGS C compiler flags for AUTH, overriding pkg-config 1766 AUTH_LIBS linker flags for AUTH, overriding pkg-config 1767 XDMGREET_CFLAGS 1768 C compiler flags for XDMGREET, overriding pkg-config 1769 XDMGREET_LIBS 1770 linker flags for XDMGREET, overriding pkg-config 1771 XT_CFLAGS C compiler flags for XT, overriding pkg-config 1772 XT_LIBS linker flags for XT, overriding pkg-config 1773 APPDEFS_CFLAGS 1774 C compiler flags for APPDEFS, overriding pkg-config 1775 APPDEFS_LIBS 1776 linker flags for APPDEFS, overriding pkg-config 1777 1778Use these variables to override the choices made by `configure' or to help 1779it to find libraries and programs with nonstandard names/locations. 1780 1781Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1782_ACEOF 1783ac_status=$? 1784fi 1785 1786if test "$ac_init_help" = "recursive"; then 1787 # If there are subdirs, report their specific --help. 1788 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1789 test -d "$ac_dir" || 1790 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1791 continue 1792 ac_builddir=. 1793 1794case "$ac_dir" in 1795.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1796*) 1797 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1798 # A ".." for each directory in $ac_dir_suffix. 1799 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1800 case $ac_top_builddir_sub in 1801 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1802 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1803 esac ;; 1804esac 1805ac_abs_top_builddir=$ac_pwd 1806ac_abs_builddir=$ac_pwd$ac_dir_suffix 1807# for backward compatibility: 1808ac_top_builddir=$ac_top_build_prefix 1809 1810case $srcdir in 1811 .) # We are building in place. 1812 ac_srcdir=. 1813 ac_top_srcdir=$ac_top_builddir_sub 1814 ac_abs_top_srcdir=$ac_pwd ;; 1815 [\\/]* | ?:[\\/]* ) # Absolute name. 1816 ac_srcdir=$srcdir$ac_dir_suffix; 1817 ac_top_srcdir=$srcdir 1818 ac_abs_top_srcdir=$srcdir ;; 1819 *) # Relative name. 1820 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1821 ac_top_srcdir=$ac_top_build_prefix$srcdir 1822 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1823esac 1824ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1825 1826 cd "$ac_dir" || { ac_status=$?; continue; } 1827 # Check for guested configure. 1828 if test -f "$ac_srcdir/configure.gnu"; then 1829 echo && 1830 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1831 elif test -f "$ac_srcdir/configure"; then 1832 echo && 1833 $SHELL "$ac_srcdir/configure" --help=recursive 1834 else 1835 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1836 fi || ac_status=$? 1837 cd "$ac_pwd" || { ac_status=$?; break; } 1838 done 1839fi 1840 1841test -n "$ac_init_help" && exit $ac_status 1842if $ac_init_version; then 1843 cat <<\_ACEOF 1844xdm configure 1.1.10 1845generated by GNU Autoconf 2.65 1846 1847Copyright (C) 2009 Free Software Foundation, Inc. 1848This configure script is free software; the Free Software Foundation 1849gives unlimited permission to copy, distribute and modify it. 1850_ACEOF 1851 exit 1852fi 1853 1854## ------------------------ ## 1855## Autoconf initialization. ## 1856## ------------------------ ## 1857 1858# ac_fn_c_try_compile LINENO 1859# -------------------------- 1860# Try to compile conftest.$ac_ext, and return whether this succeeded. 1861ac_fn_c_try_compile () 1862{ 1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1864 rm -f conftest.$ac_objext 1865 if { { ac_try="$ac_compile" 1866case "(($ac_try" in 1867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1868 *) ac_try_echo=$ac_try;; 1869esac 1870eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1871$as_echo "$ac_try_echo"; } >&5 1872 (eval "$ac_compile") 2>conftest.err 1873 ac_status=$? 1874 if test -s conftest.err; then 1875 grep -v '^ *+' conftest.err >conftest.er1 1876 cat conftest.er1 >&5 1877 mv -f conftest.er1 conftest.err 1878 fi 1879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1880 test $ac_status = 0; } && { 1881 test -z "$ac_c_werror_flag" || 1882 test ! -s conftest.err 1883 } && test -s conftest.$ac_objext; then : 1884 ac_retval=0 1885else 1886 $as_echo "$as_me: failed program was:" >&5 1887sed 's/^/| /' conftest.$ac_ext >&5 1888 1889 ac_retval=1 1890fi 1891 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1892 as_fn_set_status $ac_retval 1893 1894} # ac_fn_c_try_compile 1895 1896# ac_fn_c_try_cpp LINENO 1897# ---------------------- 1898# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1899ac_fn_c_try_cpp () 1900{ 1901 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1902 if { { ac_try="$ac_cpp conftest.$ac_ext" 1903case "(($ac_try" in 1904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1905 *) ac_try_echo=$ac_try;; 1906esac 1907eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1908$as_echo "$ac_try_echo"; } >&5 1909 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1910 ac_status=$? 1911 if test -s conftest.err; then 1912 grep -v '^ *+' conftest.err >conftest.er1 1913 cat conftest.er1 >&5 1914 mv -f conftest.er1 conftest.err 1915 fi 1916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1917 test $ac_status = 0; } >/dev/null && { 1918 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1919 test ! -s conftest.err 1920 }; then : 1921 ac_retval=0 1922else 1923 $as_echo "$as_me: failed program was:" >&5 1924sed 's/^/| /' conftest.$ac_ext >&5 1925 1926 ac_retval=1 1927fi 1928 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1929 as_fn_set_status $ac_retval 1930 1931} # ac_fn_c_try_cpp 1932 1933# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1934# ------------------------------------------------------- 1935# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1936# the include files in INCLUDES and setting the cache variable VAR 1937# accordingly. 1938ac_fn_c_check_header_mongrel () 1939{ 1940 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1941 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1943$as_echo_n "checking for $2... " >&6; } 1944if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1945 $as_echo_n "(cached) " >&6 1946fi 1947eval ac_res=\$$3 1948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1949$as_echo "$ac_res" >&6; } 1950else 1951 # Is the header compilable? 1952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1953$as_echo_n "checking $2 usability... " >&6; } 1954cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1955/* end confdefs.h. */ 1956$4 1957#include <$2> 1958_ACEOF 1959if ac_fn_c_try_compile "$LINENO"; then : 1960 ac_header_compiler=yes 1961else 1962 ac_header_compiler=no 1963fi 1964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1966$as_echo "$ac_header_compiler" >&6; } 1967 1968# Is the header present? 1969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1970$as_echo_n "checking $2 presence... " >&6; } 1971cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1972/* end confdefs.h. */ 1973#include <$2> 1974_ACEOF 1975if ac_fn_c_try_cpp "$LINENO"; then : 1976 ac_header_preproc=yes 1977else 1978 ac_header_preproc=no 1979fi 1980rm -f conftest.err conftest.$ac_ext 1981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1982$as_echo "$ac_header_preproc" >&6; } 1983 1984# So? What about this header? 1985case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1986 yes:no: ) 1987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1988$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1990$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1991 ;; 1992 no:yes:* ) 1993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1994$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1996$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1998$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2000$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2002$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2003( cat <<\_ASBOX 2004## ---------------------------------------------------------------------- ## 2005## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 2006## ---------------------------------------------------------------------- ## 2007_ASBOX 2008 ) | sed "s/^/$as_me: WARNING: /" >&2 2009 ;; 2010esac 2011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2012$as_echo_n "checking for $2... " >&6; } 2013if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2014 $as_echo_n "(cached) " >&6 2015else 2016 eval "$3=\$ac_header_compiler" 2017fi 2018eval ac_res=\$$3 2019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2020$as_echo "$ac_res" >&6; } 2021fi 2022 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2023 2024} # ac_fn_c_check_header_mongrel 2025 2026# ac_fn_c_try_run LINENO 2027# ---------------------- 2028# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2029# that executables *can* be run. 2030ac_fn_c_try_run () 2031{ 2032 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2033 if { { ac_try="$ac_link" 2034case "(($ac_try" in 2035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2036 *) ac_try_echo=$ac_try;; 2037esac 2038eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2039$as_echo "$ac_try_echo"; } >&5 2040 (eval "$ac_link") 2>&5 2041 ac_status=$? 2042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2043 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2044 { { case "(($ac_try" in 2045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2046 *) ac_try_echo=$ac_try;; 2047esac 2048eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2049$as_echo "$ac_try_echo"; } >&5 2050 (eval "$ac_try") 2>&5 2051 ac_status=$? 2052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2053 test $ac_status = 0; }; }; then : 2054 ac_retval=0 2055else 2056 $as_echo "$as_me: program exited with status $ac_status" >&5 2057 $as_echo "$as_me: failed program was:" >&5 2058sed 's/^/| /' conftest.$ac_ext >&5 2059 2060 ac_retval=$ac_status 2061fi 2062 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2063 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2064 as_fn_set_status $ac_retval 2065 2066} # ac_fn_c_try_run 2067 2068# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2069# ------------------------------------------------------- 2070# Tests whether HEADER exists and can be compiled using the include files in 2071# INCLUDES, setting the cache variable VAR accordingly. 2072ac_fn_c_check_header_compile () 2073{ 2074 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2076$as_echo_n "checking for $2... " >&6; } 2077if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2078 $as_echo_n "(cached) " >&6 2079else 2080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2081/* end confdefs.h. */ 2082$4 2083#include <$2> 2084_ACEOF 2085if ac_fn_c_try_compile "$LINENO"; then : 2086 eval "$3=yes" 2087else 2088 eval "$3=no" 2089fi 2090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2091fi 2092eval ac_res=\$$3 2093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2094$as_echo "$ac_res" >&6; } 2095 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2096 2097} # ac_fn_c_check_header_compile 2098 2099# ac_fn_c_check_decl LINENO SYMBOL VAR 2100# ------------------------------------ 2101# Tests whether SYMBOL is declared, setting cache variable VAR accordingly. 2102ac_fn_c_check_decl () 2103{ 2104 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5 2106$as_echo_n "checking whether $2 is declared... " >&6; } 2107if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2108 $as_echo_n "(cached) " >&6 2109else 2110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2111/* end confdefs.h. */ 2112$4 2113int 2114main () 2115{ 2116#ifndef $2 2117 (void) $2; 2118#endif 2119 2120 ; 2121 return 0; 2122} 2123_ACEOF 2124if ac_fn_c_try_compile "$LINENO"; then : 2125 eval "$3=yes" 2126else 2127 eval "$3=no" 2128fi 2129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2130fi 2131eval ac_res=\$$3 2132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2133$as_echo "$ac_res" >&6; } 2134 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2135 2136} # ac_fn_c_check_decl 2137 2138# ac_fn_c_try_link LINENO 2139# ----------------------- 2140# Try to link conftest.$ac_ext, and return whether this succeeded. 2141ac_fn_c_try_link () 2142{ 2143 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2144 rm -f conftest.$ac_objext conftest$ac_exeext 2145 if { { ac_try="$ac_link" 2146case "(($ac_try" in 2147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2148 *) ac_try_echo=$ac_try;; 2149esac 2150eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2151$as_echo "$ac_try_echo"; } >&5 2152 (eval "$ac_link") 2>conftest.err 2153 ac_status=$? 2154 if test -s conftest.err; then 2155 grep -v '^ *+' conftest.err >conftest.er1 2156 cat conftest.er1 >&5 2157 mv -f conftest.er1 conftest.err 2158 fi 2159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2160 test $ac_status = 0; } && { 2161 test -z "$ac_c_werror_flag" || 2162 test ! -s conftest.err 2163 } && test -s conftest$ac_exeext && { 2164 test "$cross_compiling" = yes || 2165 $as_test_x conftest$ac_exeext 2166 }; then : 2167 ac_retval=0 2168else 2169 $as_echo "$as_me: failed program was:" >&5 2170sed 's/^/| /' conftest.$ac_ext >&5 2171 2172 ac_retval=1 2173fi 2174 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2175 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2176 # interfere with the next link command; also delete a directory that is 2177 # left behind by Apple's compiler. We do this before executing the actions. 2178 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2179 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2180 as_fn_set_status $ac_retval 2181 2182} # ac_fn_c_try_link 2183 2184# ac_fn_c_check_func LINENO FUNC VAR 2185# ---------------------------------- 2186# Tests whether FUNC exists, setting the cache variable VAR accordingly 2187ac_fn_c_check_func () 2188{ 2189 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2191$as_echo_n "checking for $2... " >&6; } 2192if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2193 $as_echo_n "(cached) " >&6 2194else 2195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2196/* end confdefs.h. */ 2197/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2198 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2199#define $2 innocuous_$2 2200 2201/* System header to define __stub macros and hopefully few prototypes, 2202 which can conflict with char $2 (); below. 2203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2204 <limits.h> exists even on freestanding compilers. */ 2205 2206#ifdef __STDC__ 2207# include <limits.h> 2208#else 2209# include <assert.h> 2210#endif 2211 2212#undef $2 2213 2214/* Override any GCC internal prototype to avoid an error. 2215 Use char because int might match the return type of a GCC 2216 builtin and then its argument prototype would still apply. */ 2217#ifdef __cplusplus 2218extern "C" 2219#endif 2220char $2 (); 2221/* The GNU C library defines this for functions which it implements 2222 to always fail with ENOSYS. Some functions are actually named 2223 something starting with __ and the normal name is an alias. */ 2224#if defined __stub_$2 || defined __stub___$2 2225choke me 2226#endif 2227 2228int 2229main () 2230{ 2231return $2 (); 2232 ; 2233 return 0; 2234} 2235_ACEOF 2236if ac_fn_c_try_link "$LINENO"; then : 2237 eval "$3=yes" 2238else 2239 eval "$3=no" 2240fi 2241rm -f core conftest.err conftest.$ac_objext \ 2242 conftest$ac_exeext conftest.$ac_ext 2243fi 2244eval ac_res=\$$3 2245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2246$as_echo "$ac_res" >&6; } 2247 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2248 2249} # ac_fn_c_check_func 2250 2251# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2252# ------------------------------------------- 2253# Tests whether TYPE exists after having included INCLUDES, setting cache 2254# variable VAR accordingly. 2255ac_fn_c_check_type () 2256{ 2257 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2259$as_echo_n "checking for $2... " >&6; } 2260if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2261 $as_echo_n "(cached) " >&6 2262else 2263 eval "$3=no" 2264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2265/* end confdefs.h. */ 2266$4 2267int 2268main () 2269{ 2270if (sizeof ($2)) 2271 return 0; 2272 ; 2273 return 0; 2274} 2275_ACEOF 2276if ac_fn_c_try_compile "$LINENO"; then : 2277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2278/* end confdefs.h. */ 2279$4 2280int 2281main () 2282{ 2283if (sizeof (($2))) 2284 return 0; 2285 ; 2286 return 0; 2287} 2288_ACEOF 2289if ac_fn_c_try_compile "$LINENO"; then : 2290 2291else 2292 eval "$3=yes" 2293fi 2294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2295fi 2296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2297fi 2298eval ac_res=\$$3 2299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2300$as_echo "$ac_res" >&6; } 2301 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2302 2303} # ac_fn_c_check_type 2304 2305# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2306# ---------------------------------------------------- 2307# Tries to find if the field MEMBER exists in type AGGR, after including 2308# INCLUDES, setting cache variable VAR accordingly. 2309ac_fn_c_check_member () 2310{ 2311 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2313$as_echo_n "checking for $2.$3... " >&6; } 2314if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then : 2315 $as_echo_n "(cached) " >&6 2316else 2317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2318/* end confdefs.h. */ 2319$5 2320int 2321main () 2322{ 2323static $2 ac_aggr; 2324if (ac_aggr.$3) 2325return 0; 2326 ; 2327 return 0; 2328} 2329_ACEOF 2330if ac_fn_c_try_compile "$LINENO"; then : 2331 eval "$4=yes" 2332else 2333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2334/* end confdefs.h. */ 2335$5 2336int 2337main () 2338{ 2339static $2 ac_aggr; 2340if (sizeof ac_aggr.$3) 2341return 0; 2342 ; 2343 return 0; 2344} 2345_ACEOF 2346if ac_fn_c_try_compile "$LINENO"; then : 2347 eval "$4=yes" 2348else 2349 eval "$4=no" 2350fi 2351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2352fi 2353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2354fi 2355eval ac_res=\$$4 2356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2357$as_echo "$ac_res" >&6; } 2358 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2359 2360} # ac_fn_c_check_member 2361cat >config.log <<_ACEOF 2362This file contains any messages produced by compilers while 2363running configure, to aid debugging if configure makes a mistake. 2364 2365It was created by xdm $as_me 1.1.10, which was 2366generated by GNU Autoconf 2.65. Invocation command line was 2367 2368 $ $0 $@ 2369 2370_ACEOF 2371exec 5>>config.log 2372{ 2373cat <<_ASUNAME 2374## --------- ## 2375## Platform. ## 2376## --------- ## 2377 2378hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2379uname -m = `(uname -m) 2>/dev/null || echo unknown` 2380uname -r = `(uname -r) 2>/dev/null || echo unknown` 2381uname -s = `(uname -s) 2>/dev/null || echo unknown` 2382uname -v = `(uname -v) 2>/dev/null || echo unknown` 2383 2384/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2385/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2386 2387/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2388/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2389/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2390/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2391/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2392/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2393/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2394 2395_ASUNAME 2396 2397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2398for as_dir in $PATH 2399do 2400 IFS=$as_save_IFS 2401 test -z "$as_dir" && as_dir=. 2402 $as_echo "PATH: $as_dir" 2403 done 2404IFS=$as_save_IFS 2405 2406} >&5 2407 2408cat >&5 <<_ACEOF 2409 2410 2411## ----------- ## 2412## Core tests. ## 2413## ----------- ## 2414 2415_ACEOF 2416 2417 2418# Keep a trace of the command line. 2419# Strip out --no-create and --no-recursion so they do not pile up. 2420# Strip out --silent because we don't want to record it for future runs. 2421# Also quote any args containing shell meta-characters. 2422# Make two passes to allow for proper duplicate-argument suppression. 2423ac_configure_args= 2424ac_configure_args0= 2425ac_configure_args1= 2426ac_must_keep_next=false 2427for ac_pass in 1 2 2428do 2429 for ac_arg 2430 do 2431 case $ac_arg in 2432 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2433 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2434 | -silent | --silent | --silen | --sile | --sil) 2435 continue ;; 2436 *\'*) 2437 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2438 esac 2439 case $ac_pass in 2440 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2441 2) 2442 as_fn_append ac_configure_args1 " '$ac_arg'" 2443 if test $ac_must_keep_next = true; then 2444 ac_must_keep_next=false # Got value, back to normal. 2445 else 2446 case $ac_arg in 2447 *=* | --config-cache | -C | -disable-* | --disable-* \ 2448 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2449 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2450 | -with-* | --with-* | -without-* | --without-* | --x) 2451 case "$ac_configure_args0 " in 2452 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2453 esac 2454 ;; 2455 -* ) ac_must_keep_next=true ;; 2456 esac 2457 fi 2458 as_fn_append ac_configure_args " '$ac_arg'" 2459 ;; 2460 esac 2461 done 2462done 2463{ ac_configure_args0=; unset ac_configure_args0;} 2464{ ac_configure_args1=; unset ac_configure_args1;} 2465 2466# When interrupted or exit'd, cleanup temporary files, and complete 2467# config.log. We remove comments because anyway the quotes in there 2468# would cause problems or look ugly. 2469# WARNING: Use '\'' to represent an apostrophe within the trap. 2470# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2471trap 'exit_status=$? 2472 # Save into config.log some information that might help in debugging. 2473 { 2474 echo 2475 2476 cat <<\_ASBOX 2477## ---------------- ## 2478## Cache variables. ## 2479## ---------------- ## 2480_ASBOX 2481 echo 2482 # The following way of writing the cache mishandles newlines in values, 2483( 2484 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2485 eval ac_val=\$$ac_var 2486 case $ac_val in #( 2487 *${as_nl}*) 2488 case $ac_var in #( 2489 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2490$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2491 esac 2492 case $ac_var in #( 2493 _ | IFS | as_nl) ;; #( 2494 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2495 *) { eval $ac_var=; unset $ac_var;} ;; 2496 esac ;; 2497 esac 2498 done 2499 (set) 2>&1 | 2500 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2501 *${as_nl}ac_space=\ *) 2502 sed -n \ 2503 "s/'\''/'\''\\\\'\'''\''/g; 2504 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2505 ;; #( 2506 *) 2507 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2508 ;; 2509 esac | 2510 sort 2511) 2512 echo 2513 2514 cat <<\_ASBOX 2515## ----------------- ## 2516## Output variables. ## 2517## ----------------- ## 2518_ASBOX 2519 echo 2520 for ac_var in $ac_subst_vars 2521 do 2522 eval ac_val=\$$ac_var 2523 case $ac_val in 2524 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2525 esac 2526 $as_echo "$ac_var='\''$ac_val'\''" 2527 done | sort 2528 echo 2529 2530 if test -n "$ac_subst_files"; then 2531 cat <<\_ASBOX 2532## ------------------- ## 2533## File substitutions. ## 2534## ------------------- ## 2535_ASBOX 2536 echo 2537 for ac_var in $ac_subst_files 2538 do 2539 eval ac_val=\$$ac_var 2540 case $ac_val in 2541 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2542 esac 2543 $as_echo "$ac_var='\''$ac_val'\''" 2544 done | sort 2545 echo 2546 fi 2547 2548 if test -s confdefs.h; then 2549 cat <<\_ASBOX 2550## ----------- ## 2551## confdefs.h. ## 2552## ----------- ## 2553_ASBOX 2554 echo 2555 cat confdefs.h 2556 echo 2557 fi 2558 test "$ac_signal" != 0 && 2559 $as_echo "$as_me: caught signal $ac_signal" 2560 $as_echo "$as_me: exit $exit_status" 2561 } >&5 2562 rm -f core *.core core.conftest.* && 2563 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2564 exit $exit_status 2565' 0 2566for ac_signal in 1 2 13 15; do 2567 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2568done 2569ac_signal=0 2570 2571# confdefs.h avoids OS command line length limits that DEFS can exceed. 2572rm -f -r conftest* confdefs.h 2573 2574$as_echo "/* confdefs.h */" > confdefs.h 2575 2576# Predefined preprocessor variables. 2577 2578cat >>confdefs.h <<_ACEOF 2579#define PACKAGE_NAME "$PACKAGE_NAME" 2580_ACEOF 2581 2582cat >>confdefs.h <<_ACEOF 2583#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2584_ACEOF 2585 2586cat >>confdefs.h <<_ACEOF 2587#define PACKAGE_VERSION "$PACKAGE_VERSION" 2588_ACEOF 2589 2590cat >>confdefs.h <<_ACEOF 2591#define PACKAGE_STRING "$PACKAGE_STRING" 2592_ACEOF 2593 2594cat >>confdefs.h <<_ACEOF 2595#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2596_ACEOF 2597 2598cat >>confdefs.h <<_ACEOF 2599#define PACKAGE_URL "$PACKAGE_URL" 2600_ACEOF 2601 2602 2603# Let the site file select an alternate cache file if it wants to. 2604# Prefer an explicitly selected file to automatically selected ones. 2605ac_site_file1=NONE 2606ac_site_file2=NONE 2607if test -n "$CONFIG_SITE"; then 2608 ac_site_file1=$CONFIG_SITE 2609elif test "x$prefix" != xNONE; then 2610 ac_site_file1=$prefix/share/config.site 2611 ac_site_file2=$prefix/etc/config.site 2612else 2613 ac_site_file1=$ac_default_prefix/share/config.site 2614 ac_site_file2=$ac_default_prefix/etc/config.site 2615fi 2616for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2617do 2618 test "x$ac_site_file" = xNONE && continue 2619 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2620 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2621$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2622 sed 's/^/| /' "$ac_site_file" >&5 2623 . "$ac_site_file" 2624 fi 2625done 2626 2627if test -r "$cache_file"; then 2628 # Some versions of bash will fail to source /dev/null (special files 2629 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2630 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2631 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2632$as_echo "$as_me: loading cache $cache_file" >&6;} 2633 case $cache_file in 2634 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2635 *) . "./$cache_file";; 2636 esac 2637 fi 2638else 2639 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2640$as_echo "$as_me: creating cache $cache_file" >&6;} 2641 >$cache_file 2642fi 2643 2644# Check that the precious variables saved in the cache have kept the same 2645# value. 2646ac_cache_corrupted=false 2647for ac_var in $ac_precious_vars; do 2648 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2649 eval ac_new_set=\$ac_env_${ac_var}_set 2650 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2651 eval ac_new_val=\$ac_env_${ac_var}_value 2652 case $ac_old_set,$ac_new_set in 2653 set,) 2654 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2655$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2656 ac_cache_corrupted=: ;; 2657 ,set) 2658 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2659$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2660 ac_cache_corrupted=: ;; 2661 ,);; 2662 *) 2663 if test "x$ac_old_val" != "x$ac_new_val"; then 2664 # differences in whitespace do not lead to failure. 2665 ac_old_val_w=`echo x $ac_old_val` 2666 ac_new_val_w=`echo x $ac_new_val` 2667 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2668 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2669$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2670 ac_cache_corrupted=: 2671 else 2672 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2673$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2674 eval $ac_var=\$ac_old_val 2675 fi 2676 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2677$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2678 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2679$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2680 fi;; 2681 esac 2682 # Pass precious variables to config.status. 2683 if test "$ac_new_set" = set; then 2684 case $ac_new_val in 2685 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2686 *) ac_arg=$ac_var=$ac_new_val ;; 2687 esac 2688 case " $ac_configure_args " in 2689 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2690 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2691 esac 2692 fi 2693done 2694if $ac_cache_corrupted; then 2695 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2696$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2697 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2698$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2699 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2700fi 2701## -------------------- ## 2702## Main body of script. ## 2703## -------------------- ## 2704 2705ac_ext=c 2706ac_cpp='$CPP $CPPFLAGS' 2707ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2708ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2709ac_compiler_gnu=$ac_cv_c_compiler_gnu 2710 2711 2712am__api_version='1.11' 2713 2714ac_aux_dir= 2715for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2716 for ac_t in install-sh install.sh shtool; do 2717 if test -f "$ac_dir/$ac_t"; then 2718 ac_aux_dir=$ac_dir 2719 ac_install_sh="$ac_aux_dir/$ac_t -c" 2720 break 2 2721 fi 2722 done 2723done 2724if test -z "$ac_aux_dir"; then 2725 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2726fi 2727 2728# These three variables are undocumented and unsupported, 2729# and are intended to be withdrawn in a future Autoconf release. 2730# They can cause serious problems if a builder's source tree is in a directory 2731# whose full name contains unusual characters. 2732ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2733ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2734ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2735 2736 2737# Find a good install program. We prefer a C program (faster), 2738# so one script is as good as another. But avoid the broken or 2739# incompatible versions: 2740# SysV /etc/install, /usr/sbin/install 2741# SunOS /usr/etc/install 2742# IRIX /sbin/install 2743# AIX /bin/install 2744# AmigaOS /C/install, which installs bootblocks on floppy discs 2745# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2746# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2747# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2748# OS/2's system install, which has a completely different semantic 2749# ./install, which can be erroneously created by make from ./install.sh. 2750# Reject install programs that cannot install multiple files. 2751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2752$as_echo_n "checking for a BSD-compatible install... " >&6; } 2753if test -z "$INSTALL"; then 2754if test "${ac_cv_path_install+set}" = set; then : 2755 $as_echo_n "(cached) " >&6 2756else 2757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2758for as_dir in $PATH 2759do 2760 IFS=$as_save_IFS 2761 test -z "$as_dir" && as_dir=. 2762 # Account for people who put trailing slashes in PATH elements. 2763case $as_dir/ in #(( 2764 ./ | .// | /[cC]/* | \ 2765 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2766 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2767 /usr/ucb/* ) ;; 2768 *) 2769 # OSF1 and SCO ODT 3.0 have their own names for install. 2770 # Don't use installbsd from OSF since it installs stuff as root 2771 # by default. 2772 for ac_prog in ginstall scoinst install; do 2773 for ac_exec_ext in '' $ac_executable_extensions; do 2774 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2775 if test $ac_prog = install && 2776 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2777 # AIX install. It has an incompatible calling convention. 2778 : 2779 elif test $ac_prog = install && 2780 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2781 # program-specific install script used by HP pwplus--don't use. 2782 : 2783 else 2784 rm -rf conftest.one conftest.two conftest.dir 2785 echo one > conftest.one 2786 echo two > conftest.two 2787 mkdir conftest.dir 2788 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2789 test -s conftest.one && test -s conftest.two && 2790 test -s conftest.dir/conftest.one && 2791 test -s conftest.dir/conftest.two 2792 then 2793 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2794 break 3 2795 fi 2796 fi 2797 fi 2798 done 2799 done 2800 ;; 2801esac 2802 2803 done 2804IFS=$as_save_IFS 2805 2806rm -rf conftest.one conftest.two conftest.dir 2807 2808fi 2809 if test "${ac_cv_path_install+set}" = set; then 2810 INSTALL=$ac_cv_path_install 2811 else 2812 # As a last resort, use the slow shell script. Don't cache a 2813 # value for INSTALL within a source directory, because that will 2814 # break other packages using the cache if that directory is 2815 # removed, or if the value is a relative name. 2816 INSTALL=$ac_install_sh 2817 fi 2818fi 2819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2820$as_echo "$INSTALL" >&6; } 2821 2822# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2823# It thinks the first close brace ends the variable substitution. 2824test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2825 2826test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2827 2828test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2829 2830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2831$as_echo_n "checking whether build environment is sane... " >&6; } 2832# Just in case 2833sleep 1 2834echo timestamp > conftest.file 2835# Reject unsafe characters in $srcdir or the absolute working directory 2836# name. Accept space and tab only in the latter. 2837am_lf=' 2838' 2839case `pwd` in 2840 *[\\\"\#\$\&\'\`$am_lf]*) 2841 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; 2842esac 2843case $srcdir in 2844 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2845 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2846esac 2847 2848# Do `set' in a subshell so we don't clobber the current shell's 2849# arguments. Must try -L first in case configure is actually a 2850# symlink; some systems play weird games with the mod time of symlinks 2851# (eg FreeBSD returns the mod time of the symlink's containing 2852# directory). 2853if ( 2854 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2855 if test "$*" = "X"; then 2856 # -L didn't work. 2857 set X `ls -t "$srcdir/configure" conftest.file` 2858 fi 2859 rm -f conftest.file 2860 if test "$*" != "X $srcdir/configure conftest.file" \ 2861 && test "$*" != "X conftest.file $srcdir/configure"; then 2862 2863 # If neither matched, then we have a broken ls. This can happen 2864 # if, for instance, CONFIG_SHELL is bash and it inherits a 2865 # broken ls alias from the environment. This has actually 2866 # happened. Such a system could not be considered "sane". 2867 as_fn_error "ls -t appears to fail. Make sure there is not a broken 2868alias in your environment" "$LINENO" 5 2869 fi 2870 2871 test "$2" = conftest.file 2872 ) 2873then 2874 # Ok. 2875 : 2876else 2877 as_fn_error "newly created file is older than distributed files! 2878Check your system clock" "$LINENO" 5 2879fi 2880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2881$as_echo "yes" >&6; } 2882test "$program_prefix" != NONE && 2883 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2884# Use a double $ so make ignores it. 2885test "$program_suffix" != NONE && 2886 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2887# Double any \ or $. 2888# By default was `s,x,x', remove it if useless. 2889ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2890program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2891 2892# expand $ac_aux_dir to an absolute path 2893am_aux_dir=`cd $ac_aux_dir && pwd` 2894 2895if test x"${MISSING+set}" != xset; then 2896 case $am_aux_dir in 2897 *\ * | *\ *) 2898 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2899 *) 2900 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2901 esac 2902fi 2903# Use eval to expand $SHELL 2904if eval "$MISSING --run true"; then 2905 am_missing_run="$MISSING --run " 2906else 2907 am_missing_run= 2908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2909$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2910fi 2911 2912if test x"${install_sh}" != xset; then 2913 case $am_aux_dir in 2914 *\ * | *\ *) 2915 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2916 *) 2917 install_sh="\${SHELL} $am_aux_dir/install-sh" 2918 esac 2919fi 2920 2921# Installed binaries are usually stripped using `strip' when the user 2922# run `make install-strip'. However `strip' might not be the right 2923# tool to use in cross-compilation environments, therefore Automake 2924# will honor the `STRIP' environment variable to overrule this program. 2925if test "$cross_compiling" != no; then 2926 if test -n "$ac_tool_prefix"; then 2927 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2928set dummy ${ac_tool_prefix}strip; ac_word=$2 2929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2930$as_echo_n "checking for $ac_word... " >&6; } 2931if test "${ac_cv_prog_STRIP+set}" = set; then : 2932 $as_echo_n "(cached) " >&6 2933else 2934 if test -n "$STRIP"; then 2935 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2936else 2937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2938for as_dir in $PATH 2939do 2940 IFS=$as_save_IFS 2941 test -z "$as_dir" && as_dir=. 2942 for ac_exec_ext in '' $ac_executable_extensions; do 2943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2944 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2946 break 2 2947 fi 2948done 2949 done 2950IFS=$as_save_IFS 2951 2952fi 2953fi 2954STRIP=$ac_cv_prog_STRIP 2955if test -n "$STRIP"; then 2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2957$as_echo "$STRIP" >&6; } 2958else 2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2960$as_echo "no" >&6; } 2961fi 2962 2963 2964fi 2965if test -z "$ac_cv_prog_STRIP"; then 2966 ac_ct_STRIP=$STRIP 2967 # Extract the first word of "strip", so it can be a program name with args. 2968set dummy strip; ac_word=$2 2969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2970$as_echo_n "checking for $ac_word... " >&6; } 2971if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 2972 $as_echo_n "(cached) " >&6 2973else 2974 if test -n "$ac_ct_STRIP"; then 2975 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2976else 2977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2978for as_dir in $PATH 2979do 2980 IFS=$as_save_IFS 2981 test -z "$as_dir" && as_dir=. 2982 for ac_exec_ext in '' $ac_executable_extensions; do 2983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2984 ac_cv_prog_ac_ct_STRIP="strip" 2985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2986 break 2 2987 fi 2988done 2989 done 2990IFS=$as_save_IFS 2991 2992fi 2993fi 2994ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2995if test -n "$ac_ct_STRIP"; then 2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2997$as_echo "$ac_ct_STRIP" >&6; } 2998else 2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3000$as_echo "no" >&6; } 3001fi 3002 3003 if test "x$ac_ct_STRIP" = x; then 3004 STRIP=":" 3005 else 3006 case $cross_compiling:$ac_tool_warned in 3007yes:) 3008{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3009$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3010ac_tool_warned=yes ;; 3011esac 3012 STRIP=$ac_ct_STRIP 3013 fi 3014else 3015 STRIP="$ac_cv_prog_STRIP" 3016fi 3017 3018fi 3019INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3020 3021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3022$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3023if test -z "$MKDIR_P"; then 3024 if test "${ac_cv_path_mkdir+set}" = set; then : 3025 $as_echo_n "(cached) " >&6 3026else 3027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3028for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3029do 3030 IFS=$as_save_IFS 3031 test -z "$as_dir" && as_dir=. 3032 for ac_prog in mkdir gmkdir; do 3033 for ac_exec_ext in '' $ac_executable_extensions; do 3034 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 3035 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3036 'mkdir (GNU coreutils) '* | \ 3037 'mkdir (coreutils) '* | \ 3038 'mkdir (fileutils) '4.1*) 3039 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3040 break 3;; 3041 esac 3042 done 3043 done 3044 done 3045IFS=$as_save_IFS 3046 3047fi 3048 3049 test -d ./--version && rmdir ./--version 3050 if test "${ac_cv_path_mkdir+set}" = set; then 3051 MKDIR_P="$ac_cv_path_mkdir -p" 3052 else 3053 # As a last resort, use the slow shell script. Don't cache a 3054 # value for MKDIR_P within a source directory, because that will 3055 # break other packages using the cache if that directory is 3056 # removed, or if the value is a relative name. 3057 MKDIR_P="$ac_install_sh -d" 3058 fi 3059fi 3060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3061$as_echo "$MKDIR_P" >&6; } 3062 3063mkdir_p="$MKDIR_P" 3064case $mkdir_p in 3065 [\\/$]* | ?:[\\/]*) ;; 3066 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 3067esac 3068 3069for ac_prog in gawk mawk nawk awk 3070do 3071 # Extract the first word of "$ac_prog", so it can be a program name with args. 3072set dummy $ac_prog; ac_word=$2 3073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3074$as_echo_n "checking for $ac_word... " >&6; } 3075if test "${ac_cv_prog_AWK+set}" = set; then : 3076 $as_echo_n "(cached) " >&6 3077else 3078 if test -n "$AWK"; then 3079 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3080else 3081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3082for as_dir in $PATH 3083do 3084 IFS=$as_save_IFS 3085 test -z "$as_dir" && as_dir=. 3086 for ac_exec_ext in '' $ac_executable_extensions; do 3087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3088 ac_cv_prog_AWK="$ac_prog" 3089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3090 break 2 3091 fi 3092done 3093 done 3094IFS=$as_save_IFS 3095 3096fi 3097fi 3098AWK=$ac_cv_prog_AWK 3099if test -n "$AWK"; then 3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3101$as_echo "$AWK" >&6; } 3102else 3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3104$as_echo "no" >&6; } 3105fi 3106 3107 3108 test -n "$AWK" && break 3109done 3110 3111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3112$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3113set x ${MAKE-make} 3114ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3115if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 3116 $as_echo_n "(cached) " >&6 3117else 3118 cat >conftest.make <<\_ACEOF 3119SHELL = /bin/sh 3120all: 3121 @echo '@@@%%%=$(MAKE)=@@@%%%' 3122_ACEOF 3123# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3124case `${MAKE-make} -f conftest.make 2>/dev/null` in 3125 *@@@%%%=?*=@@@%%%*) 3126 eval ac_cv_prog_make_${ac_make}_set=yes;; 3127 *) 3128 eval ac_cv_prog_make_${ac_make}_set=no;; 3129esac 3130rm -f conftest.make 3131fi 3132if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3134$as_echo "yes" >&6; } 3135 SET_MAKE= 3136else 3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3138$as_echo "no" >&6; } 3139 SET_MAKE="MAKE=${MAKE-make}" 3140fi 3141 3142rm -rf .tst 2>/dev/null 3143mkdir .tst 2>/dev/null 3144if test -d .tst; then 3145 am__leading_dot=. 3146else 3147 am__leading_dot=_ 3148fi 3149rmdir .tst 2>/dev/null 3150 3151if test "`cd $srcdir && pwd`" != "`pwd`"; then 3152 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3153 # is not polluted with repeated "-I." 3154 am__isrc=' -I$(srcdir)' 3155 # test to see if srcdir already configured 3156 if test -f $srcdir/config.status; then 3157 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3158 fi 3159fi 3160 3161# test whether we have cygpath 3162if test -z "$CYGPATH_W"; then 3163 if (cygpath --version) >/dev/null 2>/dev/null; then 3164 CYGPATH_W='cygpath -w' 3165 else 3166 CYGPATH_W=echo 3167 fi 3168fi 3169 3170 3171# Define the identity of the package. 3172 PACKAGE='xdm' 3173 VERSION='1.1.10' 3174 3175 3176cat >>confdefs.h <<_ACEOF 3177#define PACKAGE "$PACKAGE" 3178_ACEOF 3179 3180 3181cat >>confdefs.h <<_ACEOF 3182#define VERSION "$VERSION" 3183_ACEOF 3184 3185# Some tools Automake needs. 3186 3187ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3188 3189 3190AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3191 3192 3193AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3194 3195 3196AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3197 3198 3199MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3200 3201# We need awk for the "check" target. The system "awk" is bad on 3202# some platforms. 3203# Always define AMTAR for backward compatibility. 3204 3205AMTAR=${AMTAR-"${am_missing_run}tar"} 3206 3207am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 3208 3209 3210 3211 3212 3213 3214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3215$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3216 # Check whether --enable-maintainer-mode was given. 3217if test "${enable_maintainer_mode+set}" = set; then : 3218 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3219else 3220 USE_MAINTAINER_MODE=no 3221fi 3222 3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3224$as_echo "$USE_MAINTAINER_MODE" >&6; } 3225 if test $USE_MAINTAINER_MODE = yes; then 3226 MAINTAINER_MODE_TRUE= 3227 MAINTAINER_MODE_FALSE='#' 3228else 3229 MAINTAINER_MODE_TRUE='#' 3230 MAINTAINER_MODE_FALSE= 3231fi 3232 3233 MAINT=$MAINTAINER_MODE_TRUE 3234 3235 3236 3237 3238# Require xorg-macros: XORG_DEFAULT_OPTIONS 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250DEPDIR="${am__leading_dot}deps" 3251 3252ac_config_commands="$ac_config_commands depfiles" 3253 3254 3255am_make=${MAKE-make} 3256cat > confinc << 'END' 3257am__doit: 3258 @echo this is the am__doit target 3259.PHONY: am__doit 3260END 3261# If we don't find an include directive, just comment out the code. 3262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3263$as_echo_n "checking for style of include used by $am_make... " >&6; } 3264am__include="#" 3265am__quote= 3266_am_result=none 3267# First try GNU make style include. 3268echo "include confinc" > confmf 3269# Ignore all kinds of additional output from `make'. 3270case `$am_make -s -f confmf 2> /dev/null` in #( 3271*the\ am__doit\ target*) 3272 am__include=include 3273 am__quote= 3274 _am_result=GNU 3275 ;; 3276esac 3277# Now try BSD make style include. 3278if test "$am__include" = "#"; then 3279 echo '.include "confinc"' > confmf 3280 case `$am_make -s -f confmf 2> /dev/null` in #( 3281 *the\ am__doit\ target*) 3282 am__include=.include 3283 am__quote="\"" 3284 _am_result=BSD 3285 ;; 3286 esac 3287fi 3288 3289 3290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3291$as_echo "$_am_result" >&6; } 3292rm -f confinc confmf 3293 3294# Check whether --enable-dependency-tracking was given. 3295if test "${enable_dependency_tracking+set}" = set; then : 3296 enableval=$enable_dependency_tracking; 3297fi 3298 3299if test "x$enable_dependency_tracking" != xno; then 3300 am_depcomp="$ac_aux_dir/depcomp" 3301 AMDEPBACKSLASH='\' 3302fi 3303 if test "x$enable_dependency_tracking" != xno; then 3304 AMDEP_TRUE= 3305 AMDEP_FALSE='#' 3306else 3307 AMDEP_TRUE='#' 3308 AMDEP_FALSE= 3309fi 3310 3311 3312ac_ext=c 3313ac_cpp='$CPP $CPPFLAGS' 3314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3316ac_compiler_gnu=$ac_cv_c_compiler_gnu 3317if test -n "$ac_tool_prefix"; then 3318 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3319set dummy ${ac_tool_prefix}gcc; ac_word=$2 3320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3321$as_echo_n "checking for $ac_word... " >&6; } 3322if test "${ac_cv_prog_CC+set}" = set; then : 3323 $as_echo_n "(cached) " >&6 3324else 3325 if test -n "$CC"; then 3326 ac_cv_prog_CC="$CC" # Let the user override the test. 3327else 3328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3329for as_dir in $PATH 3330do 3331 IFS=$as_save_IFS 3332 test -z "$as_dir" && as_dir=. 3333 for ac_exec_ext in '' $ac_executable_extensions; do 3334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3335 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3337 break 2 3338 fi 3339done 3340 done 3341IFS=$as_save_IFS 3342 3343fi 3344fi 3345CC=$ac_cv_prog_CC 3346if test -n "$CC"; then 3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3348$as_echo "$CC" >&6; } 3349else 3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3351$as_echo "no" >&6; } 3352fi 3353 3354 3355fi 3356if test -z "$ac_cv_prog_CC"; then 3357 ac_ct_CC=$CC 3358 # Extract the first word of "gcc", so it can be a program name with args. 3359set dummy gcc; ac_word=$2 3360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3361$as_echo_n "checking for $ac_word... " >&6; } 3362if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3363 $as_echo_n "(cached) " >&6 3364else 3365 if test -n "$ac_ct_CC"; then 3366 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3367else 3368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3369for as_dir in $PATH 3370do 3371 IFS=$as_save_IFS 3372 test -z "$as_dir" && as_dir=. 3373 for ac_exec_ext in '' $ac_executable_extensions; do 3374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3375 ac_cv_prog_ac_ct_CC="gcc" 3376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3377 break 2 3378 fi 3379done 3380 done 3381IFS=$as_save_IFS 3382 3383fi 3384fi 3385ac_ct_CC=$ac_cv_prog_ac_ct_CC 3386if test -n "$ac_ct_CC"; then 3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3388$as_echo "$ac_ct_CC" >&6; } 3389else 3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3391$as_echo "no" >&6; } 3392fi 3393 3394 if test "x$ac_ct_CC" = x; then 3395 CC="" 3396 else 3397 case $cross_compiling:$ac_tool_warned in 3398yes:) 3399{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3400$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3401ac_tool_warned=yes ;; 3402esac 3403 CC=$ac_ct_CC 3404 fi 3405else 3406 CC="$ac_cv_prog_CC" 3407fi 3408 3409if test -z "$CC"; then 3410 if test -n "$ac_tool_prefix"; then 3411 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3412set dummy ${ac_tool_prefix}cc; ac_word=$2 3413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3414$as_echo_n "checking for $ac_word... " >&6; } 3415if test "${ac_cv_prog_CC+set}" = set; then : 3416 $as_echo_n "(cached) " >&6 3417else 3418 if test -n "$CC"; then 3419 ac_cv_prog_CC="$CC" # Let the user override the test. 3420else 3421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3422for as_dir in $PATH 3423do 3424 IFS=$as_save_IFS 3425 test -z "$as_dir" && as_dir=. 3426 for ac_exec_ext in '' $ac_executable_extensions; do 3427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3428 ac_cv_prog_CC="${ac_tool_prefix}cc" 3429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3430 break 2 3431 fi 3432done 3433 done 3434IFS=$as_save_IFS 3435 3436fi 3437fi 3438CC=$ac_cv_prog_CC 3439if test -n "$CC"; then 3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3441$as_echo "$CC" >&6; } 3442else 3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3444$as_echo "no" >&6; } 3445fi 3446 3447 3448 fi 3449fi 3450if test -z "$CC"; then 3451 # Extract the first word of "cc", so it can be a program name with args. 3452set dummy cc; ac_word=$2 3453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3454$as_echo_n "checking for $ac_word... " >&6; } 3455if test "${ac_cv_prog_CC+set}" = set; then : 3456 $as_echo_n "(cached) " >&6 3457else 3458 if test -n "$CC"; then 3459 ac_cv_prog_CC="$CC" # Let the user override the test. 3460else 3461 ac_prog_rejected=no 3462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3463for as_dir in $PATH 3464do 3465 IFS=$as_save_IFS 3466 test -z "$as_dir" && as_dir=. 3467 for ac_exec_ext in '' $ac_executable_extensions; do 3468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3469 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3470 ac_prog_rejected=yes 3471 continue 3472 fi 3473 ac_cv_prog_CC="cc" 3474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3475 break 2 3476 fi 3477done 3478 done 3479IFS=$as_save_IFS 3480 3481if test $ac_prog_rejected = yes; then 3482 # We found a bogon in the path, so make sure we never use it. 3483 set dummy $ac_cv_prog_CC 3484 shift 3485 if test $# != 0; then 3486 # We chose a different compiler from the bogus one. 3487 # However, it has the same basename, so the bogon will be chosen 3488 # first if we set CC to just the basename; use the full file name. 3489 shift 3490 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3491 fi 3492fi 3493fi 3494fi 3495CC=$ac_cv_prog_CC 3496if test -n "$CC"; then 3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3498$as_echo "$CC" >&6; } 3499else 3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3501$as_echo "no" >&6; } 3502fi 3503 3504 3505fi 3506if test -z "$CC"; then 3507 if test -n "$ac_tool_prefix"; then 3508 for ac_prog in cl.exe 3509 do 3510 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3511set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3513$as_echo_n "checking for $ac_word... " >&6; } 3514if test "${ac_cv_prog_CC+set}" = set; then : 3515 $as_echo_n "(cached) " >&6 3516else 3517 if test -n "$CC"; then 3518 ac_cv_prog_CC="$CC" # Let the user override the test. 3519else 3520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3521for as_dir in $PATH 3522do 3523 IFS=$as_save_IFS 3524 test -z "$as_dir" && as_dir=. 3525 for ac_exec_ext in '' $ac_executable_extensions; do 3526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3527 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3529 break 2 3530 fi 3531done 3532 done 3533IFS=$as_save_IFS 3534 3535fi 3536fi 3537CC=$ac_cv_prog_CC 3538if test -n "$CC"; then 3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3540$as_echo "$CC" >&6; } 3541else 3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3543$as_echo "no" >&6; } 3544fi 3545 3546 3547 test -n "$CC" && break 3548 done 3549fi 3550if test -z "$CC"; then 3551 ac_ct_CC=$CC 3552 for ac_prog in cl.exe 3553do 3554 # Extract the first word of "$ac_prog", so it can be a program name with args. 3555set dummy $ac_prog; ac_word=$2 3556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3557$as_echo_n "checking for $ac_word... " >&6; } 3558if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3559 $as_echo_n "(cached) " >&6 3560else 3561 if test -n "$ac_ct_CC"; then 3562 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3563else 3564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3565for as_dir in $PATH 3566do 3567 IFS=$as_save_IFS 3568 test -z "$as_dir" && as_dir=. 3569 for ac_exec_ext in '' $ac_executable_extensions; do 3570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3571 ac_cv_prog_ac_ct_CC="$ac_prog" 3572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3573 break 2 3574 fi 3575done 3576 done 3577IFS=$as_save_IFS 3578 3579fi 3580fi 3581ac_ct_CC=$ac_cv_prog_ac_ct_CC 3582if test -n "$ac_ct_CC"; then 3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3584$as_echo "$ac_ct_CC" >&6; } 3585else 3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3587$as_echo "no" >&6; } 3588fi 3589 3590 3591 test -n "$ac_ct_CC" && break 3592done 3593 3594 if test "x$ac_ct_CC" = x; then 3595 CC="" 3596 else 3597 case $cross_compiling:$ac_tool_warned in 3598yes:) 3599{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3600$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3601ac_tool_warned=yes ;; 3602esac 3603 CC=$ac_ct_CC 3604 fi 3605fi 3606 3607fi 3608 3609 3610test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3611$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3612as_fn_error "no acceptable C compiler found in \$PATH 3613See \`config.log' for more details." "$LINENO" 5; } 3614 3615# Provide some information about the compiler. 3616$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3617set X $ac_compile 3618ac_compiler=$2 3619for ac_option in --version -v -V -qversion; do 3620 { { ac_try="$ac_compiler $ac_option >&5" 3621case "(($ac_try" in 3622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3623 *) ac_try_echo=$ac_try;; 3624esac 3625eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3626$as_echo "$ac_try_echo"; } >&5 3627 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3628 ac_status=$? 3629 if test -s conftest.err; then 3630 sed '10a\ 3631... rest of stderr output deleted ... 3632 10q' conftest.err >conftest.er1 3633 cat conftest.er1 >&5 3634 fi 3635 rm -f conftest.er1 conftest.err 3636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3637 test $ac_status = 0; } 3638done 3639 3640cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3641/* end confdefs.h. */ 3642 3643int 3644main () 3645{ 3646 3647 ; 3648 return 0; 3649} 3650_ACEOF 3651ac_clean_files_save=$ac_clean_files 3652ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3653# Try to create an executable without -o first, disregard a.out. 3654# It will help us diagnose broken compilers, and finding out an intuition 3655# of exeext. 3656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3657$as_echo_n "checking whether the C compiler works... " >&6; } 3658ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3659 3660# The possible output files: 3661ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3662 3663ac_rmfiles= 3664for ac_file in $ac_files 3665do 3666 case $ac_file in 3667 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3668 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3669 esac 3670done 3671rm -f $ac_rmfiles 3672 3673if { { ac_try="$ac_link_default" 3674case "(($ac_try" in 3675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3676 *) ac_try_echo=$ac_try;; 3677esac 3678eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3679$as_echo "$ac_try_echo"; } >&5 3680 (eval "$ac_link_default") 2>&5 3681 ac_status=$? 3682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3683 test $ac_status = 0; }; then : 3684 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3685# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3686# in a Makefile. We should not override ac_cv_exeext if it was cached, 3687# so that the user can short-circuit this test for compilers unknown to 3688# Autoconf. 3689for ac_file in $ac_files '' 3690do 3691 test -f "$ac_file" || continue 3692 case $ac_file in 3693 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3694 ;; 3695 [ab].out ) 3696 # We found the default executable, but exeext='' is most 3697 # certainly right. 3698 break;; 3699 *.* ) 3700 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3701 then :; else 3702 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3703 fi 3704 # We set ac_cv_exeext here because the later test for it is not 3705 # safe: cross compilers may not add the suffix if given an `-o' 3706 # argument, so we may need to know it at that point already. 3707 # Even if this section looks crufty: it has the advantage of 3708 # actually working. 3709 break;; 3710 * ) 3711 break;; 3712 esac 3713done 3714test "$ac_cv_exeext" = no && ac_cv_exeext= 3715 3716else 3717 ac_file='' 3718fi 3719if test -z "$ac_file"; then : 3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3721$as_echo "no" >&6; } 3722$as_echo "$as_me: failed program was:" >&5 3723sed 's/^/| /' conftest.$ac_ext >&5 3724 3725{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3726$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3727{ as_fn_set_status 77 3728as_fn_error "C compiler cannot create executables 3729See \`config.log' for more details." "$LINENO" 5; }; } 3730else 3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3732$as_echo "yes" >&6; } 3733fi 3734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3735$as_echo_n "checking for C compiler default output file name... " >&6; } 3736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3737$as_echo "$ac_file" >&6; } 3738ac_exeext=$ac_cv_exeext 3739 3740rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3741ac_clean_files=$ac_clean_files_save 3742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3743$as_echo_n "checking for suffix of executables... " >&6; } 3744if { { ac_try="$ac_link" 3745case "(($ac_try" in 3746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3747 *) ac_try_echo=$ac_try;; 3748esac 3749eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3750$as_echo "$ac_try_echo"; } >&5 3751 (eval "$ac_link") 2>&5 3752 ac_status=$? 3753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3754 test $ac_status = 0; }; then : 3755 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3756# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3757# work properly (i.e., refer to `conftest.exe'), while it won't with 3758# `rm'. 3759for ac_file in conftest.exe conftest conftest.*; do 3760 test -f "$ac_file" || continue 3761 case $ac_file in 3762 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3763 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3764 break;; 3765 * ) break;; 3766 esac 3767done 3768else 3769 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3770$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3771as_fn_error "cannot compute suffix of executables: cannot compile and link 3772See \`config.log' for more details." "$LINENO" 5; } 3773fi 3774rm -f conftest conftest$ac_cv_exeext 3775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3776$as_echo "$ac_cv_exeext" >&6; } 3777 3778rm -f conftest.$ac_ext 3779EXEEXT=$ac_cv_exeext 3780ac_exeext=$EXEEXT 3781cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3782/* end confdefs.h. */ 3783#include <stdio.h> 3784int 3785main () 3786{ 3787FILE *f = fopen ("conftest.out", "w"); 3788 return ferror (f) || fclose (f) != 0; 3789 3790 ; 3791 return 0; 3792} 3793_ACEOF 3794ac_clean_files="$ac_clean_files conftest.out" 3795# Check that the compiler produces executables we can run. If not, either 3796# the compiler is broken, or we cross compile. 3797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3798$as_echo_n "checking whether we are cross compiling... " >&6; } 3799if test "$cross_compiling" != yes; then 3800 { { ac_try="$ac_link" 3801case "(($ac_try" in 3802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3803 *) ac_try_echo=$ac_try;; 3804esac 3805eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3806$as_echo "$ac_try_echo"; } >&5 3807 (eval "$ac_link") 2>&5 3808 ac_status=$? 3809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3810 test $ac_status = 0; } 3811 if { ac_try='./conftest$ac_cv_exeext' 3812 { { case "(($ac_try" in 3813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3814 *) ac_try_echo=$ac_try;; 3815esac 3816eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3817$as_echo "$ac_try_echo"; } >&5 3818 (eval "$ac_try") 2>&5 3819 ac_status=$? 3820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3821 test $ac_status = 0; }; }; then 3822 cross_compiling=no 3823 else 3824 if test "$cross_compiling" = maybe; then 3825 cross_compiling=yes 3826 else 3827 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3828$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3829as_fn_error "cannot run C compiled programs. 3830If you meant to cross compile, use \`--host'. 3831See \`config.log' for more details." "$LINENO" 5; } 3832 fi 3833 fi 3834fi 3835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3836$as_echo "$cross_compiling" >&6; } 3837 3838rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3839ac_clean_files=$ac_clean_files_save 3840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3841$as_echo_n "checking for suffix of object files... " >&6; } 3842if test "${ac_cv_objext+set}" = set; then : 3843 $as_echo_n "(cached) " >&6 3844else 3845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3846/* end confdefs.h. */ 3847 3848int 3849main () 3850{ 3851 3852 ; 3853 return 0; 3854} 3855_ACEOF 3856rm -f conftest.o conftest.obj 3857if { { ac_try="$ac_compile" 3858case "(($ac_try" in 3859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3860 *) ac_try_echo=$ac_try;; 3861esac 3862eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3863$as_echo "$ac_try_echo"; } >&5 3864 (eval "$ac_compile") 2>&5 3865 ac_status=$? 3866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3867 test $ac_status = 0; }; then : 3868 for ac_file in conftest.o conftest.obj conftest.*; do 3869 test -f "$ac_file" || continue; 3870 case $ac_file in 3871 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3872 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3873 break;; 3874 esac 3875done 3876else 3877 $as_echo "$as_me: failed program was:" >&5 3878sed 's/^/| /' conftest.$ac_ext >&5 3879 3880{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3881$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3882as_fn_error "cannot compute suffix of object files: cannot compile 3883See \`config.log' for more details." "$LINENO" 5; } 3884fi 3885rm -f conftest.$ac_cv_objext conftest.$ac_ext 3886fi 3887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3888$as_echo "$ac_cv_objext" >&6; } 3889OBJEXT=$ac_cv_objext 3890ac_objext=$OBJEXT 3891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3892$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3893if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3894 $as_echo_n "(cached) " >&6 3895else 3896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3897/* end confdefs.h. */ 3898 3899int 3900main () 3901{ 3902#ifndef __GNUC__ 3903 choke me 3904#endif 3905 3906 ; 3907 return 0; 3908} 3909_ACEOF 3910if ac_fn_c_try_compile "$LINENO"; then : 3911 ac_compiler_gnu=yes 3912else 3913 ac_compiler_gnu=no 3914fi 3915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3916ac_cv_c_compiler_gnu=$ac_compiler_gnu 3917 3918fi 3919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3920$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3921if test $ac_compiler_gnu = yes; then 3922 GCC=yes 3923else 3924 GCC= 3925fi 3926ac_test_CFLAGS=${CFLAGS+set} 3927ac_save_CFLAGS=$CFLAGS 3928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3929$as_echo_n "checking whether $CC accepts -g... " >&6; } 3930if test "${ac_cv_prog_cc_g+set}" = set; then : 3931 $as_echo_n "(cached) " >&6 3932else 3933 ac_save_c_werror_flag=$ac_c_werror_flag 3934 ac_c_werror_flag=yes 3935 ac_cv_prog_cc_g=no 3936 CFLAGS="-g" 3937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3938/* end confdefs.h. */ 3939 3940int 3941main () 3942{ 3943 3944 ; 3945 return 0; 3946} 3947_ACEOF 3948if ac_fn_c_try_compile "$LINENO"; then : 3949 ac_cv_prog_cc_g=yes 3950else 3951 CFLAGS="" 3952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3953/* end confdefs.h. */ 3954 3955int 3956main () 3957{ 3958 3959 ; 3960 return 0; 3961} 3962_ACEOF 3963if ac_fn_c_try_compile "$LINENO"; then : 3964 3965else 3966 ac_c_werror_flag=$ac_save_c_werror_flag 3967 CFLAGS="-g" 3968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3969/* end confdefs.h. */ 3970 3971int 3972main () 3973{ 3974 3975 ; 3976 return 0; 3977} 3978_ACEOF 3979if ac_fn_c_try_compile "$LINENO"; then : 3980 ac_cv_prog_cc_g=yes 3981fi 3982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3983fi 3984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3985fi 3986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3987 ac_c_werror_flag=$ac_save_c_werror_flag 3988fi 3989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3990$as_echo "$ac_cv_prog_cc_g" >&6; } 3991if test "$ac_test_CFLAGS" = set; then 3992 CFLAGS=$ac_save_CFLAGS 3993elif test $ac_cv_prog_cc_g = yes; then 3994 if test "$GCC" = yes; then 3995 CFLAGS="-g -O2" 3996 else 3997 CFLAGS="-g" 3998 fi 3999else 4000 if test "$GCC" = yes; then 4001 CFLAGS="-O2" 4002 else 4003 CFLAGS= 4004 fi 4005fi 4006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4007$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4008if test "${ac_cv_prog_cc_c89+set}" = set; then : 4009 $as_echo_n "(cached) " >&6 4010else 4011 ac_cv_prog_cc_c89=no 4012ac_save_CC=$CC 4013cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4014/* end confdefs.h. */ 4015#include <stdarg.h> 4016#include <stdio.h> 4017#include <sys/types.h> 4018#include <sys/stat.h> 4019/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4020struct buf { int x; }; 4021FILE * (*rcsopen) (struct buf *, struct stat *, int); 4022static char *e (p, i) 4023 char **p; 4024 int i; 4025{ 4026 return p[i]; 4027} 4028static char *f (char * (*g) (char **, int), char **p, ...) 4029{ 4030 char *s; 4031 va_list v; 4032 va_start (v,p); 4033 s = g (p, va_arg (v,int)); 4034 va_end (v); 4035 return s; 4036} 4037 4038/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4039 function prototypes and stuff, but not '\xHH' hex character constants. 4040 These don't provoke an error unfortunately, instead are silently treated 4041 as 'x'. The following induces an error, until -std is added to get 4042 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4043 array size at least. It's necessary to write '\x00'==0 to get something 4044 that's true only with -std. */ 4045int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4046 4047/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4048 inside strings and character constants. */ 4049#define FOO(x) 'x' 4050int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4051 4052int test (int i, double x); 4053struct s1 {int (*f) (int a);}; 4054struct s2 {int (*f) (double a);}; 4055int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4056int argc; 4057char **argv; 4058int 4059main () 4060{ 4061return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4062 ; 4063 return 0; 4064} 4065_ACEOF 4066for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4067 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4068do 4069 CC="$ac_save_CC $ac_arg" 4070 if ac_fn_c_try_compile "$LINENO"; then : 4071 ac_cv_prog_cc_c89=$ac_arg 4072fi 4073rm -f core conftest.err conftest.$ac_objext 4074 test "x$ac_cv_prog_cc_c89" != "xno" && break 4075done 4076rm -f conftest.$ac_ext 4077CC=$ac_save_CC 4078 4079fi 4080# AC_CACHE_VAL 4081case "x$ac_cv_prog_cc_c89" in 4082 x) 4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4084$as_echo "none needed" >&6; } ;; 4085 xno) 4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4087$as_echo "unsupported" >&6; } ;; 4088 *) 4089 CC="$CC $ac_cv_prog_cc_c89" 4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4091$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4092esac 4093if test "x$ac_cv_prog_cc_c89" != xno; then : 4094 4095fi 4096 4097ac_ext=c 4098ac_cpp='$CPP $CPPFLAGS' 4099ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4100ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4101ac_compiler_gnu=$ac_cv_c_compiler_gnu 4102 4103depcc="$CC" am_compiler_list= 4104 4105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4106$as_echo_n "checking dependency style of $depcc... " >&6; } 4107if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 4108 $as_echo_n "(cached) " >&6 4109else 4110 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4111 # We make a subdir and do the tests there. Otherwise we can end up 4112 # making bogus files that we don't know about and never remove. For 4113 # instance it was reported that on HP-UX the gcc test will end up 4114 # making a dummy file named `D' -- because `-MD' means `put the output 4115 # in D'. 4116 mkdir conftest.dir 4117 # Copy depcomp to subdir because otherwise we won't find it if we're 4118 # using a relative directory. 4119 cp "$am_depcomp" conftest.dir 4120 cd conftest.dir 4121 # We will build objects and dependencies in a subdirectory because 4122 # it helps to detect inapplicable dependency modes. For instance 4123 # both Tru64's cc and ICC support -MD to output dependencies as a 4124 # side effect of compilation, but ICC will put the dependencies in 4125 # the current directory while Tru64 will put them in the object 4126 # directory. 4127 mkdir sub 4128 4129 am_cv_CC_dependencies_compiler_type=none 4130 if test "$am_compiler_list" = ""; then 4131 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4132 fi 4133 am__universal=false 4134 case " $depcc " in #( 4135 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4136 esac 4137 4138 for depmode in $am_compiler_list; do 4139 # Setup a source with many dependencies, because some compilers 4140 # like to wrap large dependency lists on column 80 (with \), and 4141 # we should not choose a depcomp mode which is confused by this. 4142 # 4143 # We need to recreate these files for each test, as the compiler may 4144 # overwrite some of them when testing with obscure command lines. 4145 # This happens at least with the AIX C compiler. 4146 : > sub/conftest.c 4147 for i in 1 2 3 4 5 6; do 4148 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4149 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4150 # Solaris 8's {/usr,}/bin/sh. 4151 touch sub/conftst$i.h 4152 done 4153 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4154 4155 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4156 # mode. It turns out that the SunPro C++ compiler does not properly 4157 # handle `-M -o', and we need to detect this. Also, some Intel 4158 # versions had trouble with output in subdirs 4159 am__obj=sub/conftest.${OBJEXT-o} 4160 am__minus_obj="-o $am__obj" 4161 case $depmode in 4162 gcc) 4163 # This depmode causes a compiler race in universal mode. 4164 test "$am__universal" = false || continue 4165 ;; 4166 nosideeffect) 4167 # after this tag, mechanisms are not by side-effect, so they'll 4168 # only be used when explicitly requested 4169 if test "x$enable_dependency_tracking" = xyes; then 4170 continue 4171 else 4172 break 4173 fi 4174 ;; 4175 msvisualcpp | msvcmsys) 4176 # This compiler won't grok `-c -o', but also, the minuso test has 4177 # not run yet. These depmodes are late enough in the game, and 4178 # so weak that their functioning should not be impacted. 4179 am__obj=conftest.${OBJEXT-o} 4180 am__minus_obj= 4181 ;; 4182 none) break ;; 4183 esac 4184 if depmode=$depmode \ 4185 source=sub/conftest.c object=$am__obj \ 4186 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4187 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4188 >/dev/null 2>conftest.err && 4189 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4190 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4191 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4192 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4193 # icc doesn't choke on unknown options, it will just issue warnings 4194 # or remarks (even with -Werror). So we grep stderr for any message 4195 # that says an option was ignored or not supported. 4196 # When given -MP, icc 7.0 and 7.1 complain thusly: 4197 # icc: Command line warning: ignoring option '-M'; no argument required 4198 # The diagnosis changed in icc 8.0: 4199 # icc: Command line remark: option '-MP' not supported 4200 if (grep 'ignoring option' conftest.err || 4201 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4202 am_cv_CC_dependencies_compiler_type=$depmode 4203 break 4204 fi 4205 fi 4206 done 4207 4208 cd .. 4209 rm -rf conftest.dir 4210else 4211 am_cv_CC_dependencies_compiler_type=none 4212fi 4213 4214fi 4215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4216$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4217CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4218 4219 if 4220 test "x$enable_dependency_tracking" != xno \ 4221 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4222 am__fastdepCC_TRUE= 4223 am__fastdepCC_FALSE='#' 4224else 4225 am__fastdepCC_TRUE='#' 4226 am__fastdepCC_FALSE= 4227fi 4228 4229 4230 4231ac_ext=c 4232ac_cpp='$CPP $CPPFLAGS' 4233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4235ac_compiler_gnu=$ac_cv_c_compiler_gnu 4236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4237$as_echo_n "checking how to run the C preprocessor... " >&6; } 4238# On Suns, sometimes $CPP names a directory. 4239if test -n "$CPP" && test -d "$CPP"; then 4240 CPP= 4241fi 4242if test -z "$CPP"; then 4243 if test "${ac_cv_prog_CPP+set}" = set; then : 4244 $as_echo_n "(cached) " >&6 4245else 4246 # Double quotes because CPP needs to be expanded 4247 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4248 do 4249 ac_preproc_ok=false 4250for ac_c_preproc_warn_flag in '' yes 4251do 4252 # Use a header file that comes with gcc, so configuring glibc 4253 # with a fresh cross-compiler works. 4254 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4255 # <limits.h> exists even on freestanding compilers. 4256 # On the NeXT, cc -E runs the code through the compiler's parser, 4257 # not just through cpp. "Syntax error" is here to catch this case. 4258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4259/* end confdefs.h. */ 4260#ifdef __STDC__ 4261# include <limits.h> 4262#else 4263# include <assert.h> 4264#endif 4265 Syntax error 4266_ACEOF 4267if ac_fn_c_try_cpp "$LINENO"; then : 4268 4269else 4270 # Broken: fails on valid input. 4271continue 4272fi 4273rm -f conftest.err conftest.$ac_ext 4274 4275 # OK, works on sane cases. Now check whether nonexistent headers 4276 # can be detected and how. 4277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4278/* end confdefs.h. */ 4279#include <ac_nonexistent.h> 4280_ACEOF 4281if ac_fn_c_try_cpp "$LINENO"; then : 4282 # Broken: success on invalid input. 4283continue 4284else 4285 # Passes both tests. 4286ac_preproc_ok=: 4287break 4288fi 4289rm -f conftest.err conftest.$ac_ext 4290 4291done 4292# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4293rm -f conftest.err conftest.$ac_ext 4294if $ac_preproc_ok; then : 4295 break 4296fi 4297 4298 done 4299 ac_cv_prog_CPP=$CPP 4300 4301fi 4302 CPP=$ac_cv_prog_CPP 4303else 4304 ac_cv_prog_CPP=$CPP 4305fi 4306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4307$as_echo "$CPP" >&6; } 4308ac_preproc_ok=false 4309for ac_c_preproc_warn_flag in '' yes 4310do 4311 # Use a header file that comes with gcc, so configuring glibc 4312 # with a fresh cross-compiler works. 4313 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4314 # <limits.h> exists even on freestanding compilers. 4315 # On the NeXT, cc -E runs the code through the compiler's parser, 4316 # not just through cpp. "Syntax error" is here to catch this case. 4317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4318/* end confdefs.h. */ 4319#ifdef __STDC__ 4320# include <limits.h> 4321#else 4322# include <assert.h> 4323#endif 4324 Syntax error 4325_ACEOF 4326if ac_fn_c_try_cpp "$LINENO"; then : 4327 4328else 4329 # Broken: fails on valid input. 4330continue 4331fi 4332rm -f conftest.err conftest.$ac_ext 4333 4334 # OK, works on sane cases. Now check whether nonexistent headers 4335 # can be detected and how. 4336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4337/* end confdefs.h. */ 4338#include <ac_nonexistent.h> 4339_ACEOF 4340if ac_fn_c_try_cpp "$LINENO"; then : 4341 # Broken: success on invalid input. 4342continue 4343else 4344 # Passes both tests. 4345ac_preproc_ok=: 4346break 4347fi 4348rm -f conftest.err conftest.$ac_ext 4349 4350done 4351# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4352rm -f conftest.err conftest.$ac_ext 4353if $ac_preproc_ok; then : 4354 4355else 4356 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4357$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4358as_fn_error "C preprocessor \"$CPP\" fails sanity check 4359See \`config.log' for more details." "$LINENO" 5; } 4360fi 4361 4362ac_ext=c 4363ac_cpp='$CPP $CPPFLAGS' 4364ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4365ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4366ac_compiler_gnu=$ac_cv_c_compiler_gnu 4367 4368 4369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4370$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4371if test "${ac_cv_path_GREP+set}" = set; then : 4372 $as_echo_n "(cached) " >&6 4373else 4374 if test -z "$GREP"; then 4375 ac_path_GREP_found=false 4376 # Loop through the user's path and test for each of PROGNAME-LIST 4377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4378for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4379do 4380 IFS=$as_save_IFS 4381 test -z "$as_dir" && as_dir=. 4382 for ac_prog in grep ggrep; do 4383 for ac_exec_ext in '' $ac_executable_extensions; do 4384 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4385 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4386# Check for GNU ac_path_GREP and select it if it is found. 4387 # Check for GNU $ac_path_GREP 4388case `"$ac_path_GREP" --version 2>&1` in 4389*GNU*) 4390 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4391*) 4392 ac_count=0 4393 $as_echo_n 0123456789 >"conftest.in" 4394 while : 4395 do 4396 cat "conftest.in" "conftest.in" >"conftest.tmp" 4397 mv "conftest.tmp" "conftest.in" 4398 cp "conftest.in" "conftest.nl" 4399 $as_echo 'GREP' >> "conftest.nl" 4400 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4401 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4402 as_fn_arith $ac_count + 1 && ac_count=$as_val 4403 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4404 # Best one so far, save it but keep looking for a better one 4405 ac_cv_path_GREP="$ac_path_GREP" 4406 ac_path_GREP_max=$ac_count 4407 fi 4408 # 10*(2^10) chars as input seems more than enough 4409 test $ac_count -gt 10 && break 4410 done 4411 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4412esac 4413 4414 $ac_path_GREP_found && break 3 4415 done 4416 done 4417 done 4418IFS=$as_save_IFS 4419 if test -z "$ac_cv_path_GREP"; then 4420 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4421 fi 4422else 4423 ac_cv_path_GREP=$GREP 4424fi 4425 4426fi 4427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4428$as_echo "$ac_cv_path_GREP" >&6; } 4429 GREP="$ac_cv_path_GREP" 4430 4431 4432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4433$as_echo_n "checking for egrep... " >&6; } 4434if test "${ac_cv_path_EGREP+set}" = set; then : 4435 $as_echo_n "(cached) " >&6 4436else 4437 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4438 then ac_cv_path_EGREP="$GREP -E" 4439 else 4440 if test -z "$EGREP"; then 4441 ac_path_EGREP_found=false 4442 # Loop through the user's path and test for each of PROGNAME-LIST 4443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4444for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4445do 4446 IFS=$as_save_IFS 4447 test -z "$as_dir" && as_dir=. 4448 for ac_prog in egrep; do 4449 for ac_exec_ext in '' $ac_executable_extensions; do 4450 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4451 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4452# Check for GNU ac_path_EGREP and select it if it is found. 4453 # Check for GNU $ac_path_EGREP 4454case `"$ac_path_EGREP" --version 2>&1` in 4455*GNU*) 4456 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4457*) 4458 ac_count=0 4459 $as_echo_n 0123456789 >"conftest.in" 4460 while : 4461 do 4462 cat "conftest.in" "conftest.in" >"conftest.tmp" 4463 mv "conftest.tmp" "conftest.in" 4464 cp "conftest.in" "conftest.nl" 4465 $as_echo 'EGREP' >> "conftest.nl" 4466 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4467 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4468 as_fn_arith $ac_count + 1 && ac_count=$as_val 4469 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4470 # Best one so far, save it but keep looking for a better one 4471 ac_cv_path_EGREP="$ac_path_EGREP" 4472 ac_path_EGREP_max=$ac_count 4473 fi 4474 # 10*(2^10) chars as input seems more than enough 4475 test $ac_count -gt 10 && break 4476 done 4477 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4478esac 4479 4480 $ac_path_EGREP_found && break 3 4481 done 4482 done 4483 done 4484IFS=$as_save_IFS 4485 if test -z "$ac_cv_path_EGREP"; then 4486 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4487 fi 4488else 4489 ac_cv_path_EGREP=$EGREP 4490fi 4491 4492 fi 4493fi 4494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4495$as_echo "$ac_cv_path_EGREP" >&6; } 4496 EGREP="$ac_cv_path_EGREP" 4497 4498 4499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4500$as_echo_n "checking for ANSI C header files... " >&6; } 4501if test "${ac_cv_header_stdc+set}" = set; then : 4502 $as_echo_n "(cached) " >&6 4503else 4504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4505/* end confdefs.h. */ 4506#include <stdlib.h> 4507#include <stdarg.h> 4508#include <string.h> 4509#include <float.h> 4510 4511int 4512main () 4513{ 4514 4515 ; 4516 return 0; 4517} 4518_ACEOF 4519if ac_fn_c_try_compile "$LINENO"; then : 4520 ac_cv_header_stdc=yes 4521else 4522 ac_cv_header_stdc=no 4523fi 4524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4525 4526if test $ac_cv_header_stdc = yes; then 4527 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4529/* end confdefs.h. */ 4530#include <string.h> 4531 4532_ACEOF 4533if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4534 $EGREP "memchr" >/dev/null 2>&1; then : 4535 4536else 4537 ac_cv_header_stdc=no 4538fi 4539rm -f conftest* 4540 4541fi 4542 4543if test $ac_cv_header_stdc = yes; then 4544 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4546/* end confdefs.h. */ 4547#include <stdlib.h> 4548 4549_ACEOF 4550if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4551 $EGREP "free" >/dev/null 2>&1; then : 4552 4553else 4554 ac_cv_header_stdc=no 4555fi 4556rm -f conftest* 4557 4558fi 4559 4560if test $ac_cv_header_stdc = yes; then 4561 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4562 if test "$cross_compiling" = yes; then : 4563 : 4564else 4565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4566/* end confdefs.h. */ 4567#include <ctype.h> 4568#include <stdlib.h> 4569#if ((' ' & 0x0FF) == 0x020) 4570# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4571# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4572#else 4573# define ISLOWER(c) \ 4574 (('a' <= (c) && (c) <= 'i') \ 4575 || ('j' <= (c) && (c) <= 'r') \ 4576 || ('s' <= (c) && (c) <= 'z')) 4577# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4578#endif 4579 4580#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4581int 4582main () 4583{ 4584 int i; 4585 for (i = 0; i < 256; i++) 4586 if (XOR (islower (i), ISLOWER (i)) 4587 || toupper (i) != TOUPPER (i)) 4588 return 2; 4589 return 0; 4590} 4591_ACEOF 4592if ac_fn_c_try_run "$LINENO"; then : 4593 4594else 4595 ac_cv_header_stdc=no 4596fi 4597rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4598 conftest.$ac_objext conftest.beam conftest.$ac_ext 4599fi 4600 4601fi 4602fi 4603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4604$as_echo "$ac_cv_header_stdc" >&6; } 4605if test $ac_cv_header_stdc = yes; then 4606 4607$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4608 4609fi 4610 4611# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4612for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4613 inttypes.h stdint.h unistd.h 4614do : 4615 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4616ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4617" 4618eval as_val=\$$as_ac_Header 4619 if test "x$as_val" = x""yes; then : 4620 cat >>confdefs.h <<_ACEOF 4621#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4622_ACEOF 4623 4624fi 4625 4626done 4627 4628 4629 4630 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4631if test "x$ac_cv_header_minix_config_h" = x""yes; then : 4632 MINIX=yes 4633else 4634 MINIX= 4635fi 4636 4637 4638 if test "$MINIX" = yes; then 4639 4640$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4641 4642 4643$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4644 4645 4646$as_echo "#define _MINIX 1" >>confdefs.h 4647 4648 fi 4649 4650 4651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4652$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4653if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : 4654 $as_echo_n "(cached) " >&6 4655else 4656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4657/* end confdefs.h. */ 4658 4659# define __EXTENSIONS__ 1 4660 $ac_includes_default 4661int 4662main () 4663{ 4664 4665 ; 4666 return 0; 4667} 4668_ACEOF 4669if ac_fn_c_try_compile "$LINENO"; then : 4670 ac_cv_safe_to_define___extensions__=yes 4671else 4672 ac_cv_safe_to_define___extensions__=no 4673fi 4674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4675fi 4676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4677$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4678 test $ac_cv_safe_to_define___extensions__ = yes && 4679 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4680 4681 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4682 4683 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4684 4685 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4686 4687 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4688 4689 4690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4691$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4692if test "${ac_cv_prog_cc_c99+set}" = set; then : 4693 $as_echo_n "(cached) " >&6 4694else 4695 ac_cv_prog_cc_c99=no 4696ac_save_CC=$CC 4697cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4698/* end confdefs.h. */ 4699#include <stdarg.h> 4700#include <stdbool.h> 4701#include <stdlib.h> 4702#include <wchar.h> 4703#include <stdio.h> 4704 4705// Check varargs macros. These examples are taken from C99 6.10.3.5. 4706#define debug(...) fprintf (stderr, __VA_ARGS__) 4707#define showlist(...) puts (#__VA_ARGS__) 4708#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4709static void 4710test_varargs_macros (void) 4711{ 4712 int x = 1234; 4713 int y = 5678; 4714 debug ("Flag"); 4715 debug ("X = %d\n", x); 4716 showlist (The first, second, and third items.); 4717 report (x>y, "x is %d but y is %d", x, y); 4718} 4719 4720// Check long long types. 4721#define BIG64 18446744073709551615ull 4722#define BIG32 4294967295ul 4723#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4724#if !BIG_OK 4725 your preprocessor is broken; 4726#endif 4727#if BIG_OK 4728#else 4729 your preprocessor is broken; 4730#endif 4731static long long int bignum = -9223372036854775807LL; 4732static unsigned long long int ubignum = BIG64; 4733 4734struct incomplete_array 4735{ 4736 int datasize; 4737 double data[]; 4738}; 4739 4740struct named_init { 4741 int number; 4742 const wchar_t *name; 4743 double average; 4744}; 4745 4746typedef const char *ccp; 4747 4748static inline int 4749test_restrict (ccp restrict text) 4750{ 4751 // See if C++-style comments work. 4752 // Iterate through items via the restricted pointer. 4753 // Also check for declarations in for loops. 4754 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4755 continue; 4756 return 0; 4757} 4758 4759// Check varargs and va_copy. 4760static void 4761test_varargs (const char *format, ...) 4762{ 4763 va_list args; 4764 va_start (args, format); 4765 va_list args_copy; 4766 va_copy (args_copy, args); 4767 4768 const char *str; 4769 int number; 4770 float fnumber; 4771 4772 while (*format) 4773 { 4774 switch (*format++) 4775 { 4776 case 's': // string 4777 str = va_arg (args_copy, const char *); 4778 break; 4779 case 'd': // int 4780 number = va_arg (args_copy, int); 4781 break; 4782 case 'f': // float 4783 fnumber = va_arg (args_copy, double); 4784 break; 4785 default: 4786 break; 4787 } 4788 } 4789 va_end (args_copy); 4790 va_end (args); 4791} 4792 4793int 4794main () 4795{ 4796 4797 // Check bool. 4798 _Bool success = false; 4799 4800 // Check restrict. 4801 if (test_restrict ("String literal") == 0) 4802 success = true; 4803 char *restrict newvar = "Another string"; 4804 4805 // Check varargs. 4806 test_varargs ("s, d' f .", "string", 65, 34.234); 4807 test_varargs_macros (); 4808 4809 // Check flexible array members. 4810 struct incomplete_array *ia = 4811 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4812 ia->datasize = 10; 4813 for (int i = 0; i < ia->datasize; ++i) 4814 ia->data[i] = i * 1.234; 4815 4816 // Check named initializers. 4817 struct named_init ni = { 4818 .number = 34, 4819 .name = L"Test wide string", 4820 .average = 543.34343, 4821 }; 4822 4823 ni.number = 58; 4824 4825 int dynamic_array[ni.number]; 4826 dynamic_array[ni.number - 1] = 543; 4827 4828 // work around unused variable warnings 4829 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4830 || dynamic_array[ni.number - 1] != 543); 4831 4832 ; 4833 return 0; 4834} 4835_ACEOF 4836for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 4837do 4838 CC="$ac_save_CC $ac_arg" 4839 if ac_fn_c_try_compile "$LINENO"; then : 4840 ac_cv_prog_cc_c99=$ac_arg 4841fi 4842rm -f core conftest.err conftest.$ac_objext 4843 test "x$ac_cv_prog_cc_c99" != "xno" && break 4844done 4845rm -f conftest.$ac_ext 4846CC=$ac_save_CC 4847 4848fi 4849# AC_CACHE_VAL 4850case "x$ac_cv_prog_cc_c99" in 4851 x) 4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4853$as_echo "none needed" >&6; } ;; 4854 xno) 4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4856$as_echo "unsupported" >&6; } ;; 4857 *) 4858 CC="$CC $ac_cv_prog_cc_c99" 4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4860$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4861esac 4862if test "x$ac_cv_prog_cc_c99" != xno; then : 4863 4864fi 4865 4866 4867 4868 4869if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4870 if test -n "$ac_tool_prefix"; then 4871 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4872set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4874$as_echo_n "checking for $ac_word... " >&6; } 4875if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 4876 $as_echo_n "(cached) " >&6 4877else 4878 case $PKG_CONFIG in 4879 [\\/]* | ?:[\\/]*) 4880 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4881 ;; 4882 *) 4883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4884for as_dir in $PATH 4885do 4886 IFS=$as_save_IFS 4887 test -z "$as_dir" && as_dir=. 4888 for ac_exec_ext in '' $ac_executable_extensions; do 4889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4890 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4892 break 2 4893 fi 4894done 4895 done 4896IFS=$as_save_IFS 4897 4898 ;; 4899esac 4900fi 4901PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4902if test -n "$PKG_CONFIG"; then 4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4904$as_echo "$PKG_CONFIG" >&6; } 4905else 4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4907$as_echo "no" >&6; } 4908fi 4909 4910 4911fi 4912if test -z "$ac_cv_path_PKG_CONFIG"; then 4913 ac_pt_PKG_CONFIG=$PKG_CONFIG 4914 # Extract the first word of "pkg-config", so it can be a program name with args. 4915set dummy pkg-config; ac_word=$2 4916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4917$as_echo_n "checking for $ac_word... " >&6; } 4918if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : 4919 $as_echo_n "(cached) " >&6 4920else 4921 case $ac_pt_PKG_CONFIG in 4922 [\\/]* | ?:[\\/]*) 4923 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4924 ;; 4925 *) 4926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4927for as_dir in $PATH 4928do 4929 IFS=$as_save_IFS 4930 test -z "$as_dir" && as_dir=. 4931 for ac_exec_ext in '' $ac_executable_extensions; do 4932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4933 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4935 break 2 4936 fi 4937done 4938 done 4939IFS=$as_save_IFS 4940 4941 ;; 4942esac 4943fi 4944ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4945if test -n "$ac_pt_PKG_CONFIG"; then 4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4947$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4948else 4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4950$as_echo "no" >&6; } 4951fi 4952 4953 if test "x$ac_pt_PKG_CONFIG" = x; then 4954 PKG_CONFIG="" 4955 else 4956 case $cross_compiling:$ac_tool_warned in 4957yes:) 4958{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4959$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4960ac_tool_warned=yes ;; 4961esac 4962 PKG_CONFIG=$ac_pt_PKG_CONFIG 4963 fi 4964else 4965 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4966fi 4967 4968fi 4969if test -n "$PKG_CONFIG"; then 4970 _pkg_min_version=0.9.0 4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4972$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4973 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4975$as_echo "yes" >&6; } 4976 else 4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4978$as_echo "no" >&6; } 4979 PKG_CONFIG="" 4980 fi 4981 4982fi 4983# Make sure we can run config.sub. 4984$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4985 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4986 4987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4988$as_echo_n "checking build system type... " >&6; } 4989if test "${ac_cv_build+set}" = set; then : 4990 $as_echo_n "(cached) " >&6 4991else 4992 ac_build_alias=$build_alias 4993test "x$ac_build_alias" = x && 4994 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4995test "x$ac_build_alias" = x && 4996 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 4997ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4998 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4999 5000fi 5001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5002$as_echo "$ac_cv_build" >&6; } 5003case $ac_cv_build in 5004*-*-*) ;; 5005*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 5006esac 5007build=$ac_cv_build 5008ac_save_IFS=$IFS; IFS='-' 5009set x $ac_cv_build 5010shift 5011build_cpu=$1 5012build_vendor=$2 5013shift; shift 5014# Remember, the first character of IFS is used to create $*, 5015# except with old shells: 5016build_os=$* 5017IFS=$ac_save_IFS 5018case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5019 5020 5021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5022$as_echo_n "checking host system type... " >&6; } 5023if test "${ac_cv_host+set}" = set; then : 5024 $as_echo_n "(cached) " >&6 5025else 5026 if test "x$host_alias" = x; then 5027 ac_cv_host=$ac_cv_build 5028else 5029 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 5030 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 5031fi 5032 5033fi 5034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5035$as_echo "$ac_cv_host" >&6; } 5036case $ac_cv_host in 5037*-*-*) ;; 5038*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 5039esac 5040host=$ac_cv_host 5041ac_save_IFS=$IFS; IFS='-' 5042set x $ac_cv_host 5043shift 5044host_cpu=$1 5045host_vendor=$2 5046shift; shift 5047# Remember, the first character of IFS is used to create $*, 5048# except with old shells: 5049host_os=$* 5050IFS=$ac_save_IFS 5051case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5052 5053 5054 5055 5056 5057if test "x$GCC" = xyes ; then 5058 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 5059-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 5060-Wbad-function-cast" 5061 case `$CC -dumpversion` in 5062 3.4.* | 4.*) 5063 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 5064 ;; 5065 esac 5066else 5067 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 5068if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then : 5069 SUNCC="yes" 5070else 5071 SUNCC="no" 5072fi 5073 5074 if test "x$SUNCC" = "xyes"; then 5075 CWARNFLAGS="-v" 5076 fi 5077fi 5078 5079# Check whether --enable-silent-rules was given. 5080if test "${enable_silent_rules+set}" = set; then : 5081 enableval=$enable_silent_rules; 5082fi 5083 5084case $enable_silent_rules in 5085yes) AM_DEFAULT_VERBOSITY=0;; 5086no) AM_DEFAULT_VERBOSITY=1;; 5087*) AM_DEFAULT_VERBOSITY=0;; 5088esac 5089AM_BACKSLASH='\' 5090 5091 5092 5093 5094 5095 5096 5097# Check whether --enable-strict-compilation was given. 5098if test "${enable_strict_compilation+set}" = set; then : 5099 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 5100else 5101 STRICT_COMPILE=no 5102fi 5103 5104if test "x$STRICT_COMPILE" = "xyes"; then 5105 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 5106if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then : 5107 SUNCC="yes" 5108else 5109 SUNCC="no" 5110fi 5111 5112 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 5113if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then : 5114 INTELCC="yes" 5115else 5116 INTELCC="no" 5117fi 5118 5119 if test "x$GCC" = xyes ; then 5120 STRICT_CFLAGS="-pedantic -Werror" 5121 elif test "x$SUNCC" = "xyes"; then 5122 STRICT_CFLAGS="-errwarn" 5123 elif test "x$INTELCC" = "xyes"; then 5124 STRICT_CFLAGS="-Werror" 5125 fi 5126fi 5127CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 5128 5129 5130 5131 5132# Check whether --with-release-version was given. 5133if test "${with_release_version+set}" = set; then : 5134 withval=$with_release_version; RELEASE_VERSION="$withval" 5135else 5136 RELEASE_VERSION="" 5137fi 5138 5139 if test "x$RELEASE_VERSION" != "x"; then 5140 PACKAGE="$PACKAGE-$RELEASE_VERSION" 5141 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 5142 { $as_echo "$as_me:${as_lineno-$LINENO}: Building with package name set to $PACKAGE" >&5 5143$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;} 5144 fi 5145 5146cat >>confdefs.h <<_ACEOF 5147#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 5148_ACEOF 5149 5150 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 5151 if test "x$PVM" = "x"; then 5152 PVM="0" 5153 fi 5154 5155cat >>confdefs.h <<_ACEOF 5156#define PACKAGE_VERSION_MINOR $PVM 5157_ACEOF 5158 5159 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 5160 if test "x$PVP" = "x"; then 5161 PVP="0" 5162 fi 5163 5164cat >>confdefs.h <<_ACEOF 5165#define PACKAGE_VERSION_PATCHLEVEL $PVP 5166_ACEOF 5167 5168 5169 5170CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 5171mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 5172|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 5173echo 'git directory not found: installing possibly empty changelog.' >&2)" 5174 5175 5176 5177 5178macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 5179INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 5180mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 5181|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 5182echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 5183 5184 5185 5186 5187 5188if test x$APP_MAN_SUFFIX = x ; then 5189 APP_MAN_SUFFIX=1 5190fi 5191if test x$APP_MAN_DIR = x ; then 5192 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 5193fi 5194 5195if test x$LIB_MAN_SUFFIX = x ; then 5196 LIB_MAN_SUFFIX=3 5197fi 5198if test x$LIB_MAN_DIR = x ; then 5199 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 5200fi 5201 5202if test x$FILE_MAN_SUFFIX = x ; then 5203 case $host_os in 5204 solaris*) FILE_MAN_SUFFIX=4 ;; 5205 *) FILE_MAN_SUFFIX=5 ;; 5206 esac 5207fi 5208if test x$FILE_MAN_DIR = x ; then 5209 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 5210fi 5211 5212if test x$MISC_MAN_SUFFIX = x ; then 5213 case $host_os in 5214 solaris*) MISC_MAN_SUFFIX=5 ;; 5215 *) MISC_MAN_SUFFIX=7 ;; 5216 esac 5217fi 5218if test x$MISC_MAN_DIR = x ; then 5219 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 5220fi 5221 5222if test x$DRIVER_MAN_SUFFIX = x ; then 5223 case $host_os in 5224 solaris*) DRIVER_MAN_SUFFIX=7 ;; 5225 *) DRIVER_MAN_SUFFIX=4 ;; 5226 esac 5227fi 5228if test x$DRIVER_MAN_DIR = x ; then 5229 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 5230fi 5231 5232if test x$ADMIN_MAN_SUFFIX = x ; then 5233 case $host_os in 5234 solaris*) ADMIN_MAN_SUFFIX=1m ;; 5235 *) ADMIN_MAN_SUFFIX=8 ;; 5236 esac 5237fi 5238if test x$ADMIN_MAN_DIR = x ; then 5239 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 5240fi 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258ac_config_headers="$ac_config_headers config.h" 5259 5260 5261ac_ext=c 5262ac_cpp='$CPP $CPPFLAGS' 5263ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5264ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5265ac_compiler_gnu=$ac_cv_c_compiler_gnu 5266if test -n "$ac_tool_prefix"; then 5267 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 5268set dummy ${ac_tool_prefix}gcc; ac_word=$2 5269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5270$as_echo_n "checking for $ac_word... " >&6; } 5271if test "${ac_cv_prog_CC+set}" = set; then : 5272 $as_echo_n "(cached) " >&6 5273else 5274 if test -n "$CC"; then 5275 ac_cv_prog_CC="$CC" # Let the user override the test. 5276else 5277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5278for as_dir in $PATH 5279do 5280 IFS=$as_save_IFS 5281 test -z "$as_dir" && as_dir=. 5282 for ac_exec_ext in '' $ac_executable_extensions; do 5283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5284 ac_cv_prog_CC="${ac_tool_prefix}gcc" 5285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5286 break 2 5287 fi 5288done 5289 done 5290IFS=$as_save_IFS 5291 5292fi 5293fi 5294CC=$ac_cv_prog_CC 5295if test -n "$CC"; then 5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5297$as_echo "$CC" >&6; } 5298else 5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5300$as_echo "no" >&6; } 5301fi 5302 5303 5304fi 5305if test -z "$ac_cv_prog_CC"; then 5306 ac_ct_CC=$CC 5307 # Extract the first word of "gcc", so it can be a program name with args. 5308set dummy gcc; ac_word=$2 5309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5310$as_echo_n "checking for $ac_word... " >&6; } 5311if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 5312 $as_echo_n "(cached) " >&6 5313else 5314 if test -n "$ac_ct_CC"; then 5315 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5316else 5317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5318for as_dir in $PATH 5319do 5320 IFS=$as_save_IFS 5321 test -z "$as_dir" && as_dir=. 5322 for ac_exec_ext in '' $ac_executable_extensions; do 5323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5324 ac_cv_prog_ac_ct_CC="gcc" 5325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5326 break 2 5327 fi 5328done 5329 done 5330IFS=$as_save_IFS 5331 5332fi 5333fi 5334ac_ct_CC=$ac_cv_prog_ac_ct_CC 5335if test -n "$ac_ct_CC"; then 5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5337$as_echo "$ac_ct_CC" >&6; } 5338else 5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5340$as_echo "no" >&6; } 5341fi 5342 5343 if test "x$ac_ct_CC" = x; then 5344 CC="" 5345 else 5346 case $cross_compiling:$ac_tool_warned in 5347yes:) 5348{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5349$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5350ac_tool_warned=yes ;; 5351esac 5352 CC=$ac_ct_CC 5353 fi 5354else 5355 CC="$ac_cv_prog_CC" 5356fi 5357 5358if test -z "$CC"; then 5359 if test -n "$ac_tool_prefix"; then 5360 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 5361set dummy ${ac_tool_prefix}cc; ac_word=$2 5362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5363$as_echo_n "checking for $ac_word... " >&6; } 5364if test "${ac_cv_prog_CC+set}" = set; then : 5365 $as_echo_n "(cached) " >&6 5366else 5367 if test -n "$CC"; then 5368 ac_cv_prog_CC="$CC" # Let the user override the test. 5369else 5370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5371for as_dir in $PATH 5372do 5373 IFS=$as_save_IFS 5374 test -z "$as_dir" && as_dir=. 5375 for ac_exec_ext in '' $ac_executable_extensions; do 5376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5377 ac_cv_prog_CC="${ac_tool_prefix}cc" 5378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5379 break 2 5380 fi 5381done 5382 done 5383IFS=$as_save_IFS 5384 5385fi 5386fi 5387CC=$ac_cv_prog_CC 5388if test -n "$CC"; then 5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5390$as_echo "$CC" >&6; } 5391else 5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5393$as_echo "no" >&6; } 5394fi 5395 5396 5397 fi 5398fi 5399if test -z "$CC"; then 5400 # Extract the first word of "cc", so it can be a program name with args. 5401set dummy cc; ac_word=$2 5402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5403$as_echo_n "checking for $ac_word... " >&6; } 5404if test "${ac_cv_prog_CC+set}" = set; then : 5405 $as_echo_n "(cached) " >&6 5406else 5407 if test -n "$CC"; then 5408 ac_cv_prog_CC="$CC" # Let the user override the test. 5409else 5410 ac_prog_rejected=no 5411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5412for as_dir in $PATH 5413do 5414 IFS=$as_save_IFS 5415 test -z "$as_dir" && as_dir=. 5416 for ac_exec_ext in '' $ac_executable_extensions; do 5417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5418 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 5419 ac_prog_rejected=yes 5420 continue 5421 fi 5422 ac_cv_prog_CC="cc" 5423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5424 break 2 5425 fi 5426done 5427 done 5428IFS=$as_save_IFS 5429 5430if test $ac_prog_rejected = yes; then 5431 # We found a bogon in the path, so make sure we never use it. 5432 set dummy $ac_cv_prog_CC 5433 shift 5434 if test $# != 0; then 5435 # We chose a different compiler from the bogus one. 5436 # However, it has the same basename, so the bogon will be chosen 5437 # first if we set CC to just the basename; use the full file name. 5438 shift 5439 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 5440 fi 5441fi 5442fi 5443fi 5444CC=$ac_cv_prog_CC 5445if test -n "$CC"; then 5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5447$as_echo "$CC" >&6; } 5448else 5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5450$as_echo "no" >&6; } 5451fi 5452 5453 5454fi 5455if test -z "$CC"; then 5456 if test -n "$ac_tool_prefix"; then 5457 for ac_prog in cl.exe 5458 do 5459 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5460set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5462$as_echo_n "checking for $ac_word... " >&6; } 5463if test "${ac_cv_prog_CC+set}" = set; then : 5464 $as_echo_n "(cached) " >&6 5465else 5466 if test -n "$CC"; then 5467 ac_cv_prog_CC="$CC" # Let the user override the test. 5468else 5469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5470for as_dir in $PATH 5471do 5472 IFS=$as_save_IFS 5473 test -z "$as_dir" && as_dir=. 5474 for ac_exec_ext in '' $ac_executable_extensions; do 5475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5476 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 5477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5478 break 2 5479 fi 5480done 5481 done 5482IFS=$as_save_IFS 5483 5484fi 5485fi 5486CC=$ac_cv_prog_CC 5487if test -n "$CC"; then 5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5489$as_echo "$CC" >&6; } 5490else 5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5492$as_echo "no" >&6; } 5493fi 5494 5495 5496 test -n "$CC" && break 5497 done 5498fi 5499if test -z "$CC"; then 5500 ac_ct_CC=$CC 5501 for ac_prog in cl.exe 5502do 5503 # Extract the first word of "$ac_prog", so it can be a program name with args. 5504set dummy $ac_prog; ac_word=$2 5505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5506$as_echo_n "checking for $ac_word... " >&6; } 5507if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 5508 $as_echo_n "(cached) " >&6 5509else 5510 if test -n "$ac_ct_CC"; then 5511 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5512else 5513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5514for as_dir in $PATH 5515do 5516 IFS=$as_save_IFS 5517 test -z "$as_dir" && as_dir=. 5518 for ac_exec_ext in '' $ac_executable_extensions; do 5519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5520 ac_cv_prog_ac_ct_CC="$ac_prog" 5521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5522 break 2 5523 fi 5524done 5525 done 5526IFS=$as_save_IFS 5527 5528fi 5529fi 5530ac_ct_CC=$ac_cv_prog_ac_ct_CC 5531if test -n "$ac_ct_CC"; then 5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5533$as_echo "$ac_ct_CC" >&6; } 5534else 5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5536$as_echo "no" >&6; } 5537fi 5538 5539 5540 test -n "$ac_ct_CC" && break 5541done 5542 5543 if test "x$ac_ct_CC" = x; then 5544 CC="" 5545 else 5546 case $cross_compiling:$ac_tool_warned in 5547yes:) 5548{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5549$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5550ac_tool_warned=yes ;; 5551esac 5552 CC=$ac_ct_CC 5553 fi 5554fi 5555 5556fi 5557 5558 5559test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5560$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5561as_fn_error "no acceptable C compiler found in \$PATH 5562See \`config.log' for more details." "$LINENO" 5; } 5563 5564# Provide some information about the compiler. 5565$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 5566set X $ac_compile 5567ac_compiler=$2 5568for ac_option in --version -v -V -qversion; do 5569 { { ac_try="$ac_compiler $ac_option >&5" 5570case "(($ac_try" in 5571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5572 *) ac_try_echo=$ac_try;; 5573esac 5574eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5575$as_echo "$ac_try_echo"; } >&5 5576 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5577 ac_status=$? 5578 if test -s conftest.err; then 5579 sed '10a\ 5580... rest of stderr output deleted ... 5581 10q' conftest.err >conftest.er1 5582 cat conftest.er1 >&5 5583 fi 5584 rm -f conftest.er1 conftest.err 5585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5586 test $ac_status = 0; } 5587done 5588 5589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 5590$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 5591if test "${ac_cv_c_compiler_gnu+set}" = set; then : 5592 $as_echo_n "(cached) " >&6 5593else 5594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5595/* end confdefs.h. */ 5596 5597int 5598main () 5599{ 5600#ifndef __GNUC__ 5601 choke me 5602#endif 5603 5604 ; 5605 return 0; 5606} 5607_ACEOF 5608if ac_fn_c_try_compile "$LINENO"; then : 5609 ac_compiler_gnu=yes 5610else 5611 ac_compiler_gnu=no 5612fi 5613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5614ac_cv_c_compiler_gnu=$ac_compiler_gnu 5615 5616fi 5617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5618$as_echo "$ac_cv_c_compiler_gnu" >&6; } 5619if test $ac_compiler_gnu = yes; then 5620 GCC=yes 5621else 5622 GCC= 5623fi 5624ac_test_CFLAGS=${CFLAGS+set} 5625ac_save_CFLAGS=$CFLAGS 5626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5627$as_echo_n "checking whether $CC accepts -g... " >&6; } 5628if test "${ac_cv_prog_cc_g+set}" = set; then : 5629 $as_echo_n "(cached) " >&6 5630else 5631 ac_save_c_werror_flag=$ac_c_werror_flag 5632 ac_c_werror_flag=yes 5633 ac_cv_prog_cc_g=no 5634 CFLAGS="-g" 5635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5636/* end confdefs.h. */ 5637 5638int 5639main () 5640{ 5641 5642 ; 5643 return 0; 5644} 5645_ACEOF 5646if ac_fn_c_try_compile "$LINENO"; then : 5647 ac_cv_prog_cc_g=yes 5648else 5649 CFLAGS="" 5650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5651/* end confdefs.h. */ 5652 5653int 5654main () 5655{ 5656 5657 ; 5658 return 0; 5659} 5660_ACEOF 5661if ac_fn_c_try_compile "$LINENO"; then : 5662 5663else 5664 ac_c_werror_flag=$ac_save_c_werror_flag 5665 CFLAGS="-g" 5666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5667/* end confdefs.h. */ 5668 5669int 5670main () 5671{ 5672 5673 ; 5674 return 0; 5675} 5676_ACEOF 5677if ac_fn_c_try_compile "$LINENO"; then : 5678 ac_cv_prog_cc_g=yes 5679fi 5680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5681fi 5682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5683fi 5684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5685 ac_c_werror_flag=$ac_save_c_werror_flag 5686fi 5687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5688$as_echo "$ac_cv_prog_cc_g" >&6; } 5689if test "$ac_test_CFLAGS" = set; then 5690 CFLAGS=$ac_save_CFLAGS 5691elif test $ac_cv_prog_cc_g = yes; then 5692 if test "$GCC" = yes; then 5693 CFLAGS="-g -O2" 5694 else 5695 CFLAGS="-g" 5696 fi 5697else 5698 if test "$GCC" = yes; then 5699 CFLAGS="-O2" 5700 else 5701 CFLAGS= 5702 fi 5703fi 5704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5705$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5706if test "${ac_cv_prog_cc_c89+set}" = set; then : 5707 $as_echo_n "(cached) " >&6 5708else 5709 ac_cv_prog_cc_c89=no 5710ac_save_CC=$CC 5711cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5712/* end confdefs.h. */ 5713#include <stdarg.h> 5714#include <stdio.h> 5715#include <sys/types.h> 5716#include <sys/stat.h> 5717/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5718struct buf { int x; }; 5719FILE * (*rcsopen) (struct buf *, struct stat *, int); 5720static char *e (p, i) 5721 char **p; 5722 int i; 5723{ 5724 return p[i]; 5725} 5726static char *f (char * (*g) (char **, int), char **p, ...) 5727{ 5728 char *s; 5729 va_list v; 5730 va_start (v,p); 5731 s = g (p, va_arg (v,int)); 5732 va_end (v); 5733 return s; 5734} 5735 5736/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5737 function prototypes and stuff, but not '\xHH' hex character constants. 5738 These don't provoke an error unfortunately, instead are silently treated 5739 as 'x'. The following induces an error, until -std is added to get 5740 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5741 array size at least. It's necessary to write '\x00'==0 to get something 5742 that's true only with -std. */ 5743int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5744 5745/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5746 inside strings and character constants. */ 5747#define FOO(x) 'x' 5748int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5749 5750int test (int i, double x); 5751struct s1 {int (*f) (int a);}; 5752struct s2 {int (*f) (double a);}; 5753int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5754int argc; 5755char **argv; 5756int 5757main () 5758{ 5759return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5760 ; 5761 return 0; 5762} 5763_ACEOF 5764for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5765 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5766do 5767 CC="$ac_save_CC $ac_arg" 5768 if ac_fn_c_try_compile "$LINENO"; then : 5769 ac_cv_prog_cc_c89=$ac_arg 5770fi 5771rm -f core conftest.err conftest.$ac_objext 5772 test "x$ac_cv_prog_cc_c89" != "xno" && break 5773done 5774rm -f conftest.$ac_ext 5775CC=$ac_save_CC 5776 5777fi 5778# AC_CACHE_VAL 5779case "x$ac_cv_prog_cc_c89" in 5780 x) 5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5782$as_echo "none needed" >&6; } ;; 5783 xno) 5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5785$as_echo "unsupported" >&6; } ;; 5786 *) 5787 CC="$CC $ac_cv_prog_cc_c89" 5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5789$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5790esac 5791if test "x$ac_cv_prog_cc_c89" != xno; then : 5792 5793fi 5794 5795ac_ext=c 5796ac_cpp='$CPP $CPPFLAGS' 5797ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5798ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5799ac_compiler_gnu=$ac_cv_c_compiler_gnu 5800 5801depcc="$CC" am_compiler_list= 5802 5803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5804$as_echo_n "checking dependency style of $depcc... " >&6; } 5805if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 5806 $as_echo_n "(cached) " >&6 5807else 5808 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5809 # We make a subdir and do the tests there. Otherwise we can end up 5810 # making bogus files that we don't know about and never remove. For 5811 # instance it was reported that on HP-UX the gcc test will end up 5812 # making a dummy file named `D' -- because `-MD' means `put the output 5813 # in D'. 5814 mkdir conftest.dir 5815 # Copy depcomp to subdir because otherwise we won't find it if we're 5816 # using a relative directory. 5817 cp "$am_depcomp" conftest.dir 5818 cd conftest.dir 5819 # We will build objects and dependencies in a subdirectory because 5820 # it helps to detect inapplicable dependency modes. For instance 5821 # both Tru64's cc and ICC support -MD to output dependencies as a 5822 # side effect of compilation, but ICC will put the dependencies in 5823 # the current directory while Tru64 will put them in the object 5824 # directory. 5825 mkdir sub 5826 5827 am_cv_CC_dependencies_compiler_type=none 5828 if test "$am_compiler_list" = ""; then 5829 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5830 fi 5831 am__universal=false 5832 case " $depcc " in #( 5833 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5834 esac 5835 5836 for depmode in $am_compiler_list; do 5837 # Setup a source with many dependencies, because some compilers 5838 # like to wrap large dependency lists on column 80 (with \), and 5839 # we should not choose a depcomp mode which is confused by this. 5840 # 5841 # We need to recreate these files for each test, as the compiler may 5842 # overwrite some of them when testing with obscure command lines. 5843 # This happens at least with the AIX C compiler. 5844 : > sub/conftest.c 5845 for i in 1 2 3 4 5 6; do 5846 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5847 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5848 # Solaris 8's {/usr,}/bin/sh. 5849 touch sub/conftst$i.h 5850 done 5851 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5852 5853 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5854 # mode. It turns out that the SunPro C++ compiler does not properly 5855 # handle `-M -o', and we need to detect this. Also, some Intel 5856 # versions had trouble with output in subdirs 5857 am__obj=sub/conftest.${OBJEXT-o} 5858 am__minus_obj="-o $am__obj" 5859 case $depmode in 5860 gcc) 5861 # This depmode causes a compiler race in universal mode. 5862 test "$am__universal" = false || continue 5863 ;; 5864 nosideeffect) 5865 # after this tag, mechanisms are not by side-effect, so they'll 5866 # only be used when explicitly requested 5867 if test "x$enable_dependency_tracking" = xyes; then 5868 continue 5869 else 5870 break 5871 fi 5872 ;; 5873 msvisualcpp | msvcmsys) 5874 # This compiler won't grok `-c -o', but also, the minuso test has 5875 # not run yet. These depmodes are late enough in the game, and 5876 # so weak that their functioning should not be impacted. 5877 am__obj=conftest.${OBJEXT-o} 5878 am__minus_obj= 5879 ;; 5880 none) break ;; 5881 esac 5882 if depmode=$depmode \ 5883 source=sub/conftest.c object=$am__obj \ 5884 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5885 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5886 >/dev/null 2>conftest.err && 5887 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5888 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5889 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5890 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5891 # icc doesn't choke on unknown options, it will just issue warnings 5892 # or remarks (even with -Werror). So we grep stderr for any message 5893 # that says an option was ignored or not supported. 5894 # When given -MP, icc 7.0 and 7.1 complain thusly: 5895 # icc: Command line warning: ignoring option '-M'; no argument required 5896 # The diagnosis changed in icc 8.0: 5897 # icc: Command line remark: option '-MP' not supported 5898 if (grep 'ignoring option' conftest.err || 5899 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5900 am_cv_CC_dependencies_compiler_type=$depmode 5901 break 5902 fi 5903 fi 5904 done 5905 5906 cd .. 5907 rm -rf conftest.dir 5908else 5909 am_cv_CC_dependencies_compiler_type=none 5910fi 5911 5912fi 5913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5914$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5915CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5916 5917 if 5918 test "x$enable_dependency_tracking" != xno \ 5919 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5920 am__fastdepCC_TRUE= 5921 am__fastdepCC_FALSE='#' 5922else 5923 am__fastdepCC_TRUE='#' 5924 am__fastdepCC_FALSE= 5925fi 5926 5927 5928if test "x$CC" != xcc; then 5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 5930$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } 5931else 5932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 5933$as_echo_n "checking whether cc understands -c and -o together... " >&6; } 5934fi 5935set dummy $CC; ac_cc=`$as_echo "$2" | 5936 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 5937if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then : 5938 $as_echo_n "(cached) " >&6 5939else 5940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5941/* end confdefs.h. */ 5942 5943int 5944main () 5945{ 5946 5947 ; 5948 return 0; 5949} 5950_ACEOF 5951# Make sure it works both with $CC and with simple cc. 5952# We do the test twice because some compilers refuse to overwrite an 5953# existing .o file with -o, though they will create one. 5954ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 5955rm -f conftest2.* 5956if { { case "(($ac_try" in 5957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5958 *) ac_try_echo=$ac_try;; 5959esac 5960eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5961$as_echo "$ac_try_echo"; } >&5 5962 (eval "$ac_try") 2>&5 5963 ac_status=$? 5964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5965 test $ac_status = 0; } && 5966 test -f conftest2.$ac_objext && { { case "(($ac_try" in 5967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5968 *) ac_try_echo=$ac_try;; 5969esac 5970eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5971$as_echo "$ac_try_echo"; } >&5 5972 (eval "$ac_try") 2>&5 5973 ac_status=$? 5974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5975 test $ac_status = 0; }; 5976then 5977 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 5978 if test "x$CC" != xcc; then 5979 # Test first that cc exists at all. 5980 if { ac_try='cc -c conftest.$ac_ext >&5' 5981 { { case "(($ac_try" in 5982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5983 *) ac_try_echo=$ac_try;; 5984esac 5985eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5986$as_echo "$ac_try_echo"; } >&5 5987 (eval "$ac_try") 2>&5 5988 ac_status=$? 5989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5990 test $ac_status = 0; }; }; then 5991 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 5992 rm -f conftest2.* 5993 if { { case "(($ac_try" in 5994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5995 *) ac_try_echo=$ac_try;; 5996esac 5997eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5998$as_echo "$ac_try_echo"; } >&5 5999 (eval "$ac_try") 2>&5 6000 ac_status=$? 6001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6002 test $ac_status = 0; } && 6003 test -f conftest2.$ac_objext && { { case "(($ac_try" in 6004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6005 *) ac_try_echo=$ac_try;; 6006esac 6007eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6008$as_echo "$ac_try_echo"; } >&5 6009 (eval "$ac_try") 2>&5 6010 ac_status=$? 6011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6012 test $ac_status = 0; }; 6013 then 6014 # cc works too. 6015 : 6016 else 6017 # cc exists but doesn't like -o. 6018 eval ac_cv_prog_cc_${ac_cc}_c_o=no 6019 fi 6020 fi 6021 fi 6022else 6023 eval ac_cv_prog_cc_${ac_cc}_c_o=no 6024fi 6025rm -f core conftest* 6026 6027fi 6028if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6030$as_echo "yes" >&6; } 6031else 6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6033$as_echo "no" >&6; } 6034 6035$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h 6036 6037fi 6038 6039# FIXME: we rely on the cache variable name because 6040# there is no other way. 6041set dummy $CC 6042am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 6043eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o 6044if test "$am_t" != yes; then 6045 # Losing compiler, so override with the script. 6046 # FIXME: It is wrong to rewrite CC. 6047 # But if we don't then we get into trouble of one sort or another. 6048 # A longer-term fix would be to have automake use am__CC in this case, 6049 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 6050 CC="$am_aux_dir/compile $CC" 6051fi 6052 6053 6054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 6055$as_echo_n "checking for inline... " >&6; } 6056if test "${ac_cv_c_inline+set}" = set; then : 6057 $as_echo_n "(cached) " >&6 6058else 6059 ac_cv_c_inline=no 6060for ac_kw in inline __inline__ __inline; do 6061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6062/* end confdefs.h. */ 6063#ifndef __cplusplus 6064typedef int foo_t; 6065static $ac_kw foo_t static_foo () {return 0; } 6066$ac_kw foo_t foo () {return 0; } 6067#endif 6068 6069_ACEOF 6070if ac_fn_c_try_compile "$LINENO"; then : 6071 ac_cv_c_inline=$ac_kw 6072fi 6073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6074 test "$ac_cv_c_inline" != no && break 6075done 6076 6077fi 6078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 6079$as_echo "$ac_cv_c_inline" >&6; } 6080 6081case $ac_cv_c_inline in 6082 inline | yes) ;; 6083 *) 6084 case $ac_cv_c_inline in 6085 no) ac_val=;; 6086 *) ac_val=$ac_cv_c_inline;; 6087 esac 6088 cat >>confdefs.h <<_ACEOF 6089#ifndef __cplusplus 6090#define inline $ac_val 6091#endif 6092_ACEOF 6093 ;; 6094esac 6095 6096enable_win32_dll=yes 6097 6098case $host in 6099*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*) 6100 if test -n "$ac_tool_prefix"; then 6101 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 6102set dummy ${ac_tool_prefix}as; ac_word=$2 6103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6104$as_echo_n "checking for $ac_word... " >&6; } 6105if test "${ac_cv_prog_AS+set}" = set; then : 6106 $as_echo_n "(cached) " >&6 6107else 6108 if test -n "$AS"; then 6109 ac_cv_prog_AS="$AS" # Let the user override the test. 6110else 6111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6112for as_dir in $PATH 6113do 6114 IFS=$as_save_IFS 6115 test -z "$as_dir" && as_dir=. 6116 for ac_exec_ext in '' $ac_executable_extensions; do 6117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6118 ac_cv_prog_AS="${ac_tool_prefix}as" 6119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6120 break 2 6121 fi 6122done 6123 done 6124IFS=$as_save_IFS 6125 6126fi 6127fi 6128AS=$ac_cv_prog_AS 6129if test -n "$AS"; then 6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 6131$as_echo "$AS" >&6; } 6132else 6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6134$as_echo "no" >&6; } 6135fi 6136 6137 6138fi 6139if test -z "$ac_cv_prog_AS"; then 6140 ac_ct_AS=$AS 6141 # Extract the first word of "as", so it can be a program name with args. 6142set dummy as; ac_word=$2 6143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6144$as_echo_n "checking for $ac_word... " >&6; } 6145if test "${ac_cv_prog_ac_ct_AS+set}" = set; then : 6146 $as_echo_n "(cached) " >&6 6147else 6148 if test -n "$ac_ct_AS"; then 6149 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 6150else 6151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6152for as_dir in $PATH 6153do 6154 IFS=$as_save_IFS 6155 test -z "$as_dir" && as_dir=. 6156 for ac_exec_ext in '' $ac_executable_extensions; do 6157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6158 ac_cv_prog_ac_ct_AS="as" 6159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6160 break 2 6161 fi 6162done 6163 done 6164IFS=$as_save_IFS 6165 6166fi 6167fi 6168ac_ct_AS=$ac_cv_prog_ac_ct_AS 6169if test -n "$ac_ct_AS"; then 6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 6171$as_echo "$ac_ct_AS" >&6; } 6172else 6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6174$as_echo "no" >&6; } 6175fi 6176 6177 if test "x$ac_ct_AS" = x; then 6178 AS="false" 6179 else 6180 case $cross_compiling:$ac_tool_warned in 6181yes:) 6182{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6183$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6184ac_tool_warned=yes ;; 6185esac 6186 AS=$ac_ct_AS 6187 fi 6188else 6189 AS="$ac_cv_prog_AS" 6190fi 6191 6192 if test -n "$ac_tool_prefix"; then 6193 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6194set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6196$as_echo_n "checking for $ac_word... " >&6; } 6197if test "${ac_cv_prog_DLLTOOL+set}" = set; then : 6198 $as_echo_n "(cached) " >&6 6199else 6200 if test -n "$DLLTOOL"; then 6201 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6202else 6203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6204for as_dir in $PATH 6205do 6206 IFS=$as_save_IFS 6207 test -z "$as_dir" && as_dir=. 6208 for ac_exec_ext in '' $ac_executable_extensions; do 6209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6210 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6212 break 2 6213 fi 6214done 6215 done 6216IFS=$as_save_IFS 6217 6218fi 6219fi 6220DLLTOOL=$ac_cv_prog_DLLTOOL 6221if test -n "$DLLTOOL"; then 6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6223$as_echo "$DLLTOOL" >&6; } 6224else 6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6226$as_echo "no" >&6; } 6227fi 6228 6229 6230fi 6231if test -z "$ac_cv_prog_DLLTOOL"; then 6232 ac_ct_DLLTOOL=$DLLTOOL 6233 # Extract the first word of "dlltool", so it can be a program name with args. 6234set dummy dlltool; ac_word=$2 6235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6236$as_echo_n "checking for $ac_word... " >&6; } 6237if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then : 6238 $as_echo_n "(cached) " >&6 6239else 6240 if test -n "$ac_ct_DLLTOOL"; then 6241 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6242else 6243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6244for as_dir in $PATH 6245do 6246 IFS=$as_save_IFS 6247 test -z "$as_dir" && as_dir=. 6248 for ac_exec_ext in '' $ac_executable_extensions; do 6249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6250 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6252 break 2 6253 fi 6254done 6255 done 6256IFS=$as_save_IFS 6257 6258fi 6259fi 6260ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6261if test -n "$ac_ct_DLLTOOL"; then 6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6263$as_echo "$ac_ct_DLLTOOL" >&6; } 6264else 6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6266$as_echo "no" >&6; } 6267fi 6268 6269 if test "x$ac_ct_DLLTOOL" = x; then 6270 DLLTOOL="false" 6271 else 6272 case $cross_compiling:$ac_tool_warned in 6273yes:) 6274{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6275$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6276ac_tool_warned=yes ;; 6277esac 6278 DLLTOOL=$ac_ct_DLLTOOL 6279 fi 6280else 6281 DLLTOOL="$ac_cv_prog_DLLTOOL" 6282fi 6283 6284 if test -n "$ac_tool_prefix"; then 6285 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6286set dummy ${ac_tool_prefix}objdump; ac_word=$2 6287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6288$as_echo_n "checking for $ac_word... " >&6; } 6289if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 6290 $as_echo_n "(cached) " >&6 6291else 6292 if test -n "$OBJDUMP"; then 6293 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6294else 6295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6296for as_dir in $PATH 6297do 6298 IFS=$as_save_IFS 6299 test -z "$as_dir" && as_dir=. 6300 for ac_exec_ext in '' $ac_executable_extensions; do 6301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6302 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6304 break 2 6305 fi 6306done 6307 done 6308IFS=$as_save_IFS 6309 6310fi 6311fi 6312OBJDUMP=$ac_cv_prog_OBJDUMP 6313if test -n "$OBJDUMP"; then 6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6315$as_echo "$OBJDUMP" >&6; } 6316else 6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6318$as_echo "no" >&6; } 6319fi 6320 6321 6322fi 6323if test -z "$ac_cv_prog_OBJDUMP"; then 6324 ac_ct_OBJDUMP=$OBJDUMP 6325 # Extract the first word of "objdump", so it can be a program name with args. 6326set dummy objdump; ac_word=$2 6327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6328$as_echo_n "checking for $ac_word... " >&6; } 6329if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 6330 $as_echo_n "(cached) " >&6 6331else 6332 if test -n "$ac_ct_OBJDUMP"; then 6333 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6334else 6335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6336for as_dir in $PATH 6337do 6338 IFS=$as_save_IFS 6339 test -z "$as_dir" && as_dir=. 6340 for ac_exec_ext in '' $ac_executable_extensions; do 6341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6342 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6344 break 2 6345 fi 6346done 6347 done 6348IFS=$as_save_IFS 6349 6350fi 6351fi 6352ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6353if test -n "$ac_ct_OBJDUMP"; then 6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6355$as_echo "$ac_ct_OBJDUMP" >&6; } 6356else 6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6358$as_echo "no" >&6; } 6359fi 6360 6361 if test "x$ac_ct_OBJDUMP" = x; then 6362 OBJDUMP="false" 6363 else 6364 case $cross_compiling:$ac_tool_warned in 6365yes:) 6366{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6367$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6368ac_tool_warned=yes ;; 6369esac 6370 OBJDUMP=$ac_ct_OBJDUMP 6371 fi 6372else 6373 OBJDUMP="$ac_cv_prog_OBJDUMP" 6374fi 6375 6376 ;; 6377esac 6378 6379test -z "$AS" && AS=as 6380 6381 6382 6383 6384 6385test -z "$DLLTOOL" && DLLTOOL=dlltool 6386 6387 6388 6389 6390 6391test -z "$OBJDUMP" && OBJDUMP=objdump 6392 6393 6394 6395 6396 6397 6398 6399case `pwd` in 6400 *\ * | *\ *) 6401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 6402$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 6403esac 6404 6405 6406 6407macro_version='2.2.6b' 6408macro_revision='1.3017' 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422ltmain="$ac_aux_dir/ltmain.sh" 6423 6424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 6425$as_echo_n "checking for a sed that does not truncate output... " >&6; } 6426if test "${ac_cv_path_SED+set}" = set; then : 6427 $as_echo_n "(cached) " >&6 6428else 6429 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 6430 for ac_i in 1 2 3 4 5 6 7; do 6431 ac_script="$ac_script$as_nl$ac_script" 6432 done 6433 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 6434 { ac_script=; unset ac_script;} 6435 if test -z "$SED"; then 6436 ac_path_SED_found=false 6437 # Loop through the user's path and test for each of PROGNAME-LIST 6438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6439for as_dir in $PATH 6440do 6441 IFS=$as_save_IFS 6442 test -z "$as_dir" && as_dir=. 6443 for ac_prog in sed gsed; do 6444 for ac_exec_ext in '' $ac_executable_extensions; do 6445 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 6446 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 6447# Check for GNU ac_path_SED and select it if it is found. 6448 # Check for GNU $ac_path_SED 6449case `"$ac_path_SED" --version 2>&1` in 6450*GNU*) 6451 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 6452*) 6453 ac_count=0 6454 $as_echo_n 0123456789 >"conftest.in" 6455 while : 6456 do 6457 cat "conftest.in" "conftest.in" >"conftest.tmp" 6458 mv "conftest.tmp" "conftest.in" 6459 cp "conftest.in" "conftest.nl" 6460 $as_echo '' >> "conftest.nl" 6461 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 6462 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6463 as_fn_arith $ac_count + 1 && ac_count=$as_val 6464 if test $ac_count -gt ${ac_path_SED_max-0}; then 6465 # Best one so far, save it but keep looking for a better one 6466 ac_cv_path_SED="$ac_path_SED" 6467 ac_path_SED_max=$ac_count 6468 fi 6469 # 10*(2^10) chars as input seems more than enough 6470 test $ac_count -gt 10 && break 6471 done 6472 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6473esac 6474 6475 $ac_path_SED_found && break 3 6476 done 6477 done 6478 done 6479IFS=$as_save_IFS 6480 if test -z "$ac_cv_path_SED"; then 6481 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 6482 fi 6483else 6484 ac_cv_path_SED=$SED 6485fi 6486 6487fi 6488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 6489$as_echo "$ac_cv_path_SED" >&6; } 6490 SED="$ac_cv_path_SED" 6491 rm -f conftest.sed 6492 6493test -z "$SED" && SED=sed 6494Xsed="$SED -e 1s/^X//" 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 6507$as_echo_n "checking for fgrep... " >&6; } 6508if test "${ac_cv_path_FGREP+set}" = set; then : 6509 $as_echo_n "(cached) " >&6 6510else 6511 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 6512 then ac_cv_path_FGREP="$GREP -F" 6513 else 6514 if test -z "$FGREP"; then 6515 ac_path_FGREP_found=false 6516 # Loop through the user's path and test for each of PROGNAME-LIST 6517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6518for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6519do 6520 IFS=$as_save_IFS 6521 test -z "$as_dir" && as_dir=. 6522 for ac_prog in fgrep; do 6523 for ac_exec_ext in '' $ac_executable_extensions; do 6524 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 6525 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 6526# Check for GNU ac_path_FGREP and select it if it is found. 6527 # Check for GNU $ac_path_FGREP 6528case `"$ac_path_FGREP" --version 2>&1` in 6529*GNU*) 6530 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 6531*) 6532 ac_count=0 6533 $as_echo_n 0123456789 >"conftest.in" 6534 while : 6535 do 6536 cat "conftest.in" "conftest.in" >"conftest.tmp" 6537 mv "conftest.tmp" "conftest.in" 6538 cp "conftest.in" "conftest.nl" 6539 $as_echo 'FGREP' >> "conftest.nl" 6540 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 6541 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6542 as_fn_arith $ac_count + 1 && ac_count=$as_val 6543 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 6544 # Best one so far, save it but keep looking for a better one 6545 ac_cv_path_FGREP="$ac_path_FGREP" 6546 ac_path_FGREP_max=$ac_count 6547 fi 6548 # 10*(2^10) chars as input seems more than enough 6549 test $ac_count -gt 10 && break 6550 done 6551 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6552esac 6553 6554 $ac_path_FGREP_found && break 3 6555 done 6556 done 6557 done 6558IFS=$as_save_IFS 6559 if test -z "$ac_cv_path_FGREP"; then 6560 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6561 fi 6562else 6563 ac_cv_path_FGREP=$FGREP 6564fi 6565 6566 fi 6567fi 6568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 6569$as_echo "$ac_cv_path_FGREP" >&6; } 6570 FGREP="$ac_cv_path_FGREP" 6571 6572 6573test -z "$GREP" && GREP=grep 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593# Check whether --with-gnu-ld was given. 6594if test "${with_gnu_ld+set}" = set; then : 6595 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 6596else 6597 with_gnu_ld=no 6598fi 6599 6600ac_prog=ld 6601if test "$GCC" = yes; then 6602 # Check if gcc -print-prog-name=ld gives a path. 6603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 6604$as_echo_n "checking for ld used by $CC... " >&6; } 6605 case $host in 6606 *-*-mingw*) 6607 # gcc leaves a trailing carriage return which upsets mingw 6608 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6609 *) 6610 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6611 esac 6612 case $ac_prog in 6613 # Accept absolute paths. 6614 [\\/]* | ?:[\\/]*) 6615 re_direlt='/[^/][^/]*/\.\./' 6616 # Canonicalize the pathname of ld 6617 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 6618 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 6619 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 6620 done 6621 test -z "$LD" && LD="$ac_prog" 6622 ;; 6623 "") 6624 # If it fails, then pretend we aren't using GCC. 6625 ac_prog=ld 6626 ;; 6627 *) 6628 # If it is relative, then search for the first ld in PATH. 6629 with_gnu_ld=unknown 6630 ;; 6631 esac 6632elif test "$with_gnu_ld" = yes; then 6633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 6634$as_echo_n "checking for GNU ld... " >&6; } 6635else 6636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 6637$as_echo_n "checking for non-GNU ld... " >&6; } 6638fi 6639if test "${lt_cv_path_LD+set}" = set; then : 6640 $as_echo_n "(cached) " >&6 6641else 6642 if test -z "$LD"; then 6643 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6644 for ac_dir in $PATH; do 6645 IFS="$lt_save_ifs" 6646 test -z "$ac_dir" && ac_dir=. 6647 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6648 lt_cv_path_LD="$ac_dir/$ac_prog" 6649 # Check to see if the program is GNU ld. I'd rather use --version, 6650 # but apparently some variants of GNU ld only accept -v. 6651 # Break only if it was the GNU/non-GNU ld that we prefer. 6652 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 6653 *GNU* | *'with BFD'*) 6654 test "$with_gnu_ld" != no && break 6655 ;; 6656 *) 6657 test "$with_gnu_ld" != yes && break 6658 ;; 6659 esac 6660 fi 6661 done 6662 IFS="$lt_save_ifs" 6663else 6664 lt_cv_path_LD="$LD" # Let the user override the test with a path. 6665fi 6666fi 6667 6668LD="$lt_cv_path_LD" 6669if test -n "$LD"; then 6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 6671$as_echo "$LD" >&6; } 6672else 6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6674$as_echo "no" >&6; } 6675fi 6676test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 6677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 6678$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 6679if test "${lt_cv_prog_gnu_ld+set}" = set; then : 6680 $as_echo_n "(cached) " >&6 6681else 6682 # I'd rather use --version here, but apparently some GNU lds only accept -v. 6683case `$LD -v 2>&1 </dev/null` in 6684*GNU* | *'with BFD'*) 6685 lt_cv_prog_gnu_ld=yes 6686 ;; 6687*) 6688 lt_cv_prog_gnu_ld=no 6689 ;; 6690esac 6691fi 6692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 6693$as_echo "$lt_cv_prog_gnu_ld" >&6; } 6694with_gnu_ld=$lt_cv_prog_gnu_ld 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 6705$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 6706if test "${lt_cv_path_NM+set}" = set; then : 6707 $as_echo_n "(cached) " >&6 6708else 6709 if test -n "$NM"; then 6710 # Let the user override the test. 6711 lt_cv_path_NM="$NM" 6712else 6713 lt_nm_to_check="${ac_tool_prefix}nm" 6714 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6715 lt_nm_to_check="$lt_nm_to_check nm" 6716 fi 6717 for lt_tmp_nm in $lt_nm_to_check; do 6718 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6719 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6720 IFS="$lt_save_ifs" 6721 test -z "$ac_dir" && ac_dir=. 6722 tmp_nm="$ac_dir/$lt_tmp_nm" 6723 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 6724 # Check to see if the nm accepts a BSD-compat flag. 6725 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 6726 # nm: unknown option "B" ignored 6727 # Tru64's nm complains that /dev/null is an invalid object file 6728 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 6729 */dev/null* | *'Invalid file or object type'*) 6730 lt_cv_path_NM="$tmp_nm -B" 6731 break 6732 ;; 6733 *) 6734 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6735 */dev/null*) 6736 lt_cv_path_NM="$tmp_nm -p" 6737 break 6738 ;; 6739 *) 6740 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6741 continue # so that we can try to find one that supports BSD flags 6742 ;; 6743 esac 6744 ;; 6745 esac 6746 fi 6747 done 6748 IFS="$lt_save_ifs" 6749 done 6750 : ${lt_cv_path_NM=no} 6751fi 6752fi 6753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 6754$as_echo "$lt_cv_path_NM" >&6; } 6755if test "$lt_cv_path_NM" != "no"; then 6756 NM="$lt_cv_path_NM" 6757else 6758 # Didn't find any BSD compatible name lister, look for dumpbin. 6759 if test -n "$ac_tool_prefix"; then 6760 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 6761 do 6762 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6763set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6765$as_echo_n "checking for $ac_word... " >&6; } 6766if test "${ac_cv_prog_DUMPBIN+set}" = set; then : 6767 $as_echo_n "(cached) " >&6 6768else 6769 if test -n "$DUMPBIN"; then 6770 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 6771else 6772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6773for as_dir in $PATH 6774do 6775 IFS=$as_save_IFS 6776 test -z "$as_dir" && as_dir=. 6777 for ac_exec_ext in '' $ac_executable_extensions; do 6778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6779 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 6780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6781 break 2 6782 fi 6783done 6784 done 6785IFS=$as_save_IFS 6786 6787fi 6788fi 6789DUMPBIN=$ac_cv_prog_DUMPBIN 6790if test -n "$DUMPBIN"; then 6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 6792$as_echo "$DUMPBIN" >&6; } 6793else 6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6795$as_echo "no" >&6; } 6796fi 6797 6798 6799 test -n "$DUMPBIN" && break 6800 done 6801fi 6802if test -z "$DUMPBIN"; then 6803 ac_ct_DUMPBIN=$DUMPBIN 6804 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 6805do 6806 # Extract the first word of "$ac_prog", so it can be a program name with args. 6807set dummy $ac_prog; ac_word=$2 6808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6809$as_echo_n "checking for $ac_word... " >&6; } 6810if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : 6811 $as_echo_n "(cached) " >&6 6812else 6813 if test -n "$ac_ct_DUMPBIN"; then 6814 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6815else 6816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6817for as_dir in $PATH 6818do 6819 IFS=$as_save_IFS 6820 test -z "$as_dir" && as_dir=. 6821 for ac_exec_ext in '' $ac_executable_extensions; do 6822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6823 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6825 break 2 6826 fi 6827done 6828 done 6829IFS=$as_save_IFS 6830 6831fi 6832fi 6833ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 6834if test -n "$ac_ct_DUMPBIN"; then 6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 6836$as_echo "$ac_ct_DUMPBIN" >&6; } 6837else 6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6839$as_echo "no" >&6; } 6840fi 6841 6842 6843 test -n "$ac_ct_DUMPBIN" && break 6844done 6845 6846 if test "x$ac_ct_DUMPBIN" = x; then 6847 DUMPBIN=":" 6848 else 6849 case $cross_compiling:$ac_tool_warned in 6850yes:) 6851{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6852$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6853ac_tool_warned=yes ;; 6854esac 6855 DUMPBIN=$ac_ct_DUMPBIN 6856 fi 6857fi 6858 6859 6860 if test "$DUMPBIN" != ":"; then 6861 NM="$DUMPBIN" 6862 fi 6863fi 6864test -z "$NM" && NM=nm 6865 6866 6867 6868 6869 6870 6871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6872$as_echo_n "checking the name lister ($NM) interface... " >&6; } 6873if test "${lt_cv_nm_interface+set}" = set; then : 6874 $as_echo_n "(cached) " >&6 6875else 6876 lt_cv_nm_interface="BSD nm" 6877 echo "int some_variable = 0;" > conftest.$ac_ext 6878 (eval echo "\"\$as_me:6878: $ac_compile\"" >&5) 6879 (eval "$ac_compile" 2>conftest.err) 6880 cat conftest.err >&5 6881 (eval echo "\"\$as_me:6881: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6882 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6883 cat conftest.err >&5 6884 (eval echo "\"\$as_me:6884: output\"" >&5) 6885 cat conftest.out >&5 6886 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6887 lt_cv_nm_interface="MS dumpbin" 6888 fi 6889 rm -f conftest* 6890fi 6891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6892$as_echo "$lt_cv_nm_interface" >&6; } 6893 6894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 6895$as_echo_n "checking whether ln -s works... " >&6; } 6896LN_S=$as_ln_s 6897if test "$LN_S" = "ln -s"; then 6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6899$as_echo "yes" >&6; } 6900else 6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 6902$as_echo "no, using $LN_S" >&6; } 6903fi 6904 6905# find the maximum length of command line arguments 6906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6907$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6908if test "${lt_cv_sys_max_cmd_len+set}" = set; then : 6909 $as_echo_n "(cached) " >&6 6910else 6911 i=0 6912 teststring="ABCD" 6913 6914 case $build_os in 6915 msdosdjgpp*) 6916 # On DJGPP, this test can blow up pretty badly due to problems in libc 6917 # (any single argument exceeding 2000 bytes causes a buffer overrun 6918 # during glob expansion). Even if it were fixed, the result of this 6919 # check would be larger than it should be. 6920 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6921 ;; 6922 6923 gnu*) 6924 # Under GNU Hurd, this test is not required because there is 6925 # no limit to the length of command line arguments. 6926 # Libtool will interpret -1 as no limit whatsoever 6927 lt_cv_sys_max_cmd_len=-1; 6928 ;; 6929 6930 cygwin* | mingw* | cegcc*) 6931 # On Win9x/ME, this test blows up -- it succeeds, but takes 6932 # about 5 minutes as the teststring grows exponentially. 6933 # Worse, since 9x/ME are not pre-emptively multitasking, 6934 # you end up with a "frozen" computer, even though with patience 6935 # the test eventually succeeds (with a max line length of 256k). 6936 # Instead, let's just punt: use the minimum linelength reported by 6937 # all of the supported platforms: 8192 (on NT/2K/XP). 6938 lt_cv_sys_max_cmd_len=8192; 6939 ;; 6940 6941 amigaos*) 6942 # On AmigaOS with pdksh, this test takes hours, literally. 6943 # So we just punt and use a minimum line length of 8192. 6944 lt_cv_sys_max_cmd_len=8192; 6945 ;; 6946 6947 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6948 # This has been around since 386BSD, at least. Likely further. 6949 if test -x /sbin/sysctl; then 6950 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6951 elif test -x /usr/sbin/sysctl; then 6952 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6953 else 6954 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6955 fi 6956 # And add a safety zone 6957 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6958 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6959 ;; 6960 6961 interix*) 6962 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6963 lt_cv_sys_max_cmd_len=196608 6964 ;; 6965 6966 osf*) 6967 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6968 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6969 # nice to cause kernel panics so lets avoid the loop below. 6970 # First set a reasonable default. 6971 lt_cv_sys_max_cmd_len=16384 6972 # 6973 if test -x /sbin/sysconfig; then 6974 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6975 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6976 esac 6977 fi 6978 ;; 6979 sco3.2v5*) 6980 lt_cv_sys_max_cmd_len=102400 6981 ;; 6982 sysv5* | sco5v6* | sysv4.2uw2*) 6983 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6984 if test -n "$kargmax"; then 6985 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6986 else 6987 lt_cv_sys_max_cmd_len=32768 6988 fi 6989 ;; 6990 *) 6991 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6992 if test -n "$lt_cv_sys_max_cmd_len"; then 6993 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6994 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6995 else 6996 # Make teststring a little bigger before we do anything with it. 6997 # a 1K string should be a reasonable start. 6998 for i in 1 2 3 4 5 6 7 8 ; do 6999 teststring=$teststring$teststring 7000 done 7001 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 7002 # If test is not a shell built-in, we'll probably end up computing a 7003 # maximum length that is only half of the actual maximum length, but 7004 # we can't tell. 7005 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 7006 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 7007 test $i != 17 # 1/2 MB should be enough 7008 do 7009 i=`expr $i + 1` 7010 teststring=$teststring$teststring 7011 done 7012 # Only check the string length outside the loop. 7013 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 7014 teststring= 7015 # Add a significant safety factor because C++ compilers can tack on 7016 # massive amounts of additional arguments before passing them to the 7017 # linker. It appears as though 1/2 is a usable value. 7018 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 7019 fi 7020 ;; 7021 esac 7022 7023fi 7024 7025if test -n $lt_cv_sys_max_cmd_len ; then 7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 7027$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 7028else 7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 7030$as_echo "none" >&6; } 7031fi 7032max_cmd_len=$lt_cv_sys_max_cmd_len 7033 7034 7035 7036 7037 7038 7039: ${CP="cp -f"} 7040: ${MV="mv -f"} 7041: ${RM="rm -f"} 7042 7043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 7044$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 7045# Try some XSI features 7046xsi_shell=no 7047( _lt_dummy="a/b/c" 7048 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 7049 = c,a/b,, \ 7050 && eval 'test $(( 1 + 1 )) -eq 2 \ 7051 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 7052 && xsi_shell=yes 7053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 7054$as_echo "$xsi_shell" >&6; } 7055 7056 7057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 7058$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 7059lt_shell_append=no 7060( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 7061 >/dev/null 2>&1 \ 7062 && lt_shell_append=yes 7063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 7064$as_echo "$lt_shell_append" >&6; } 7065 7066 7067if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 7068 lt_unset=unset 7069else 7070 lt_unset=false 7071fi 7072 7073 7074 7075 7076 7077# test EBCDIC or ASCII 7078case `echo X|tr X '\101'` in 7079 A) # ASCII based system 7080 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 7081 lt_SP2NL='tr \040 \012' 7082 lt_NL2SP='tr \015\012 \040\040' 7083 ;; 7084 *) # EBCDIC based system 7085 lt_SP2NL='tr \100 \n' 7086 lt_NL2SP='tr \r\n \100\100' 7087 ;; 7088esac 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 7099$as_echo_n "checking for $LD option to reload object files... " >&6; } 7100if test "${lt_cv_ld_reload_flag+set}" = set; then : 7101 $as_echo_n "(cached) " >&6 7102else 7103 lt_cv_ld_reload_flag='-r' 7104fi 7105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 7106$as_echo "$lt_cv_ld_reload_flag" >&6; } 7107reload_flag=$lt_cv_ld_reload_flag 7108case $reload_flag in 7109"" | " "*) ;; 7110*) reload_flag=" $reload_flag" ;; 7111esac 7112reload_cmds='$LD$reload_flag -o $output$reload_objs' 7113case $host_os in 7114 darwin*) 7115 if test "$GCC" = yes; then 7116 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 7117 else 7118 reload_cmds='$LD$reload_flag -o $output$reload_objs' 7119 fi 7120 ;; 7121esac 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131if test -n "$ac_tool_prefix"; then 7132 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 7133set dummy ${ac_tool_prefix}objdump; ac_word=$2 7134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7135$as_echo_n "checking for $ac_word... " >&6; } 7136if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 7137 $as_echo_n "(cached) " >&6 7138else 7139 if test -n "$OBJDUMP"; then 7140 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 7141else 7142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7143for as_dir in $PATH 7144do 7145 IFS=$as_save_IFS 7146 test -z "$as_dir" && as_dir=. 7147 for ac_exec_ext in '' $ac_executable_extensions; do 7148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7149 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 7150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7151 break 2 7152 fi 7153done 7154 done 7155IFS=$as_save_IFS 7156 7157fi 7158fi 7159OBJDUMP=$ac_cv_prog_OBJDUMP 7160if test -n "$OBJDUMP"; then 7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 7162$as_echo "$OBJDUMP" >&6; } 7163else 7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7165$as_echo "no" >&6; } 7166fi 7167 7168 7169fi 7170if test -z "$ac_cv_prog_OBJDUMP"; then 7171 ac_ct_OBJDUMP=$OBJDUMP 7172 # Extract the first word of "objdump", so it can be a program name with args. 7173set dummy objdump; ac_word=$2 7174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7175$as_echo_n "checking for $ac_word... " >&6; } 7176if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 7177 $as_echo_n "(cached) " >&6 7178else 7179 if test -n "$ac_ct_OBJDUMP"; then 7180 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 7181else 7182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7183for as_dir in $PATH 7184do 7185 IFS=$as_save_IFS 7186 test -z "$as_dir" && as_dir=. 7187 for ac_exec_ext in '' $ac_executable_extensions; do 7188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7189 ac_cv_prog_ac_ct_OBJDUMP="objdump" 7190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7191 break 2 7192 fi 7193done 7194 done 7195IFS=$as_save_IFS 7196 7197fi 7198fi 7199ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 7200if test -n "$ac_ct_OBJDUMP"; then 7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 7202$as_echo "$ac_ct_OBJDUMP" >&6; } 7203else 7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7205$as_echo "no" >&6; } 7206fi 7207 7208 if test "x$ac_ct_OBJDUMP" = x; then 7209 OBJDUMP="false" 7210 else 7211 case $cross_compiling:$ac_tool_warned in 7212yes:) 7213{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7214$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7215ac_tool_warned=yes ;; 7216esac 7217 OBJDUMP=$ac_ct_OBJDUMP 7218 fi 7219else 7220 OBJDUMP="$ac_cv_prog_OBJDUMP" 7221fi 7222 7223test -z "$OBJDUMP" && OBJDUMP=objdump 7224 7225 7226 7227 7228 7229 7230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 7231$as_echo_n "checking how to recognize dependent libraries... " >&6; } 7232if test "${lt_cv_deplibs_check_method+set}" = set; then : 7233 $as_echo_n "(cached) " >&6 7234else 7235 lt_cv_file_magic_cmd='$MAGIC_CMD' 7236lt_cv_file_magic_test_file= 7237lt_cv_deplibs_check_method='unknown' 7238# Need to set the preceding variable on all platforms that support 7239# interlibrary dependencies. 7240# 'none' -- dependencies not supported. 7241# `unknown' -- same as none, but documents that we really don't know. 7242# 'pass_all' -- all dependencies passed with no checks. 7243# 'test_compile' -- check by making test program. 7244# 'file_magic [[regex]]' -- check by looking for files in library path 7245# which responds to the $file_magic_cmd with a given extended regex. 7246# If you have `file' or equivalent on your system and you're not sure 7247# whether `pass_all' will *always* work, you probably want this one. 7248 7249case $host_os in 7250aix[4-9]*) 7251 lt_cv_deplibs_check_method=pass_all 7252 ;; 7253 7254beos*) 7255 lt_cv_deplibs_check_method=pass_all 7256 ;; 7257 7258bsdi[45]*) 7259 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 7260 lt_cv_file_magic_cmd='/usr/bin/file -L' 7261 lt_cv_file_magic_test_file=/shlib/libc.so 7262 ;; 7263 7264cygwin*) 7265 # func_win32_libid is a shell function defined in ltmain.sh 7266 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7267 lt_cv_file_magic_cmd='func_win32_libid' 7268 ;; 7269 7270mingw* | pw32*) 7271 # Base MSYS/MinGW do not provide the 'file' command needed by 7272 # func_win32_libid shell function, so use a weaker test based on 'objdump', 7273 # unless we find 'file', for example because we are cross-compiling. 7274 if ( file / ) >/dev/null 2>&1; then 7275 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7276 lt_cv_file_magic_cmd='func_win32_libid' 7277 else 7278 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 7279 lt_cv_file_magic_cmd='$OBJDUMP -f' 7280 fi 7281 ;; 7282 7283cegcc) 7284 # use the weaker test based on 'objdump'. See mingw*. 7285 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 7286 lt_cv_file_magic_cmd='$OBJDUMP -f' 7287 ;; 7288 7289darwin* | rhapsody*) 7290 lt_cv_deplibs_check_method=pass_all 7291 ;; 7292 7293freebsd* | dragonfly*) 7294 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7295 case $host_cpu in 7296 i*86 ) 7297 # Not sure whether the presence of OpenBSD here was a mistake. 7298 # Let's accept both of them until this is cleared up. 7299 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 7300 lt_cv_file_magic_cmd=/usr/bin/file 7301 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 7302 ;; 7303 esac 7304 else 7305 lt_cv_deplibs_check_method=pass_all 7306 fi 7307 ;; 7308 7309gnu*) 7310 lt_cv_deplibs_check_method=pass_all 7311 ;; 7312 7313hpux10.20* | hpux11*) 7314 lt_cv_file_magic_cmd=/usr/bin/file 7315 case $host_cpu in 7316 ia64*) 7317 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 7318 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 7319 ;; 7320 hppa*64*) 7321 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]' 7322 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 7323 ;; 7324 *) 7325 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 7326 lt_cv_file_magic_test_file=/usr/lib/libc.sl 7327 ;; 7328 esac 7329 ;; 7330 7331interix[3-9]*) 7332 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 7333 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 7334 ;; 7335 7336irix5* | irix6* | nonstopux*) 7337 case $LD in 7338 *-32|*"-32 ") libmagic=32-bit;; 7339 *-n32|*"-n32 ") libmagic=N32;; 7340 *-64|*"-64 ") libmagic=64-bit;; 7341 *) libmagic=never-match;; 7342 esac 7343 lt_cv_deplibs_check_method=pass_all 7344 ;; 7345 7346# This must be Linux ELF. 7347linux* | k*bsd*-gnu | kopensolaris*-gnu) 7348 lt_cv_deplibs_check_method=pass_all 7349 ;; 7350 7351netbsd* | netbsdelf*-gnu) 7352 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7353 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7354 else 7355 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 7356 fi 7357 ;; 7358 7359newos6*) 7360 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 7361 lt_cv_file_magic_cmd=/usr/bin/file 7362 lt_cv_file_magic_test_file=/usr/lib/libnls.so 7363 ;; 7364 7365*nto* | *qnx*) 7366 lt_cv_deplibs_check_method=pass_all 7367 ;; 7368 7369openbsd*) 7370 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7371 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 7372 else 7373 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7374 fi 7375 ;; 7376 7377osf3* | osf4* | osf5*) 7378 lt_cv_deplibs_check_method=pass_all 7379 ;; 7380 7381rdos*) 7382 lt_cv_deplibs_check_method=pass_all 7383 ;; 7384 7385solaris*) 7386 lt_cv_deplibs_check_method=pass_all 7387 ;; 7388 7389sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 7390 lt_cv_deplibs_check_method=pass_all 7391 ;; 7392 7393sysv4 | sysv4.3*) 7394 case $host_vendor in 7395 motorola) 7396 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]' 7397 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 7398 ;; 7399 ncr) 7400 lt_cv_deplibs_check_method=pass_all 7401 ;; 7402 sequent) 7403 lt_cv_file_magic_cmd='/bin/file' 7404 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 7405 ;; 7406 sni) 7407 lt_cv_file_magic_cmd='/bin/file' 7408 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 7409 lt_cv_file_magic_test_file=/lib/libc.so 7410 ;; 7411 siemens) 7412 lt_cv_deplibs_check_method=pass_all 7413 ;; 7414 pc) 7415 lt_cv_deplibs_check_method=pass_all 7416 ;; 7417 esac 7418 ;; 7419 7420tpf*) 7421 lt_cv_deplibs_check_method=pass_all 7422 ;; 7423esac 7424 7425fi 7426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 7427$as_echo "$lt_cv_deplibs_check_method" >&6; } 7428file_magic_cmd=$lt_cv_file_magic_cmd 7429deplibs_check_method=$lt_cv_deplibs_check_method 7430test -z "$deplibs_check_method" && deplibs_check_method=unknown 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443if test -n "$ac_tool_prefix"; then 7444 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 7445set dummy ${ac_tool_prefix}ar; ac_word=$2 7446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7447$as_echo_n "checking for $ac_word... " >&6; } 7448if test "${ac_cv_prog_AR+set}" = set; then : 7449 $as_echo_n "(cached) " >&6 7450else 7451 if test -n "$AR"; then 7452 ac_cv_prog_AR="$AR" # Let the user override the test. 7453else 7454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7455for as_dir in $PATH 7456do 7457 IFS=$as_save_IFS 7458 test -z "$as_dir" && as_dir=. 7459 for ac_exec_ext in '' $ac_executable_extensions; do 7460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7461 ac_cv_prog_AR="${ac_tool_prefix}ar" 7462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7463 break 2 7464 fi 7465done 7466 done 7467IFS=$as_save_IFS 7468 7469fi 7470fi 7471AR=$ac_cv_prog_AR 7472if test -n "$AR"; then 7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7474$as_echo "$AR" >&6; } 7475else 7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7477$as_echo "no" >&6; } 7478fi 7479 7480 7481fi 7482if test -z "$ac_cv_prog_AR"; then 7483 ac_ct_AR=$AR 7484 # Extract the first word of "ar", so it can be a program name with args. 7485set dummy ar; ac_word=$2 7486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7487$as_echo_n "checking for $ac_word... " >&6; } 7488if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 7489 $as_echo_n "(cached) " >&6 7490else 7491 if test -n "$ac_ct_AR"; then 7492 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7493else 7494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7495for as_dir in $PATH 7496do 7497 IFS=$as_save_IFS 7498 test -z "$as_dir" && as_dir=. 7499 for ac_exec_ext in '' $ac_executable_extensions; do 7500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7501 ac_cv_prog_ac_ct_AR="ar" 7502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7503 break 2 7504 fi 7505done 7506 done 7507IFS=$as_save_IFS 7508 7509fi 7510fi 7511ac_ct_AR=$ac_cv_prog_ac_ct_AR 7512if test -n "$ac_ct_AR"; then 7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7514$as_echo "$ac_ct_AR" >&6; } 7515else 7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7517$as_echo "no" >&6; } 7518fi 7519 7520 if test "x$ac_ct_AR" = x; then 7521 AR="false" 7522 else 7523 case $cross_compiling:$ac_tool_warned in 7524yes:) 7525{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7526$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7527ac_tool_warned=yes ;; 7528esac 7529 AR=$ac_ct_AR 7530 fi 7531else 7532 AR="$ac_cv_prog_AR" 7533fi 7534 7535test -z "$AR" && AR=ar 7536test -z "$AR_FLAGS" && AR_FLAGS=cru 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548if test -n "$ac_tool_prefix"; then 7549 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7550set dummy ${ac_tool_prefix}strip; ac_word=$2 7551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7552$as_echo_n "checking for $ac_word... " >&6; } 7553if test "${ac_cv_prog_STRIP+set}" = set; then : 7554 $as_echo_n "(cached) " >&6 7555else 7556 if test -n "$STRIP"; then 7557 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7558else 7559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7560for as_dir in $PATH 7561do 7562 IFS=$as_save_IFS 7563 test -z "$as_dir" && as_dir=. 7564 for ac_exec_ext in '' $ac_executable_extensions; do 7565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7566 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7568 break 2 7569 fi 7570done 7571 done 7572IFS=$as_save_IFS 7573 7574fi 7575fi 7576STRIP=$ac_cv_prog_STRIP 7577if test -n "$STRIP"; then 7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7579$as_echo "$STRIP" >&6; } 7580else 7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7582$as_echo "no" >&6; } 7583fi 7584 7585 7586fi 7587if test -z "$ac_cv_prog_STRIP"; then 7588 ac_ct_STRIP=$STRIP 7589 # Extract the first word of "strip", so it can be a program name with args. 7590set dummy strip; ac_word=$2 7591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7592$as_echo_n "checking for $ac_word... " >&6; } 7593if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 7594 $as_echo_n "(cached) " >&6 7595else 7596 if test -n "$ac_ct_STRIP"; then 7597 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7598else 7599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7600for as_dir in $PATH 7601do 7602 IFS=$as_save_IFS 7603 test -z "$as_dir" && as_dir=. 7604 for ac_exec_ext in '' $ac_executable_extensions; do 7605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7606 ac_cv_prog_ac_ct_STRIP="strip" 7607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7608 break 2 7609 fi 7610done 7611 done 7612IFS=$as_save_IFS 7613 7614fi 7615fi 7616ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7617if test -n "$ac_ct_STRIP"; then 7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7619$as_echo "$ac_ct_STRIP" >&6; } 7620else 7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7622$as_echo "no" >&6; } 7623fi 7624 7625 if test "x$ac_ct_STRIP" = x; then 7626 STRIP=":" 7627 else 7628 case $cross_compiling:$ac_tool_warned in 7629yes:) 7630{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7631$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7632ac_tool_warned=yes ;; 7633esac 7634 STRIP=$ac_ct_STRIP 7635 fi 7636else 7637 STRIP="$ac_cv_prog_STRIP" 7638fi 7639 7640test -z "$STRIP" && STRIP=: 7641 7642 7643 7644 7645 7646 7647if test -n "$ac_tool_prefix"; then 7648 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7649set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7651$as_echo_n "checking for $ac_word... " >&6; } 7652if test "${ac_cv_prog_RANLIB+set}" = set; then : 7653 $as_echo_n "(cached) " >&6 7654else 7655 if test -n "$RANLIB"; then 7656 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7657else 7658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7659for as_dir in $PATH 7660do 7661 IFS=$as_save_IFS 7662 test -z "$as_dir" && as_dir=. 7663 for ac_exec_ext in '' $ac_executable_extensions; do 7664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7665 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7667 break 2 7668 fi 7669done 7670 done 7671IFS=$as_save_IFS 7672 7673fi 7674fi 7675RANLIB=$ac_cv_prog_RANLIB 7676if test -n "$RANLIB"; then 7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7678$as_echo "$RANLIB" >&6; } 7679else 7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7681$as_echo "no" >&6; } 7682fi 7683 7684 7685fi 7686if test -z "$ac_cv_prog_RANLIB"; then 7687 ac_ct_RANLIB=$RANLIB 7688 # Extract the first word of "ranlib", so it can be a program name with args. 7689set dummy ranlib; ac_word=$2 7690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7691$as_echo_n "checking for $ac_word... " >&6; } 7692if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 7693 $as_echo_n "(cached) " >&6 7694else 7695 if test -n "$ac_ct_RANLIB"; then 7696 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7697else 7698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7699for as_dir in $PATH 7700do 7701 IFS=$as_save_IFS 7702 test -z "$as_dir" && as_dir=. 7703 for ac_exec_ext in '' $ac_executable_extensions; do 7704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7705 ac_cv_prog_ac_ct_RANLIB="ranlib" 7706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7707 break 2 7708 fi 7709done 7710 done 7711IFS=$as_save_IFS 7712 7713fi 7714fi 7715ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7716if test -n "$ac_ct_RANLIB"; then 7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7718$as_echo "$ac_ct_RANLIB" >&6; } 7719else 7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7721$as_echo "no" >&6; } 7722fi 7723 7724 if test "x$ac_ct_RANLIB" = x; then 7725 RANLIB=":" 7726 else 7727 case $cross_compiling:$ac_tool_warned in 7728yes:) 7729{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7730$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7731ac_tool_warned=yes ;; 7732esac 7733 RANLIB=$ac_ct_RANLIB 7734 fi 7735else 7736 RANLIB="$ac_cv_prog_RANLIB" 7737fi 7738 7739test -z "$RANLIB" && RANLIB=: 7740 7741 7742 7743 7744 7745 7746# Determine commands to create old-style static archives. 7747old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7748old_postinstall_cmds='chmod 644 $oldlib' 7749old_postuninstall_cmds= 7750 7751if test -n "$RANLIB"; then 7752 case $host_os in 7753 openbsd*) 7754 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 7755 ;; 7756 *) 7757 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 7758 ;; 7759 esac 7760 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7761fi 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796# If no C compiler was specified, use CC. 7797LTCC=${LTCC-"$CC"} 7798 7799# If no C compiler flags were specified, use CFLAGS. 7800LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7801 7802# Allow CC to be a program name with arguments. 7803compiler=$CC 7804 7805 7806# Check for command to grab the raw symbol name followed by C symbol from nm. 7807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7808$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7809if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 7810 $as_echo_n "(cached) " >&6 7811else 7812 7813# These are sane defaults that work on at least a few old systems. 7814# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7815 7816# Character class describing NM global symbol codes. 7817symcode='[BCDEGRST]' 7818 7819# Regexp to match symbols that can be accessed directly from C. 7820sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7821 7822# Define system-specific variables. 7823case $host_os in 7824aix*) 7825 symcode='[BCDT]' 7826 ;; 7827cygwin* | mingw* | pw32* | cegcc*) 7828 symcode='[ABCDGISTW]' 7829 ;; 7830hpux*) 7831 if test "$host_cpu" = ia64; then 7832 symcode='[ABCDEGRST]' 7833 fi 7834 ;; 7835irix* | nonstopux*) 7836 symcode='[BCDEGRST]' 7837 ;; 7838osf*) 7839 symcode='[BCDEGQRST]' 7840 ;; 7841solaris*) 7842 symcode='[BDRT]' 7843 ;; 7844sco3.2v5*) 7845 symcode='[DT]' 7846 ;; 7847sysv4.2uw2*) 7848 symcode='[DT]' 7849 ;; 7850sysv5* | sco5v6* | unixware* | OpenUNIX*) 7851 symcode='[ABDT]' 7852 ;; 7853sysv4) 7854 symcode='[DFNSTU]' 7855 ;; 7856esac 7857 7858# If we're using GNU nm, then use its standard symbol codes. 7859case `$NM -V 2>&1` in 7860*GNU* | *'with BFD'*) 7861 symcode='[ABCDGIRSTW]' ;; 7862esac 7863 7864# Transform an extracted symbol line into a proper C declaration. 7865# Some systems (esp. on ia64) link data and code symbols differently, 7866# so use this general approach. 7867lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7868 7869# Transform an extracted symbol line into symbol name and symbol address 7870lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 7871lt_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'" 7872 7873# Handle CRLF in mingw tool chain 7874opt_cr= 7875case $build_os in 7876mingw*) 7877 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7878 ;; 7879esac 7880 7881# Try without a prefix underscore, then with it. 7882for ac_symprfx in "" "_"; do 7883 7884 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7885 symxfrm="\\1 $ac_symprfx\\2 \\2" 7886 7887 # Write the raw and C identifiers. 7888 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7889 # Fake it for dumpbin and say T for any non-static function 7890 # and D for any global variable. 7891 # Also find C++ and __fastcall symbols from MSVC++, 7892 # which start with @ or ?. 7893 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7894" {last_section=section; section=\$ 3};"\ 7895" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7896" \$ 0!~/External *\|/{next};"\ 7897" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7898" {if(hide[section]) next};"\ 7899" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 7900" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 7901" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 7902" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 7903" ' prfx=^$ac_symprfx" 7904 else 7905 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7906 fi 7907 7908 # Check to see that the pipe works correctly. 7909 pipe_works=no 7910 7911 rm -f conftest* 7912 cat > conftest.$ac_ext <<_LT_EOF 7913#ifdef __cplusplus 7914extern "C" { 7915#endif 7916char nm_test_var; 7917void nm_test_func(void); 7918void nm_test_func(void){} 7919#ifdef __cplusplus 7920} 7921#endif 7922int main(){nm_test_var='a';nm_test_func();return(0);} 7923_LT_EOF 7924 7925 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7926 (eval $ac_compile) 2>&5 7927 ac_status=$? 7928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7929 test $ac_status = 0; }; then 7930 # Now try to grab the symbols. 7931 nlist=conftest.nm 7932 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 7933 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 7934 ac_status=$? 7935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7936 test $ac_status = 0; } && test -s "$nlist"; then 7937 # Try sorting and uniquifying the output. 7938 if sort "$nlist" | uniq > "$nlist"T; then 7939 mv -f "$nlist"T "$nlist" 7940 else 7941 rm -f "$nlist"T 7942 fi 7943 7944 # Make sure that we snagged all the symbols we need. 7945 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7946 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7947 cat <<_LT_EOF > conftest.$ac_ext 7948#ifdef __cplusplus 7949extern "C" { 7950#endif 7951 7952_LT_EOF 7953 # Now generate the symbol file. 7954 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7955 7956 cat <<_LT_EOF >> conftest.$ac_ext 7957 7958/* The mapping between symbol names and symbols. */ 7959const struct { 7960 const char *name; 7961 void *address; 7962} 7963lt__PROGRAM__LTX_preloaded_symbols[] = 7964{ 7965 { "@PROGRAM@", (void *) 0 }, 7966_LT_EOF 7967 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7968 cat <<\_LT_EOF >> conftest.$ac_ext 7969 {0, (void *) 0} 7970}; 7971 7972/* This works around a problem in FreeBSD linker */ 7973#ifdef FREEBSD_WORKAROUND 7974static const void *lt_preloaded_setup() { 7975 return lt__PROGRAM__LTX_preloaded_symbols; 7976} 7977#endif 7978 7979#ifdef __cplusplus 7980} 7981#endif 7982_LT_EOF 7983 # Now try linking the two files. 7984 mv conftest.$ac_objext conftstm.$ac_objext 7985 lt_save_LIBS="$LIBS" 7986 lt_save_CFLAGS="$CFLAGS" 7987 LIBS="conftstm.$ac_objext" 7988 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7989 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7990 (eval $ac_link) 2>&5 7991 ac_status=$? 7992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7993 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 7994 pipe_works=yes 7995 fi 7996 LIBS="$lt_save_LIBS" 7997 CFLAGS="$lt_save_CFLAGS" 7998 else 7999 echo "cannot find nm_test_func in $nlist" >&5 8000 fi 8001 else 8002 echo "cannot find nm_test_var in $nlist" >&5 8003 fi 8004 else 8005 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 8006 fi 8007 else 8008 echo "$progname: failed program was:" >&5 8009 cat conftest.$ac_ext >&5 8010 fi 8011 rm -rf conftest* conftst* 8012 8013 # Do not use the global_symbol_pipe unless it works. 8014 if test "$pipe_works" = yes; then 8015 break 8016 else 8017 lt_cv_sys_global_symbol_pipe= 8018 fi 8019done 8020 8021fi 8022 8023if test -z "$lt_cv_sys_global_symbol_pipe"; then 8024 lt_cv_sys_global_symbol_to_cdecl= 8025fi 8026if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 8028$as_echo "failed" >&6; } 8029else 8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 8031$as_echo "ok" >&6; } 8032fi 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055# Check whether --enable-libtool-lock was given. 8056if test "${enable_libtool_lock+set}" = set; then : 8057 enableval=$enable_libtool_lock; 8058fi 8059 8060test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 8061 8062# Some flags need to be propagated to the compiler or linker for good 8063# libtool support. 8064case $host in 8065ia64-*-hpux*) 8066 # Find out which ABI we are using. 8067 echo 'int i;' > conftest.$ac_ext 8068 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8069 (eval $ac_compile) 2>&5 8070 ac_status=$? 8071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8072 test $ac_status = 0; }; then 8073 case `/usr/bin/file conftest.$ac_objext` in 8074 *ELF-32*) 8075 HPUX_IA64_MODE="32" 8076 ;; 8077 *ELF-64*) 8078 HPUX_IA64_MODE="64" 8079 ;; 8080 esac 8081 fi 8082 rm -rf conftest* 8083 ;; 8084*-*-irix6*) 8085 # Find out which ABI we are using. 8086 echo '#line 8086 "configure"' > conftest.$ac_ext 8087 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8088 (eval $ac_compile) 2>&5 8089 ac_status=$? 8090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8091 test $ac_status = 0; }; then 8092 if test "$lt_cv_prog_gnu_ld" = yes; then 8093 case `/usr/bin/file conftest.$ac_objext` in 8094 *32-bit*) 8095 LD="${LD-ld} -melf32bsmip" 8096 ;; 8097 *N32*) 8098 LD="${LD-ld} -melf32bmipn32" 8099 ;; 8100 *64-bit*) 8101 LD="${LD-ld} -melf64bmip" 8102 ;; 8103 esac 8104 else 8105 case `/usr/bin/file conftest.$ac_objext` in 8106 *32-bit*) 8107 LD="${LD-ld} -32" 8108 ;; 8109 *N32*) 8110 LD="${LD-ld} -n32" 8111 ;; 8112 *64-bit*) 8113 LD="${LD-ld} -64" 8114 ;; 8115 esac 8116 fi 8117 fi 8118 rm -rf conftest* 8119 ;; 8120 8121x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 8122s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 8123 # Find out which ABI we are using. 8124 echo 'int i;' > conftest.$ac_ext 8125 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8126 (eval $ac_compile) 2>&5 8127 ac_status=$? 8128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8129 test $ac_status = 0; }; then 8130 case `/usr/bin/file conftest.o` in 8131 *32-bit*) 8132 case $host in 8133 x86_64-*kfreebsd*-gnu) 8134 LD="${LD-ld} -m elf_i386_fbsd" 8135 ;; 8136 x86_64-*linux*) 8137 LD="${LD-ld} -m elf_i386" 8138 ;; 8139 ppc64-*linux*|powerpc64-*linux*) 8140 LD="${LD-ld} -m elf32ppclinux" 8141 ;; 8142 s390x-*linux*) 8143 LD="${LD-ld} -m elf_s390" 8144 ;; 8145 sparc64-*linux*) 8146 LD="${LD-ld} -m elf32_sparc" 8147 ;; 8148 esac 8149 ;; 8150 *64-bit*) 8151 case $host in 8152 x86_64-*kfreebsd*-gnu) 8153 LD="${LD-ld} -m elf_x86_64_fbsd" 8154 ;; 8155 x86_64-*linux*) 8156 LD="${LD-ld} -m elf_x86_64" 8157 ;; 8158 ppc*-*linux*|powerpc*-*linux*) 8159 LD="${LD-ld} -m elf64ppc" 8160 ;; 8161 s390*-*linux*|s390*-*tpf*) 8162 LD="${LD-ld} -m elf64_s390" 8163 ;; 8164 sparc*-*linux*) 8165 LD="${LD-ld} -m elf64_sparc" 8166 ;; 8167 esac 8168 ;; 8169 esac 8170 fi 8171 rm -rf conftest* 8172 ;; 8173 8174*-*-sco3.2v5*) 8175 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 8176 SAVE_CFLAGS="$CFLAGS" 8177 CFLAGS="$CFLAGS -belf" 8178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 8179$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 8180if test "${lt_cv_cc_needs_belf+set}" = set; then : 8181 $as_echo_n "(cached) " >&6 8182else 8183 ac_ext=c 8184ac_cpp='$CPP $CPPFLAGS' 8185ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8186ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8187ac_compiler_gnu=$ac_cv_c_compiler_gnu 8188 8189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8190/* end confdefs.h. */ 8191 8192int 8193main () 8194{ 8195 8196 ; 8197 return 0; 8198} 8199_ACEOF 8200if ac_fn_c_try_link "$LINENO"; then : 8201 lt_cv_cc_needs_belf=yes 8202else 8203 lt_cv_cc_needs_belf=no 8204fi 8205rm -f core conftest.err conftest.$ac_objext \ 8206 conftest$ac_exeext conftest.$ac_ext 8207 ac_ext=c 8208ac_cpp='$CPP $CPPFLAGS' 8209ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8210ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8211ac_compiler_gnu=$ac_cv_c_compiler_gnu 8212 8213fi 8214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8215$as_echo "$lt_cv_cc_needs_belf" >&6; } 8216 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 8217 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8218 CFLAGS="$SAVE_CFLAGS" 8219 fi 8220 ;; 8221sparc*-*solaris*) 8222 # Find out which ABI we are using. 8223 echo 'int i;' > conftest.$ac_ext 8224 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8225 (eval $ac_compile) 2>&5 8226 ac_status=$? 8227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8228 test $ac_status = 0; }; then 8229 case `/usr/bin/file conftest.o` in 8230 *64-bit*) 8231 case $lt_cv_prog_gnu_ld in 8232 yes*) LD="${LD-ld} -m elf64_sparc" ;; 8233 *) 8234 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8235 LD="${LD-ld} -64" 8236 fi 8237 ;; 8238 esac 8239 ;; 8240 esac 8241 fi 8242 rm -rf conftest* 8243 ;; 8244esac 8245 8246need_locks="$enable_libtool_lock" 8247 8248 8249 case $host_os in 8250 rhapsody* | darwin*) 8251 if test -n "$ac_tool_prefix"; then 8252 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8253set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8255$as_echo_n "checking for $ac_word... " >&6; } 8256if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : 8257 $as_echo_n "(cached) " >&6 8258else 8259 if test -n "$DSYMUTIL"; then 8260 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8261else 8262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8263for as_dir in $PATH 8264do 8265 IFS=$as_save_IFS 8266 test -z "$as_dir" && as_dir=. 8267 for ac_exec_ext in '' $ac_executable_extensions; do 8268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8269 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8271 break 2 8272 fi 8273done 8274 done 8275IFS=$as_save_IFS 8276 8277fi 8278fi 8279DSYMUTIL=$ac_cv_prog_DSYMUTIL 8280if test -n "$DSYMUTIL"; then 8281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8282$as_echo "$DSYMUTIL" >&6; } 8283else 8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8285$as_echo "no" >&6; } 8286fi 8287 8288 8289fi 8290if test -z "$ac_cv_prog_DSYMUTIL"; then 8291 ac_ct_DSYMUTIL=$DSYMUTIL 8292 # Extract the first word of "dsymutil", so it can be a program name with args. 8293set dummy dsymutil; ac_word=$2 8294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8295$as_echo_n "checking for $ac_word... " >&6; } 8296if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : 8297 $as_echo_n "(cached) " >&6 8298else 8299 if test -n "$ac_ct_DSYMUTIL"; then 8300 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8301else 8302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8303for as_dir in $PATH 8304do 8305 IFS=$as_save_IFS 8306 test -z "$as_dir" && as_dir=. 8307 for ac_exec_ext in '' $ac_executable_extensions; do 8308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8309 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8311 break 2 8312 fi 8313done 8314 done 8315IFS=$as_save_IFS 8316 8317fi 8318fi 8319ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8320if test -n "$ac_ct_DSYMUTIL"; then 8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8322$as_echo "$ac_ct_DSYMUTIL" >&6; } 8323else 8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8325$as_echo "no" >&6; } 8326fi 8327 8328 if test "x$ac_ct_DSYMUTIL" = x; then 8329 DSYMUTIL=":" 8330 else 8331 case $cross_compiling:$ac_tool_warned in 8332yes:) 8333{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8334$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8335ac_tool_warned=yes ;; 8336esac 8337 DSYMUTIL=$ac_ct_DSYMUTIL 8338 fi 8339else 8340 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8341fi 8342 8343 if test -n "$ac_tool_prefix"; then 8344 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8345set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8347$as_echo_n "checking for $ac_word... " >&6; } 8348if test "${ac_cv_prog_NMEDIT+set}" = set; then : 8349 $as_echo_n "(cached) " >&6 8350else 8351 if test -n "$NMEDIT"; then 8352 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8353else 8354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8355for as_dir in $PATH 8356do 8357 IFS=$as_save_IFS 8358 test -z "$as_dir" && as_dir=. 8359 for ac_exec_ext in '' $ac_executable_extensions; do 8360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8361 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8363 break 2 8364 fi 8365done 8366 done 8367IFS=$as_save_IFS 8368 8369fi 8370fi 8371NMEDIT=$ac_cv_prog_NMEDIT 8372if test -n "$NMEDIT"; then 8373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8374$as_echo "$NMEDIT" >&6; } 8375else 8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8377$as_echo "no" >&6; } 8378fi 8379 8380 8381fi 8382if test -z "$ac_cv_prog_NMEDIT"; then 8383 ac_ct_NMEDIT=$NMEDIT 8384 # Extract the first word of "nmedit", so it can be a program name with args. 8385set dummy nmedit; ac_word=$2 8386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8387$as_echo_n "checking for $ac_word... " >&6; } 8388if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : 8389 $as_echo_n "(cached) " >&6 8390else 8391 if test -n "$ac_ct_NMEDIT"; then 8392 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8393else 8394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8395for as_dir in $PATH 8396do 8397 IFS=$as_save_IFS 8398 test -z "$as_dir" && as_dir=. 8399 for ac_exec_ext in '' $ac_executable_extensions; do 8400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8401 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8403 break 2 8404 fi 8405done 8406 done 8407IFS=$as_save_IFS 8408 8409fi 8410fi 8411ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8412if test -n "$ac_ct_NMEDIT"; then 8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8414$as_echo "$ac_ct_NMEDIT" >&6; } 8415else 8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8417$as_echo "no" >&6; } 8418fi 8419 8420 if test "x$ac_ct_NMEDIT" = x; then 8421 NMEDIT=":" 8422 else 8423 case $cross_compiling:$ac_tool_warned in 8424yes:) 8425{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8426$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8427ac_tool_warned=yes ;; 8428esac 8429 NMEDIT=$ac_ct_NMEDIT 8430 fi 8431else 8432 NMEDIT="$ac_cv_prog_NMEDIT" 8433fi 8434 8435 if test -n "$ac_tool_prefix"; then 8436 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8437set dummy ${ac_tool_prefix}lipo; ac_word=$2 8438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8439$as_echo_n "checking for $ac_word... " >&6; } 8440if test "${ac_cv_prog_LIPO+set}" = set; then : 8441 $as_echo_n "(cached) " >&6 8442else 8443 if test -n "$LIPO"; then 8444 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8445else 8446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8447for as_dir in $PATH 8448do 8449 IFS=$as_save_IFS 8450 test -z "$as_dir" && as_dir=. 8451 for ac_exec_ext in '' $ac_executable_extensions; do 8452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8453 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8455 break 2 8456 fi 8457done 8458 done 8459IFS=$as_save_IFS 8460 8461fi 8462fi 8463LIPO=$ac_cv_prog_LIPO 8464if test -n "$LIPO"; then 8465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8466$as_echo "$LIPO" >&6; } 8467else 8468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8469$as_echo "no" >&6; } 8470fi 8471 8472 8473fi 8474if test -z "$ac_cv_prog_LIPO"; then 8475 ac_ct_LIPO=$LIPO 8476 # Extract the first word of "lipo", so it can be a program name with args. 8477set dummy lipo; ac_word=$2 8478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8479$as_echo_n "checking for $ac_word... " >&6; } 8480if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : 8481 $as_echo_n "(cached) " >&6 8482else 8483 if test -n "$ac_ct_LIPO"; then 8484 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8485else 8486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8487for as_dir in $PATH 8488do 8489 IFS=$as_save_IFS 8490 test -z "$as_dir" && as_dir=. 8491 for ac_exec_ext in '' $ac_executable_extensions; do 8492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8493 ac_cv_prog_ac_ct_LIPO="lipo" 8494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8495 break 2 8496 fi 8497done 8498 done 8499IFS=$as_save_IFS 8500 8501fi 8502fi 8503ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8504if test -n "$ac_ct_LIPO"; then 8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8506$as_echo "$ac_ct_LIPO" >&6; } 8507else 8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8509$as_echo "no" >&6; } 8510fi 8511 8512 if test "x$ac_ct_LIPO" = x; then 8513 LIPO=":" 8514 else 8515 case $cross_compiling:$ac_tool_warned in 8516yes:) 8517{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8518$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8519ac_tool_warned=yes ;; 8520esac 8521 LIPO=$ac_ct_LIPO 8522 fi 8523else 8524 LIPO="$ac_cv_prog_LIPO" 8525fi 8526 8527 if test -n "$ac_tool_prefix"; then 8528 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8529set dummy ${ac_tool_prefix}otool; ac_word=$2 8530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8531$as_echo_n "checking for $ac_word... " >&6; } 8532if test "${ac_cv_prog_OTOOL+set}" = set; then : 8533 $as_echo_n "(cached) " >&6 8534else 8535 if test -n "$OTOOL"; then 8536 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8537else 8538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8539for as_dir in $PATH 8540do 8541 IFS=$as_save_IFS 8542 test -z "$as_dir" && as_dir=. 8543 for ac_exec_ext in '' $ac_executable_extensions; do 8544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8545 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8547 break 2 8548 fi 8549done 8550 done 8551IFS=$as_save_IFS 8552 8553fi 8554fi 8555OTOOL=$ac_cv_prog_OTOOL 8556if test -n "$OTOOL"; then 8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8558$as_echo "$OTOOL" >&6; } 8559else 8560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8561$as_echo "no" >&6; } 8562fi 8563 8564 8565fi 8566if test -z "$ac_cv_prog_OTOOL"; then 8567 ac_ct_OTOOL=$OTOOL 8568 # Extract the first word of "otool", so it can be a program name with args. 8569set dummy otool; ac_word=$2 8570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8571$as_echo_n "checking for $ac_word... " >&6; } 8572if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : 8573 $as_echo_n "(cached) " >&6 8574else 8575 if test -n "$ac_ct_OTOOL"; then 8576 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8577else 8578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8579for as_dir in $PATH 8580do 8581 IFS=$as_save_IFS 8582 test -z "$as_dir" && as_dir=. 8583 for ac_exec_ext in '' $ac_executable_extensions; do 8584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8585 ac_cv_prog_ac_ct_OTOOL="otool" 8586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8587 break 2 8588 fi 8589done 8590 done 8591IFS=$as_save_IFS 8592 8593fi 8594fi 8595ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8596if test -n "$ac_ct_OTOOL"; then 8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8598$as_echo "$ac_ct_OTOOL" >&6; } 8599else 8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8601$as_echo "no" >&6; } 8602fi 8603 8604 if test "x$ac_ct_OTOOL" = x; then 8605 OTOOL=":" 8606 else 8607 case $cross_compiling:$ac_tool_warned in 8608yes:) 8609{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8610$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8611ac_tool_warned=yes ;; 8612esac 8613 OTOOL=$ac_ct_OTOOL 8614 fi 8615else 8616 OTOOL="$ac_cv_prog_OTOOL" 8617fi 8618 8619 if test -n "$ac_tool_prefix"; then 8620 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8621set dummy ${ac_tool_prefix}otool64; ac_word=$2 8622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8623$as_echo_n "checking for $ac_word... " >&6; } 8624if test "${ac_cv_prog_OTOOL64+set}" = set; then : 8625 $as_echo_n "(cached) " >&6 8626else 8627 if test -n "$OTOOL64"; then 8628 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8629else 8630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8631for as_dir in $PATH 8632do 8633 IFS=$as_save_IFS 8634 test -z "$as_dir" && as_dir=. 8635 for ac_exec_ext in '' $ac_executable_extensions; do 8636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8637 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8639 break 2 8640 fi 8641done 8642 done 8643IFS=$as_save_IFS 8644 8645fi 8646fi 8647OTOOL64=$ac_cv_prog_OTOOL64 8648if test -n "$OTOOL64"; then 8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8650$as_echo "$OTOOL64" >&6; } 8651else 8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8653$as_echo "no" >&6; } 8654fi 8655 8656 8657fi 8658if test -z "$ac_cv_prog_OTOOL64"; then 8659 ac_ct_OTOOL64=$OTOOL64 8660 # Extract the first word of "otool64", so it can be a program name with args. 8661set dummy otool64; ac_word=$2 8662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8663$as_echo_n "checking for $ac_word... " >&6; } 8664if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : 8665 $as_echo_n "(cached) " >&6 8666else 8667 if test -n "$ac_ct_OTOOL64"; then 8668 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8669else 8670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8671for as_dir in $PATH 8672do 8673 IFS=$as_save_IFS 8674 test -z "$as_dir" && as_dir=. 8675 for ac_exec_ext in '' $ac_executable_extensions; do 8676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8677 ac_cv_prog_ac_ct_OTOOL64="otool64" 8678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8679 break 2 8680 fi 8681done 8682 done 8683IFS=$as_save_IFS 8684 8685fi 8686fi 8687ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8688if test -n "$ac_ct_OTOOL64"; then 8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8690$as_echo "$ac_ct_OTOOL64" >&6; } 8691else 8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8693$as_echo "no" >&6; } 8694fi 8695 8696 if test "x$ac_ct_OTOOL64" = x; then 8697 OTOOL64=":" 8698 else 8699 case $cross_compiling:$ac_tool_warned in 8700yes:) 8701{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8702$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8703ac_tool_warned=yes ;; 8704esac 8705 OTOOL64=$ac_ct_OTOOL64 8706 fi 8707else 8708 OTOOL64="$ac_cv_prog_OTOOL64" 8709fi 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8738$as_echo_n "checking for -single_module linker flag... " >&6; } 8739if test "${lt_cv_apple_cc_single_mod+set}" = set; then : 8740 $as_echo_n "(cached) " >&6 8741else 8742 lt_cv_apple_cc_single_mod=no 8743 if test -z "${LT_MULTI_MODULE}"; then 8744 # By default we will add the -single_module flag. You can override 8745 # by either setting the environment variable LT_MULTI_MODULE 8746 # non-empty at configure time, or by adding -multi_module to the 8747 # link flags. 8748 rm -rf libconftest.dylib* 8749 echo "int foo(void){return 1;}" > conftest.c 8750 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8751-dynamiclib -Wl,-single_module conftest.c" >&5 8752 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8753 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8754 _lt_result=$? 8755 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 8756 lt_cv_apple_cc_single_mod=yes 8757 else 8758 cat conftest.err >&5 8759 fi 8760 rm -rf libconftest.dylib* 8761 rm -f conftest.* 8762 fi 8763fi 8764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8765$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8767$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8768if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : 8769 $as_echo_n "(cached) " >&6 8770else 8771 lt_cv_ld_exported_symbols_list=no 8772 save_LDFLAGS=$LDFLAGS 8773 echo "_main" > conftest.sym 8774 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8776/* end confdefs.h. */ 8777 8778int 8779main () 8780{ 8781 8782 ; 8783 return 0; 8784} 8785_ACEOF 8786if ac_fn_c_try_link "$LINENO"; then : 8787 lt_cv_ld_exported_symbols_list=yes 8788else 8789 lt_cv_ld_exported_symbols_list=no 8790fi 8791rm -f core conftest.err conftest.$ac_objext \ 8792 conftest$ac_exeext conftest.$ac_ext 8793 LDFLAGS="$save_LDFLAGS" 8794 8795fi 8796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8797$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8798 case $host_os in 8799 rhapsody* | darwin1.[012]) 8800 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 8801 darwin1.*) 8802 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8803 darwin*) # darwin 5.x on 8804 # if running on 10.5 or later, the deployment target defaults 8805 # to the OS version, if on x86, and 10.4, the deployment 8806 # target defaults to 10.4. Don't you love it? 8807 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8808 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8809 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8810 10.[012]*) 8811 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8812 10.*) 8813 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8814 esac 8815 ;; 8816 esac 8817 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 8818 _lt_dar_single_mod='$single_module' 8819 fi 8820 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 8821 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 8822 else 8823 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 8824 fi 8825 if test "$DSYMUTIL" != ":"; then 8826 _lt_dsymutil='~$DSYMUTIL $lib || :' 8827 else 8828 _lt_dsymutil= 8829 fi 8830 ;; 8831 esac 8832 8833for ac_header in dlfcn.h 8834do : 8835 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8836" 8837if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 8838 cat >>confdefs.h <<_ACEOF 8839#define HAVE_DLFCN_H 1 8840_ACEOF 8841 8842fi 8843 8844done 8845 8846 8847 8848# Set options 8849 8850 8851 8852 enable_dlopen=no 8853 8854 8855 8856 # Check whether --enable-shared was given. 8857if test "${enable_shared+set}" = set; then : 8858 enableval=$enable_shared; p=${PACKAGE-default} 8859 case $enableval in 8860 yes) enable_shared=yes ;; 8861 no) enable_shared=no ;; 8862 *) 8863 enable_shared=no 8864 # Look at the argument we got. We use all the common list separators. 8865 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8866 for pkg in $enableval; do 8867 IFS="$lt_save_ifs" 8868 if test "X$pkg" = "X$p"; then 8869 enable_shared=yes 8870 fi 8871 done 8872 IFS="$lt_save_ifs" 8873 ;; 8874 esac 8875else 8876 enable_shared=yes 8877fi 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 # Check whether --enable-static was given. 8888if test "${enable_static+set}" = set; then : 8889 enableval=$enable_static; p=${PACKAGE-default} 8890 case $enableval in 8891 yes) enable_static=yes ;; 8892 no) enable_static=no ;; 8893 *) 8894 enable_static=no 8895 # Look at the argument we got. We use all the common list separators. 8896 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8897 for pkg in $enableval; do 8898 IFS="$lt_save_ifs" 8899 if test "X$pkg" = "X$p"; then 8900 enable_static=yes 8901 fi 8902 done 8903 IFS="$lt_save_ifs" 8904 ;; 8905 esac 8906else 8907 enable_static=yes 8908fi 8909 8910 8911 8912 8913 8914 8915 8916 8917 8918 8919# Check whether --with-pic was given. 8920if test "${with_pic+set}" = set; then : 8921 withval=$with_pic; pic_mode="$withval" 8922else 8923 pic_mode=default 8924fi 8925 8926 8927test -z "$pic_mode" && pic_mode=default 8928 8929 8930 8931 8932 8933 8934 8935 # Check whether --enable-fast-install was given. 8936if test "${enable_fast_install+set}" = set; then : 8937 enableval=$enable_fast_install; p=${PACKAGE-default} 8938 case $enableval in 8939 yes) enable_fast_install=yes ;; 8940 no) enable_fast_install=no ;; 8941 *) 8942 enable_fast_install=no 8943 # Look at the argument we got. We use all the common list separators. 8944 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8945 for pkg in $enableval; do 8946 IFS="$lt_save_ifs" 8947 if test "X$pkg" = "X$p"; then 8948 enable_fast_install=yes 8949 fi 8950 done 8951 IFS="$lt_save_ifs" 8952 ;; 8953 esac 8954else 8955 enable_fast_install=yes 8956fi 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968# This can be used to rebuild libtool when needed 8969LIBTOOL_DEPS="$ltmain" 8970 8971# Always use our own libtool. 8972LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8973 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998test -z "$LN_S" && LN_S="ln -s" 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013if test -n "${ZSH_VERSION+set}" ; then 9014 setopt NO_GLOB_SUBST 9015fi 9016 9017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9018$as_echo_n "checking for objdir... " >&6; } 9019if test "${lt_cv_objdir+set}" = set; then : 9020 $as_echo_n "(cached) " >&6 9021else 9022 rm -f .libs 2>/dev/null 9023mkdir .libs 2>/dev/null 9024if test -d .libs; then 9025 lt_cv_objdir=.libs 9026else 9027 # MS-DOS does not allow filenames that begin with a dot. 9028 lt_cv_objdir=_libs 9029fi 9030rmdir .libs 2>/dev/null 9031fi 9032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9033$as_echo "$lt_cv_objdir" >&6; } 9034objdir=$lt_cv_objdir 9035 9036 9037 9038 9039 9040cat >>confdefs.h <<_ACEOF 9041#define LT_OBJDIR "$lt_cv_objdir/" 9042_ACEOF 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052 9053 9054 9055 9056 9057 9058 9059 9060case $host_os in 9061aix3*) 9062 # AIX sometimes has problems with the GCC collect2 program. For some 9063 # reason, if we set the COLLECT_NAMES environment variable, the problems 9064 # vanish in a puff of smoke. 9065 if test "X${COLLECT_NAMES+set}" != Xset; then 9066 COLLECT_NAMES= 9067 export COLLECT_NAMES 9068 fi 9069 ;; 9070esac 9071 9072# Sed substitution that helps us do robust quoting. It backslashifies 9073# metacharacters that are still active within double-quoted strings. 9074sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 9075 9076# Same as above, but do not quote variable references. 9077double_quote_subst='s/\(["`\\]\)/\\\1/g' 9078 9079# Sed substitution to delay expansion of an escaped shell variable in a 9080# double_quote_subst'ed string. 9081delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 9082 9083# Sed substitution to delay expansion of an escaped single quote. 9084delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 9085 9086# Sed substitution to avoid accidental globbing in evaled expressions 9087no_glob_subst='s/\*/\\\*/g' 9088 9089# Global variables: 9090ofile=libtool 9091can_build_shared=yes 9092 9093# All known linkers require a `.a' archive for static linking (except MSVC, 9094# which needs '.lib'). 9095libext=a 9096 9097with_gnu_ld="$lt_cv_prog_gnu_ld" 9098 9099old_CC="$CC" 9100old_CFLAGS="$CFLAGS" 9101 9102# Set sane defaults for various variables 9103test -z "$CC" && CC=cc 9104test -z "$LTCC" && LTCC=$CC 9105test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9106test -z "$LD" && LD=ld 9107test -z "$ac_objext" && ac_objext=o 9108 9109for cc_temp in $compiler""; do 9110 case $cc_temp in 9111 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9112 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9113 \-*) ;; 9114 *) break;; 9115 esac 9116done 9117cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 9118 9119 9120# Only perform the check for file, if the check method requires it 9121test -z "$MAGIC_CMD" && MAGIC_CMD=file 9122case $deplibs_check_method in 9123file_magic*) 9124 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9126$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 9127if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 9128 $as_echo_n "(cached) " >&6 9129else 9130 case $MAGIC_CMD in 9131[\\/*] | ?:[\\/]*) 9132 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 9133 ;; 9134*) 9135 lt_save_MAGIC_CMD="$MAGIC_CMD" 9136 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9137 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9138 for ac_dir in $ac_dummy; do 9139 IFS="$lt_save_ifs" 9140 test -z "$ac_dir" && ac_dir=. 9141 if test -f $ac_dir/${ac_tool_prefix}file; then 9142 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 9143 if test -n "$file_magic_test_file"; then 9144 case $deplibs_check_method in 9145 "file_magic "*) 9146 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9147 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9148 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9149 $EGREP "$file_magic_regex" > /dev/null; then 9150 : 9151 else 9152 cat <<_LT_EOF 1>&2 9153 9154*** Warning: the command libtool uses to detect shared libraries, 9155*** $file_magic_cmd, produces output that libtool cannot recognize. 9156*** The result is that libtool may fail to recognize shared libraries 9157*** as such. This will affect the creation of libtool libraries that 9158*** depend on shared libraries, but programs linked with such libtool 9159*** libraries will work regardless of this problem. Nevertheless, you 9160*** may want to report the problem to your system manager and/or to 9161*** bug-libtool@gnu.org 9162 9163_LT_EOF 9164 fi ;; 9165 esac 9166 fi 9167 break 9168 fi 9169 done 9170 IFS="$lt_save_ifs" 9171 MAGIC_CMD="$lt_save_MAGIC_CMD" 9172 ;; 9173esac 9174fi 9175 9176MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9177if test -n "$MAGIC_CMD"; then 9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9179$as_echo "$MAGIC_CMD" >&6; } 9180else 9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9182$as_echo "no" >&6; } 9183fi 9184 9185 9186 9187 9188 9189if test -z "$lt_cv_path_MAGIC_CMD"; then 9190 if test -n "$ac_tool_prefix"; then 9191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9192$as_echo_n "checking for file... " >&6; } 9193if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 9194 $as_echo_n "(cached) " >&6 9195else 9196 case $MAGIC_CMD in 9197[\\/*] | ?:[\\/]*) 9198 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 9199 ;; 9200*) 9201 lt_save_MAGIC_CMD="$MAGIC_CMD" 9202 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9203 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9204 for ac_dir in $ac_dummy; do 9205 IFS="$lt_save_ifs" 9206 test -z "$ac_dir" && ac_dir=. 9207 if test -f $ac_dir/file; then 9208 lt_cv_path_MAGIC_CMD="$ac_dir/file" 9209 if test -n "$file_magic_test_file"; then 9210 case $deplibs_check_method in 9211 "file_magic "*) 9212 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9213 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9214 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9215 $EGREP "$file_magic_regex" > /dev/null; then 9216 : 9217 else 9218 cat <<_LT_EOF 1>&2 9219 9220*** Warning: the command libtool uses to detect shared libraries, 9221*** $file_magic_cmd, produces output that libtool cannot recognize. 9222*** The result is that libtool may fail to recognize shared libraries 9223*** as such. This will affect the creation of libtool libraries that 9224*** depend on shared libraries, but programs linked with such libtool 9225*** libraries will work regardless of this problem. Nevertheless, you 9226*** may want to report the problem to your system manager and/or to 9227*** bug-libtool@gnu.org 9228 9229_LT_EOF 9230 fi ;; 9231 esac 9232 fi 9233 break 9234 fi 9235 done 9236 IFS="$lt_save_ifs" 9237 MAGIC_CMD="$lt_save_MAGIC_CMD" 9238 ;; 9239esac 9240fi 9241 9242MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9243if test -n "$MAGIC_CMD"; then 9244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9245$as_echo "$MAGIC_CMD" >&6; } 9246else 9247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9248$as_echo "no" >&6; } 9249fi 9250 9251 9252 else 9253 MAGIC_CMD=: 9254 fi 9255fi 9256 9257 fi 9258 ;; 9259esac 9260 9261# Use C for the default configuration in the libtool script 9262 9263lt_save_CC="$CC" 9264ac_ext=c 9265ac_cpp='$CPP $CPPFLAGS' 9266ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9267ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9268ac_compiler_gnu=$ac_cv_c_compiler_gnu 9269 9270 9271# Source file extension for C test sources. 9272ac_ext=c 9273 9274# Object file extension for compiled C test sources. 9275objext=o 9276objext=$objext 9277 9278# Code to be used in simple compile tests 9279lt_simple_compile_test_code="int some_variable = 0;" 9280 9281# Code to be used in simple link tests 9282lt_simple_link_test_code='int main(){return(0);}' 9283 9284 9285 9286 9287 9288 9289 9290# If no C compiler was specified, use CC. 9291LTCC=${LTCC-"$CC"} 9292 9293# If no C compiler flags were specified, use CFLAGS. 9294LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9295 9296# Allow CC to be a program name with arguments. 9297compiler=$CC 9298 9299# Save the default compiler, since it gets overwritten when the other 9300# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9301compiler_DEFAULT=$CC 9302 9303# save warnings/boilerplate of simple test code 9304ac_outfile=conftest.$ac_objext 9305echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9306eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9307_lt_compiler_boilerplate=`cat conftest.err` 9308$RM conftest* 9309 9310ac_outfile=conftest.$ac_objext 9311echo "$lt_simple_link_test_code" >conftest.$ac_ext 9312eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9313_lt_linker_boilerplate=`cat conftest.err` 9314$RM -r conftest* 9315 9316 9317## CAVEAT EMPTOR: 9318## There is no encapsulation within the following macros, do not change 9319## the running order or otherwise move them around unless you know exactly 9320## what you are doing... 9321if test -n "$compiler"; then 9322 9323lt_prog_compiler_no_builtin_flag= 9324 9325if test "$GCC" = yes; then 9326 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 9327 9328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9329$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9330if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 9331 $as_echo_n "(cached) " >&6 9332else 9333 lt_cv_prog_compiler_rtti_exceptions=no 9334 ac_outfile=conftest.$ac_objext 9335 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9336 lt_compiler_flag="-fno-rtti -fno-exceptions" 9337 # Insert the option either (1) after the last *FLAGS variable, or 9338 # (2) before a word containing "conftest.", or (3) at the end. 9339 # Note that $ac_compile itself does not contain backslashes and begins 9340 # with a dollar sign (not a hyphen), so the echo should work correctly. 9341 # The option is referenced via a variable to avoid confusing sed. 9342 lt_compile=`echo "$ac_compile" | $SED \ 9343 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9344 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9345 -e 's:$: $lt_compiler_flag:'` 9346 (eval echo "\"\$as_me:9346: $lt_compile\"" >&5) 9347 (eval "$lt_compile" 2>conftest.err) 9348 ac_status=$? 9349 cat conftest.err >&5 9350 echo "$as_me:9350: \$? = $ac_status" >&5 9351 if (exit $ac_status) && test -s "$ac_outfile"; then 9352 # The compiler can only warn and ignore the option if not recognized 9353 # So say no if there are warnings other than the usual output. 9354 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 9355 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9356 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9357 lt_cv_prog_compiler_rtti_exceptions=yes 9358 fi 9359 fi 9360 $RM conftest* 9361 9362fi 9363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9364$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9365 9366if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 9367 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9368else 9369 : 9370fi 9371 9372fi 9373 9374 9375 9376 9377 9378 9379 lt_prog_compiler_wl= 9380lt_prog_compiler_pic= 9381lt_prog_compiler_static= 9382 9383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9384$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9385 9386 if test "$GCC" = yes; then 9387 lt_prog_compiler_wl='-Wl,' 9388 lt_prog_compiler_static='-static' 9389 9390 case $host_os in 9391 aix*) 9392 # All AIX code is PIC. 9393 if test "$host_cpu" = ia64; then 9394 # AIX 5 now supports IA64 processor 9395 lt_prog_compiler_static='-Bstatic' 9396 fi 9397 ;; 9398 9399 amigaos*) 9400 case $host_cpu in 9401 powerpc) 9402 # see comment about AmigaOS4 .so support 9403 lt_prog_compiler_pic='-fPIC' 9404 ;; 9405 m68k) 9406 # FIXME: we need at least 68020 code to build shared libraries, but 9407 # adding the `-m68020' flag to GCC prevents building anything better, 9408 # like `-m68040'. 9409 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9410 ;; 9411 esac 9412 ;; 9413 9414 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9415 # PIC is the default for these OSes. 9416 ;; 9417 9418 mingw* | cygwin* | pw32* | os2* | cegcc*) 9419 # This hack is so that the source file can tell whether it is being 9420 # built for inclusion in a dll (and should export symbols for example). 9421 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9422 # (--disable-auto-import) libraries 9423 lt_prog_compiler_pic='-DDLL_EXPORT' 9424 ;; 9425 9426 darwin* | rhapsody*) 9427 # PIC is the default on this platform 9428 # Common symbols not allowed in MH_DYLIB files 9429 lt_prog_compiler_pic='-fno-common' 9430 ;; 9431 9432 hpux*) 9433 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9434 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9435 # sets the default TLS model and affects inlining. 9436 case $host_cpu in 9437 hppa*64*) 9438 # +Z the default 9439 ;; 9440 *) 9441 lt_prog_compiler_pic='-fPIC' 9442 ;; 9443 esac 9444 ;; 9445 9446 interix[3-9]*) 9447 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9448 # Instead, we relocate shared libraries at runtime. 9449 ;; 9450 9451 msdosdjgpp*) 9452 # Just because we use GCC doesn't mean we suddenly get shared libraries 9453 # on systems that don't support them. 9454 lt_prog_compiler_can_build_shared=no 9455 enable_shared=no 9456 ;; 9457 9458 *nto* | *qnx*) 9459 # QNX uses GNU C++, but need to define -shared option too, otherwise 9460 # it will coredump. 9461 lt_prog_compiler_pic='-fPIC -shared' 9462 ;; 9463 9464 sysv4*MP*) 9465 if test -d /usr/nec; then 9466 lt_prog_compiler_pic=-Kconform_pic 9467 fi 9468 ;; 9469 9470 *) 9471 lt_prog_compiler_pic='-fPIC' 9472 ;; 9473 esac 9474 else 9475 # PORTME Check for flag to pass linker flags through the system compiler. 9476 case $host_os in 9477 aix*) 9478 lt_prog_compiler_wl='-Wl,' 9479 if test "$host_cpu" = ia64; then 9480 # AIX 5 now supports IA64 processor 9481 lt_prog_compiler_static='-Bstatic' 9482 else 9483 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9484 fi 9485 ;; 9486 9487 mingw* | cygwin* | pw32* | os2* | cegcc*) 9488 # This hack is so that the source file can tell whether it is being 9489 # built for inclusion in a dll (and should export symbols for example). 9490 lt_prog_compiler_pic='-DDLL_EXPORT' 9491 ;; 9492 9493 hpux9* | hpux10* | hpux11*) 9494 lt_prog_compiler_wl='-Wl,' 9495 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9496 # not for PA HP-UX. 9497 case $host_cpu in 9498 hppa*64*|ia64*) 9499 # +Z the default 9500 ;; 9501 *) 9502 lt_prog_compiler_pic='+Z' 9503 ;; 9504 esac 9505 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9506 lt_prog_compiler_static='${wl}-a ${wl}archive' 9507 ;; 9508 9509 irix5* | irix6* | nonstopux*) 9510 lt_prog_compiler_wl='-Wl,' 9511 # PIC (with -KPIC) is the default. 9512 lt_prog_compiler_static='-non_shared' 9513 ;; 9514 9515 linux* | k*bsd*-gnu | kopensolaris*-gnu) 9516 case $cc_basename in 9517 # old Intel for x86_64 which still supported -KPIC. 9518 ecc*) 9519 lt_prog_compiler_wl='-Wl,' 9520 lt_prog_compiler_pic='-KPIC' 9521 lt_prog_compiler_static='-static' 9522 ;; 9523 # icc used to be incompatible with GCC. 9524 # ICC 10 doesn't accept -KPIC any more. 9525 icc* | ifort*) 9526 lt_prog_compiler_wl='-Wl,' 9527 lt_prog_compiler_pic='-fPIC' 9528 lt_prog_compiler_static='-static' 9529 ;; 9530 # Lahey Fortran 8.1. 9531 lf95*) 9532 lt_prog_compiler_wl='-Wl,' 9533 lt_prog_compiler_pic='--shared' 9534 lt_prog_compiler_static='--static' 9535 ;; 9536 pgcc* | pgf77* | pgf90* | pgf95*) 9537 # Portland Group compilers (*not* the Pentium gcc compiler, 9538 # which looks to be a dead project) 9539 lt_prog_compiler_wl='-Wl,' 9540 lt_prog_compiler_pic='-fpic' 9541 lt_prog_compiler_static='-Bstatic' 9542 ;; 9543 ccc*) 9544 lt_prog_compiler_wl='-Wl,' 9545 # All Alpha code is PIC. 9546 lt_prog_compiler_static='-non_shared' 9547 ;; 9548 xl*) 9549 # IBM XL C 8.0/Fortran 10.1 on PPC 9550 lt_prog_compiler_wl='-Wl,' 9551 lt_prog_compiler_pic='-qpic' 9552 lt_prog_compiler_static='-qstaticlink' 9553 ;; 9554 *) 9555 case `$CC -V 2>&1 | sed 5q` in 9556 *Sun\ C*) 9557 # Sun C 5.9 9558 lt_prog_compiler_pic='-KPIC' 9559 lt_prog_compiler_static='-Bstatic' 9560 lt_prog_compiler_wl='-Wl,' 9561 ;; 9562 *Sun\ F*) 9563 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9564 lt_prog_compiler_pic='-KPIC' 9565 lt_prog_compiler_static='-Bstatic' 9566 lt_prog_compiler_wl='' 9567 ;; 9568 esac 9569 ;; 9570 esac 9571 ;; 9572 9573 newsos6) 9574 lt_prog_compiler_pic='-KPIC' 9575 lt_prog_compiler_static='-Bstatic' 9576 ;; 9577 9578 *nto* | *qnx*) 9579 # QNX uses GNU C++, but need to define -shared option too, otherwise 9580 # it will coredump. 9581 lt_prog_compiler_pic='-fPIC -shared' 9582 ;; 9583 9584 osf3* | osf4* | osf5*) 9585 lt_prog_compiler_wl='-Wl,' 9586 # All OSF/1 code is PIC. 9587 lt_prog_compiler_static='-non_shared' 9588 ;; 9589 9590 rdos*) 9591 lt_prog_compiler_static='-non_shared' 9592 ;; 9593 9594 solaris*) 9595 lt_prog_compiler_pic='-KPIC' 9596 lt_prog_compiler_static='-Bstatic' 9597 case $cc_basename in 9598 f77* | f90* | f95*) 9599 lt_prog_compiler_wl='-Qoption ld ';; 9600 *) 9601 lt_prog_compiler_wl='-Wl,';; 9602 esac 9603 ;; 9604 9605 sunos4*) 9606 lt_prog_compiler_wl='-Qoption ld ' 9607 lt_prog_compiler_pic='-PIC' 9608 lt_prog_compiler_static='-Bstatic' 9609 ;; 9610 9611 sysv4 | sysv4.2uw2* | sysv4.3*) 9612 lt_prog_compiler_wl='-Wl,' 9613 lt_prog_compiler_pic='-KPIC' 9614 lt_prog_compiler_static='-Bstatic' 9615 ;; 9616 9617 sysv4*MP*) 9618 if test -d /usr/nec ;then 9619 lt_prog_compiler_pic='-Kconform_pic' 9620 lt_prog_compiler_static='-Bstatic' 9621 fi 9622 ;; 9623 9624 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9625 lt_prog_compiler_wl='-Wl,' 9626 lt_prog_compiler_pic='-KPIC' 9627 lt_prog_compiler_static='-Bstatic' 9628 ;; 9629 9630 unicos*) 9631 lt_prog_compiler_wl='-Wl,' 9632 lt_prog_compiler_can_build_shared=no 9633 ;; 9634 9635 uts4*) 9636 lt_prog_compiler_pic='-pic' 9637 lt_prog_compiler_static='-Bstatic' 9638 ;; 9639 9640 *) 9641 lt_prog_compiler_can_build_shared=no 9642 ;; 9643 esac 9644 fi 9645 9646case $host_os in 9647 # For platforms which do not support PIC, -DPIC is meaningless: 9648 *djgpp*) 9649 lt_prog_compiler_pic= 9650 ;; 9651 *) 9652 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9653 ;; 9654esac 9655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 9656$as_echo "$lt_prog_compiler_pic" >&6; } 9657 9658 9659 9660 9661 9662 9663# 9664# Check to make sure the PIC flag actually works. 9665# 9666if test -n "$lt_prog_compiler_pic"; then 9667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9668$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9669if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : 9670 $as_echo_n "(cached) " >&6 9671else 9672 lt_cv_prog_compiler_pic_works=no 9673 ac_outfile=conftest.$ac_objext 9674 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9675 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 9676 # Insert the option either (1) after the last *FLAGS variable, or 9677 # (2) before a word containing "conftest.", or (3) at the end. 9678 # Note that $ac_compile itself does not contain backslashes and begins 9679 # with a dollar sign (not a hyphen), so the echo should work correctly. 9680 # The option is referenced via a variable to avoid confusing sed. 9681 lt_compile=`echo "$ac_compile" | $SED \ 9682 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9683 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9684 -e 's:$: $lt_compiler_flag:'` 9685 (eval echo "\"\$as_me:9685: $lt_compile\"" >&5) 9686 (eval "$lt_compile" 2>conftest.err) 9687 ac_status=$? 9688 cat conftest.err >&5 9689 echo "$as_me:9689: \$? = $ac_status" >&5 9690 if (exit $ac_status) && test -s "$ac_outfile"; then 9691 # The compiler can only warn and ignore the option if not recognized 9692 # So say no if there are warnings other than the usual output. 9693 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 9694 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9695 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9696 lt_cv_prog_compiler_pic_works=yes 9697 fi 9698 fi 9699 $RM conftest* 9700 9701fi 9702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9703$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9704 9705if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 9706 case $lt_prog_compiler_pic in 9707 "" | " "*) ;; 9708 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9709 esac 9710else 9711 lt_prog_compiler_pic= 9712 lt_prog_compiler_can_build_shared=no 9713fi 9714 9715fi 9716 9717 9718 9719 9720 9721 9722# 9723# Check to make sure the static flag actually works. 9724# 9725wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9727$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9728if test "${lt_cv_prog_compiler_static_works+set}" = set; then : 9729 $as_echo_n "(cached) " >&6 9730else 9731 lt_cv_prog_compiler_static_works=no 9732 save_LDFLAGS="$LDFLAGS" 9733 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9734 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9735 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9736 # The linker can only warn and ignore the option if not recognized 9737 # So say no if there are warnings 9738 if test -s conftest.err; then 9739 # Append any errors to the config.log. 9740 cat conftest.err 1>&5 9741 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 9742 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9743 if diff conftest.exp conftest.er2 >/dev/null; then 9744 lt_cv_prog_compiler_static_works=yes 9745 fi 9746 else 9747 lt_cv_prog_compiler_static_works=yes 9748 fi 9749 fi 9750 $RM -r conftest* 9751 LDFLAGS="$save_LDFLAGS" 9752 9753fi 9754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9755$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9756 9757if test x"$lt_cv_prog_compiler_static_works" = xyes; then 9758 : 9759else 9760 lt_prog_compiler_static= 9761fi 9762 9763 9764 9765 9766 9767 9768 9769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9770$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9771if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 9772 $as_echo_n "(cached) " >&6 9773else 9774 lt_cv_prog_compiler_c_o=no 9775 $RM -r conftest 2>/dev/null 9776 mkdir conftest 9777 cd conftest 9778 mkdir out 9779 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9780 9781 lt_compiler_flag="-o out/conftest2.$ac_objext" 9782 # Insert the option either (1) after the last *FLAGS variable, or 9783 # (2) before a word containing "conftest.", or (3) at the end. 9784 # Note that $ac_compile itself does not contain backslashes and begins 9785 # with a dollar sign (not a hyphen), so the echo should work correctly. 9786 lt_compile=`echo "$ac_compile" | $SED \ 9787 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9788 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9789 -e 's:$: $lt_compiler_flag:'` 9790 (eval echo "\"\$as_me:9790: $lt_compile\"" >&5) 9791 (eval "$lt_compile" 2>out/conftest.err) 9792 ac_status=$? 9793 cat out/conftest.err >&5 9794 echo "$as_me:9794: \$? = $ac_status" >&5 9795 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9796 then 9797 # The compiler can only warn and ignore the option if not recognized 9798 # So say no if there are warnings 9799 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 9800 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9801 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9802 lt_cv_prog_compiler_c_o=yes 9803 fi 9804 fi 9805 chmod u+w . 2>&5 9806 $RM conftest* 9807 # SGI C++ compiler will create directory out/ii_files/ for 9808 # template instantiation 9809 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9810 $RM out/* && rmdir out 9811 cd .. 9812 $RM -r conftest 9813 $RM conftest* 9814 9815fi 9816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9817$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9818 9819 9820 9821 9822 9823 9824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9825$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9826if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 9827 $as_echo_n "(cached) " >&6 9828else 9829 lt_cv_prog_compiler_c_o=no 9830 $RM -r conftest 2>/dev/null 9831 mkdir conftest 9832 cd conftest 9833 mkdir out 9834 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9835 9836 lt_compiler_flag="-o out/conftest2.$ac_objext" 9837 # Insert the option either (1) after the last *FLAGS variable, or 9838 # (2) before a word containing "conftest.", or (3) at the end. 9839 # Note that $ac_compile itself does not contain backslashes and begins 9840 # with a dollar sign (not a hyphen), so the echo should work correctly. 9841 lt_compile=`echo "$ac_compile" | $SED \ 9842 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9843 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9844 -e 's:$: $lt_compiler_flag:'` 9845 (eval echo "\"\$as_me:9845: $lt_compile\"" >&5) 9846 (eval "$lt_compile" 2>out/conftest.err) 9847 ac_status=$? 9848 cat out/conftest.err >&5 9849 echo "$as_me:9849: \$? = $ac_status" >&5 9850 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9851 then 9852 # The compiler can only warn and ignore the option if not recognized 9853 # So say no if there are warnings 9854 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 9855 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9856 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9857 lt_cv_prog_compiler_c_o=yes 9858 fi 9859 fi 9860 chmod u+w . 2>&5 9861 $RM conftest* 9862 # SGI C++ compiler will create directory out/ii_files/ for 9863 # template instantiation 9864 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9865 $RM out/* && rmdir out 9866 cd .. 9867 $RM -r conftest 9868 $RM conftest* 9869 9870fi 9871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9872$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9873 9874 9875 9876 9877hard_links="nottested" 9878if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9879 # do not overwrite the value of need_locks provided by the user 9880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9881$as_echo_n "checking if we can lock with hard links... " >&6; } 9882 hard_links=yes 9883 $RM conftest* 9884 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9885 touch conftest.a 9886 ln conftest.a conftest.b 2>&5 || hard_links=no 9887 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9889$as_echo "$hard_links" >&6; } 9890 if test "$hard_links" = no; then 9891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9892$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9893 need_locks=warn 9894 fi 9895else 9896 need_locks=no 9897fi 9898 9899 9900 9901 9902 9903 9904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9905$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9906 9907 runpath_var= 9908 allow_undefined_flag= 9909 always_export_symbols=no 9910 archive_cmds= 9911 archive_expsym_cmds= 9912 compiler_needs_object=no 9913 enable_shared_with_static_runtimes=no 9914 export_dynamic_flag_spec= 9915 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9916 hardcode_automatic=no 9917 hardcode_direct=no 9918 hardcode_direct_absolute=no 9919 hardcode_libdir_flag_spec= 9920 hardcode_libdir_flag_spec_ld= 9921 hardcode_libdir_separator= 9922 hardcode_minus_L=no 9923 hardcode_shlibpath_var=unsupported 9924 inherit_rpath=no 9925 link_all_deplibs=unknown 9926 module_cmds= 9927 module_expsym_cmds= 9928 old_archive_from_new_cmds= 9929 old_archive_from_expsyms_cmds= 9930 thread_safe_flag_spec= 9931 whole_archive_flag_spec= 9932 # include_expsyms should be a list of space-separated symbols to be *always* 9933 # included in the symbol list 9934 include_expsyms= 9935 # exclude_expsyms can be an extended regexp of symbols to exclude 9936 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9937 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9938 # as well as any symbol that contains `d'. 9939 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9940 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9941 # platforms (ab)use it in PIC code, but their linkers get confused if 9942 # the symbol is explicitly referenced. Since portable code cannot 9943 # rely on this symbol name, it's probably fine to never include it in 9944 # preloaded symbol tables. 9945 # Exclude shared library initialization/finalization symbols. 9946 extract_expsyms_cmds= 9947 9948 case $host_os in 9949 cygwin* | mingw* | pw32* | cegcc*) 9950 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9951 # When not using gcc, we currently assume that we are using 9952 # Microsoft Visual C++. 9953 if test "$GCC" != yes; then 9954 with_gnu_ld=no 9955 fi 9956 ;; 9957 interix*) 9958 # we just hope/assume this is gcc and not c89 (= MSVC++) 9959 with_gnu_ld=yes 9960 ;; 9961 openbsd*) 9962 with_gnu_ld=no 9963 ;; 9964 linux* | k*bsd*-gnu) 9965 link_all_deplibs=no 9966 ;; 9967 esac 9968 9969 ld_shlibs=yes 9970 if test "$with_gnu_ld" = yes; then 9971 # If archive_cmds runs LD, not CC, wlarc should be empty 9972 wlarc='${wl}' 9973 9974 # Set some defaults for GNU ld with shared library support. These 9975 # are reset later if shared libraries are not supported. Putting them 9976 # here allows them to be overridden if necessary. 9977 runpath_var=LD_RUN_PATH 9978 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9979 export_dynamic_flag_spec='${wl}--export-dynamic' 9980 # ancient GNU ld didn't support --whole-archive et. al. 9981 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9982 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9983 else 9984 whole_archive_flag_spec= 9985 fi 9986 supports_anon_versioning=no 9987 case `$LD -v 2>&1` in 9988 *GNU\ gold*) supports_anon_versioning=yes ;; 9989 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9990 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9991 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9992 *\ 2.11.*) ;; # other 2.11 versions 9993 *) supports_anon_versioning=yes ;; 9994 esac 9995 9996 # See if GNU ld supports shared libraries. 9997 case $host_os in 9998 aix[3-9]*) 9999 # On AIX/PPC, the GNU linker is very broken 10000 if test "$host_cpu" != ia64; then 10001 ld_shlibs=no 10002 cat <<_LT_EOF 1>&2 10003 10004*** Warning: the GNU linker, at least up to release 2.9.1, is reported 10005*** to be unable to reliably create shared libraries on AIX. 10006*** Therefore, libtool is disabling shared libraries support. If you 10007*** really care for shared libraries, you may want to modify your PATH 10008*** so that a non-GNU linker is found, and then restart. 10009 10010_LT_EOF 10011 fi 10012 ;; 10013 10014 amigaos*) 10015 case $host_cpu in 10016 powerpc) 10017 # see comment about AmigaOS4 .so support 10018 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10019 archive_expsym_cmds='' 10020 ;; 10021 m68k) 10022 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)' 10023 hardcode_libdir_flag_spec='-L$libdir' 10024 hardcode_minus_L=yes 10025 ;; 10026 esac 10027 ;; 10028 10029 beos*) 10030 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10031 allow_undefined_flag=unsupported 10032 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10033 # support --undefined. This deserves some investigation. FIXME 10034 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10035 else 10036 ld_shlibs=no 10037 fi 10038 ;; 10039 10040 cygwin* | mingw* | pw32* | cegcc*) 10041 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10042 # as there is no search path for DLLs. 10043 hardcode_libdir_flag_spec='-L$libdir' 10044 allow_undefined_flag=unsupported 10045 always_export_symbols=no 10046 enable_shared_with_static_runtimes=yes 10047 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10048 10049 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10050 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10051 # If the export-symbols file already is a .def file (1st line 10052 # is EXPORTS), use it as is; otherwise, prepend... 10053 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10054 cp $export_symbols $output_objdir/$soname.def; 10055 else 10056 echo EXPORTS > $output_objdir/$soname.def; 10057 cat $export_symbols >> $output_objdir/$soname.def; 10058 fi~ 10059 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10060 else 10061 ld_shlibs=no 10062 fi 10063 ;; 10064 10065 interix[3-9]*) 10066 hardcode_direct=no 10067 hardcode_shlibpath_var=no 10068 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10069 export_dynamic_flag_spec='${wl}-E' 10070 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10071 # Instead, shared libraries are loaded at an image base (0x10000000 by 10072 # default) and relocated if they conflict, which is a slow very memory 10073 # consuming and fragmenting process. To avoid this, we pick a random, 10074 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10075 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10076 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10077 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' 10078 ;; 10079 10080 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10081 tmp_diet=no 10082 if test "$host_os" = linux-dietlibc; then 10083 case $cc_basename in 10084 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10085 esac 10086 fi 10087 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10088 && test "$tmp_diet" = no 10089 then 10090 tmp_addflag= 10091 tmp_sharedflag='-shared' 10092 case $cc_basename,$host_cpu in 10093 pgcc*) # Portland Group C compiler 10094 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' 10095 tmp_addflag=' $pic_flag' 10096 ;; 10097 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 10098 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' 10099 tmp_addflag=' $pic_flag -Mnomain' ;; 10100 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10101 tmp_addflag=' -i_dynamic' ;; 10102 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10103 tmp_addflag=' -i_dynamic -nofor_main' ;; 10104 ifc* | ifort*) # Intel Fortran compiler 10105 tmp_addflag=' -nofor_main' ;; 10106 lf95*) # Lahey Fortran 8.1 10107 whole_archive_flag_spec= 10108 tmp_sharedflag='--shared' ;; 10109 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10110 tmp_sharedflag='-qmkshrobj' 10111 tmp_addflag= ;; 10112 esac 10113 case `$CC -V 2>&1 | sed 5q` in 10114 *Sun\ C*) # Sun C 5.9 10115 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' 10116 compiler_needs_object=yes 10117 tmp_sharedflag='-G' ;; 10118 *Sun\ F*) # Sun Fortran 8.3 10119 tmp_sharedflag='-G' ;; 10120 esac 10121 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10122 10123 if test "x$supports_anon_versioning" = xyes; then 10124 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10125 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10126 echo "local: *; };" >> $output_objdir/$libname.ver~ 10127 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 10128 fi 10129 10130 case $cc_basename in 10131 xlf*) 10132 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10133 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10134 hardcode_libdir_flag_spec= 10135 hardcode_libdir_flag_spec_ld='-rpath $libdir' 10136 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 10137 if test "x$supports_anon_versioning" = xyes; then 10138 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10139 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10140 echo "local: *; };" >> $output_objdir/$libname.ver~ 10141 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10142 fi 10143 ;; 10144 esac 10145 else 10146 ld_shlibs=no 10147 fi 10148 ;; 10149 10150 netbsd* | netbsdelf*-gnu) 10151 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10152 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10153 wlarc= 10154 else 10155 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10156 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10157 fi 10158 ;; 10159 10160 solaris*) 10161 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10162 ld_shlibs=no 10163 cat <<_LT_EOF 1>&2 10164 10165*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10166*** create shared libraries on Solaris systems. Therefore, libtool 10167*** is disabling shared libraries support. We urge you to upgrade GNU 10168*** binutils to release 2.9.1 or newer. Another option is to modify 10169*** your PATH or compiler configuration so that the native linker is 10170*** used, and then restart. 10171 10172_LT_EOF 10173 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10174 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10175 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10176 else 10177 ld_shlibs=no 10178 fi 10179 ;; 10180 10181 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10182 case `$LD -v 2>&1` in 10183 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10184 ld_shlibs=no 10185 cat <<_LT_EOF 1>&2 10186 10187*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 10188*** reliably create shared libraries on SCO systems. Therefore, libtool 10189*** is disabling shared libraries support. We urge you to upgrade GNU 10190*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10191*** your PATH or compiler configuration so that the native linker is 10192*** used, and then restart. 10193 10194_LT_EOF 10195 ;; 10196 *) 10197 # For security reasons, it is highly recommended that you always 10198 # use absolute paths for naming shared libraries, and exclude the 10199 # DT_RUNPATH tag from executables and libraries. But doing so 10200 # requires that you compile everything twice, which is a pain. 10201 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10202 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10203 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10204 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10205 else 10206 ld_shlibs=no 10207 fi 10208 ;; 10209 esac 10210 ;; 10211 10212 sunos4*) 10213 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10214 wlarc= 10215 hardcode_direct=yes 10216 hardcode_shlibpath_var=no 10217 ;; 10218 10219 *) 10220 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10221 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10222 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10223 else 10224 ld_shlibs=no 10225 fi 10226 ;; 10227 esac 10228 10229 if test "$ld_shlibs" = no; then 10230 runpath_var= 10231 hardcode_libdir_flag_spec= 10232 export_dynamic_flag_spec= 10233 whole_archive_flag_spec= 10234 fi 10235 else 10236 # PORTME fill in a description of your system's linker (not GNU ld) 10237 case $host_os in 10238 aix3*) 10239 allow_undefined_flag=unsupported 10240 always_export_symbols=yes 10241 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' 10242 # Note: this linker hardcodes the directories in LIBPATH if there 10243 # are no directories specified by -L. 10244 hardcode_minus_L=yes 10245 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 10246 # Neither direct hardcoding nor static linking is supported with a 10247 # broken collect2. 10248 hardcode_direct=unsupported 10249 fi 10250 ;; 10251 10252 aix[4-9]*) 10253 if test "$host_cpu" = ia64; then 10254 # On IA64, the linker does run time linking by default, so we don't 10255 # have to do anything special. 10256 aix_use_runtimelinking=no 10257 exp_sym_flag='-Bexport' 10258 no_entry_flag="" 10259 else 10260 # If we're using GNU nm, then we don't want the "-C" option. 10261 # -C means demangle to AIX nm, but means don't demangle with GNU nm 10262 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10263 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' 10264 else 10265 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' 10266 fi 10267 aix_use_runtimelinking=no 10268 10269 # Test if we are trying to use run time linking or normal 10270 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10271 # need to do runtime linking. 10272 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10273 for ld_flag in $LDFLAGS; do 10274 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 10275 aix_use_runtimelinking=yes 10276 break 10277 fi 10278 done 10279 ;; 10280 esac 10281 10282 exp_sym_flag='-bexport' 10283 no_entry_flag='-bnoentry' 10284 fi 10285 10286 # When large executables or shared objects are built, AIX ld can 10287 # have problems creating the table of contents. If linking a library 10288 # or program results in "error TOC overflow" add -mminimal-toc to 10289 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10290 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10291 10292 archive_cmds='' 10293 hardcode_direct=yes 10294 hardcode_direct_absolute=yes 10295 hardcode_libdir_separator=':' 10296 link_all_deplibs=yes 10297 file_list_spec='${wl}-f,' 10298 10299 if test "$GCC" = yes; then 10300 case $host_os in aix4.[012]|aix4.[012].*) 10301 # We only want to do this on AIX 4.2 and lower, the check 10302 # below for broken collect2 doesn't work under 4.3+ 10303 collect2name=`${CC} -print-prog-name=collect2` 10304 if test -f "$collect2name" && 10305 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10306 then 10307 # We have reworked collect2 10308 : 10309 else 10310 # We have old collect2 10311 hardcode_direct=unsupported 10312 # It fails to find uninstalled libraries when the uninstalled 10313 # path is not listed in the libpath. Setting hardcode_minus_L 10314 # to unsupported forces relinking 10315 hardcode_minus_L=yes 10316 hardcode_libdir_flag_spec='-L$libdir' 10317 hardcode_libdir_separator= 10318 fi 10319 ;; 10320 esac 10321 shared_flag='-shared' 10322 if test "$aix_use_runtimelinking" = yes; then 10323 shared_flag="$shared_flag "'${wl}-G' 10324 fi 10325 link_all_deplibs=no 10326 else 10327 # not using gcc 10328 if test "$host_cpu" = ia64; then 10329 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10330 # chokes on -Wl,-G. The following line is correct: 10331 shared_flag='-G' 10332 else 10333 if test "$aix_use_runtimelinking" = yes; then 10334 shared_flag='${wl}-G' 10335 else 10336 shared_flag='${wl}-bM:SRE' 10337 fi 10338 fi 10339 fi 10340 10341 export_dynamic_flag_spec='${wl}-bexpall' 10342 # It seems that -bexpall does not export symbols beginning with 10343 # underscore (_), so it is better to generate a list of symbols to export. 10344 always_export_symbols=yes 10345 if test "$aix_use_runtimelinking" = yes; then 10346 # Warning - without using the other runtime loading flags (-brtl), 10347 # -berok will link without error, but may produce a broken library. 10348 allow_undefined_flag='-berok' 10349 # Determine the default libpath from the value encoded in an 10350 # empty executable. 10351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10352/* end confdefs.h. */ 10353 10354int 10355main () 10356{ 10357 10358 ; 10359 return 0; 10360} 10361_ACEOF 10362if ac_fn_c_try_link "$LINENO"; then : 10363 10364lt_aix_libpath_sed=' 10365 /Import File Strings/,/^$/ { 10366 /^0/ { 10367 s/^0 *\(.*\)$/\1/ 10368 p 10369 } 10370 }' 10371aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10372# Check for a 64-bit object if we didn't find anything. 10373if test -z "$aix_libpath"; then 10374 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10375fi 10376fi 10377rm -f core conftest.err conftest.$ac_objext \ 10378 conftest$ac_exeext conftest.$ac_ext 10379if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10380 10381 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10382 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" 10383 else 10384 if test "$host_cpu" = ia64; then 10385 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 10386 allow_undefined_flag="-z nodefs" 10387 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" 10388 else 10389 # Determine the default libpath from the value encoded in an 10390 # empty executable. 10391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10392/* end confdefs.h. */ 10393 10394int 10395main () 10396{ 10397 10398 ; 10399 return 0; 10400} 10401_ACEOF 10402if ac_fn_c_try_link "$LINENO"; then : 10403 10404lt_aix_libpath_sed=' 10405 /Import File Strings/,/^$/ { 10406 /^0/ { 10407 s/^0 *\(.*\)$/\1/ 10408 p 10409 } 10410 }' 10411aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10412# Check for a 64-bit object if we didn't find anything. 10413if test -z "$aix_libpath"; then 10414 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10415fi 10416fi 10417rm -f core conftest.err conftest.$ac_objext \ 10418 conftest$ac_exeext conftest.$ac_ext 10419if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10420 10421 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10422 # Warning - without using the other run time loading flags, 10423 # -berok will link without error, but may produce a broken library. 10424 no_undefined_flag=' ${wl}-bernotok' 10425 allow_undefined_flag=' ${wl}-berok' 10426 # Exported symbols can be pulled into shared objects from archives 10427 whole_archive_flag_spec='$convenience' 10428 archive_cmds_need_lc=yes 10429 # This is similar to how AIX traditionally builds its shared libraries. 10430 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' 10431 fi 10432 fi 10433 ;; 10434 10435 amigaos*) 10436 case $host_cpu in 10437 powerpc) 10438 # see comment about AmigaOS4 .so support 10439 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10440 archive_expsym_cmds='' 10441 ;; 10442 m68k) 10443 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)' 10444 hardcode_libdir_flag_spec='-L$libdir' 10445 hardcode_minus_L=yes 10446 ;; 10447 esac 10448 ;; 10449 10450 bsdi[45]*) 10451 export_dynamic_flag_spec=-rdynamic 10452 ;; 10453 10454 cygwin* | mingw* | pw32* | cegcc*) 10455 # When not using gcc, we currently assume that we are using 10456 # Microsoft Visual C++. 10457 # hardcode_libdir_flag_spec is actually meaningless, as there is 10458 # no search path for DLLs. 10459 hardcode_libdir_flag_spec=' ' 10460 allow_undefined_flag=unsupported 10461 # Tell ltmain to make .lib files, not .a files. 10462 libext=lib 10463 # Tell ltmain to make .dll files, not .so files. 10464 shrext_cmds=".dll" 10465 # FIXME: Setting linknames here is a bad hack. 10466 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 10467 # The linker will automatically build a .lib file if we build a DLL. 10468 old_archive_from_new_cmds='true' 10469 # FIXME: Should let the user specify the lib program. 10470 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10471 fix_srcfile_path='`cygpath -w "$srcfile"`' 10472 enable_shared_with_static_runtimes=yes 10473 ;; 10474 10475 darwin* | rhapsody*) 10476 10477 10478 archive_cmds_need_lc=no 10479 hardcode_direct=no 10480 hardcode_automatic=yes 10481 hardcode_shlibpath_var=unsupported 10482 whole_archive_flag_spec='' 10483 link_all_deplibs=yes 10484 allow_undefined_flag="$_lt_dar_allow_undefined" 10485 case $cc_basename in 10486 ifort*) _lt_dar_can_shared=yes ;; 10487 *) _lt_dar_can_shared=$GCC ;; 10488 esac 10489 if test "$_lt_dar_can_shared" = "yes"; then 10490 output_verbose_link_cmd=echo 10491 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 10492 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 10493 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}" 10494 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}" 10495 10496 else 10497 ld_shlibs=no 10498 fi 10499 10500 ;; 10501 10502 dgux*) 10503 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10504 hardcode_libdir_flag_spec='-L$libdir' 10505 hardcode_shlibpath_var=no 10506 ;; 10507 10508 freebsd1*) 10509 ld_shlibs=no 10510 ;; 10511 10512 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10513 # support. Future versions do this automatically, but an explicit c++rt0.o 10514 # does not break anything, and helps significantly (at the cost of a little 10515 # extra space). 10516 freebsd2.2*) 10517 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10518 hardcode_libdir_flag_spec='-R$libdir' 10519 hardcode_direct=yes 10520 hardcode_shlibpath_var=no 10521 ;; 10522 10523 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10524 freebsd2*) 10525 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10526 hardcode_direct=yes 10527 hardcode_minus_L=yes 10528 hardcode_shlibpath_var=no 10529 ;; 10530 10531 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10532 freebsd* | dragonfly*) 10533 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 10534 hardcode_libdir_flag_spec='-R$libdir' 10535 hardcode_direct=yes 10536 hardcode_shlibpath_var=no 10537 ;; 10538 10539 hpux9*) 10540 if test "$GCC" = yes; then 10541 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' 10542 else 10543 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' 10544 fi 10545 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10546 hardcode_libdir_separator=: 10547 hardcode_direct=yes 10548 10549 # hardcode_minus_L: Not really in the search PATH, 10550 # but as the default location of the library. 10551 hardcode_minus_L=yes 10552 export_dynamic_flag_spec='${wl}-E' 10553 ;; 10554 10555 hpux10*) 10556 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 10557 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10558 else 10559 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10560 fi 10561 if test "$with_gnu_ld" = no; then 10562 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10563 hardcode_libdir_flag_spec_ld='+b $libdir' 10564 hardcode_libdir_separator=: 10565 hardcode_direct=yes 10566 hardcode_direct_absolute=yes 10567 export_dynamic_flag_spec='${wl}-E' 10568 # hardcode_minus_L: Not really in the search PATH, 10569 # but as the default location of the library. 10570 hardcode_minus_L=yes 10571 fi 10572 ;; 10573 10574 hpux11*) 10575 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 10576 case $host_cpu in 10577 hppa*64*) 10578 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10579 ;; 10580 ia64*) 10581 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10582 ;; 10583 *) 10584 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10585 ;; 10586 esac 10587 else 10588 case $host_cpu in 10589 hppa*64*) 10590 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10591 ;; 10592 ia64*) 10593 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10594 ;; 10595 *) 10596 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10597 ;; 10598 esac 10599 fi 10600 if test "$with_gnu_ld" = no; then 10601 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10602 hardcode_libdir_separator=: 10603 10604 case $host_cpu in 10605 hppa*64*|ia64*) 10606 hardcode_direct=no 10607 hardcode_shlibpath_var=no 10608 ;; 10609 *) 10610 hardcode_direct=yes 10611 hardcode_direct_absolute=yes 10612 export_dynamic_flag_spec='${wl}-E' 10613 10614 # hardcode_minus_L: Not really in the search PATH, 10615 # but as the default location of the library. 10616 hardcode_minus_L=yes 10617 ;; 10618 esac 10619 fi 10620 ;; 10621 10622 irix5* | irix6* | nonstopux*) 10623 if test "$GCC" = yes; then 10624 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' 10625 # Try to use the -exported_symbol ld option, if it does not 10626 # work, assume that -exports_file does not work either and 10627 # implicitly export all symbols. 10628 save_LDFLAGS="$LDFLAGS" 10629 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 10630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10631/* end confdefs.h. */ 10632int foo(void) {} 10633_ACEOF 10634if ac_fn_c_try_link "$LINENO"; then : 10635 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' 10636 10637fi 10638rm -f core conftest.err conftest.$ac_objext \ 10639 conftest$ac_exeext conftest.$ac_ext 10640 LDFLAGS="$save_LDFLAGS" 10641 else 10642 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' 10643 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' 10644 fi 10645 archive_cmds_need_lc='no' 10646 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10647 hardcode_libdir_separator=: 10648 inherit_rpath=yes 10649 link_all_deplibs=yes 10650 ;; 10651 10652 netbsd* | netbsdelf*-gnu) 10653 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10654 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10655 else 10656 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10657 fi 10658 hardcode_libdir_flag_spec='-R$libdir' 10659 hardcode_direct=yes 10660 hardcode_shlibpath_var=no 10661 ;; 10662 10663 newsos6) 10664 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10665 hardcode_direct=yes 10666 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10667 hardcode_libdir_separator=: 10668 hardcode_shlibpath_var=no 10669 ;; 10670 10671 *nto* | *qnx*) 10672 ;; 10673 10674 openbsd*) 10675 if test -f /usr/libexec/ld.so; then 10676 hardcode_direct=yes 10677 hardcode_shlibpath_var=no 10678 hardcode_direct_absolute=yes 10679 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10680 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10681 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 10682 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10683 export_dynamic_flag_spec='${wl}-E' 10684 else 10685 case $host_os in 10686 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10687 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10688 hardcode_libdir_flag_spec='-R$libdir' 10689 ;; 10690 *) 10691 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10692 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10693 ;; 10694 esac 10695 fi 10696 else 10697 ld_shlibs=no 10698 fi 10699 ;; 10700 10701 os2*) 10702 hardcode_libdir_flag_spec='-L$libdir' 10703 hardcode_minus_L=yes 10704 allow_undefined_flag=unsupported 10705 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' 10706 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10707 ;; 10708 10709 osf3*) 10710 if test "$GCC" = yes; then 10711 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10712 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' 10713 else 10714 allow_undefined_flag=' -expect_unresolved \*' 10715 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' 10716 fi 10717 archive_cmds_need_lc='no' 10718 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10719 hardcode_libdir_separator=: 10720 ;; 10721 10722 osf4* | osf5*) # as osf3* with the addition of -msym flag 10723 if test "$GCC" = yes; then 10724 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10725 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' 10726 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10727 else 10728 allow_undefined_flag=' -expect_unresolved \*' 10729 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' 10730 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~ 10731 $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' 10732 10733 # Both c and cxx compiler support -rpath directly 10734 hardcode_libdir_flag_spec='-rpath $libdir' 10735 fi 10736 archive_cmds_need_lc='no' 10737 hardcode_libdir_separator=: 10738 ;; 10739 10740 solaris*) 10741 no_undefined_flag=' -z defs' 10742 if test "$GCC" = yes; then 10743 wlarc='${wl}' 10744 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10745 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10746 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10747 else 10748 case `$CC -V 2>&1` in 10749 *"Compilers 5.0"*) 10750 wlarc='' 10751 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10752 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10753 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10754 ;; 10755 *) 10756 wlarc='${wl}' 10757 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10758 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10759 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10760 ;; 10761 esac 10762 fi 10763 hardcode_libdir_flag_spec='-R$libdir' 10764 hardcode_shlibpath_var=no 10765 case $host_os in 10766 solaris2.[0-5] | solaris2.[0-5].*) ;; 10767 *) 10768 # The compiler driver will combine and reorder linker options, 10769 # but understands `-z linker_flag'. GCC discards it without `$wl', 10770 # but is careful enough not to reorder. 10771 # Supported since Solaris 2.6 (maybe 2.5.1?) 10772 if test "$GCC" = yes; then 10773 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10774 else 10775 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10776 fi 10777 ;; 10778 esac 10779 link_all_deplibs=yes 10780 ;; 10781 10782 sunos4*) 10783 if test "x$host_vendor" = xsequent; then 10784 # Use $CC to link under sequent, because it throws in some extra .o 10785 # files that make .init and .fini sections work. 10786 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10787 else 10788 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10789 fi 10790 hardcode_libdir_flag_spec='-L$libdir' 10791 hardcode_direct=yes 10792 hardcode_minus_L=yes 10793 hardcode_shlibpath_var=no 10794 ;; 10795 10796 sysv4) 10797 case $host_vendor in 10798 sni) 10799 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10800 hardcode_direct=yes # is this really true??? 10801 ;; 10802 siemens) 10803 ## LD is ld it makes a PLAMLIB 10804 ## CC just makes a GrossModule. 10805 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10806 reload_cmds='$CC -r -o $output$reload_objs' 10807 hardcode_direct=no 10808 ;; 10809 motorola) 10810 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10811 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10812 ;; 10813 esac 10814 runpath_var='LD_RUN_PATH' 10815 hardcode_shlibpath_var=no 10816 ;; 10817 10818 sysv4.3*) 10819 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10820 hardcode_shlibpath_var=no 10821 export_dynamic_flag_spec='-Bexport' 10822 ;; 10823 10824 sysv4*MP*) 10825 if test -d /usr/nec; then 10826 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10827 hardcode_shlibpath_var=no 10828 runpath_var=LD_RUN_PATH 10829 hardcode_runpath_var=yes 10830 ld_shlibs=yes 10831 fi 10832 ;; 10833 10834 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10835 no_undefined_flag='${wl}-z,text' 10836 archive_cmds_need_lc=no 10837 hardcode_shlibpath_var=no 10838 runpath_var='LD_RUN_PATH' 10839 10840 if test "$GCC" = yes; then 10841 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10842 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10843 else 10844 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10845 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10846 fi 10847 ;; 10848 10849 sysv5* | sco3.2v5* | sco5v6*) 10850 # Note: We can NOT use -z defs as we might desire, because we do not 10851 # link with -lc, and that would cause any symbols used from libc to 10852 # always be unresolved, which means just about no library would 10853 # ever link correctly. If we're not using GNU ld we use -z text 10854 # though, which does catch some bad symbols but isn't as heavy-handed 10855 # as -z defs. 10856 no_undefined_flag='${wl}-z,text' 10857 allow_undefined_flag='${wl}-z,nodefs' 10858 archive_cmds_need_lc=no 10859 hardcode_shlibpath_var=no 10860 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10861 hardcode_libdir_separator=':' 10862 link_all_deplibs=yes 10863 export_dynamic_flag_spec='${wl}-Bexport' 10864 runpath_var='LD_RUN_PATH' 10865 10866 if test "$GCC" = yes; then 10867 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10868 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10869 else 10870 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10871 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10872 fi 10873 ;; 10874 10875 uts4*) 10876 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10877 hardcode_libdir_flag_spec='-L$libdir' 10878 hardcode_shlibpath_var=no 10879 ;; 10880 10881 *) 10882 ld_shlibs=no 10883 ;; 10884 esac 10885 10886 if test x$host_vendor = xsni; then 10887 case $host in 10888 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10889 export_dynamic_flag_spec='${wl}-Blargedynsym' 10890 ;; 10891 esac 10892 fi 10893 fi 10894 10895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10896$as_echo "$ld_shlibs" >&6; } 10897test "$ld_shlibs" = no && can_build_shared=no 10898 10899with_gnu_ld=$with_gnu_ld 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915# 10916# Do we need to explicitly link libc? 10917# 10918case "x$archive_cmds_need_lc" in 10919x|xyes) 10920 # Assume -lc should be added 10921 archive_cmds_need_lc=yes 10922 10923 if test "$enable_shared" = yes && test "$GCC" = yes; then 10924 case $archive_cmds in 10925 *'~'*) 10926 # FIXME: we may have to deal with multi-command sequences. 10927 ;; 10928 '$CC '*) 10929 # Test whether the compiler implicitly links with -lc since on some 10930 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10931 # to ld, don't add -lc before -lgcc. 10932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10933$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10934 $RM conftest* 10935 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10936 10937 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10938 (eval $ac_compile) 2>&5 10939 ac_status=$? 10940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10941 test $ac_status = 0; } 2>conftest.err; then 10942 soname=conftest 10943 lib=conftest 10944 libobjs=conftest.$ac_objext 10945 deplibs= 10946 wl=$lt_prog_compiler_wl 10947 pic_flag=$lt_prog_compiler_pic 10948 compiler_flags=-v 10949 linker_flags=-v 10950 verstring= 10951 output_objdir=. 10952 libname=conftest 10953 lt_save_allow_undefined_flag=$allow_undefined_flag 10954 allow_undefined_flag= 10955 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10956 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10957 ac_status=$? 10958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10959 test $ac_status = 0; } 10960 then 10961 archive_cmds_need_lc=no 10962 else 10963 archive_cmds_need_lc=yes 10964 fi 10965 allow_undefined_flag=$lt_save_allow_undefined_flag 10966 else 10967 cat conftest.err 1>&5 10968 fi 10969 $RM conftest* 10970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 10971$as_echo "$archive_cmds_need_lc" >&6; } 10972 ;; 10973 esac 10974 fi 10975 ;; 10976esac 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11135$as_echo_n "checking dynamic linker characteristics... " >&6; } 11136 11137if test "$GCC" = yes; then 11138 case $host_os in 11139 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 11140 *) lt_awk_arg="/^libraries:/" ;; 11141 esac 11142 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11143 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 11144 # if the path contains ";" then we assume it to be the separator 11145 # otherwise default to the standard path separator (i.e. ":") - it is 11146 # assumed that no part of a normal pathname contains ";" but that should 11147 # okay in the real world where ";" in dirpaths is itself problematic. 11148 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 11149 else 11150 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11151 fi 11152 # Ok, now we have the path, separated by spaces, we can step through it 11153 # and add multilib dir if necessary. 11154 lt_tmp_lt_search_path_spec= 11155 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11156 for lt_sys_path in $lt_search_path_spec; do 11157 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 11158 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 11159 else 11160 test -d "$lt_sys_path" && \ 11161 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11162 fi 11163 done 11164 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 11165BEGIN {RS=" "; FS="/|\n";} { 11166 lt_foo=""; 11167 lt_count=0; 11168 for (lt_i = NF; lt_i > 0; lt_i--) { 11169 if ($lt_i != "" && $lt_i != ".") { 11170 if ($lt_i == "..") { 11171 lt_count++; 11172 } else { 11173 if (lt_count == 0) { 11174 lt_foo="/" $lt_i lt_foo; 11175 } else { 11176 lt_count--; 11177 } 11178 } 11179 } 11180 } 11181 if (lt_foo != "") { lt_freq[lt_foo]++; } 11182 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11183}'` 11184 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 11185else 11186 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11187fi 11188library_names_spec= 11189libname_spec='lib$name' 11190soname_spec= 11191shrext_cmds=".so" 11192postinstall_cmds= 11193postuninstall_cmds= 11194finish_cmds= 11195finish_eval= 11196shlibpath_var= 11197shlibpath_overrides_runpath=unknown 11198version_type=none 11199dynamic_linker="$host_os ld.so" 11200sys_lib_dlsearch_path_spec="/lib /usr/lib" 11201need_lib_prefix=unknown 11202hardcode_into_libs=no 11203 11204# when you set need_version to no, make sure it does not cause -set_version 11205# flags to be left without arguments 11206need_version=unknown 11207 11208case $host_os in 11209aix3*) 11210 version_type=linux 11211 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 11212 shlibpath_var=LIBPATH 11213 11214 # AIX 3 has no versioning support, so we append a major version to the name. 11215 soname_spec='${libname}${release}${shared_ext}$major' 11216 ;; 11217 11218aix[4-9]*) 11219 version_type=linux 11220 need_lib_prefix=no 11221 need_version=no 11222 hardcode_into_libs=yes 11223 if test "$host_cpu" = ia64; then 11224 # AIX 5 supports IA64 11225 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 11226 shlibpath_var=LD_LIBRARY_PATH 11227 else 11228 # With GCC up to 2.95.x, collect2 would create an import file 11229 # for dependence libraries. The import file would start with 11230 # the line `#! .'. This would cause the generated library to 11231 # depend on `.', always an invalid library. This was fixed in 11232 # development snapshots of GCC prior to 3.0. 11233 case $host_os in 11234 aix4 | aix4.[01] | aix4.[01].*) 11235 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11236 echo ' yes ' 11237 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 11238 : 11239 else 11240 can_build_shared=no 11241 fi 11242 ;; 11243 esac 11244 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11245 # soname into executable. Probably we can add versioning support to 11246 # collect2, so additional links can be useful in future. 11247 if test "$aix_use_runtimelinking" = yes; then 11248 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11249 # instead of lib<name>.a to let people know that these are not 11250 # typical AIX shared libraries. 11251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11252 else 11253 # We preserve .a as extension for shared libraries through AIX4.2 11254 # and later when we are not doing run time linking. 11255 library_names_spec='${libname}${release}.a $libname.a' 11256 soname_spec='${libname}${release}${shared_ext}$major' 11257 fi 11258 shlibpath_var=LIBPATH 11259 fi 11260 ;; 11261 11262amigaos*) 11263 case $host_cpu in 11264 powerpc) 11265 # Since July 2007 AmigaOS4 officially supports .so libraries. 11266 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11268 ;; 11269 m68k) 11270 library_names_spec='$libname.ixlibrary $libname.a' 11271 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11272 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' 11273 ;; 11274 esac 11275 ;; 11276 11277beos*) 11278 library_names_spec='${libname}${shared_ext}' 11279 dynamic_linker="$host_os ld.so" 11280 shlibpath_var=LIBRARY_PATH 11281 ;; 11282 11283bsdi[45]*) 11284 version_type=linux 11285 need_version=no 11286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11287 soname_spec='${libname}${release}${shared_ext}$major' 11288 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11289 shlibpath_var=LD_LIBRARY_PATH 11290 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11291 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11292 # the default ld.so.conf also contains /usr/contrib/lib and 11293 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11294 # libtool to hard-code these into programs 11295 ;; 11296 11297cygwin* | mingw* | pw32* | cegcc*) 11298 version_type=windows 11299 shrext_cmds=".dll" 11300 need_version=no 11301 need_lib_prefix=no 11302 11303 case $GCC,$host_os in 11304 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 11305 library_names_spec='$libname.dll.a' 11306 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11307 postinstall_cmds='base_file=`basename \${file}`~ 11308 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 11309 dldir=$destdir/`dirname \$dlpath`~ 11310 test -d \$dldir || mkdir -p \$dldir~ 11311 $install_prog $dir/$dlname \$dldir/$dlname~ 11312 chmod a+x \$dldir/$dlname~ 11313 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11314 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11315 fi' 11316 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11317 dlpath=$dir/\$dldll~ 11318 $RM \$dlpath' 11319 shlibpath_overrides_runpath=yes 11320 11321 case $host_os in 11322 cygwin*) 11323 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11324 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11325 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 11326 ;; 11327 mingw* | cegcc*) 11328 # MinGW DLLs use traditional 'lib' prefix 11329 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11330 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11331 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11332 # It is most probably a Windows format PATH printed by 11333 # mingw gcc, but we are running on Cygwin. Gcc prints its search 11334 # path with ; separators, and with drive letters. We can handle the 11335 # drive letters (cygwin fileutils understands them), so leave them, 11336 # especially as we might pass files found there to a mingw objdump, 11337 # which wouldn't understand a cygwinified path. Ahh. 11338 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11339 else 11340 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11341 fi 11342 ;; 11343 pw32*) 11344 # pw32 DLLs use 'pw' prefix rather than 'lib' 11345 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11346 ;; 11347 esac 11348 ;; 11349 11350 *) 11351 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11352 ;; 11353 esac 11354 dynamic_linker='Win32 ld.exe' 11355 # FIXME: first we should search . and the directory the executable is in 11356 shlibpath_var=PATH 11357 ;; 11358 11359darwin* | rhapsody*) 11360 dynamic_linker="$host_os dyld" 11361 version_type=darwin 11362 need_lib_prefix=no 11363 need_version=no 11364 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11365 soname_spec='${libname}${release}${major}$shared_ext' 11366 shlibpath_overrides_runpath=yes 11367 shlibpath_var=DYLD_LIBRARY_PATH 11368 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11369 11370 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11371 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11372 ;; 11373 11374dgux*) 11375 version_type=linux 11376 need_lib_prefix=no 11377 need_version=no 11378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11379 soname_spec='${libname}${release}${shared_ext}$major' 11380 shlibpath_var=LD_LIBRARY_PATH 11381 ;; 11382 11383freebsd1*) 11384 dynamic_linker=no 11385 ;; 11386 11387freebsd* | dragonfly*) 11388 # DragonFly does not have aout. When/if they implement a new 11389 # versioning mechanism, adjust this. 11390 if test -x /usr/bin/objformat; then 11391 objformat=`/usr/bin/objformat` 11392 else 11393 case $host_os in 11394 freebsd[123]*) objformat=aout ;; 11395 *) objformat=elf ;; 11396 esac 11397 fi 11398 version_type=freebsd-$objformat 11399 case $version_type in 11400 freebsd-elf*) 11401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11402 need_version=no 11403 need_lib_prefix=no 11404 ;; 11405 freebsd-*) 11406 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11407 need_version=yes 11408 ;; 11409 esac 11410 shlibpath_var=LD_LIBRARY_PATH 11411 case $host_os in 11412 freebsd2*) 11413 shlibpath_overrides_runpath=yes 11414 ;; 11415 freebsd3.[01]* | freebsdelf3.[01]*) 11416 shlibpath_overrides_runpath=yes 11417 hardcode_into_libs=yes 11418 ;; 11419 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11420 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11421 shlibpath_overrides_runpath=no 11422 hardcode_into_libs=yes 11423 ;; 11424 *) # from 4.6 on, and DragonFly 11425 shlibpath_overrides_runpath=yes 11426 hardcode_into_libs=yes 11427 ;; 11428 esac 11429 ;; 11430 11431gnu*) 11432 version_type=linux 11433 need_lib_prefix=no 11434 need_version=no 11435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11436 soname_spec='${libname}${release}${shared_ext}$major' 11437 shlibpath_var=LD_LIBRARY_PATH 11438 hardcode_into_libs=yes 11439 ;; 11440 11441hpux9* | hpux10* | hpux11*) 11442 # Give a soname corresponding to the major version so that dld.sl refuses to 11443 # link against other versions. 11444 version_type=sunos 11445 need_lib_prefix=no 11446 need_version=no 11447 case $host_cpu in 11448 ia64*) 11449 shrext_cmds='.so' 11450 hardcode_into_libs=yes 11451 dynamic_linker="$host_os dld.so" 11452 shlibpath_var=LD_LIBRARY_PATH 11453 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11455 soname_spec='${libname}${release}${shared_ext}$major' 11456 if test "X$HPUX_IA64_MODE" = X32; then 11457 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11458 else 11459 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11460 fi 11461 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11462 ;; 11463 hppa*64*) 11464 shrext_cmds='.sl' 11465 hardcode_into_libs=yes 11466 dynamic_linker="$host_os dld.sl" 11467 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11468 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11470 soname_spec='${libname}${release}${shared_ext}$major' 11471 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11472 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11473 ;; 11474 *) 11475 shrext_cmds='.sl' 11476 dynamic_linker="$host_os dld.sl" 11477 shlibpath_var=SHLIB_PATH 11478 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11480 soname_spec='${libname}${release}${shared_ext}$major' 11481 ;; 11482 esac 11483 # HP-UX runs *really* slowly unless shared libraries are mode 555. 11484 postinstall_cmds='chmod 555 $lib' 11485 ;; 11486 11487interix[3-9]*) 11488 version_type=linux 11489 need_lib_prefix=no 11490 need_version=no 11491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11492 soname_spec='${libname}${release}${shared_ext}$major' 11493 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11494 shlibpath_var=LD_LIBRARY_PATH 11495 shlibpath_overrides_runpath=no 11496 hardcode_into_libs=yes 11497 ;; 11498 11499irix5* | irix6* | nonstopux*) 11500 case $host_os in 11501 nonstopux*) version_type=nonstopux ;; 11502 *) 11503 if test "$lt_cv_prog_gnu_ld" = yes; then 11504 version_type=linux 11505 else 11506 version_type=irix 11507 fi ;; 11508 esac 11509 need_lib_prefix=no 11510 need_version=no 11511 soname_spec='${libname}${release}${shared_ext}$major' 11512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11513 case $host_os in 11514 irix5* | nonstopux*) 11515 libsuff= shlibsuff= 11516 ;; 11517 *) 11518 case $LD in # libtool.m4 will add one of these switches to LD 11519 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11520 libsuff= shlibsuff= libmagic=32-bit;; 11521 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11522 libsuff=32 shlibsuff=N32 libmagic=N32;; 11523 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11524 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11525 *) libsuff= shlibsuff= libmagic=never-match;; 11526 esac 11527 ;; 11528 esac 11529 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11530 shlibpath_overrides_runpath=no 11531 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11532 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11533 hardcode_into_libs=yes 11534 ;; 11535 11536# No shared lib support for Linux oldld, aout, or coff. 11537linux*oldld* | linux*aout* | linux*coff*) 11538 dynamic_linker=no 11539 ;; 11540 11541# This must be Linux ELF. 11542linux* | k*bsd*-gnu | kopensolaris*-gnu) 11543 version_type=linux 11544 need_lib_prefix=no 11545 need_version=no 11546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11547 soname_spec='${libname}${release}${shared_ext}$major' 11548 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11549 shlibpath_var=LD_LIBRARY_PATH 11550 shlibpath_overrides_runpath=no 11551 # Some binutils ld are patched to set DT_RUNPATH 11552 save_LDFLAGS=$LDFLAGS 11553 save_libdir=$libdir 11554 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11555 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11557/* end confdefs.h. */ 11558 11559int 11560main () 11561{ 11562 11563 ; 11564 return 0; 11565} 11566_ACEOF 11567if ac_fn_c_try_link "$LINENO"; then : 11568 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11569 shlibpath_overrides_runpath=yes 11570fi 11571fi 11572rm -f core conftest.err conftest.$ac_objext \ 11573 conftest$ac_exeext conftest.$ac_ext 11574 LDFLAGS=$save_LDFLAGS 11575 libdir=$save_libdir 11576 11577 # This implies no fast_install, which is unacceptable. 11578 # Some rework will be needed to allow for fast_install 11579 # before this can be enabled. 11580 hardcode_into_libs=yes 11581 11582 # Append ld.so.conf contents to the search path 11583 if test -f /etc/ld.so.conf; then 11584 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' ' '` 11585 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11586 fi 11587 11588 # We used to test for /lib/ld.so.1 and disable shared libraries on 11589 # powerpc, because MkLinux only supported shared libraries with the 11590 # GNU dynamic linker. Since this was broken with cross compilers, 11591 # most powerpc-linux boxes support dynamic linking these days and 11592 # people can always --disable-shared, the test was removed, and we 11593 # assume the GNU/Linux dynamic linker is in use. 11594 dynamic_linker='GNU/Linux ld.so' 11595 ;; 11596 11597netbsdelf*-gnu) 11598 version_type=linux 11599 need_lib_prefix=no 11600 need_version=no 11601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11602 soname_spec='${libname}${release}${shared_ext}$major' 11603 shlibpath_var=LD_LIBRARY_PATH 11604 shlibpath_overrides_runpath=no 11605 hardcode_into_libs=yes 11606 dynamic_linker='NetBSD ld.elf_so' 11607 ;; 11608 11609netbsd*) 11610 version_type=sunos 11611 need_lib_prefix=no 11612 need_version=no 11613 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11615 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11616 dynamic_linker='NetBSD (a.out) ld.so' 11617 else 11618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11619 soname_spec='${libname}${release}${shared_ext}$major' 11620 dynamic_linker='NetBSD ld.elf_so' 11621 fi 11622 shlibpath_var=LD_LIBRARY_PATH 11623 shlibpath_overrides_runpath=yes 11624 hardcode_into_libs=yes 11625 ;; 11626 11627newsos6) 11628 version_type=linux 11629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11630 shlibpath_var=LD_LIBRARY_PATH 11631 shlibpath_overrides_runpath=yes 11632 ;; 11633 11634*nto* | *qnx*) 11635 version_type=qnx 11636 need_lib_prefix=no 11637 need_version=no 11638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11639 soname_spec='${libname}${release}${shared_ext}$major' 11640 shlibpath_var=LD_LIBRARY_PATH 11641 shlibpath_overrides_runpath=no 11642 hardcode_into_libs=yes 11643 dynamic_linker='ldqnx.so' 11644 ;; 11645 11646openbsd*) 11647 version_type=sunos 11648 sys_lib_dlsearch_path_spec="/usr/lib" 11649 need_lib_prefix=no 11650 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11651 case $host_os in 11652 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11653 *) need_version=no ;; 11654 esac 11655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11656 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11657 shlibpath_var=LD_LIBRARY_PATH 11658 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11659 case $host_os in 11660 openbsd2.[89] | openbsd2.[89].*) 11661 shlibpath_overrides_runpath=no 11662 ;; 11663 *) 11664 shlibpath_overrides_runpath=yes 11665 ;; 11666 esac 11667 else 11668 shlibpath_overrides_runpath=yes 11669 fi 11670 ;; 11671 11672os2*) 11673 libname_spec='$name' 11674 shrext_cmds=".dll" 11675 need_lib_prefix=no 11676 library_names_spec='$libname${shared_ext} $libname.a' 11677 dynamic_linker='OS/2 ld.exe' 11678 shlibpath_var=LIBPATH 11679 ;; 11680 11681osf3* | osf4* | osf5*) 11682 version_type=osf 11683 need_lib_prefix=no 11684 need_version=no 11685 soname_spec='${libname}${release}${shared_ext}$major' 11686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11687 shlibpath_var=LD_LIBRARY_PATH 11688 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11689 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11690 ;; 11691 11692rdos*) 11693 dynamic_linker=no 11694 ;; 11695 11696solaris*) 11697 version_type=linux 11698 need_lib_prefix=no 11699 need_version=no 11700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11701 soname_spec='${libname}${release}${shared_ext}$major' 11702 shlibpath_var=LD_LIBRARY_PATH 11703 shlibpath_overrides_runpath=yes 11704 hardcode_into_libs=yes 11705 # ldd complains unless libraries are executable 11706 postinstall_cmds='chmod +x $lib' 11707 ;; 11708 11709sunos4*) 11710 version_type=sunos 11711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11712 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11713 shlibpath_var=LD_LIBRARY_PATH 11714 shlibpath_overrides_runpath=yes 11715 if test "$with_gnu_ld" = yes; then 11716 need_lib_prefix=no 11717 fi 11718 need_version=yes 11719 ;; 11720 11721sysv4 | sysv4.3*) 11722 version_type=linux 11723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11724 soname_spec='${libname}${release}${shared_ext}$major' 11725 shlibpath_var=LD_LIBRARY_PATH 11726 case $host_vendor in 11727 sni) 11728 shlibpath_overrides_runpath=no 11729 need_lib_prefix=no 11730 runpath_var=LD_RUN_PATH 11731 ;; 11732 siemens) 11733 need_lib_prefix=no 11734 ;; 11735 motorola) 11736 need_lib_prefix=no 11737 need_version=no 11738 shlibpath_overrides_runpath=no 11739 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11740 ;; 11741 esac 11742 ;; 11743 11744sysv4*MP*) 11745 if test -d /usr/nec ;then 11746 version_type=linux 11747 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11748 soname_spec='$libname${shared_ext}.$major' 11749 shlibpath_var=LD_LIBRARY_PATH 11750 fi 11751 ;; 11752 11753sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11754 version_type=freebsd-elf 11755 need_lib_prefix=no 11756 need_version=no 11757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11758 soname_spec='${libname}${release}${shared_ext}$major' 11759 shlibpath_var=LD_LIBRARY_PATH 11760 shlibpath_overrides_runpath=yes 11761 hardcode_into_libs=yes 11762 if test "$with_gnu_ld" = yes; then 11763 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11764 else 11765 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11766 case $host_os in 11767 sco3.2v5*) 11768 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11769 ;; 11770 esac 11771 fi 11772 sys_lib_dlsearch_path_spec='/usr/lib' 11773 ;; 11774 11775tpf*) 11776 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11777 version_type=linux 11778 need_lib_prefix=no 11779 need_version=no 11780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11781 shlibpath_var=LD_LIBRARY_PATH 11782 shlibpath_overrides_runpath=no 11783 hardcode_into_libs=yes 11784 ;; 11785 11786uts4*) 11787 version_type=linux 11788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11789 soname_spec='${libname}${release}${shared_ext}$major' 11790 shlibpath_var=LD_LIBRARY_PATH 11791 ;; 11792 11793*) 11794 dynamic_linker=no 11795 ;; 11796esac 11797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11798$as_echo "$dynamic_linker" >&6; } 11799test "$dynamic_linker" = no && can_build_shared=no 11800 11801variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11802if test "$GCC" = yes; then 11803 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11804fi 11805 11806if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11807 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11808fi 11809if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11810 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11811fi 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 11825 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843 11844 11845 11846 11847 11848 11849 11850 11851 11852 11853 11854 11855 11856 11857 11858 11859 11860 11861 11862 11863 11864 11865 11866 11867 11868 11869 11870 11871 11872 11873 11874 11875 11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11900$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11901hardcode_action= 11902if test -n "$hardcode_libdir_flag_spec" || 11903 test -n "$runpath_var" || 11904 test "X$hardcode_automatic" = "Xyes" ; then 11905 11906 # We can hardcode non-existent directories. 11907 if test "$hardcode_direct" != no && 11908 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11909 # have to relink, otherwise we might link with an installed library 11910 # when we should be linking with a yet-to-be-installed one 11911 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11912 test "$hardcode_minus_L" != no; then 11913 # Linking always hardcodes the temporary library directory. 11914 hardcode_action=relink 11915 else 11916 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11917 hardcode_action=immediate 11918 fi 11919else 11920 # We cannot hardcode anything, or else we can only hardcode existing 11921 # directories. 11922 hardcode_action=unsupported 11923fi 11924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11925$as_echo "$hardcode_action" >&6; } 11926 11927if test "$hardcode_action" = relink || 11928 test "$inherit_rpath" = yes; then 11929 # Fast installation is not supported 11930 enable_fast_install=no 11931elif test "$shlibpath_overrides_runpath" = yes || 11932 test "$enable_shared" = no; then 11933 # Fast installation is not necessary 11934 enable_fast_install=needless 11935fi 11936 11937 11938 11939 11940 11941 11942 if test "x$enable_dlopen" != xyes; then 11943 enable_dlopen=unknown 11944 enable_dlopen_self=unknown 11945 enable_dlopen_self_static=unknown 11946else 11947 lt_cv_dlopen=no 11948 lt_cv_dlopen_libs= 11949 11950 case $host_os in 11951 beos*) 11952 lt_cv_dlopen="load_add_on" 11953 lt_cv_dlopen_libs= 11954 lt_cv_dlopen_self=yes 11955 ;; 11956 11957 mingw* | pw32* | cegcc*) 11958 lt_cv_dlopen="LoadLibrary" 11959 lt_cv_dlopen_libs= 11960 ;; 11961 11962 cygwin*) 11963 lt_cv_dlopen="dlopen" 11964 lt_cv_dlopen_libs= 11965 ;; 11966 11967 darwin*) 11968 # if libdl is installed we need to link against it 11969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11970$as_echo_n "checking for dlopen in -ldl... " >&6; } 11971if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 11972 $as_echo_n "(cached) " >&6 11973else 11974 ac_check_lib_save_LIBS=$LIBS 11975LIBS="-ldl $LIBS" 11976cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11977/* end confdefs.h. */ 11978 11979/* Override any GCC internal prototype to avoid an error. 11980 Use char because int might match the return type of a GCC 11981 builtin and then its argument prototype would still apply. */ 11982#ifdef __cplusplus 11983extern "C" 11984#endif 11985char dlopen (); 11986int 11987main () 11988{ 11989return dlopen (); 11990 ; 11991 return 0; 11992} 11993_ACEOF 11994if ac_fn_c_try_link "$LINENO"; then : 11995 ac_cv_lib_dl_dlopen=yes 11996else 11997 ac_cv_lib_dl_dlopen=no 11998fi 11999rm -f core conftest.err conftest.$ac_objext \ 12000 conftest$ac_exeext conftest.$ac_ext 12001LIBS=$ac_check_lib_save_LIBS 12002fi 12003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12004$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12005if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 12006 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12007else 12008 12009 lt_cv_dlopen="dyld" 12010 lt_cv_dlopen_libs= 12011 lt_cv_dlopen_self=yes 12012 12013fi 12014 12015 ;; 12016 12017 *) 12018 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12019if test "x$ac_cv_func_shl_load" = x""yes; then : 12020 lt_cv_dlopen="shl_load" 12021else 12022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12023$as_echo_n "checking for shl_load in -ldld... " >&6; } 12024if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 12025 $as_echo_n "(cached) " >&6 12026else 12027 ac_check_lib_save_LIBS=$LIBS 12028LIBS="-ldld $LIBS" 12029cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12030/* end confdefs.h. */ 12031 12032/* Override any GCC internal prototype to avoid an error. 12033 Use char because int might match the return type of a GCC 12034 builtin and then its argument prototype would still apply. */ 12035#ifdef __cplusplus 12036extern "C" 12037#endif 12038char shl_load (); 12039int 12040main () 12041{ 12042return shl_load (); 12043 ; 12044 return 0; 12045} 12046_ACEOF 12047if ac_fn_c_try_link "$LINENO"; then : 12048 ac_cv_lib_dld_shl_load=yes 12049else 12050 ac_cv_lib_dld_shl_load=no 12051fi 12052rm -f core conftest.err conftest.$ac_objext \ 12053 conftest$ac_exeext conftest.$ac_ext 12054LIBS=$ac_check_lib_save_LIBS 12055fi 12056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12057$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12058if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 12059 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 12060else 12061 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12062if test "x$ac_cv_func_dlopen" = x""yes; then : 12063 lt_cv_dlopen="dlopen" 12064else 12065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12066$as_echo_n "checking for dlopen in -ldl... " >&6; } 12067if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 12068 $as_echo_n "(cached) " >&6 12069else 12070 ac_check_lib_save_LIBS=$LIBS 12071LIBS="-ldl $LIBS" 12072cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12073/* end confdefs.h. */ 12074 12075/* Override any GCC internal prototype to avoid an error. 12076 Use char because int might match the return type of a GCC 12077 builtin and then its argument prototype would still apply. */ 12078#ifdef __cplusplus 12079extern "C" 12080#endif 12081char dlopen (); 12082int 12083main () 12084{ 12085return dlopen (); 12086 ; 12087 return 0; 12088} 12089_ACEOF 12090if ac_fn_c_try_link "$LINENO"; then : 12091 ac_cv_lib_dl_dlopen=yes 12092else 12093 ac_cv_lib_dl_dlopen=no 12094fi 12095rm -f core conftest.err conftest.$ac_objext \ 12096 conftest$ac_exeext conftest.$ac_ext 12097LIBS=$ac_check_lib_save_LIBS 12098fi 12099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12100$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12101if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 12102 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12103else 12104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12105$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12106if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 12107 $as_echo_n "(cached) " >&6 12108else 12109 ac_check_lib_save_LIBS=$LIBS 12110LIBS="-lsvld $LIBS" 12111cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12112/* end confdefs.h. */ 12113 12114/* Override any GCC internal prototype to avoid an error. 12115 Use char because int might match the return type of a GCC 12116 builtin and then its argument prototype would still apply. */ 12117#ifdef __cplusplus 12118extern "C" 12119#endif 12120char dlopen (); 12121int 12122main () 12123{ 12124return dlopen (); 12125 ; 12126 return 0; 12127} 12128_ACEOF 12129if ac_fn_c_try_link "$LINENO"; then : 12130 ac_cv_lib_svld_dlopen=yes 12131else 12132 ac_cv_lib_svld_dlopen=no 12133fi 12134rm -f core conftest.err conftest.$ac_objext \ 12135 conftest$ac_exeext conftest.$ac_ext 12136LIBS=$ac_check_lib_save_LIBS 12137fi 12138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12139$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12140if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 12141 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 12142else 12143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12144$as_echo_n "checking for dld_link in -ldld... " >&6; } 12145if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 12146 $as_echo_n "(cached) " >&6 12147else 12148 ac_check_lib_save_LIBS=$LIBS 12149LIBS="-ldld $LIBS" 12150cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12151/* end confdefs.h. */ 12152 12153/* Override any GCC internal prototype to avoid an error. 12154 Use char because int might match the return type of a GCC 12155 builtin and then its argument prototype would still apply. */ 12156#ifdef __cplusplus 12157extern "C" 12158#endif 12159char dld_link (); 12160int 12161main () 12162{ 12163return dld_link (); 12164 ; 12165 return 0; 12166} 12167_ACEOF 12168if ac_fn_c_try_link "$LINENO"; then : 12169 ac_cv_lib_dld_dld_link=yes 12170else 12171 ac_cv_lib_dld_dld_link=no 12172fi 12173rm -f core conftest.err conftest.$ac_objext \ 12174 conftest$ac_exeext conftest.$ac_ext 12175LIBS=$ac_check_lib_save_LIBS 12176fi 12177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12178$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12179if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 12180 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 12181fi 12182 12183 12184fi 12185 12186 12187fi 12188 12189 12190fi 12191 12192 12193fi 12194 12195 12196fi 12197 12198 ;; 12199 esac 12200 12201 if test "x$lt_cv_dlopen" != xno; then 12202 enable_dlopen=yes 12203 else 12204 enable_dlopen=no 12205 fi 12206 12207 case $lt_cv_dlopen in 12208 dlopen) 12209 save_CPPFLAGS="$CPPFLAGS" 12210 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12211 12212 save_LDFLAGS="$LDFLAGS" 12213 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12214 12215 save_LIBS="$LIBS" 12216 LIBS="$lt_cv_dlopen_libs $LIBS" 12217 12218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12219$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12220if test "${lt_cv_dlopen_self+set}" = set; then : 12221 $as_echo_n "(cached) " >&6 12222else 12223 if test "$cross_compiling" = yes; then : 12224 lt_cv_dlopen_self=cross 12225else 12226 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12227 lt_status=$lt_dlunknown 12228 cat > conftest.$ac_ext <<_LT_EOF 12229#line 12229 "configure" 12230#include "confdefs.h" 12231 12232#if HAVE_DLFCN_H 12233#include <dlfcn.h> 12234#endif 12235 12236#include <stdio.h> 12237 12238#ifdef RTLD_GLOBAL 12239# define LT_DLGLOBAL RTLD_GLOBAL 12240#else 12241# ifdef DL_GLOBAL 12242# define LT_DLGLOBAL DL_GLOBAL 12243# else 12244# define LT_DLGLOBAL 0 12245# endif 12246#endif 12247 12248/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12249 find out it does not work in some platform. */ 12250#ifndef LT_DLLAZY_OR_NOW 12251# ifdef RTLD_LAZY 12252# define LT_DLLAZY_OR_NOW RTLD_LAZY 12253# else 12254# ifdef DL_LAZY 12255# define LT_DLLAZY_OR_NOW DL_LAZY 12256# else 12257# ifdef RTLD_NOW 12258# define LT_DLLAZY_OR_NOW RTLD_NOW 12259# else 12260# ifdef DL_NOW 12261# define LT_DLLAZY_OR_NOW DL_NOW 12262# else 12263# define LT_DLLAZY_OR_NOW 0 12264# endif 12265# endif 12266# endif 12267# endif 12268#endif 12269 12270void fnord() { int i=42;} 12271int main () 12272{ 12273 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12274 int status = $lt_dlunknown; 12275 12276 if (self) 12277 { 12278 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12279 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12280 /* dlclose (self); */ 12281 } 12282 else 12283 puts (dlerror ()); 12284 12285 return status; 12286} 12287_LT_EOF 12288 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12289 (eval $ac_link) 2>&5 12290 ac_status=$? 12291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12292 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12293 (./conftest; exit; ) >&5 2>/dev/null 12294 lt_status=$? 12295 case x$lt_status in 12296 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12297 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12298 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12299 esac 12300 else : 12301 # compilation failed 12302 lt_cv_dlopen_self=no 12303 fi 12304fi 12305rm -fr conftest* 12306 12307 12308fi 12309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12310$as_echo "$lt_cv_dlopen_self" >&6; } 12311 12312 if test "x$lt_cv_dlopen_self" = xyes; then 12313 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12315$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12316if test "${lt_cv_dlopen_self_static+set}" = set; then : 12317 $as_echo_n "(cached) " >&6 12318else 12319 if test "$cross_compiling" = yes; then : 12320 lt_cv_dlopen_self_static=cross 12321else 12322 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12323 lt_status=$lt_dlunknown 12324 cat > conftest.$ac_ext <<_LT_EOF 12325#line 12325 "configure" 12326#include "confdefs.h" 12327 12328#if HAVE_DLFCN_H 12329#include <dlfcn.h> 12330#endif 12331 12332#include <stdio.h> 12333 12334#ifdef RTLD_GLOBAL 12335# define LT_DLGLOBAL RTLD_GLOBAL 12336#else 12337# ifdef DL_GLOBAL 12338# define LT_DLGLOBAL DL_GLOBAL 12339# else 12340# define LT_DLGLOBAL 0 12341# endif 12342#endif 12343 12344/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12345 find out it does not work in some platform. */ 12346#ifndef LT_DLLAZY_OR_NOW 12347# ifdef RTLD_LAZY 12348# define LT_DLLAZY_OR_NOW RTLD_LAZY 12349# else 12350# ifdef DL_LAZY 12351# define LT_DLLAZY_OR_NOW DL_LAZY 12352# else 12353# ifdef RTLD_NOW 12354# define LT_DLLAZY_OR_NOW RTLD_NOW 12355# else 12356# ifdef DL_NOW 12357# define LT_DLLAZY_OR_NOW DL_NOW 12358# else 12359# define LT_DLLAZY_OR_NOW 0 12360# endif 12361# endif 12362# endif 12363# endif 12364#endif 12365 12366void fnord() { int i=42;} 12367int main () 12368{ 12369 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12370 int status = $lt_dlunknown; 12371 12372 if (self) 12373 { 12374 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12375 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12376 /* dlclose (self); */ 12377 } 12378 else 12379 puts (dlerror ()); 12380 12381 return status; 12382} 12383_LT_EOF 12384 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12385 (eval $ac_link) 2>&5 12386 ac_status=$? 12387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12388 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12389 (./conftest; exit; ) >&5 2>/dev/null 12390 lt_status=$? 12391 case x$lt_status in 12392 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12393 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12394 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12395 esac 12396 else : 12397 # compilation failed 12398 lt_cv_dlopen_self_static=no 12399 fi 12400fi 12401rm -fr conftest* 12402 12403 12404fi 12405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12406$as_echo "$lt_cv_dlopen_self_static" >&6; } 12407 fi 12408 12409 CPPFLAGS="$save_CPPFLAGS" 12410 LDFLAGS="$save_LDFLAGS" 12411 LIBS="$save_LIBS" 12412 ;; 12413 esac 12414 12415 case $lt_cv_dlopen_self in 12416 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12417 *) enable_dlopen_self=unknown ;; 12418 esac 12419 12420 case $lt_cv_dlopen_self_static in 12421 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12422 *) enable_dlopen_self_static=unknown ;; 12423 esac 12424fi 12425 12426 12427 12428 12429 12430 12431 12432 12433 12434 12435 12436 12437 12438 12439 12440 12441 12442striplib= 12443old_striplib= 12444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12445$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12446if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12447 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12448 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12450$as_echo "yes" >&6; } 12451else 12452# FIXME - insert some real tests, host_os isn't really good enough 12453 case $host_os in 12454 darwin*) 12455 if test -n "$STRIP" ; then 12456 striplib="$STRIP -x" 12457 old_striplib="$STRIP -S" 12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12459$as_echo "yes" >&6; } 12460 else 12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12462$as_echo "no" >&6; } 12463 fi 12464 ;; 12465 *) 12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12467$as_echo "no" >&6; } 12468 ;; 12469 esac 12470fi 12471 12472 12473 12474 12475 12476 12477 12478 12479 12480 12481 12482 12483 # Report which library types will actually be built 12484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12485$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12487$as_echo "$can_build_shared" >&6; } 12488 12489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12490$as_echo_n "checking whether to build shared libraries... " >&6; } 12491 test "$can_build_shared" = "no" && enable_shared=no 12492 12493 # On AIX, shared libraries and static libraries use the same namespace, and 12494 # are all built from PIC. 12495 case $host_os in 12496 aix3*) 12497 test "$enable_shared" = yes && enable_static=no 12498 if test -n "$RANLIB"; then 12499 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12500 postinstall_cmds='$RANLIB $lib' 12501 fi 12502 ;; 12503 12504 aix[4-9]*) 12505 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12506 test "$enable_shared" = yes && enable_static=no 12507 fi 12508 ;; 12509 esac 12510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12511$as_echo "$enable_shared" >&6; } 12512 12513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12514$as_echo_n "checking whether to build static libraries... " >&6; } 12515 # Make sure either enable_shared or enable_static is yes. 12516 test "$enable_shared" = yes || enable_static=yes 12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12518$as_echo "$enable_static" >&6; } 12519 12520 12521 12522 12523fi 12524ac_ext=c 12525ac_cpp='$CPP $CPPFLAGS' 12526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12528ac_compiler_gnu=$ac_cv_c_compiler_gnu 12529 12530CC="$lt_save_CC" 12531 12532 12533 12534 12535 12536 12537 12538 12539 12540 12541 12542 12543 12544 ac_config_commands="$ac_config_commands libtool" 12545 12546 12547 12548 12549# Only expand once: 12550 12551 12552 12553 12554 12555 12556for ac_prog in cpp 12557do 12558 # Extract the first word of "$ac_prog", so it can be a program name with args. 12559set dummy $ac_prog; ac_word=$2 12560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12561$as_echo_n "checking for $ac_word... " >&6; } 12562if test "${ac_cv_path_RAWCPP+set}" = set; then : 12563 $as_echo_n "(cached) " >&6 12564else 12565 case $RAWCPP in 12566 [\\/]* | ?:[\\/]*) 12567 ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path. 12568 ;; 12569 *) 12570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12571as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib" 12572for as_dir in $as_dummy 12573do 12574 IFS=$as_save_IFS 12575 test -z "$as_dir" && as_dir=. 12576 for ac_exec_ext in '' $ac_executable_extensions; do 12577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12578 ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext" 12579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12580 break 2 12581 fi 12582done 12583 done 12584IFS=$as_save_IFS 12585 12586 ;; 12587esac 12588fi 12589RAWCPP=$ac_cv_path_RAWCPP 12590if test -n "$RAWCPP"; then 12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5 12592$as_echo "$RAWCPP" >&6; } 12593else 12594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12595$as_echo "no" >&6; } 12596fi 12597 12598 12599 test -n "$RAWCPP" && break 12600done 12601test -n "$RAWCPP" || RAWCPP="${CPP}" 12602 12603 12604# Check for flag to avoid builtin definitions - assumes unix is predefined, 12605# which is not the best choice for supporting other OS'es, but covers most 12606# of the ones we need for now. 12607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5 12608$as_echo_n "checking if $RAWCPP requires -undef... " >&6; } 12609cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12610/* end confdefs.h. */ 12611Does cpp redefine unix ? 12612_ACEOF 12613if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12615$as_echo "no" >&6; } 12616else 12617 if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 12618 RAWCPPFLAGS=-undef 12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12620$as_echo "yes" >&6; } 12621 # under Cygwin unix is still defined even with -undef 12622 elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 12623 RAWCPPFLAGS="-undef -ansi" 12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5 12625$as_echo "yes, with -ansi" >&6; } 12626 else 12627 as_fn_error "${RAWCPP} defines unix with or without -undef. I don't know what to do." "$LINENO" 5 12628 fi 12629fi 12630rm -f conftest.$ac_ext 12631 12632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5 12633$as_echo_n "checking if $RAWCPP requires -traditional... " >&6; } 12634cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12635/* end confdefs.h. */ 12636Does cpp preserve "whitespace"? 12637_ACEOF 12638if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12640$as_echo "no" >&6; } 12641else 12642 if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 12643 RAWCPPFLAGS="${RAWCPPFLAGS} -traditional" 12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12645$as_echo "yes" >&6; } 12646 else 12647 as_fn_error "${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do." "$LINENO" 5 12648 fi 12649fi 12650rm -f conftest.$ac_ext 12651 12652 12653 12654 12655# Allow checking code with lint, sparse, etc. 12656 12657# Check whether --with-lint was given. 12658if test "${with_lint+set}" = set; then : 12659 withval=$with_lint; use_lint=$withval 12660else 12661 use_lint=no 12662fi 12663 12664if test "x$use_lint" = "xyes" ; then 12665 LINT="lint" 12666else 12667 LINT="$use_lint" 12668fi 12669if test "x$LINT_FLAGS" = "x" -a "x$LINT" != "xno" ; then 12670 case $LINT in 12671 lint|*/lint) 12672 case $host_os in 12673 solaris*) 12674 LINT_FLAGS="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 12675 ;; 12676 esac 12677 ;; 12678 esac 12679fi 12680 12681 12682 12683 if test x$LINT != xno; then 12684 LINT_TRUE= 12685 LINT_FALSE='#' 12686else 12687 LINT_TRUE='#' 12688 LINT_FALSE= 12689fi 12690 12691 12692 12693 12694HAVE_AM_SILENT_RULES=yes 12695 if test x$HAVE_AM_SILENT_RULES != x; then 12696 HAVE_AM_SILENT_RULES_TRUE= 12697 HAVE_AM_SILENT_RULES_FALSE='#' 12698else 12699 HAVE_AM_SILENT_RULES_TRUE='#' 12700 HAVE_AM_SILENT_RULES_FALSE= 12701fi 12702 12703 12704XDM_CFLAGS="$XDM_CFLAGS" 12705GREETER_CFLAGS="$GREETER_CFLAGS" 12706CHOOSER_CFLAGS="$CHOOSER_CFLAGS" 12707 12708# Check for mktemp to prevent security issue noted in Xorg bug #5898 12709# See https://bugs.freedesktop.org/show_bug.cgi?id=5898 for details. 12710# Extract the first word of "mktemp", so it can be a program name with args. 12711set dummy mktemp; ac_word=$2 12712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12713$as_echo_n "checking for $ac_word... " >&6; } 12714if test "${ac_cv_path_MKTEMP_COMMAND+set}" = set; then : 12715 $as_echo_n "(cached) " >&6 12716else 12717 case $MKTEMP_COMMAND in 12718 [\\/]* | ?:[\\/]*) 12719 ac_cv_path_MKTEMP_COMMAND="$MKTEMP_COMMAND" # Let the user override the test with a path. 12720 ;; 12721 *) 12722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12723for as_dir in $PATH 12724do 12725 IFS=$as_save_IFS 12726 test -z "$as_dir" && as_dir=. 12727 for ac_exec_ext in '' $ac_executable_extensions; do 12728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12729 ac_cv_path_MKTEMP_COMMAND="$as_dir/$ac_word$ac_exec_ext" 12730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12731 break 2 12732 fi 12733done 12734 done 12735IFS=$as_save_IFS 12736 12737 ;; 12738esac 12739fi 12740MKTEMP_COMMAND=$ac_cv_path_MKTEMP_COMMAND 12741if test -n "$MKTEMP_COMMAND"; then 12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP_COMMAND" >&5 12743$as_echo "$MKTEMP_COMMAND" >&6; } 12744else 12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12746$as_echo "no" >&6; } 12747fi 12748 12749 12750 if test x$MKTEMP_COMMAND != x; then 12751 HAVE_MKTEMP_COMMAND_TRUE= 12752 HAVE_MKTEMP_COMMAND_FALSE='#' 12753else 12754 HAVE_MKTEMP_COMMAND_TRUE='#' 12755 HAVE_MKTEMP_COMMAND_FALSE= 12756fi 12757 12758 12759ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 12760if test "x$ac_cv_type_pid_t" = x""yes; then : 12761 12762else 12763 12764cat >>confdefs.h <<_ACEOF 12765#define pid_t int 12766_ACEOF 12767 12768fi 12769 12770for ac_header in vfork.h 12771do : 12772 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 12773if test "x$ac_cv_header_vfork_h" = x""yes; then : 12774 cat >>confdefs.h <<_ACEOF 12775#define HAVE_VFORK_H 1 12776_ACEOF 12777 12778fi 12779 12780done 12781 12782for ac_func in fork vfork 12783do : 12784 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12785ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12786eval as_val=\$$as_ac_var 12787 if test "x$as_val" = x""yes; then : 12788 cat >>confdefs.h <<_ACEOF 12789#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12790_ACEOF 12791 12792fi 12793done 12794 12795if test "x$ac_cv_func_fork" = xyes; then 12796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 12797$as_echo_n "checking for working fork... " >&6; } 12798if test "${ac_cv_func_fork_works+set}" = set; then : 12799 $as_echo_n "(cached) " >&6 12800else 12801 if test "$cross_compiling" = yes; then : 12802 ac_cv_func_fork_works=cross 12803else 12804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12805/* end confdefs.h. */ 12806$ac_includes_default 12807int 12808main () 12809{ 12810 12811 /* By Ruediger Kuhlmann. */ 12812 return fork () < 0; 12813 12814 ; 12815 return 0; 12816} 12817_ACEOF 12818if ac_fn_c_try_run "$LINENO"; then : 12819 ac_cv_func_fork_works=yes 12820else 12821 ac_cv_func_fork_works=no 12822fi 12823rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12824 conftest.$ac_objext conftest.beam conftest.$ac_ext 12825fi 12826 12827fi 12828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 12829$as_echo "$ac_cv_func_fork_works" >&6; } 12830 12831else 12832 ac_cv_func_fork_works=$ac_cv_func_fork 12833fi 12834if test "x$ac_cv_func_fork_works" = xcross; then 12835 case $host in 12836 *-*-amigaos* | *-*-msdosdjgpp*) 12837 # Override, as these systems have only a dummy fork() stub 12838 ac_cv_func_fork_works=no 12839 ;; 12840 *) 12841 ac_cv_func_fork_works=yes 12842 ;; 12843 esac 12844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 12845$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 12846fi 12847ac_cv_func_vfork_works=$ac_cv_func_vfork 12848if test "x$ac_cv_func_vfork" = xyes; then 12849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 12850$as_echo_n "checking for working vfork... " >&6; } 12851if test "${ac_cv_func_vfork_works+set}" = set; then : 12852 $as_echo_n "(cached) " >&6 12853else 12854 if test "$cross_compiling" = yes; then : 12855 ac_cv_func_vfork_works=cross 12856else 12857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12858/* end confdefs.h. */ 12859/* Thanks to Paul Eggert for this test. */ 12860$ac_includes_default 12861#include <sys/wait.h> 12862#ifdef HAVE_VFORK_H 12863# include <vfork.h> 12864#endif 12865/* On some sparc systems, changes by the child to local and incoming 12866 argument registers are propagated back to the parent. The compiler 12867 is told about this with #include <vfork.h>, but some compilers 12868 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 12869 static variable whose address is put into a register that is 12870 clobbered by the vfork. */ 12871static void 12872#ifdef __cplusplus 12873sparc_address_test (int arg) 12874# else 12875sparc_address_test (arg) int arg; 12876#endif 12877{ 12878 static pid_t child; 12879 if (!child) { 12880 child = vfork (); 12881 if (child < 0) { 12882 perror ("vfork"); 12883 _exit(2); 12884 } 12885 if (!child) { 12886 arg = getpid(); 12887 write(-1, "", 0); 12888 _exit (arg); 12889 } 12890 } 12891} 12892 12893int 12894main () 12895{ 12896 pid_t parent = getpid (); 12897 pid_t child; 12898 12899 sparc_address_test (0); 12900 12901 child = vfork (); 12902 12903 if (child == 0) { 12904 /* Here is another test for sparc vfork register problems. This 12905 test uses lots of local variables, at least as many local 12906 variables as main has allocated so far including compiler 12907 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 12908 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 12909 reuse the register of parent for one of the local variables, 12910 since it will think that parent can't possibly be used any more 12911 in this routine. Assigning to the local variable will thus 12912 munge parent in the parent process. */ 12913 pid_t 12914 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 12915 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 12916 /* Convince the compiler that p..p7 are live; otherwise, it might 12917 use the same hardware register for all 8 local variables. */ 12918 if (p != p1 || p != p2 || p != p3 || p != p4 12919 || p != p5 || p != p6 || p != p7) 12920 _exit(1); 12921 12922 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 12923 from child file descriptors. If the child closes a descriptor 12924 before it execs or exits, this munges the parent's descriptor 12925 as well. Test for this by closing stdout in the child. */ 12926 _exit(close(fileno(stdout)) != 0); 12927 } else { 12928 int status; 12929 struct stat st; 12930 12931 while (wait(&status) != child) 12932 ; 12933 return ( 12934 /* Was there some problem with vforking? */ 12935 child < 0 12936 12937 /* Did the child fail? (This shouldn't happen.) */ 12938 || status 12939 12940 /* Did the vfork/compiler bug occur? */ 12941 || parent != getpid() 12942 12943 /* Did the file descriptor bug occur? */ 12944 || fstat(fileno(stdout), &st) != 0 12945 ); 12946 } 12947} 12948_ACEOF 12949if ac_fn_c_try_run "$LINENO"; then : 12950 ac_cv_func_vfork_works=yes 12951else 12952 ac_cv_func_vfork_works=no 12953fi 12954rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12955 conftest.$ac_objext conftest.beam conftest.$ac_ext 12956fi 12957 12958fi 12959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 12960$as_echo "$ac_cv_func_vfork_works" >&6; } 12961 12962fi; 12963if test "x$ac_cv_func_fork_works" = xcross; then 12964 ac_cv_func_vfork_works=$ac_cv_func_vfork 12965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 12966$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 12967fi 12968 12969if test "x$ac_cv_func_vfork_works" = xyes; then 12970 12971$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 12972 12973else 12974 12975$as_echo "#define vfork fork" >>confdefs.h 12976 12977fi 12978if test "x$ac_cv_func_fork_works" = xyes; then 12979 12980$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 12981 12982fi 12983 12984 12985ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp" 12986if test "x$ac_cv_func_mkstemp" = x""yes; then : 12987 12988$as_echo "#define HAS_MKSTEMP 1" >>confdefs.h 12989 12990fi 12991 12992ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs" 12993if test "x$ac_cv_func_getifaddrs" = x""yes; then : 12994 12995$as_echo "#define HAS_GETIFADDRS 1" >>confdefs.h 12996 12997fi 12998 12999ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam" 13000if test "x$ac_cv_func_getspnam" = x""yes; then : 13001 13002$as_echo "#define USESHADOW 1" >>confdefs.h 13003 13004fi 13005 13006 13007 13008# According to the old Imakefile, FreeBSD has this in libutil 13009ac_fn_c_check_func "$LINENO" "setproctitle" "ac_cv_func_setproctitle" 13010if test "x$ac_cv_func_setproctitle" = x""yes; then : 13011 HAS_SETPROCTITLE="yes" 13012else 13013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproctitle in -lutil" >&5 13014$as_echo_n "checking for setproctitle in -lutil... " >&6; } 13015if test "${ac_cv_lib_util_setproctitle+set}" = set; then : 13016 $as_echo_n "(cached) " >&6 13017else 13018 ac_check_lib_save_LIBS=$LIBS 13019LIBS="-lutil $LIBS" 13020cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13021/* end confdefs.h. */ 13022 13023/* Override any GCC internal prototype to avoid an error. 13024 Use char because int might match the return type of a GCC 13025 builtin and then its argument prototype would still apply. */ 13026#ifdef __cplusplus 13027extern "C" 13028#endif 13029char setproctitle (); 13030int 13031main () 13032{ 13033return setproctitle (); 13034 ; 13035 return 0; 13036} 13037_ACEOF 13038if ac_fn_c_try_link "$LINENO"; then : 13039 ac_cv_lib_util_setproctitle=yes 13040else 13041 ac_cv_lib_util_setproctitle=no 13042fi 13043rm -f core conftest.err conftest.$ac_objext \ 13044 conftest$ac_exeext conftest.$ac_ext 13045LIBS=$ac_check_lib_save_LIBS 13046fi 13047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_setproctitle" >&5 13048$as_echo "$ac_cv_lib_util_setproctitle" >&6; } 13049if test "x$ac_cv_lib_util_setproctitle" = x""yes; then : 13050 HAS_SETPROCTITLE="yes" ; XDM_OS_LIBS="$XDM_OS_LIBS -lutil" 13051fi 13052 13053fi 13054 13055if test "x$HAS_SETPROCTITLE" = "xyes" ; then 13056 13057$as_echo "#define HAS_SETPROCTITLE 1" >>confdefs.h 13058 13059fi 13060 13061# According to the old Imakefile, BSD/OS has this in libutil 13062ac_fn_c_check_func "$LINENO" "setusercontext" "ac_cv_func_setusercontext" 13063if test "x$ac_cv_func_setusercontext" = x""yes; then : 13064 HAS_SETUSERCONTEXT="yes" 13065else 13066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setusercontext in -lutil" >&5 13067$as_echo_n "checking for setusercontext in -lutil... " >&6; } 13068if test "${ac_cv_lib_util_setusercontext+set}" = set; then : 13069 $as_echo_n "(cached) " >&6 13070else 13071 ac_check_lib_save_LIBS=$LIBS 13072LIBS="-lutil $LIBS" 13073cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13074/* end confdefs.h. */ 13075 13076/* Override any GCC internal prototype to avoid an error. 13077 Use char because int might match the return type of a GCC 13078 builtin and then its argument prototype would still apply. */ 13079#ifdef __cplusplus 13080extern "C" 13081#endif 13082char setusercontext (); 13083int 13084main () 13085{ 13086return setusercontext (); 13087 ; 13088 return 0; 13089} 13090_ACEOF 13091if ac_fn_c_try_link "$LINENO"; then : 13092 ac_cv_lib_util_setusercontext=yes 13093else 13094 ac_cv_lib_util_setusercontext=no 13095fi 13096rm -f core conftest.err conftest.$ac_objext \ 13097 conftest$ac_exeext conftest.$ac_ext 13098LIBS=$ac_check_lib_save_LIBS 13099fi 13100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_setusercontext" >&5 13101$as_echo "$ac_cv_lib_util_setusercontext" >&6; } 13102if test "x$ac_cv_lib_util_setusercontext" = x""yes; then : 13103 HAS_SETUSERCONTEXT="yes" ; XDM_OS_LIBS="$XDM_OS_LIBS -lutil" 13104fi 13105 13106fi 13107 13108if test "x$HAS_SETUSERCONTEXT" = "xyes" ; then 13109 13110$as_echo "#define HAS_SETUSERCONTEXT 1" >>confdefs.h 13111 13112fi 13113 13114for ac_func in daemon sigaction openlog asprintf 13115do : 13116 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13117ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13118eval as_val=\$$as_ac_var 13119 if test "x$as_val" = x""yes; then : 13120 cat >>confdefs.h <<_ACEOF 13121#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13122_ACEOF 13123 13124fi 13125done 13126 13127for ac_header in grp.h syslog.h 13128do : 13129 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13130ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13131eval as_val=\$$as_ac_Header 13132 if test "x$as_val" = x""yes; then : 13133 cat >>confdefs.h <<_ACEOF 13134#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13135_ACEOF 13136 13137fi 13138 13139done 13140 13141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 13142$as_echo_n "checking return type of signal handlers... " >&6; } 13143if test "${ac_cv_type_signal+set}" = set; then : 13144 $as_echo_n "(cached) " >&6 13145else 13146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13147/* end confdefs.h. */ 13148#include <sys/types.h> 13149#include <signal.h> 13150 13151int 13152main () 13153{ 13154return *(signal (0, 0)) (0) == 1; 13155 ; 13156 return 0; 13157} 13158_ACEOF 13159if ac_fn_c_try_compile "$LINENO"; then : 13160 ac_cv_type_signal=int 13161else 13162 ac_cv_type_signal=void 13163fi 13164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13165fi 13166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 13167$as_echo "$ac_cv_type_signal" >&6; } 13168 13169cat >>confdefs.h <<_ACEOF 13170#define RETSIGTYPE $ac_cv_type_signal 13171_ACEOF 13172 13173 13174 13175 13176 13177 13178 case $host_os in 13179 mingw*) unixdef="no" ;; 13180 *) unixdef="yes" ;; 13181 esac 13182 # Check whether --enable-unix-transport was given. 13183if test "${enable_unix_transport+set}" = set; then : 13184 enableval=$enable_unix_transport; UNIXCONN=$enableval 13185else 13186 UNIXCONN=$unixdef 13187fi 13188 13189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5 13190$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; } 13191 if test "$UNIXCONN" = "yes"; then 13192 13193$as_echo "#define UNIXCONN 1" >>confdefs.h 13194 13195 fi 13196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5 13197$as_echo "$UNIXCONN" >&6; } 13198 # Check whether --enable-tcp-transport was given. 13199if test "${enable_tcp_transport+set}" = set; then : 13200 enableval=$enable_tcp_transport; TCPCONN=$enableval 13201else 13202 TCPCONN=yes 13203fi 13204 13205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5 13206$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; } 13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5 13208$as_echo "$TCPCONN" >&6; } 13209 if test "$TCPCONN" = "yes"; then 13210 13211$as_echo "#define TCPCONN 1" >>confdefs.h 13212 13213 13214 # SVR4 hides these in libraries other than libc 13215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 13216$as_echo_n "checking for library containing socket... " >&6; } 13217if test "${ac_cv_search_socket+set}" = set; then : 13218 $as_echo_n "(cached) " >&6 13219else 13220 ac_func_search_save_LIBS=$LIBS 13221cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13222/* end confdefs.h. */ 13223 13224/* Override any GCC internal prototype to avoid an error. 13225 Use char because int might match the return type of a GCC 13226 builtin and then its argument prototype would still apply. */ 13227#ifdef __cplusplus 13228extern "C" 13229#endif 13230char socket (); 13231int 13232main () 13233{ 13234return socket (); 13235 ; 13236 return 0; 13237} 13238_ACEOF 13239for ac_lib in '' socket; do 13240 if test -z "$ac_lib"; then 13241 ac_res="none required" 13242 else 13243 ac_res=-l$ac_lib 13244 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13245 fi 13246 if ac_fn_c_try_link "$LINENO"; then : 13247 ac_cv_search_socket=$ac_res 13248fi 13249rm -f core conftest.err conftest.$ac_objext \ 13250 conftest$ac_exeext 13251 if test "${ac_cv_search_socket+set}" = set; then : 13252 break 13253fi 13254done 13255if test "${ac_cv_search_socket+set}" = set; then : 13256 13257else 13258 ac_cv_search_socket=no 13259fi 13260rm conftest.$ac_ext 13261LIBS=$ac_func_search_save_LIBS 13262fi 13263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 13264$as_echo "$ac_cv_search_socket" >&6; } 13265ac_res=$ac_cv_search_socket 13266if test "$ac_res" != no; then : 13267 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13268 13269fi 13270 13271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 13272$as_echo_n "checking for library containing gethostbyname... " >&6; } 13273if test "${ac_cv_search_gethostbyname+set}" = set; then : 13274 $as_echo_n "(cached) " >&6 13275else 13276 ac_func_search_save_LIBS=$LIBS 13277cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13278/* end confdefs.h. */ 13279 13280/* Override any GCC internal prototype to avoid an error. 13281 Use char because int might match the return type of a GCC 13282 builtin and then its argument prototype would still apply. */ 13283#ifdef __cplusplus 13284extern "C" 13285#endif 13286char gethostbyname (); 13287int 13288main () 13289{ 13290return gethostbyname (); 13291 ; 13292 return 0; 13293} 13294_ACEOF 13295for ac_lib in '' nsl; do 13296 if test -z "$ac_lib"; then 13297 ac_res="none required" 13298 else 13299 ac_res=-l$ac_lib 13300 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13301 fi 13302 if ac_fn_c_try_link "$LINENO"; then : 13303 ac_cv_search_gethostbyname=$ac_res 13304fi 13305rm -f core conftest.err conftest.$ac_objext \ 13306 conftest$ac_exeext 13307 if test "${ac_cv_search_gethostbyname+set}" = set; then : 13308 break 13309fi 13310done 13311if test "${ac_cv_search_gethostbyname+set}" = set; then : 13312 13313else 13314 ac_cv_search_gethostbyname=no 13315fi 13316rm conftest.$ac_ext 13317LIBS=$ac_func_search_save_LIBS 13318fi 13319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 13320$as_echo "$ac_cv_search_gethostbyname" >&6; } 13321ac_res=$ac_cv_search_gethostbyname 13322if test "$ac_res" != no; then : 13323 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13324 13325fi 13326 13327 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then 13328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 13329$as_echo_n "checking for main in -lws2_32... " >&6; } 13330if test "${ac_cv_lib_ws2_32_main+set}" = set; then : 13331 $as_echo_n "(cached) " >&6 13332else 13333 ac_check_lib_save_LIBS=$LIBS 13334LIBS="-lws2_32 $LIBS" 13335cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13336/* end confdefs.h. */ 13337 13338 13339int 13340main () 13341{ 13342return main (); 13343 ; 13344 return 0; 13345} 13346_ACEOF 13347if ac_fn_c_try_link "$LINENO"; then : 13348 ac_cv_lib_ws2_32_main=yes 13349else 13350 ac_cv_lib_ws2_32_main=no 13351fi 13352rm -f core conftest.err conftest.$ac_objext \ 13353 conftest$ac_exeext conftest.$ac_ext 13354LIBS=$ac_check_lib_save_LIBS 13355fi 13356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 13357$as_echo "$ac_cv_lib_ws2_32_main" >&6; } 13358if test "x$ac_cv_lib_ws2_32_main" = x""yes; then : 13359 cat >>confdefs.h <<_ACEOF 13360#define HAVE_LIBWS2_32 1 13361_ACEOF 13362 13363 LIBS="-lws2_32 $LIBS" 13364 13365fi 13366ac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main 13367 13368 fi 13369 13370 # Needs to come after above checks for libsocket & libnsl for SVR4 systems 13371 # Check whether --enable-ipv6 was given. 13372if test "${enable_ipv6+set}" = set; then : 13373 enableval=$enable_ipv6; IPV6CONN=$enableval 13374else 13375 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 13376if test "x$ac_cv_func_getaddrinfo" = x""yes; then : 13377 IPV6CONN=yes 13378else 13379 IPV6CONN=no 13380fi 13381 13382fi 13383 13384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5 13385$as_echo_n "checking if IPv6 support should be built... " >&6; } 13386 if test "$IPV6CONN" = "yes"; then 13387 13388$as_echo "#define IPv6 1" >>confdefs.h 13389 13390 fi 13391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5 13392$as_echo "$IPV6CONN" >&6; } 13393 13394 # 4.3BSD-Reno added a new member to struct sockaddr_in 13395 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" " 13396#include <sys/types.h> 13397#include <sys/socket.h> 13398#include <netinet/in.h> 13399 13400" 13401if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = x""yes; then : 13402 13403$as_echo "#define BSD44SOCKETS 1" >>confdefs.h 13404 13405fi 13406 13407 13408 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc. 13409 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 13410$ac_includes_default 13411#include <sys/socket.h> 13412" 13413if test "x$ac_cv_type_socklen_t" = x""yes; then : 13414 13415cat >>confdefs.h <<_ACEOF 13416#define HAVE_SOCKLEN_T 1 13417_ACEOF 13418 13419 13420fi 13421 13422 13423 13424 fi 13425 case $host_os in 13426 solaris*|sco*|sysv4*) localdef="yes" ;; 13427 *) localdef="no" ;; 13428 esac 13429 # Check whether --enable-local-transport was given. 13430if test "${enable_local_transport+set}" = set; then : 13431 enableval=$enable_local_transport; LOCALCONN=$enableval 13432else 13433 LOCALCONN=$localdef 13434fi 13435 13436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5 13437$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; } 13438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5 13439$as_echo "$LOCALCONN" >&6; } 13440 if test "$LOCALCONN" = "yes"; then 13441 13442$as_echo "#define LOCALCONN 1" >>confdefs.h 13443 13444 fi 13445 13446 13447 13448 # Check whether --enable-secure-rpc was given. 13449if test "${enable_secure_rpc+set}" = set; then : 13450 enableval=$enable_secure_rpc; SECURE_RPC=$enableval 13451else 13452 SECURE_RPC="try" 13453fi 13454 13455 13456 if test "x$SECURE_RPC" = "xyes" -o "x$SECURE_RPC" = "xtry" ; then 13457 FOUND_SECURE_RPC="no" 13458 for ac_func in authdes_seccreate authdes_create 13459do : 13460 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13461ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13462eval as_val=\$$as_ac_var 13463 if test "x$as_val" = x""yes; then : 13464 cat >>confdefs.h <<_ACEOF 13465#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13466_ACEOF 13467 FOUND_SECURE_RPC="yes" 13468fi 13469done 13470 13471 if test "x$FOUND_SECURE_RPC" = "xno" ; then 13472 if test "x$SECURE_RPC" = "xyes" ; then 13473 as_fn_error "Secure RPC requested, but required functions not found" "$LINENO" 5 13474 fi 13475 SECURE_RPC="no" 13476 else 13477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsecretkey" >&5 13478$as_echo_n "checking for library containing getsecretkey... " >&6; } 13479if test "${ac_cv_search_getsecretkey+set}" = set; then : 13480 $as_echo_n "(cached) " >&6 13481else 13482 ac_func_search_save_LIBS=$LIBS 13483cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13484/* end confdefs.h. */ 13485 13486/* Override any GCC internal prototype to avoid an error. 13487 Use char because int might match the return type of a GCC 13488 builtin and then its argument prototype would still apply. */ 13489#ifdef __cplusplus 13490extern "C" 13491#endif 13492char getsecretkey (); 13493int 13494main () 13495{ 13496return getsecretkey (); 13497 ; 13498 return 0; 13499} 13500_ACEOF 13501for ac_lib in '' rpcsvc; do 13502 if test -z "$ac_lib"; then 13503 ac_res="none required" 13504 else 13505 ac_res=-l$ac_lib 13506 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13507 fi 13508 if ac_fn_c_try_link "$LINENO"; then : 13509 ac_cv_search_getsecretkey=$ac_res 13510fi 13511rm -f core conftest.err conftest.$ac_objext \ 13512 conftest$ac_exeext 13513 if test "${ac_cv_search_getsecretkey+set}" = set; then : 13514 break 13515fi 13516done 13517if test "${ac_cv_search_getsecretkey+set}" = set; then : 13518 13519else 13520 ac_cv_search_getsecretkey=no 13521fi 13522rm conftest.$ac_ext 13523LIBS=$ac_func_search_save_LIBS 13524fi 13525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsecretkey" >&5 13526$as_echo "$ac_cv_search_getsecretkey" >&6; } 13527ac_res=$ac_cv_search_getsecretkey 13528if test "$ac_res" != no; then : 13529 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13530 13531fi 13532 13533 SECURE_RPC="yes" 13534 fi 13535 fi 13536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Secure RPC authentication (\"SUN-DES-1\") should be supported" >&5 13537$as_echo_n "checking if Secure RPC authentication (\"SUN-DES-1\") should be supported... " >&6; } 13538 if test "x$SECURE_RPC" = "xyes" ; then 13539 13540$as_echo "#define SECURE_RPC 1" >>confdefs.h 13541 13542 fi 13543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SECURE_RPC" >&5 13544$as_echo "$SECURE_RPC" >&6; } 13545 13546 if test x$SECURE_RPC = xyes; then 13547 HAS_SECURE_RPC_TRUE= 13548 HAS_SECURE_RPC_FALSE='#' 13549else 13550 HAS_SECURE_RPC_TRUE='#' 13551 HAS_SECURE_RPC_FALSE= 13552fi 13553 13554 13555ac_fn_c_check_decl "$LINENO" "key_setnet" "ac_cv_have_decl_key_setnet" " 13556#include <rpc/rpc.h> 13557#include <rpc/key_prot.h> 13558 13559" 13560if test "x$ac_cv_have_decl_key_setnet" = x""yes; then : 13561 13562$as_echo "#define HAVE_DECL_KEY_SETNET 1" >>confdefs.h 13563 13564fi 13565 13566 13567# darwin could have PAM support, but not yet 13568case $host_os in 13569 darwin*) 13570 use_pam_default=no 13571 ;; 13572 *) 13573 use_pam_default=try 13574 ;; 13575esac 13576 13577# Check for PAM support 13578 13579# Check whether --with-pam was given. 13580if test "${with_pam+set}" = set; then : 13581 withval=$with_pam; USE_PAM=$withval 13582else 13583 USE_PAM=$use_pam_default 13584fi 13585 13586if test "x$USE_PAM" != "xno" ; then 13587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pam_open_session" >&5 13588$as_echo_n "checking for library containing pam_open_session... " >&6; } 13589if test "${ac_cv_search_pam_open_session+set}" = set; then : 13590 $as_echo_n "(cached) " >&6 13591else 13592 ac_func_search_save_LIBS=$LIBS 13593cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13594/* end confdefs.h. */ 13595 13596/* Override any GCC internal prototype to avoid an error. 13597 Use char because int might match the return type of a GCC 13598 builtin and then its argument prototype would still apply. */ 13599#ifdef __cplusplus 13600extern "C" 13601#endif 13602char pam_open_session (); 13603int 13604main () 13605{ 13606return pam_open_session (); 13607 ; 13608 return 0; 13609} 13610_ACEOF 13611for ac_lib in '' pam; do 13612 if test -z "$ac_lib"; then 13613 ac_res="none required" 13614 else 13615 ac_res=-l$ac_lib 13616 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13617 fi 13618 if ac_fn_c_try_link "$LINENO"; then : 13619 ac_cv_search_pam_open_session=$ac_res 13620fi 13621rm -f core conftest.err conftest.$ac_objext \ 13622 conftest$ac_exeext 13623 if test "${ac_cv_search_pam_open_session+set}" = set; then : 13624 break 13625fi 13626done 13627if test "${ac_cv_search_pam_open_session+set}" = set; then : 13628 13629else 13630 ac_cv_search_pam_open_session=no 13631fi 13632rm conftest.$ac_ext 13633LIBS=$ac_func_search_save_LIBS 13634fi 13635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pam_open_session" >&5 13636$as_echo "$ac_cv_search_pam_open_session" >&6; } 13637ac_res=$ac_cv_search_pam_open_session 13638if test "$ac_res" != no; then : 13639 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13640 13641fi 13642 13643 ac_fn_c_check_func "$LINENO" "pam_open_session" "ac_cv_func_pam_open_session" 13644if test "x$ac_cv_func_pam_open_session" = x""yes; then : 13645 13646$as_echo "#define USE_PAM 1" >>confdefs.h 13647 13648else 13649 if test "x$USE_PAM" != "xtry" ; then 13650 as_fn_error "PAM support requested, but pam_open_session not found." "$LINENO" 5 13651 fi 13652fi 13653 13654fi 13655 13656use_selinux_default=no 13657# Check for selinux support 13658 13659# Check whether --with-selinux was given. 13660if test "${with_selinux+set}" = set; then : 13661 withval=$with_selinux; USE_SELINUX=$withval 13662else 13663 USE_SELINUX=$use_selinux_default 13664fi 13665 13666if test "x$USE_SELINUX" != "xno" ; then 13667 old_LIBS="$LIBS" 13668 LIBS="" 13669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing is_selinux_enabled" >&5 13670$as_echo_n "checking for library containing is_selinux_enabled... " >&6; } 13671if test "${ac_cv_search_is_selinux_enabled+set}" = set; then : 13672 $as_echo_n "(cached) " >&6 13673else 13674 ac_func_search_save_LIBS=$LIBS 13675cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13676/* end confdefs.h. */ 13677 13678/* Override any GCC internal prototype to avoid an error. 13679 Use char because int might match the return type of a GCC 13680 builtin and then its argument prototype would still apply. */ 13681#ifdef __cplusplus 13682extern "C" 13683#endif 13684char is_selinux_enabled (); 13685int 13686main () 13687{ 13688return is_selinux_enabled (); 13689 ; 13690 return 0; 13691} 13692_ACEOF 13693for ac_lib in '' selinux; do 13694 if test -z "$ac_lib"; then 13695 ac_res="none required" 13696 else 13697 ac_res=-l$ac_lib 13698 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13699 fi 13700 if ac_fn_c_try_link "$LINENO"; then : 13701 ac_cv_search_is_selinux_enabled=$ac_res 13702fi 13703rm -f core conftest.err conftest.$ac_objext \ 13704 conftest$ac_exeext 13705 if test "${ac_cv_search_is_selinux_enabled+set}" = set; then : 13706 break 13707fi 13708done 13709if test "${ac_cv_search_is_selinux_enabled+set}" = set; then : 13710 13711else 13712 ac_cv_search_is_selinux_enabled=no 13713fi 13714rm conftest.$ac_ext 13715LIBS=$ac_func_search_save_LIBS 13716fi 13717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_is_selinux_enabled" >&5 13718$as_echo "$ac_cv_search_is_selinux_enabled" >&6; } 13719ac_res=$ac_cv_search_is_selinux_enabled 13720if test "$ac_res" != no; then : 13721 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13722 13723fi 13724 13725 ac_fn_c_check_func "$LINENO" "is_selinux_enabled" "ac_cv_func_is_selinux_enabled" 13726if test "x$ac_cv_func_is_selinux_enabled" = x""yes; then : 13727 13728$as_echo "#define HAVE_SELINUX 1" >>confdefs.h 13729 13730else 13731 if test "x$USE_SELINUX" != "xtry" ; then 13732 as_fn_error "\"selinux support requested, but is_selinux_enabled not found.\"" "$LINENO" 5 13733 fi 13734fi 13735 13736 XDM_LIBS="$XDM_LIBS $LIBS" 13737 LIBS="$old_LIBS" 13738fi 13739 13740# FIXME: Find better test for which OS'es use su -m - for now, just try to 13741# mirror the Imakefile setting of: 13742# if defined(OpenBSDArchitecture) || defined(NetBSDArchitecture) || defined(FreeBSDArchitecture) || defined(DarwinArchitecture) 13743 13744 13745case $host_os in 13746 linux*|gnu*|*-gnu) 13747 OS_CFLAGS="" 13748 SU="su" 13749 ;; 13750 darwin*) 13751 OS_CFLAGS="-DNO_LASTLOG" 13752 SU="su -m" 13753 ;; 13754 *bsd*|dragonfly*) 13755 OS_CFLAGS="-DCSRG_BASED" 13756 SU="su -m" 13757 ;; 13758 solaris*|sysv4*) 13759 OS_CFLAGS="" 13760 SU="su" 13761 ;; 13762 *) 13763 OS_CFLAGS= 13764 SU="su" 13765 ;; 13766esac 13767 13768 13769# Check for /dev/random or /dev/urandom 13770 13771# Check whether --with-random-device was given. 13772if test "${with_random_device+set}" = set; then : 13773 withval=$with_random_device; RANDOM_DEVICE="$withval" 13774else 13775 RANDOM_DEVICE="try" 13776fi 13777 13778 13779if test x$RANDOM_DEVICE = xyes -o x$RANDOM_DEVICE = xtry ; then 13780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/urandom" >&5 13781$as_echo_n "checking for /dev/urandom... " >&6; } 13782if test "${ac_cv_file__dev_urandom+set}" = set; then : 13783 $as_echo_n "(cached) " >&6 13784else 13785 test "$cross_compiling" = yes && 13786 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5 13787if test -r "/dev/urandom"; then 13788 ac_cv_file__dev_urandom=yes 13789else 13790 ac_cv_file__dev_urandom=no 13791fi 13792fi 13793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_urandom" >&5 13794$as_echo "$ac_cv_file__dev_urandom" >&6; } 13795if test "x$ac_cv_file__dev_urandom" = x""yes; then : 13796 RANDOM_DEVICE=/dev/urandom 13797else 13798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/random" >&5 13799$as_echo_n "checking for /dev/random... " >&6; } 13800if test "${ac_cv_file__dev_random+set}" = set; then : 13801 $as_echo_n "(cached) " >&6 13802else 13803 test "$cross_compiling" = yes && 13804 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5 13805if test -r "/dev/random"; then 13806 ac_cv_file__dev_random=yes 13807else 13808 ac_cv_file__dev_random=no 13809fi 13810fi 13811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_random" >&5 13812$as_echo "$ac_cv_file__dev_random" >&6; } 13813if test "x$ac_cv_file__dev_random" = x""yes; then : 13814 RANDOM_DEVICE=/dev/random 13815fi 13816 13817fi 13818 13819 if test x$RANDOM_DEVICE = xyes ; then 13820 as_fn_error "random device support requested, but no random device was found." "$LINENO" 5 13821 else 13822 if test x$RANDOM_DEVICE = xtry ; then 13823 RANDOM_DEVICE="no" 13824 fi 13825 fi 13826fi 13827 13828if test x$RANDOM_DEVICE != xno ; then 13829 13830cat >>confdefs.h <<_ACEOF 13831#define DEV_RANDOM "$RANDOM_DEVICE" 13832_ACEOF 13833 13834 RANDOMMANDEFS="$RANDOMMANDEFS -DDEV_RANDOM=\\\"$RANDOM_DEVICE\\\"" 13835fi 13836 13837 13838ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random" 13839if test "x$ac_cv_func_arc4random" = x""yes; then : 13840 HAS_ARC4_RANDOM="yes" 13841else 13842 HAS_ARC4_RANDOM="no" 13843fi 13844 13845 if test x$HAS_ARC4_RANDOM = xyes; then 13846 HAS_ARC4_RANDOM_TRUE= 13847 HAS_ARC4_RANDOM_FALSE='#' 13848else 13849 HAS_ARC4_RANDOM_TRUE='#' 13850 HAS_ARC4_RANDOM_FALSE= 13851fi 13852 13853if test x$HAS_ARC4_RANDOM = xyes ; then 13854 13855$as_echo "#define ARC4_RANDOM 1" >>confdefs.h 13856 13857 RANDOMMANDEFS="$RANDOMMANDEFS -DARC4_RANDOM" 13858fi 13859 13860 13861 13862# FIXME: find out how to check for these things. Note that Kerberos was 13863# turned off everywhere but on OpenBSD. 13864 if false; then 13865 HAS_KERBEROS_FIVE_TRUE= 13866 HAS_KERBEROS_FIVE_FALSE='#' 13867else 13868 HAS_KERBEROS_FIVE_TRUE='#' 13869 HAS_KERBEROS_FIVE_FALSE= 13870fi 13871 13872 13873 13874# Figure out where everything goes in the filesystem 13875 13876 13877# Check whether --with-xdmlibdir was given. 13878if test "${with_xdmlibdir+set}" = set; then : 13879 withval=$with_xdmlibdir; XDMLIBDIR="$withval" 13880else 13881 XDMLIBDIR="${libdir}/X11/xdm" 13882fi 13883 13884 13885 13886 13887# Check whether --with-xdmconfigdir was given. 13888if test "${with_xdmconfigdir+set}" = set; then : 13889 withval=$with_xdmconfigdir; XDMCONFIGDIR="$withval" 13890else 13891 XDMCONFIGDIR="${XDMLIBDIR}" 13892fi 13893 13894 13895 13896 13897# Check whether --with-xdmscriptdir was given. 13898if test "${with_xdmscriptdir+set}" = set; then : 13899 withval=$with_xdmscriptdir; XDMSCRIPTDIR="$withval" 13900else 13901 XDMSCRIPTDIR="${XDMLIBDIR}" 13902fi 13903 13904 13905 13906 13907# Check whether --with-logdir was given. 13908if test "${with_logdir+set}" = set; then : 13909 withval=$with_logdir; XDMLOGDIR="$withval" 13910else 13911 XDMLOGDIR="/var/log" 13912fi 13913 13914 13915 13916 13917# Check whether --with-piddir was given. 13918if test "${with_piddir+set}" = set; then : 13919 withval=$with_piddir; XDMPIDDIR="$withval" 13920else 13921 XDMPIDDIR="/var/run" 13922fi 13923 13924 13925 13926 13927# Check whether --with-default-vt was given. 13928if test "${with_default_vt+set}" = set; then : 13929 withval=$with_default_vt; DEFAULTVT="$withval" 13930else 13931 DEFAULTVT="" 13932fi 13933 13934 13935 13936 13937# Check whether --with-config-type was given. 13938if test "${with_config_type+set}" = set; then : 13939 withval=$with_config_type; SERVERSTYPE="$withval" 13940else 13941 SERVERSTYPE="ws" 13942fi 13943 13944 13945 13946# Ideally we'd just pull out UTMP_FILE & WTMP_FILE from <utmp.h> 13947# but that's not easy to do in autoconf 13948 13949# Check whether --with-utmp_file was given. 13950if test "${with_utmp_file+set}" = set; then : 13951 withval=$with_utmp_file; UTMP_FILE="$withval" 13952fi 13953 13954if test "x$UTMP_FILE" = "xyes" ; then 13955 as_fn_error "path was not specified to --with-utmp-file" "$LINENO" 5 13956fi 13957if test "x$UTMP_FILE" = "x" ; then 13958 for UTMP_FILE in /var/adm/utmpx /var/run/utmp /var/log/utmp /var/adm/utmp /usr/adm/utmp /etc/utmp ; do 13959 as_ac_File=`$as_echo "ac_cv_file_$UTMP_FILE" | $as_tr_sh` 13960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $UTMP_FILE" >&5 13961$as_echo_n "checking for $UTMP_FILE... " >&6; } 13962if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then : 13963 $as_echo_n "(cached) " >&6 13964else 13965 test "$cross_compiling" = yes && 13966 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5 13967if test -r "$UTMP_FILE"; then 13968 eval "$as_ac_File=yes" 13969else 13970 eval "$as_ac_File=no" 13971fi 13972fi 13973eval ac_res=\$$as_ac_File 13974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 13975$as_echo "$ac_res" >&6; } 13976eval as_val=\$$as_ac_File 13977 if test "x$as_val" = x""yes; then : 13978 break 13979else 13980 UTMP_FILE="" 13981fi 13982 13983 done 13984 if test "x$UTMP_FILE" = "x" ; then 13985 UTMP_FILE="/var/run/utmp" 13986 fi 13987fi 13988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for path to file listing current logins for sessreg" >&5 13989$as_echo_n "checking for path to file listing current logins for sessreg... " >&6; } 13990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UTMP_FILE" >&5 13991$as_echo "$UTMP_FILE" >&6; } 13992 13993 13994 13995# Check whether --with-wtmp_file was given. 13996if test "${with_wtmp_file+set}" = set; then : 13997 withval=$with_wtmp_file; WTMP_FILE="$withval" 13998fi 13999 14000if test "x$WTMP_FILE" = "xyes" ; then 14001 as_fn_error "path was not specified to --with-wtmp-file" "$LINENO" 5 14002fi 14003if test "x$WTMP_FILE" = "x" ; then 14004 for WTMP_FILE in /var/adm/wtmpx /var/log/wtmp /var/adm/wtmp /usr/adm/wtmp /etc/wtmp ; do 14005 as_ac_File=`$as_echo "ac_cv_file_$WTMP_FILE" | $as_tr_sh` 14006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $WTMP_FILE" >&5 14007$as_echo_n "checking for $WTMP_FILE... " >&6; } 14008if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then : 14009 $as_echo_n "(cached) " >&6 14010else 14011 test "$cross_compiling" = yes && 14012 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5 14013if test -r "$WTMP_FILE"; then 14014 eval "$as_ac_File=yes" 14015else 14016 eval "$as_ac_File=no" 14017fi 14018fi 14019eval ac_res=\$$as_ac_File 14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 14021$as_echo "$ac_res" >&6; } 14022eval as_val=\$$as_ac_File 14023 if test "x$as_val" = x""yes; then : 14024 break 14025else 14026 WTMP_FILE="" 14027fi 14028 14029 done 14030 if test "x$WTMP_FILE" = "x" ; then 14031 WTMP_FILE="/var/log/wtmp" 14032 fi 14033fi 14034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for path to file listing login history for sessreg" >&5 14035$as_echo_n "checking for path to file listing login history for sessreg... " >&6; } 14036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WTMP_FILE" >&5 14037$as_echo "$WTMP_FILE" >&6; } 14038 14039 14040case $host_os in 14041 *sco*|*solaris*) 14042 SHELL_CMD="/bin/ksh" ;; 14043 *) SHELL_CMD="/bin/sh" ;; 14044esac 14045 14046 14047# Checks for pkg-config packages 14048 14049 14050pkg_failed=no 14051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDM" >&5 14052$as_echo_n "checking for XDM... " >&6; } 14053 14054if test -n "$PKG_CONFIG"; then 14055 if test -n "$XDM_CFLAGS"; then 14056 pkg_cv_XDM_CFLAGS="$XDM_CFLAGS" 14057 else 14058 if test -n "$PKG_CONFIG" && \ 14059 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmu x11 xau\""; } >&5 14060 ($PKG_CONFIG --exists --print-errors "xmu x11 xau") 2>&5 14061 ac_status=$? 14062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14063 test $ac_status = 0; }; then 14064 pkg_cv_XDM_CFLAGS=`$PKG_CONFIG --cflags "xmu x11 xau" 2>/dev/null` 14065else 14066 pkg_failed=yes 14067fi 14068 fi 14069else 14070 pkg_failed=untried 14071fi 14072if test -n "$PKG_CONFIG"; then 14073 if test -n "$XDM_LIBS"; then 14074 pkg_cv_XDM_LIBS="$XDM_LIBS" 14075 else 14076 if test -n "$PKG_CONFIG" && \ 14077 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmu x11 xau\""; } >&5 14078 ($PKG_CONFIG --exists --print-errors "xmu x11 xau") 2>&5 14079 ac_status=$? 14080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14081 test $ac_status = 0; }; then 14082 pkg_cv_XDM_LIBS=`$PKG_CONFIG --libs "xmu x11 xau" 2>/dev/null` 14083else 14084 pkg_failed=yes 14085fi 14086 fi 14087else 14088 pkg_failed=untried 14089fi 14090 14091 14092 14093if test $pkg_failed = yes; then 14094 14095if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 14096 _pkg_short_errors_supported=yes 14097else 14098 _pkg_short_errors_supported=no 14099fi 14100 if test $_pkg_short_errors_supported = yes; then 14101 XDM_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xmu x11 xau"` 14102 else 14103 XDM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xmu x11 xau"` 14104 fi 14105 # Put the nasty error message in config.log where it belongs 14106 echo "$XDM_PKG_ERRORS" >&5 14107 14108 as_fn_error "Package requirements (xmu x11 xau) were not met: 14109 14110$XDM_PKG_ERRORS 14111 14112Consider adjusting the PKG_CONFIG_PATH environment variable if you 14113installed software in a non-standard prefix. 14114 14115Alternatively, you may set the environment variables XDM_CFLAGS 14116and XDM_LIBS to avoid the need to call pkg-config. 14117See the pkg-config man page for more details. 14118" "$LINENO" 5 14119elif test $pkg_failed = untried; then 14120 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14121$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14122as_fn_error "The pkg-config script could not be found or is too old. Make sure it 14123is in your PATH or set the PKG_CONFIG environment variable to the full 14124path to pkg-config. 14125 14126Alternatively, you may set the environment variables XDM_CFLAGS 14127and XDM_LIBS to avoid the need to call pkg-config. 14128See the pkg-config man page for more details. 14129 14130To get pkg-config, see <http://pkg-config.freedesktop.org/>. 14131See \`config.log' for more details." "$LINENO" 5; } 14132else 14133 XDM_CFLAGS=$pkg_cv_XDM_CFLAGS 14134 XDM_LIBS=$pkg_cv_XDM_LIBS 14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14136$as_echo "yes" >&6; } 14137 : 14138fi 14139 14140XDM_LIBS="$XDM_LIBS $XDM_OS_LIBS" 14141 14142if test -n "$PKG_CONFIG" && \ 14143 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xinerama\""; } >&5 14144 ($PKG_CONFIG --exists --print-errors "xinerama") 2>&5 14145 ac_status=$? 14146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14147 test $ac_status = 0; }; then 14148 14149 14150$as_echo "#define USE_XINERAMA 1" >>confdefs.h 14151 14152 14153pkg_failed=no 14154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XINERAMA" >&5 14155$as_echo_n "checking for XINERAMA... " >&6; } 14156 14157if test -n "$PKG_CONFIG"; then 14158 if test -n "$XINERAMA_CFLAGS"; then 14159 pkg_cv_XINERAMA_CFLAGS="$XINERAMA_CFLAGS" 14160 else 14161 if test -n "$PKG_CONFIG" && \ 14162 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xinerama\""; } >&5 14163 ($PKG_CONFIG --exists --print-errors "xinerama") 2>&5 14164 ac_status=$? 14165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14166 test $ac_status = 0; }; then 14167 pkg_cv_XINERAMA_CFLAGS=`$PKG_CONFIG --cflags "xinerama" 2>/dev/null` 14168else 14169 pkg_failed=yes 14170fi 14171 fi 14172else 14173 pkg_failed=untried 14174fi 14175if test -n "$PKG_CONFIG"; then 14176 if test -n "$XINERAMA_LIBS"; then 14177 pkg_cv_XINERAMA_LIBS="$XINERAMA_LIBS" 14178 else 14179 if test -n "$PKG_CONFIG" && \ 14180 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xinerama\""; } >&5 14181 ($PKG_CONFIG --exists --print-errors "xinerama") 2>&5 14182 ac_status=$? 14183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14184 test $ac_status = 0; }; then 14185 pkg_cv_XINERAMA_LIBS=`$PKG_CONFIG --libs "xinerama" 2>/dev/null` 14186else 14187 pkg_failed=yes 14188fi 14189 fi 14190else 14191 pkg_failed=untried 14192fi 14193 14194 14195 14196if test $pkg_failed = yes; then 14197 14198if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 14199 _pkg_short_errors_supported=yes 14200else 14201 _pkg_short_errors_supported=no 14202fi 14203 if test $_pkg_short_errors_supported = yes; then 14204 XINERAMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xinerama"` 14205 else 14206 XINERAMA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xinerama"` 14207 fi 14208 # Put the nasty error message in config.log where it belongs 14209 echo "$XINERAMA_PKG_ERRORS" >&5 14210 14211 as_fn_error "Package requirements (xinerama) were not met: 14212 14213$XINERAMA_PKG_ERRORS 14214 14215Consider adjusting the PKG_CONFIG_PATH environment variable if you 14216installed software in a non-standard prefix. 14217 14218Alternatively, you may set the environment variables XINERAMA_CFLAGS 14219and XINERAMA_LIBS to avoid the need to call pkg-config. 14220See the pkg-config man page for more details. 14221" "$LINENO" 5 14222elif test $pkg_failed = untried; then 14223 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14224$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14225as_fn_error "The pkg-config script could not be found or is too old. Make sure it 14226is in your PATH or set the PKG_CONFIG environment variable to the full 14227path to pkg-config. 14228 14229Alternatively, you may set the environment variables XINERAMA_CFLAGS 14230and XINERAMA_LIBS to avoid the need to call pkg-config. 14231See the pkg-config man page for more details. 14232 14233To get pkg-config, see <http://pkg-config.freedesktop.org/>. 14234See \`config.log' for more details." "$LINENO" 5; } 14235else 14236 XINERAMA_CFLAGS=$pkg_cv_XINERAMA_CFLAGS 14237 XINERAMA_LIBS=$pkg_cv_XINERAMA_LIBS 14238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14239$as_echo "yes" >&6; } 14240 : 14241fi 14242 XDM_CFLAGS="$XDM_CFLAGS $XINERAMA_CFLAGS" 14243 XDM_LIBS="$XDM_LIBS $XINERAMA_LIBS" 14244 CHOOSER_CFLAGS="$CHOOSER_CFLAGS $XINERAMA_CFLAGS" 14245 CHOOSER_LIBS="$CHOOSER_LIBS $XINERAMA_LIBS" 14246 GREETER_CFLAGS="$GREETER_CFLAGS $XINERAMA_CFLAGS" 14247 GREETER_LIBS="$GREETER_LIBS $XINERAMA_LIBS" 14248 14249fi 14250 14251# Xft text drawing for the greeter screen 14252 14253# Check whether --with-xft was given. 14254if test "${with_xft+set}" = set; then : 14255 withval=$with_xft; USE_XFT="$withval" 14256else 14257 if test -n "$PKG_CONFIG" && \ 14258 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xft\""; } >&5 14259 ($PKG_CONFIG --exists --print-errors "xft") 2>&5 14260 ac_status=$? 14261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14262 test $ac_status = 0; }; then 14263 USE_XFT="yes" 14264else 14265 USE_XFT="no" 14266fi 14267fi 14268 14269 14270if test "x$USE_XFT" = "xyes" ; then 14271 14272pkg_failed=no 14273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFT" >&5 14274$as_echo_n "checking for XFT... " >&6; } 14275 14276if test -n "$PKG_CONFIG"; then 14277 if test -n "$XFT_CFLAGS"; then 14278 pkg_cv_XFT_CFLAGS="$XFT_CFLAGS" 14279 else 14280 if test -n "$PKG_CONFIG" && \ 14281 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xft\""; } >&5 14282 ($PKG_CONFIG --exists --print-errors "xft") 2>&5 14283 ac_status=$? 14284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14285 test $ac_status = 0; }; then 14286 pkg_cv_XFT_CFLAGS=`$PKG_CONFIG --cflags "xft" 2>/dev/null` 14287else 14288 pkg_failed=yes 14289fi 14290 fi 14291else 14292 pkg_failed=untried 14293fi 14294if test -n "$PKG_CONFIG"; then 14295 if test -n "$XFT_LIBS"; then 14296 pkg_cv_XFT_LIBS="$XFT_LIBS" 14297 else 14298 if test -n "$PKG_CONFIG" && \ 14299 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xft\""; } >&5 14300 ($PKG_CONFIG --exists --print-errors "xft") 2>&5 14301 ac_status=$? 14302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14303 test $ac_status = 0; }; then 14304 pkg_cv_XFT_LIBS=`$PKG_CONFIG --libs "xft" 2>/dev/null` 14305else 14306 pkg_failed=yes 14307fi 14308 fi 14309else 14310 pkg_failed=untried 14311fi 14312 14313 14314 14315if test $pkg_failed = yes; then 14316 14317if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 14318 _pkg_short_errors_supported=yes 14319else 14320 _pkg_short_errors_supported=no 14321fi 14322 if test $_pkg_short_errors_supported = yes; then 14323 XFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xft"` 14324 else 14325 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft"` 14326 fi 14327 # Put the nasty error message in config.log where it belongs 14328 echo "$XFT_PKG_ERRORS" >&5 14329 14330 as_fn_error "Package requirements (xft) were not met: 14331 14332$XFT_PKG_ERRORS 14333 14334Consider adjusting the PKG_CONFIG_PATH environment variable if you 14335installed software in a non-standard prefix. 14336 14337Alternatively, you may set the environment variables XFT_CFLAGS 14338and XFT_LIBS to avoid the need to call pkg-config. 14339See the pkg-config man page for more details. 14340" "$LINENO" 5 14341elif test $pkg_failed = untried; then 14342 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14343$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14344as_fn_error "The pkg-config script could not be found or is too old. Make sure it 14345is in your PATH or set the PKG_CONFIG environment variable to the full 14346path to pkg-config. 14347 14348Alternatively, you may set the environment variables XFT_CFLAGS 14349and XFT_LIBS to avoid the need to call pkg-config. 14350See the pkg-config man page for more details. 14351 14352To get pkg-config, see <http://pkg-config.freedesktop.org/>. 14353See \`config.log' for more details." "$LINENO" 5; } 14354else 14355 XFT_CFLAGS=$pkg_cv_XFT_CFLAGS 14356 XFT_LIBS=$pkg_cv_XFT_LIBS 14357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14358$as_echo "yes" >&6; } 14359 : 14360fi 14361 GREETER_CFLAGS="$GREETER_CFLAGS $XFT_CFLAGS" 14362 GREETER_LIBS="$GREETER_LIBS $XFT_LIBS" 14363 14364$as_echo "#define USE_XFT 1" >>confdefs.h 14365 14366fi 14367 14368# XPM logos for the greeter screen 14369# Check whether --enable-xpm-logos was given. 14370if test "${enable_xpm_logos+set}" = set; then : 14371 enableval=$enable_xpm_logos; USE_XPM="$enableval" 14372else 14373 if test -n "$PKG_CONFIG" && \ 14374 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xpm\""; } >&5 14375 ($PKG_CONFIG --exists --print-errors "xpm") 2>&5 14376 ac_status=$? 14377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14378 test $ac_status = 0; }; then 14379 USE_XPM="yes" 14380else 14381 USE_XPM="no" 14382fi 14383fi 14384 14385if test "x$USE_XPM" = "xyes" ; then 14386 14387pkg_failed=no 14388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPM" >&5 14389$as_echo_n "checking for XPM... " >&6; } 14390 14391if test -n "$PKG_CONFIG"; then 14392 if test -n "$XPM_CFLAGS"; then 14393 pkg_cv_XPM_CFLAGS="$XPM_CFLAGS" 14394 else 14395 if test -n "$PKG_CONFIG" && \ 14396 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xpm\""; } >&5 14397 ($PKG_CONFIG --exists --print-errors "xpm") 2>&5 14398 ac_status=$? 14399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14400 test $ac_status = 0; }; then 14401 pkg_cv_XPM_CFLAGS=`$PKG_CONFIG --cflags "xpm" 2>/dev/null` 14402else 14403 pkg_failed=yes 14404fi 14405 fi 14406else 14407 pkg_failed=untried 14408fi 14409if test -n "$PKG_CONFIG"; then 14410 if test -n "$XPM_LIBS"; then 14411 pkg_cv_XPM_LIBS="$XPM_LIBS" 14412 else 14413 if test -n "$PKG_CONFIG" && \ 14414 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xpm\""; } >&5 14415 ($PKG_CONFIG --exists --print-errors "xpm") 2>&5 14416 ac_status=$? 14417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14418 test $ac_status = 0; }; then 14419 pkg_cv_XPM_LIBS=`$PKG_CONFIG --libs "xpm" 2>/dev/null` 14420else 14421 pkg_failed=yes 14422fi 14423 fi 14424else 14425 pkg_failed=untried 14426fi 14427 14428 14429 14430if test $pkg_failed = yes; then 14431 14432if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 14433 _pkg_short_errors_supported=yes 14434else 14435 _pkg_short_errors_supported=no 14436fi 14437 if test $_pkg_short_errors_supported = yes; then 14438 XPM_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xpm"` 14439 else 14440 XPM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xpm"` 14441 fi 14442 # Put the nasty error message in config.log where it belongs 14443 echo "$XPM_PKG_ERRORS" >&5 14444 14445 as_fn_error "Package requirements (xpm) were not met: 14446 14447$XPM_PKG_ERRORS 14448 14449Consider adjusting the PKG_CONFIG_PATH environment variable if you 14450installed software in a non-standard prefix. 14451 14452Alternatively, you may set the environment variables XPM_CFLAGS 14453and XPM_LIBS to avoid the need to call pkg-config. 14454See the pkg-config man page for more details. 14455" "$LINENO" 5 14456elif test $pkg_failed = untried; then 14457 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14458$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14459as_fn_error "The pkg-config script could not be found or is too old. Make sure it 14460is in your PATH or set the PKG_CONFIG environment variable to the full 14461path to pkg-config. 14462 14463Alternatively, you may set the environment variables XPM_CFLAGS 14464and XPM_LIBS to avoid the need to call pkg-config. 14465See the pkg-config man page for more details. 14466 14467To get pkg-config, see <http://pkg-config.freedesktop.org/>. 14468See \`config.log' for more details." "$LINENO" 5; } 14469else 14470 XPM_CFLAGS=$pkg_cv_XPM_CFLAGS 14471 XPM_LIBS=$pkg_cv_XPM_LIBS 14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14473$as_echo "yes" >&6; } 14474 : 14475fi 14476 XDM_CFLAGS="$XDM_CFLAGS $XPM_CFLAGS" 14477 XDM_LIBS="$XDM_LIBS $XPM_LIBS" 14478 GREETER_CFLAGS="$GREETER_CFLAGS $XPM_CFLAGS" 14479 GREETER_LIBS="$GREETER_LIBS $XPM_LIBS" 14480 14481$as_echo "#define XPM 1" >>confdefs.h 14482 14483fi 14484 if test "x$USE_XPM" = "xyes"; then 14485 USE_XPM_TRUE= 14486 USE_XPM_FALSE='#' 14487else 14488 USE_XPM_TRUE='#' 14489 USE_XPM_FALSE= 14490fi 14491 14492 14493 14494# Check whether --with-color-pixmap was given. 14495if test "${with_color_pixmap+set}" = set; then : 14496 withval=$with_color_pixmap; XDM_PIXMAP="$withval" 14497else 14498 XDM_PIXMAP="xorg.xpm" 14499fi 14500 14501 14502# Check whether --with-bw-pixmap was given. 14503if test "${with_bw_pixmap+set}" = set; then : 14504 withval=$with_bw_pixmap; XDM_BWPIXMAP="$withval" 14505else 14506 XDM_BWPIXMAP="xorg-bw.xpm" 14507fi 14508 14509 14510# Check whether --with-pixmapdir was given. 14511if test "${with_pixmapdir+set}" = set; then : 14512 withval=$with_pixmapdir; XDM_PIXMAPDIR="$withval" 14513else 14514 XDM_PIXMAPDIR='${XDMLIBDIR}/pixmaps' 14515fi 14516 14517 14518 14519 14520 14521 14522# Packages used by multiple programs 14523 14524 14525pkg_failed=no 14526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDM_PRINT" >&5 14527$as_echo_n "checking for XDM_PRINT... " >&6; } 14528 14529if test -n "$PKG_CONFIG"; then 14530 if test -n "$XDM_PRINT_CFLAGS"; then 14531 pkg_cv_XDM_PRINT_CFLAGS="$XDM_PRINT_CFLAGS" 14532 else 14533 if test -n "$PKG_CONFIG" && \ 14534 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7\""; } >&5 14535 ($PKG_CONFIG --exists --print-errors "xaw7") 2>&5 14536 ac_status=$? 14537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14538 test $ac_status = 0; }; then 14539 pkg_cv_XDM_PRINT_CFLAGS=`$PKG_CONFIG --cflags "xaw7" 2>/dev/null` 14540else 14541 pkg_failed=yes 14542fi 14543 fi 14544else 14545 pkg_failed=untried 14546fi 14547if test -n "$PKG_CONFIG"; then 14548 if test -n "$XDM_PRINT_LIBS"; then 14549 pkg_cv_XDM_PRINT_LIBS="$XDM_PRINT_LIBS" 14550 else 14551 if test -n "$PKG_CONFIG" && \ 14552 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7\""; } >&5 14553 ($PKG_CONFIG --exists --print-errors "xaw7") 2>&5 14554 ac_status=$? 14555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14556 test $ac_status = 0; }; then 14557 pkg_cv_XDM_PRINT_LIBS=`$PKG_CONFIG --libs "xaw7" 2>/dev/null` 14558else 14559 pkg_failed=yes 14560fi 14561 fi 14562else 14563 pkg_failed=untried 14564fi 14565 14566 14567 14568if test $pkg_failed = yes; then 14569 14570if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 14571 _pkg_short_errors_supported=yes 14572else 14573 _pkg_short_errors_supported=no 14574fi 14575 if test $_pkg_short_errors_supported = yes; then 14576 XDM_PRINT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xaw7"` 14577 else 14578 XDM_PRINT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xaw7"` 14579 fi 14580 # Put the nasty error message in config.log where it belongs 14581 echo "$XDM_PRINT_PKG_ERRORS" >&5 14582 14583 as_fn_error "Package requirements (xaw7) were not met: 14584 14585$XDM_PRINT_PKG_ERRORS 14586 14587Consider adjusting the PKG_CONFIG_PATH environment variable if you 14588installed software in a non-standard prefix. 14589 14590Alternatively, you may set the environment variables XDM_PRINT_CFLAGS 14591and XDM_PRINT_LIBS to avoid the need to call pkg-config. 14592See the pkg-config man page for more details. 14593" "$LINENO" 5 14594elif test $pkg_failed = untried; then 14595 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14596$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14597as_fn_error "The pkg-config script could not be found or is too old. Make sure it 14598is in your PATH or set the PKG_CONFIG environment variable to the full 14599path to pkg-config. 14600 14601Alternatively, you may set the environment variables XDM_PRINT_CFLAGS 14602and XDM_PRINT_LIBS to avoid the need to call pkg-config. 14603See the pkg-config man page for more details. 14604 14605To get pkg-config, see <http://pkg-config.freedesktop.org/>. 14606See \`config.log' for more details." "$LINENO" 5; } 14607else 14608 XDM_PRINT_CFLAGS=$pkg_cv_XDM_PRINT_CFLAGS 14609 XDM_PRINT_LIBS=$pkg_cv_XDM_PRINT_LIBS 14610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14611$as_echo "yes" >&6; } 14612 : 14613fi 14614 14615pkg_failed=no 14616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DMCP" >&5 14617$as_echo_n "checking for DMCP... " >&6; } 14618 14619if test -n "$PKG_CONFIG"; then 14620 if test -n "$DMCP_CFLAGS"; then 14621 pkg_cv_DMCP_CFLAGS="$DMCP_CFLAGS" 14622 else 14623 if test -n "$PKG_CONFIG" && \ 14624 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5 14625 ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5 14626 ac_status=$? 14627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14628 test $ac_status = 0; }; then 14629 pkg_cv_DMCP_CFLAGS=`$PKG_CONFIG --cflags "xdmcp" 2>/dev/null` 14630else 14631 pkg_failed=yes 14632fi 14633 fi 14634else 14635 pkg_failed=untried 14636fi 14637if test -n "$PKG_CONFIG"; then 14638 if test -n "$DMCP_LIBS"; then 14639 pkg_cv_DMCP_LIBS="$DMCP_LIBS" 14640 else 14641 if test -n "$PKG_CONFIG" && \ 14642 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5 14643 ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5 14644 ac_status=$? 14645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14646 test $ac_status = 0; }; then 14647 pkg_cv_DMCP_LIBS=`$PKG_CONFIG --libs "xdmcp" 2>/dev/null` 14648else 14649 pkg_failed=yes 14650fi 14651 fi 14652else 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 DMCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xdmcp"` 14667 else 14668 DMCP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xdmcp"` 14669 fi 14670 # Put the nasty error message in config.log where it belongs 14671 echo "$DMCP_PKG_ERRORS" >&5 14672 14673 as_fn_error "Package requirements (xdmcp) were not met: 14674 14675$DMCP_PKG_ERRORS 14676 14677Consider adjusting the PKG_CONFIG_PATH environment variable if you 14678installed software in a non-standard prefix. 14679 14680Alternatively, you may set the environment variables DMCP_CFLAGS 14681and DMCP_LIBS to avoid the need to call pkg-config. 14682See the pkg-config man page for more details. 14683" "$LINENO" 5 14684elif test $pkg_failed = untried; then 14685 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14686$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14687as_fn_error "The pkg-config script could not be found or is too old. Make sure it 14688is in your PATH or set the PKG_CONFIG environment variable to the full 14689path to pkg-config. 14690 14691Alternatively, you may set the environment variables DMCP_CFLAGS 14692and DMCP_LIBS to avoid the need to call pkg-config. 14693See the pkg-config man page for more details. 14694 14695To get pkg-config, see <http://pkg-config.freedesktop.org/>. 14696See \`config.log' for more details." "$LINENO" 5; } 14697else 14698 DMCP_CFLAGS=$pkg_cv_DMCP_CFLAGS 14699 DMCP_LIBS=$pkg_cv_DMCP_LIBS 14700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14701$as_echo "yes" >&6; } 14702 : 14703fi 14704 14705pkg_failed=no 14706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLIB" >&5 14707$as_echo_n "checking for XLIB... " >&6; } 14708 14709if test -n "$PKG_CONFIG"; then 14710 if test -n "$XLIB_CFLAGS"; then 14711 pkg_cv_XLIB_CFLAGS="$XLIB_CFLAGS" 14712 else 14713 if test -n "$PKG_CONFIG" && \ 14714 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 14715 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 14716 ac_status=$? 14717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14718 test $ac_status = 0; }; then 14719 pkg_cv_XLIB_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null` 14720else 14721 pkg_failed=yes 14722fi 14723 fi 14724else 14725 pkg_failed=untried 14726fi 14727if test -n "$PKG_CONFIG"; then 14728 if test -n "$XLIB_LIBS"; then 14729 pkg_cv_XLIB_LIBS="$XLIB_LIBS" 14730 else 14731 if test -n "$PKG_CONFIG" && \ 14732 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 14733 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 14734 ac_status=$? 14735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14736 test $ac_status = 0; }; then 14737 pkg_cv_XLIB_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null` 14738else 14739 pkg_failed=yes 14740fi 14741 fi 14742else 14743 pkg_failed=untried 14744fi 14745 14746 14747 14748if test $pkg_failed = yes; then 14749 14750if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 14751 _pkg_short_errors_supported=yes 14752else 14753 _pkg_short_errors_supported=no 14754fi 14755 if test $_pkg_short_errors_supported = yes; then 14756 XLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "x11"` 14757 else 14758 XLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "x11"` 14759 fi 14760 # Put the nasty error message in config.log where it belongs 14761 echo "$XLIB_PKG_ERRORS" >&5 14762 14763 as_fn_error "Package requirements (x11) were not met: 14764 14765$XLIB_PKG_ERRORS 14766 14767Consider adjusting the PKG_CONFIG_PATH environment variable if you 14768installed software in a non-standard prefix. 14769 14770Alternatively, you may set the environment variables XLIB_CFLAGS 14771and XLIB_LIBS to avoid the need to call pkg-config. 14772See the pkg-config man page for more details. 14773" "$LINENO" 5 14774elif test $pkg_failed = untried; then 14775 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14776$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14777as_fn_error "The pkg-config script could not be found or is too old. Make sure it 14778is in your PATH or set the PKG_CONFIG environment variable to the full 14779path to pkg-config. 14780 14781Alternatively, you may set the environment variables XLIB_CFLAGS 14782and XLIB_LIBS to avoid the need to call pkg-config. 14783See the pkg-config man page for more details. 14784 14785To get pkg-config, see <http://pkg-config.freedesktop.org/>. 14786See \`config.log' for more details." "$LINENO" 5; } 14787else 14788 XLIB_CFLAGS=$pkg_cv_XLIB_CFLAGS 14789 XLIB_LIBS=$pkg_cv_XLIB_LIBS 14790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14791$as_echo "yes" >&6; } 14792 : 14793fi 14794 14795pkg_failed=no 14796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTH" >&5 14797$as_echo_n "checking for AUTH... " >&6; } 14798 14799if test -n "$PKG_CONFIG"; then 14800 if test -n "$AUTH_CFLAGS"; then 14801 pkg_cv_AUTH_CFLAGS="$AUTH_CFLAGS" 14802 else 14803 if test -n "$PKG_CONFIG" && \ 14804 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xau\""; } >&5 14805 ($PKG_CONFIG --exists --print-errors "xau") 2>&5 14806 ac_status=$? 14807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14808 test $ac_status = 0; }; then 14809 pkg_cv_AUTH_CFLAGS=`$PKG_CONFIG --cflags "xau" 2>/dev/null` 14810else 14811 pkg_failed=yes 14812fi 14813 fi 14814else 14815 pkg_failed=untried 14816fi 14817if test -n "$PKG_CONFIG"; then 14818 if test -n "$AUTH_LIBS"; then 14819 pkg_cv_AUTH_LIBS="$AUTH_LIBS" 14820 else 14821 if test -n "$PKG_CONFIG" && \ 14822 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xau\""; } >&5 14823 ($PKG_CONFIG --exists --print-errors "xau") 2>&5 14824 ac_status=$? 14825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14826 test $ac_status = 0; }; then 14827 pkg_cv_AUTH_LIBS=`$PKG_CONFIG --libs "xau" 2>/dev/null` 14828else 14829 pkg_failed=yes 14830fi 14831 fi 14832else 14833 pkg_failed=untried 14834fi 14835 14836 14837 14838if test $pkg_failed = yes; then 14839 14840if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 14841 _pkg_short_errors_supported=yes 14842else 14843 _pkg_short_errors_supported=no 14844fi 14845 if test $_pkg_short_errors_supported = yes; then 14846 AUTH_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xau"` 14847 else 14848 AUTH_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xau"` 14849 fi 14850 # Put the nasty error message in config.log where it belongs 14851 echo "$AUTH_PKG_ERRORS" >&5 14852 14853 as_fn_error "Package requirements (xau) were not met: 14854 14855$AUTH_PKG_ERRORS 14856 14857Consider adjusting the PKG_CONFIG_PATH environment variable if you 14858installed software in a non-standard prefix. 14859 14860Alternatively, you may set the environment variables AUTH_CFLAGS 14861and AUTH_LIBS to avoid the need to call pkg-config. 14862See the pkg-config man page for more details. 14863" "$LINENO" 5 14864elif test $pkg_failed = untried; then 14865 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14866$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14867as_fn_error "The pkg-config script could not be found or is too old. Make sure it 14868is in your PATH or set the PKG_CONFIG environment variable to the full 14869path to pkg-config. 14870 14871Alternatively, you may set the environment variables AUTH_CFLAGS 14872and AUTH_LIBS to avoid the need to call pkg-config. 14873See the pkg-config man page for more details. 14874 14875To get pkg-config, see <http://pkg-config.freedesktop.org/>. 14876See \`config.log' for more details." "$LINENO" 5; } 14877else 14878 AUTH_CFLAGS=$pkg_cv_AUTH_CFLAGS 14879 AUTH_LIBS=$pkg_cv_AUTH_LIBS 14880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14881$as_echo "yes" >&6; } 14882 : 14883fi 14884 14885# 14886# Greeter 14887# 14888 14889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the greeter should be built as a dynamically loaded shared object" >&5 14890$as_echo_n "checking if the greeter should be built as a dynamically loaded shared object... " >&6; } 14891 14892# Check whether --enable-dynamic-greeter was given. 14893if test "${enable_dynamic_greeter+set}" = set; then : 14894 enableval=$enable_dynamic_greeter; DYNAMIC_GREETER="$enableval" 14895else 14896 DYNAMIC_GREETER="auto" 14897fi 14898 14899 14900# Not all OS'es built dynamic greeter in monolith, but all the ones supported 14901# in the modular tree should be able to use it. We'll leave this here in case 14902# some are found that can't. 14903if test "x$DYNAMIC_GREETER" = "xauto" ; then 14904 case $host_os in 14905 *) DYNAMIC_GREETER="yes" ;; 14906 esac 14907fi 14908 14909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNAMIC_GREETER" >&5 14910$as_echo "$DYNAMIC_GREETER" >&6; } 14911 14912if test "x$DYNAMIC_GREETER" = "xyes" ; then 14913 14914 GREETER_CFLAGS="$GREETER_CFLAGS -DGREET_LIB" 14915 14916 # The xdm binary needs to export symbols so that they can be used from 14917 # libXdmGreet.so. Some platforms require extra flags to do this. 14918 # gcc should set these flags when -rdynamic is passed to it, other 14919 # compilers/linkers may need to be added 14920 if test "x$GCC" = "xyes"; then 14921 XDM_LDFLAGS="$XDM_LDFLAGS -rdynamic" 14922 fi 14923 14924 14925pkg_failed=no 14926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDMGREET" >&5 14927$as_echo_n "checking for XDMGREET... " >&6; } 14928 14929if test -n "$PKG_CONFIG"; then 14930 if test -n "$XDMGREET_CFLAGS"; then 14931 pkg_cv_XDMGREET_CFLAGS="$XDMGREET_CFLAGS" 14932 else 14933 if test -n "$PKG_CONFIG" && \ 14934 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt x11 xext\""; } >&5 14935 ($PKG_CONFIG --exists --print-errors "xt x11 xext") 2>&5 14936 ac_status=$? 14937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14938 test $ac_status = 0; }; then 14939 pkg_cv_XDMGREET_CFLAGS=`$PKG_CONFIG --cflags "xt x11 xext" 2>/dev/null` 14940else 14941 pkg_failed=yes 14942fi 14943 fi 14944else 14945 pkg_failed=untried 14946fi 14947if test -n "$PKG_CONFIG"; then 14948 if test -n "$XDMGREET_LIBS"; then 14949 pkg_cv_XDMGREET_LIBS="$XDMGREET_LIBS" 14950 else 14951 if test -n "$PKG_CONFIG" && \ 14952 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt x11 xext\""; } >&5 14953 ($PKG_CONFIG --exists --print-errors "xt x11 xext") 2>&5 14954 ac_status=$? 14955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14956 test $ac_status = 0; }; then 14957 pkg_cv_XDMGREET_LIBS=`$PKG_CONFIG --libs "xt x11 xext" 2>/dev/null` 14958else 14959 pkg_failed=yes 14960fi 14961 fi 14962else 14963 pkg_failed=untried 14964fi 14965 14966 14967 14968if test $pkg_failed = yes; then 14969 14970if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 14971 _pkg_short_errors_supported=yes 14972else 14973 _pkg_short_errors_supported=no 14974fi 14975 if test $_pkg_short_errors_supported = yes; then 14976 XDMGREET_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xt x11 xext"` 14977 else 14978 XDMGREET_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xt x11 xext"` 14979 fi 14980 # Put the nasty error message in config.log where it belongs 14981 echo "$XDMGREET_PKG_ERRORS" >&5 14982 14983 as_fn_error "Package requirements (xt x11 xext) were not met: 14984 14985$XDMGREET_PKG_ERRORS 14986 14987Consider adjusting the PKG_CONFIG_PATH environment variable if you 14988installed software in a non-standard prefix. 14989 14990Alternatively, you may set the environment variables XDMGREET_CFLAGS 14991and XDMGREET_LIBS to avoid the need to call pkg-config. 14992See the pkg-config man page for more details. 14993" "$LINENO" 5 14994elif test $pkg_failed = untried; then 14995 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14996$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14997as_fn_error "The pkg-config script could not be found or is too old. Make sure it 14998is in your PATH or set the PKG_CONFIG environment variable to the full 14999path to pkg-config. 15000 15001Alternatively, you may set the environment variables XDMGREET_CFLAGS 15002and XDMGREET_LIBS to avoid the need to call pkg-config. 15003See the pkg-config man page for more details. 15004 15005To get pkg-config, see <http://pkg-config.freedesktop.org/>. 15006See \`config.log' for more details." "$LINENO" 5; } 15007else 15008 XDMGREET_CFLAGS=$pkg_cv_XDMGREET_CFLAGS 15009 XDMGREET_LIBS=$pkg_cv_XDMGREET_LIBS 15010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15011$as_echo "yes" >&6; } 15012 : 15013fi 15014 15015 GREETERLIB="${XDMLIBDIR}/libXdmGreet.so" 15016 15017 prefix_NONE= 15018 exec_prefix_NONE= 15019 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 15020 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 15021 eval ac_define_dir="\"$GREETERLIB\"" 15022 eval ac_define_dir="\"$ac_define_dir\"" 15023 DEF_GREETER_LIB="$ac_define_dir" 15024 15025 15026cat >>confdefs.h <<_ACEOF 15027#define DEF_GREETER_LIB "$ac_define_dir" 15028_ACEOF 15029 15030 test "$prefix_NONE" && prefix=NONE 15031 test "$exec_prefix_NONE" && exec_prefix=NONE 15032 15033 15034 XDMGREET_CFLAGS="$XDMGREET_CFLAGS $XDM_PRINT_CFLAGS $DMCP_CFLAGS $XLIB_CFLAGS $OS_CFLAGS $GREETER_CFLAGS $AUTH_CFLAGS" 15035 XDMGREET_LIBS="$XDMGREET_LIBS $XDM_PRINT_LIBS $DMCP_LIBS $GREETER_LIBS" 15036 15037 15038 15039else 15040 XDM_CFLAGS="$XDM_CFLAGS $XDM_PRINT_CFLAGS $GREETER_CFLAGS -DGREET_USER_STATIC" 15041 XDM_LIBS="$XDM_LIBS $XDM_PRINT_LIBS $GREETER_LIBS" 15042fi 15043 15044 if test x$DYNAMIC_GREETER = xyes; then 15045 DYNAMIC_GREETER_TRUE= 15046 DYNAMIC_GREETER_FALSE='#' 15047else 15048 DYNAMIC_GREETER_TRUE='#' 15049 DYNAMIC_GREETER_FALSE= 15050fi 15051 15052 15053# 15054# XDM 15055# 15056 15057XDM_CFLAGS="$XDM_CFLAGS $DMCP_CFLAGS $XLIB_CFLAGS $OS_CFLAGS $AUTH_CFLAGS" 15058XDM_LIBS="$XDM_LIBS $DMCP_LIBS" 15059 15060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XdmcpWrap in -lXdmcp" >&5 15061$as_echo_n "checking for XdmcpWrap in -lXdmcp... " >&6; } 15062if test "${ac_cv_lib_Xdmcp_XdmcpWrap+set}" = set; then : 15063 $as_echo_n "(cached) " >&6 15064else 15065 ac_check_lib_save_LIBS=$LIBS 15066LIBS="-lXdmcp $DMCP_LIBS $LIBS" 15067cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15068/* end confdefs.h. */ 15069 15070/* Override any GCC internal prototype to avoid an error. 15071 Use char because int might match the return type of a GCC 15072 builtin and then its argument prototype would still apply. */ 15073#ifdef __cplusplus 15074extern "C" 15075#endif 15076char XdmcpWrap (); 15077int 15078main () 15079{ 15080return XdmcpWrap (); 15081 ; 15082 return 0; 15083} 15084_ACEOF 15085if ac_fn_c_try_link "$LINENO"; then : 15086 ac_cv_lib_Xdmcp_XdmcpWrap=yes 15087else 15088 ac_cv_lib_Xdmcp_XdmcpWrap=no 15089fi 15090rm -f core conftest.err conftest.$ac_objext \ 15091 conftest$ac_exeext conftest.$ac_ext 15092LIBS=$ac_check_lib_save_LIBS 15093fi 15094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp_XdmcpWrap" >&5 15095$as_echo "$ac_cv_lib_Xdmcp_XdmcpWrap" >&6; } 15096if test "x$ac_cv_lib_Xdmcp_XdmcpWrap" = x""yes; then : 15097 xdmauth="yes" 15098else 15099 xdmauth="no" 15100fi 15101 15102 15103# Check whether --enable-xdm-auth was given. 15104if test "${enable_xdm_auth+set}" = set; then : 15105 enableval=$enable_xdm_auth; xdmauth_enable="$enableval" 15106else 15107 xdmauth_enable="auto" 15108fi 15109 15110if test "x$xdmauth_enable" = "xyes" -a "x$xdmauth" = "xno" ; then 15111 as_fn_error "XDM-AUTH support requested, but XdmcpWrap not found in libXdmcp." "$LINENO" 5 15112fi 15113 15114 if test x$xdmauth = xyes -a x$xdmauth_enable != xno; then 15115 HAS_XDM_AUTH_TRUE= 15116 HAS_XDM_AUTH_FALSE='#' 15117else 15118 HAS_XDM_AUTH_TRUE='#' 15119 HAS_XDM_AUTH_FALSE= 15120fi 15121 15122 15123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 15124$as_echo_n "checking for library containing crypt... " >&6; } 15125if test "${ac_cv_search_crypt+set}" = set; then : 15126 $as_echo_n "(cached) " >&6 15127else 15128 ac_func_search_save_LIBS=$LIBS 15129cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15130/* end confdefs.h. */ 15131 15132/* Override any GCC internal prototype to avoid an error. 15133 Use char because int might match the return type of a GCC 15134 builtin and then its argument prototype would still apply. */ 15135#ifdef __cplusplus 15136extern "C" 15137#endif 15138char crypt (); 15139int 15140main () 15141{ 15142return crypt (); 15143 ; 15144 return 0; 15145} 15146_ACEOF 15147for ac_lib in '' crypt; do 15148 if test -z "$ac_lib"; then 15149 ac_res="none required" 15150 else 15151 ac_res=-l$ac_lib 15152 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 15153 fi 15154 if ac_fn_c_try_link "$LINENO"; then : 15155 ac_cv_search_crypt=$ac_res 15156fi 15157rm -f core conftest.err conftest.$ac_objext \ 15158 conftest$ac_exeext 15159 if test "${ac_cv_search_crypt+set}" = set; then : 15160 break 15161fi 15162done 15163if test "${ac_cv_search_crypt+set}" = set; then : 15164 15165else 15166 ac_cv_search_crypt=no 15167fi 15168rm conftest.$ac_ext 15169LIBS=$ac_func_search_save_LIBS 15170fi 15171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 15172$as_echo "$ac_cv_search_crypt" >&6; } 15173ac_res=$ac_cv_search_crypt 15174if test "$ac_res" != no; then : 15175 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15176 15177fi 15178 15179 15180 15181 15182 15183 15184# 15185# xdmshell 15186# 15187 15188 15189pkg_failed=no 15190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XT" >&5 15191$as_echo_n "checking for XT... " >&6; } 15192 15193if test -n "$PKG_CONFIG"; then 15194 if test -n "$XT_CFLAGS"; then 15195 pkg_cv_XT_CFLAGS="$XT_CFLAGS" 15196 else 15197 if test -n "$PKG_CONFIG" && \ 15198 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 15199 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 15200 ac_status=$? 15201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15202 test $ac_status = 0; }; then 15203 pkg_cv_XT_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null` 15204else 15205 pkg_failed=yes 15206fi 15207 fi 15208else 15209 pkg_failed=untried 15210fi 15211if test -n "$PKG_CONFIG"; then 15212 if test -n "$XT_LIBS"; then 15213 pkg_cv_XT_LIBS="$XT_LIBS" 15214 else 15215 if test -n "$PKG_CONFIG" && \ 15216 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 15217 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 15218 ac_status=$? 15219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15220 test $ac_status = 0; }; then 15221 pkg_cv_XT_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null` 15222else 15223 pkg_failed=yes 15224fi 15225 fi 15226else 15227 pkg_failed=untried 15228fi 15229 15230 15231 15232if test $pkg_failed = yes; then 15233 15234if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 15235 _pkg_short_errors_supported=yes 15236else 15237 _pkg_short_errors_supported=no 15238fi 15239 if test $_pkg_short_errors_supported = yes; then 15240 XT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xt"` 15241 else 15242 XT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xt"` 15243 fi 15244 # Put the nasty error message in config.log where it belongs 15245 echo "$XT_PKG_ERRORS" >&5 15246 15247 as_fn_error "Package requirements (xt) were not met: 15248 15249$XT_PKG_ERRORS 15250 15251Consider adjusting the PKG_CONFIG_PATH environment variable if you 15252installed software in a non-standard prefix. 15253 15254Alternatively, you may set the environment variables XT_CFLAGS 15255and XT_LIBS to avoid the need to call pkg-config. 15256See the pkg-config man page for more details. 15257" "$LINENO" 5 15258elif test $pkg_failed = untried; then 15259 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15260$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15261as_fn_error "The pkg-config script could not be found or is too old. Make sure it 15262is in your PATH or set the PKG_CONFIG environment variable to the full 15263path to pkg-config. 15264 15265Alternatively, you may set the environment variables XT_CFLAGS 15266and XT_LIBS to avoid the need to call pkg-config. 15267See the pkg-config man page for more details. 15268 15269To get pkg-config, see <http://pkg-config.freedesktop.org/>. 15270See \`config.log' for more details." "$LINENO" 5; } 15271else 15272 XT_CFLAGS=$pkg_cv_XT_CFLAGS 15273 XT_LIBS=$pkg_cv_XT_LIBS 15274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15275$as_echo "yes" >&6; } 15276 : 15277fi 15278XDMSHELL_CFLAGS="$XDM_CFLAGS $XDM_PRINT_CFLAGS $AUTH_CFLAGS $DMCP_CFLAGS $XLIB_CFLAGS $XT_CFLAGS" 15279XDMSHELL_LIBS="$XDM_LIBS $XDM_PRINT_LIBS $DMCP_LIBS" 15280 15281 15282 15283 15284# 15285# Chooser 15286# 15287 15288CHOOSER_CFLAGS="$CHOOSER_CFLAGS $XDM_PRINT_CFLAGS $XLIB_CFLAGS $DMCP_CFLAGS $AUTH_CFLAGS" 15289CHOOSER_LIBS="$CHOOSER_LIBS $XDM_PRINT_LIBS $DMCP_LIBS" 15290 15291 15292 15293 15294# Defaults for X session - should probably be configure --with-* flags 15295# Currently just trying to mirror what defaults were set in Imake 15296 15297# -DDEF_SERVER_LINE=":0 local $(DEF_SERVER) :0" 15298if test -z "$DEF_SERVER" ; then 15299 DEF_SERVER="${bindir}/X" 15300fi 15301if test -z "$DEF_SERVER_LINE" ; then 15302 DEF_SERVER_LINE=":0 local ${DEF_SERVER} :0" 15303fi 15304 15305 prefix_NONE= 15306 exec_prefix_NONE= 15307 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 15308 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 15309 eval ac_define_dir="\"$DEF_SERVER_LINE\"" 15310 eval ac_define_dir="\"$ac_define_dir\"" 15311 DEF_SERVER_LINE="$ac_define_dir" 15312 15313 15314cat >>confdefs.h <<_ACEOF 15315#define DEF_SERVER_LINE "$ac_define_dir" 15316_ACEOF 15317 15318 test "$prefix_NONE" && prefix=NONE 15319 test "$exec_prefix_NONE" && exec_prefix=NONE 15320 15321 15322# -DXRDB_PROGRAM="$(BINDIR)/xrdb" 15323 15324# Check whether --with-xrdb was given. 15325if test "${with_xrdb+set}" = set; then : 15326 withval=$with_xrdb; XRDB=$withval 15327else 15328 XRDB=${bindir}/xrdb 15329fi 15330 15331 15332 prefix_NONE= 15333 exec_prefix_NONE= 15334 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 15335 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 15336 eval ac_define_dir="\"$XRDB\"" 15337 eval ac_define_dir="\"$ac_define_dir\"" 15338 XRDB_PROGRAM="$ac_define_dir" 15339 15340 15341cat >>confdefs.h <<_ACEOF 15342#define XRDB_PROGRAM "$ac_define_dir" 15343_ACEOF 15344 15345 test "$prefix_NONE" && prefix=NONE 15346 test "$exec_prefix_NONE" && exec_prefix=NONE 15347 15348 15349# -DDEF_SESSION="$(BINDIR)/xterm -ls" 15350 15351# Check whether --with-default-session was given. 15352if test "${with_default_session+set}" = set; then : 15353 withval=$with_default_session; DEF_SESSION=$withval 15354else 15355 DEF_SESSION="${bindir}/xterm -ls" 15356fi 15357 15358 15359 prefix_NONE= 15360 exec_prefix_NONE= 15361 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 15362 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 15363 eval ac_define_dir="\"$DEF_SESSION\"" 15364 eval ac_define_dir="\"$ac_define_dir\"" 15365 DEF_SESSION="$ac_define_dir" 15366 15367 15368cat >>confdefs.h <<_ACEOF 15369#define DEF_SESSION "$ac_define_dir" 15370_ACEOF 15371 15372 test "$prefix_NONE" && prefix=NONE 15373 test "$exec_prefix_NONE" && exec_prefix=NONE 15374 15375 15376# -DDEF_USER_PATH="$(DEF_USER_PATH)" 15377# Default values taken from DefaultUserPath setting in the 15378# old Imake *.cf files for each platform 15379if test -z "$DEF_USER_PATH" ; then 15380 case $host_os in 15381 dragonfly*) 15382 DEF_USER_PATH="/bin:/usr/bin:/sbin:/usr/sbin:${bindir}:/usr/local/bin" 15383 ;; 15384 freebsd*) 15385 DEF_USER_PATH="/bin:/usr/bin:/sbin:/usr/sbin:${bindir}:/usr/gnu/bin:/usr/local/bin" 15386 ;; 15387 netbsd*) 15388 DEF_USER_PATH="/bin:/usr/bin:/usr/pkg/bin:/usr/local/bin:${bindir}" 15389 ;; 15390 openbsd*|bsdi*) 15391 DEF_USER_PATH="/bin:/usr/bin:/usr/local/bin:${bindir}" 15392 ;; 15393 solaris*) 15394 DEF_USER_PATH="/usr/bin:${bindir}" 15395 ;; 15396 *) 15397 DEF_USER_PATH="/bin:/usr/bin:${bindir}:/usr/ucb" 15398 ;; 15399 esac 15400fi 15401 15402 prefix_NONE= 15403 exec_prefix_NONE= 15404 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 15405 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 15406 eval ac_define_dir="\"$DEF_USER_PATH\"" 15407 eval ac_define_dir="\"$ac_define_dir\"" 15408 DEF_USER_PATH="$ac_define_dir" 15409 15410 15411cat >>confdefs.h <<_ACEOF 15412#define DEF_USER_PATH "$ac_define_dir" 15413_ACEOF 15414 15415 test "$prefix_NONE" && prefix=NONE 15416 test "$exec_prefix_NONE" && exec_prefix=NONE 15417 15418 15419# -DDEF_SYSTEM_PATH="$(DEF_SYSTEM_PATH)" 15420# Default values taken from DefaultSystemPath setting in the 15421# old Imake *.cf files for each platform 15422if test -z "$DEF_SYSTEM_PATH" ; then 15423 case $host_os in 15424 freebsd*|dragonfly*) 15425 DEF_SYSTEM_PATH="/bin:/usr/bin:/sbin:/usr/sbin:${bindir}" 15426 ;; 15427 netbsd*|openbsd*|bsdi*) 15428 DEF_SYSTEM_PATH="/sbin:/usr/sbin:/bin:/usr/bin:${bindir}" 15429 ;; 15430 solaris*) 15431 DEF_SYSTEM_PATH="/sbin:/usr/sbin:/usr/bin:${bindir}" 15432 ;; 15433 *) 15434 DEF_SYSTEM_PATH="/etc:/bin:/usr/bin:${bindir}:/usr/ucb" 15435 ;; 15436 esac 15437fi 15438 15439 prefix_NONE= 15440 exec_prefix_NONE= 15441 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 15442 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 15443 eval ac_define_dir="\"$DEF_SYSTEM_PATH\"" 15444 eval ac_define_dir="\"$ac_define_dir\"" 15445 DEF_SYSTEM_PATH="$ac_define_dir" 15446 15447 15448cat >>confdefs.h <<_ACEOF 15449#define DEF_SYSTEM_PATH "$ac_define_dir" 15450_ACEOF 15451 15452 test "$prefix_NONE" && prefix=NONE 15453 test "$exec_prefix_NONE" && exec_prefix=NONE 15454 15455 15456# -DDEF_SYSTEM_SHELL="$(BOURNE_SHELL)" 15457if test -z "$BOURNE_SHELL" ; then 15458 BOURNE_SHELL=/bin/sh 15459fi 15460 15461 prefix_NONE= 15462 exec_prefix_NONE= 15463 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 15464 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 15465 eval ac_define_dir="\"$BOURNE_SHELL\"" 15466 eval ac_define_dir="\"$ac_define_dir\"" 15467 DEF_SYSTEM_SHELL="$ac_define_dir" 15468 15469 15470cat >>confdefs.h <<_ACEOF 15471#define DEF_SYSTEM_SHELL "$ac_define_dir" 15472_ACEOF 15473 15474 test "$prefix_NONE" && prefix=NONE 15475 test "$exec_prefix_NONE" && exec_prefix=NONE 15476 15477 15478# -DDEF_FAILSAFE_CLIENT="$(BINDIR)/xterm" 15479 15480 15481 prefix_NONE= 15482 exec_prefix_NONE= 15483 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 15484 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 15485 eval ac_define_dir="\"$bindir/xterm\"" 15486 eval ac_define_dir="\"$ac_define_dir\"" 15487 DEF_FAILSAFE_CLIENT="$ac_define_dir" 15488 15489 15490cat >>confdefs.h <<_ACEOF 15491#define DEF_FAILSAFE_CLIENT "$ac_define_dir" 15492_ACEOF 15493 15494 test "$prefix_NONE" && prefix=NONE 15495 test "$exec_prefix_NONE" && exec_prefix=NONE 15496 15497 15498# -DDEF_XDM_CONFIG="$(XDMDIR)/xdm-config" 15499 15500 15501 prefix_NONE= 15502 exec_prefix_NONE= 15503 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 15504 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 15505 eval ac_define_dir="\"$XDMCONFIGDIR/xdm-config\"" 15506 eval ac_define_dir="\"$ac_define_dir\"" 15507 DEF_XDM_CONFIG="$ac_define_dir" 15508 15509 15510cat >>confdefs.h <<_ACEOF 15511#define DEF_XDM_CONFIG "$ac_define_dir" 15512_ACEOF 15513 15514 test "$prefix_NONE" && prefix=NONE 15515 test "$exec_prefix_NONE" && exec_prefix=NONE 15516 15517 15518# -DDEF_CHOOSER="$(CHOOSERPATH)" 15519 15520 15521 prefix_NONE= 15522 exec_prefix_NONE= 15523 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 15524 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 15525 eval ac_define_dir="\"$XDMLIBDIR/chooser\"" 15526 eval ac_define_dir="\"$ac_define_dir\"" 15527 DEF_CHOOSER="$ac_define_dir" 15528 15529 15530cat >>confdefs.h <<_ACEOF 15531#define DEF_CHOOSER "$ac_define_dir" 15532_ACEOF 15533 15534 test "$prefix_NONE" && prefix=NONE 15535 test "$exec_prefix_NONE" && exec_prefix=NONE 15536 15537 15538# -DDEF_AUTH_DIR="$(XDMDIR)" 15539 15540 15541# Check whether --with-authdir was given. 15542if test "${with_authdir+set}" = set; then : 15543 withval=$with_authdir; XDMXAUTHDIR="$withval" 15544else 15545 XDMXAUTHDIR="/var/lib/xdm" 15546fi 15547 15548 15549 15550 15551 prefix_NONE= 15552 exec_prefix_NONE= 15553 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 15554 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 15555 eval ac_define_dir="\"$XDMXAUTHDIR\"" 15556 eval ac_define_dir="\"$ac_define_dir\"" 15557 DEF_AUTH_DIR="$ac_define_dir" 15558 15559 15560cat >>confdefs.h <<_ACEOF 15561#define DEF_AUTH_DIR "$ac_define_dir" 15562_ACEOF 15563 15564 test "$prefix_NONE" && prefix=NONE 15565 test "$exec_prefix_NONE" && exec_prefix=NONE 15566 15567 15568# -DDEF_GREETER_LIB="$(XDMDIR)/libXdmGreet.so" 15569 15570 15571 prefix_NONE= 15572 exec_prefix_NONE= 15573 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 15574 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 15575 eval ac_define_dir="\"$XDMLIBDIR/libXdmGreet.so\"" 15576 eval ac_define_dir="\"$ac_define_dir\"" 15577 DEF_GREETER_LIB="$ac_define_dir" 15578 15579 15580cat >>confdefs.h <<_ACEOF 15581#define DEF_GREETER_LIB "$ac_define_dir" 15582_ACEOF 15583 15584 test "$prefix_NONE" && prefix=NONE 15585 test "$exec_prefix_NONE" && exec_prefix=NONE 15586 15587 15588 15589pkg_failed=no 15590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5 15591$as_echo_n "checking for APPDEFS... " >&6; } 15592 15593if test -n "$PKG_CONFIG"; then 15594 if test -n "$APPDEFS_CFLAGS"; then 15595 pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS" 15596 else 15597 if test -n "$PKG_CONFIG" && \ 15598 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 15599 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 15600 ac_status=$? 15601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15602 test $ac_status = 0; }; then 15603 pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null` 15604else 15605 pkg_failed=yes 15606fi 15607 fi 15608else 15609 pkg_failed=untried 15610fi 15611if test -n "$PKG_CONFIG"; then 15612 if test -n "$APPDEFS_LIBS"; then 15613 pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS" 15614 else 15615 if test -n "$PKG_CONFIG" && \ 15616 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 15617 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 15618 ac_status=$? 15619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15620 test $ac_status = 0; }; then 15621 pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null` 15622else 15623 pkg_failed=yes 15624fi 15625 fi 15626else 15627 pkg_failed=untried 15628fi 15629 15630 15631 15632if test $pkg_failed = yes; then 15633 15634if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 15635 _pkg_short_errors_supported=yes 15636else 15637 _pkg_short_errors_supported=no 15638fi 15639 if test $_pkg_short_errors_supported = yes; then 15640 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xt"` 15641 else 15642 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xt"` 15643 fi 15644 # Put the nasty error message in config.log where it belongs 15645 echo "$APPDEFS_PKG_ERRORS" >&5 15646 15647 as_fn_error "Package requirements (xt) were not met: 15648 15649$APPDEFS_PKG_ERRORS 15650 15651Consider adjusting the PKG_CONFIG_PATH environment variable if you 15652installed software in a non-standard prefix. 15653 15654Alternatively, you may set the environment variables APPDEFS_CFLAGS 15655and APPDEFS_LIBS to avoid the need to call pkg-config. 15656See the pkg-config man page for more details. 15657" "$LINENO" 5 15658elif test $pkg_failed = untried; then 15659 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15660$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15661as_fn_error "The pkg-config script could not be found or is too old. Make sure it 15662is in your PATH or set the PKG_CONFIG environment variable to the full 15663path to pkg-config. 15664 15665Alternatively, you may set the environment variables APPDEFS_CFLAGS 15666and APPDEFS_LIBS to avoid the need to call pkg-config. 15667See the pkg-config man page for more details. 15668 15669To get pkg-config, see <http://pkg-config.freedesktop.org/>. 15670See \`config.log' for more details." "$LINENO" 5; } 15671else 15672 APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS 15673 APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS 15674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15675$as_echo "yes" >&6; } 15676 : 15677fi 15678xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` 15679 15680# Check whether --with-appdefaultdir was given. 15681if test "${with_appdefaultdir+set}" = set; then : 15682 withval=$with_appdefaultdir; appdefaultdir="$withval" 15683else 15684 appdefaultdir="${xt_appdefaultdir}" 15685fi 15686 15687 15688 15689 15690 15691ac_config_files="$ac_config_files Makefile config/Makefile greeter/Makefile" 15692 15693cat >confcache <<\_ACEOF 15694# This file is a shell script that caches the results of configure 15695# tests run on this system so they can be shared between configure 15696# scripts and configure runs, see configure's option --config-cache. 15697# It is not useful on other systems. If it contains results you don't 15698# want to keep, you may remove or edit it. 15699# 15700# config.status only pays attention to the cache file if you give it 15701# the --recheck option to rerun configure. 15702# 15703# `ac_cv_env_foo' variables (set or unset) will be overridden when 15704# loading this file, other *unset* `ac_cv_foo' will be assigned the 15705# following values. 15706 15707_ACEOF 15708 15709# The following way of writing the cache mishandles newlines in values, 15710# but we know of no workaround that is simple, portable, and efficient. 15711# So, we kill variables containing newlines. 15712# Ultrix sh set writes to stderr and can't be redirected directly, 15713# and sets the high bit in the cache file unless we assign to the vars. 15714( 15715 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 15716 eval ac_val=\$$ac_var 15717 case $ac_val in #( 15718 *${as_nl}*) 15719 case $ac_var in #( 15720 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 15721$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 15722 esac 15723 case $ac_var in #( 15724 _ | IFS | as_nl) ;; #( 15725 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 15726 *) { eval $ac_var=; unset $ac_var;} ;; 15727 esac ;; 15728 esac 15729 done 15730 15731 (set) 2>&1 | 15732 case $as_nl`(ac_space=' '; set) 2>&1` in #( 15733 *${as_nl}ac_space=\ *) 15734 # `set' does not quote correctly, so add quotes: double-quote 15735 # substitution turns \\\\ into \\, and sed turns \\ into \. 15736 sed -n \ 15737 "s/'/'\\\\''/g; 15738 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 15739 ;; #( 15740 *) 15741 # `set' quotes correctly as required by POSIX, so do not add quotes. 15742 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 15743 ;; 15744 esac | 15745 sort 15746) | 15747 sed ' 15748 /^ac_cv_env_/b end 15749 t clear 15750 :clear 15751 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 15752 t end 15753 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 15754 :end' >>confcache 15755if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 15756 if test -w "$cache_file"; then 15757 test "x$cache_file" != "x/dev/null" && 15758 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 15759$as_echo "$as_me: updating cache $cache_file" >&6;} 15760 cat confcache >$cache_file 15761 else 15762 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 15763$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 15764 fi 15765fi 15766rm -f confcache 15767 15768test "x$prefix" = xNONE && prefix=$ac_default_prefix 15769# Let make expand exec_prefix. 15770test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 15771 15772DEFS=-DHAVE_CONFIG_H 15773 15774ac_libobjs= 15775ac_ltlibobjs= 15776for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 15777 # 1. Remove the extension, and $U if already installed. 15778 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 15779 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 15780 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 15781 # will be set to the directory where LIBOBJS objects are built. 15782 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 15783 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 15784done 15785LIBOBJS=$ac_libobjs 15786 15787LTLIBOBJS=$ac_ltlibobjs 15788 15789 15790 if test -n "$EXEEXT"; then 15791 am__EXEEXT_TRUE= 15792 am__EXEEXT_FALSE='#' 15793else 15794 am__EXEEXT_TRUE='#' 15795 am__EXEEXT_FALSE= 15796fi 15797 15798if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 15799 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. 15800Usually this means the macro was only invoked conditionally." "$LINENO" 5 15801fi 15802if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 15803 as_fn_error "conditional \"AMDEP\" was never defined. 15804Usually this means the macro was only invoked conditionally." "$LINENO" 5 15805fi 15806if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 15807 as_fn_error "conditional \"am__fastdepCC\" was never defined. 15808Usually this means the macro was only invoked conditionally." "$LINENO" 5 15809fi 15810if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 15811 as_fn_error "conditional \"am__fastdepCC\" was never defined. 15812Usually this means the macro was only invoked conditionally." "$LINENO" 5 15813fi 15814if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 15815 as_fn_error "conditional \"LINT\" was never defined. 15816Usually this means the macro was only invoked conditionally." "$LINENO" 5 15817fi 15818if test -z "${HAVE_AM_SILENT_RULES_TRUE}" && test -z "${HAVE_AM_SILENT_RULES_FALSE}"; then 15819 as_fn_error "conditional \"HAVE_AM_SILENT_RULES\" was never defined. 15820Usually this means the macro was only invoked conditionally." "$LINENO" 5 15821fi 15822if test -z "${HAVE_MKTEMP_COMMAND_TRUE}" && test -z "${HAVE_MKTEMP_COMMAND_FALSE}"; then 15823 as_fn_error "conditional \"HAVE_MKTEMP_COMMAND\" was never defined. 15824Usually this means the macro was only invoked conditionally." "$LINENO" 5 15825fi 15826if test -z "${HAS_SECURE_RPC_TRUE}" && test -z "${HAS_SECURE_RPC_FALSE}"; then 15827 as_fn_error "conditional \"HAS_SECURE_RPC\" was never defined. 15828Usually this means the macro was only invoked conditionally." "$LINENO" 5 15829fi 15830if test -z "${HAS_ARC4_RANDOM_TRUE}" && test -z "${HAS_ARC4_RANDOM_FALSE}"; then 15831 as_fn_error "conditional \"HAS_ARC4_RANDOM\" was never defined. 15832Usually this means the macro was only invoked conditionally." "$LINENO" 5 15833fi 15834if test -z "${HAS_KERBEROS_FIVE_TRUE}" && test -z "${HAS_KERBEROS_FIVE_FALSE}"; then 15835 as_fn_error "conditional \"HAS_KERBEROS_FIVE\" was never defined. 15836Usually this means the macro was only invoked conditionally." "$LINENO" 5 15837fi 15838if test -z "${USE_XPM_TRUE}" && test -z "${USE_XPM_FALSE}"; then 15839 as_fn_error "conditional \"USE_XPM\" was never defined. 15840Usually this means the macro was only invoked conditionally." "$LINENO" 5 15841fi 15842if test -z "${DYNAMIC_GREETER_TRUE}" && test -z "${DYNAMIC_GREETER_FALSE}"; then 15843 as_fn_error "conditional \"DYNAMIC_GREETER\" was never defined. 15844Usually this means the macro was only invoked conditionally." "$LINENO" 5 15845fi 15846if test -z "${HAS_XDM_AUTH_TRUE}" && test -z "${HAS_XDM_AUTH_FALSE}"; then 15847 as_fn_error "conditional \"HAS_XDM_AUTH\" was never defined. 15848Usually this means the macro was only invoked conditionally." "$LINENO" 5 15849fi 15850 15851: ${CONFIG_STATUS=./config.status} 15852ac_write_fail=0 15853ac_clean_files_save=$ac_clean_files 15854ac_clean_files="$ac_clean_files $CONFIG_STATUS" 15855{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 15856$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 15857as_write_fail=0 15858cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 15859#! $SHELL 15860# Generated by $as_me. 15861# Run this file to recreate the current configuration. 15862# Compiler output produced by configure, useful for debugging 15863# configure, is in config.log if it exists. 15864 15865debug=false 15866ac_cs_recheck=false 15867ac_cs_silent=false 15868 15869SHELL=\${CONFIG_SHELL-$SHELL} 15870export SHELL 15871_ASEOF 15872cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 15873## -------------------- ## 15874## M4sh Initialization. ## 15875## -------------------- ## 15876 15877# Be more Bourne compatible 15878DUALCASE=1; export DUALCASE # for MKS sh 15879if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 15880 emulate sh 15881 NULLCMD=: 15882 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 15883 # is contrary to our usage. Disable this feature. 15884 alias -g '${1+"$@"}'='"$@"' 15885 setopt NO_GLOB_SUBST 15886else 15887 case `(set -o) 2>/dev/null` in #( 15888 *posix*) : 15889 set -o posix ;; #( 15890 *) : 15891 ;; 15892esac 15893fi 15894 15895 15896as_nl=' 15897' 15898export as_nl 15899# Printing a long string crashes Solaris 7 /usr/bin/printf. 15900as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 15901as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 15902as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 15903# Prefer a ksh shell builtin over an external printf program on Solaris, 15904# but without wasting forks for bash or zsh. 15905if test -z "$BASH_VERSION$ZSH_VERSION" \ 15906 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 15907 as_echo='print -r --' 15908 as_echo_n='print -rn --' 15909elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 15910 as_echo='printf %s\n' 15911 as_echo_n='printf %s' 15912else 15913 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 15914 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 15915 as_echo_n='/usr/ucb/echo -n' 15916 else 15917 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 15918 as_echo_n_body='eval 15919 arg=$1; 15920 case $arg in #( 15921 *"$as_nl"*) 15922 expr "X$arg" : "X\\(.*\\)$as_nl"; 15923 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 15924 esac; 15925 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 15926 ' 15927 export as_echo_n_body 15928 as_echo_n='sh -c $as_echo_n_body as_echo' 15929 fi 15930 export as_echo_body 15931 as_echo='sh -c $as_echo_body as_echo' 15932fi 15933 15934# The user is always right. 15935if test "${PATH_SEPARATOR+set}" != set; then 15936 PATH_SEPARATOR=: 15937 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 15938 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 15939 PATH_SEPARATOR=';' 15940 } 15941fi 15942 15943 15944# IFS 15945# We need space, tab and new line, in precisely that order. Quoting is 15946# there to prevent editors from complaining about space-tab. 15947# (If _AS_PATH_WALK were called with IFS unset, it would disable word 15948# splitting by setting IFS to empty value.) 15949IFS=" "" $as_nl" 15950 15951# Find who we are. Look in the path if we contain no directory separator. 15952case $0 in #(( 15953 *[\\/]* ) as_myself=$0 ;; 15954 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15955for as_dir in $PATH 15956do 15957 IFS=$as_save_IFS 15958 test -z "$as_dir" && as_dir=. 15959 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 15960 done 15961IFS=$as_save_IFS 15962 15963 ;; 15964esac 15965# We did not find ourselves, most probably we were run as `sh COMMAND' 15966# in which case we are not to be found in the path. 15967if test "x$as_myself" = x; then 15968 as_myself=$0 15969fi 15970if test ! -f "$as_myself"; then 15971 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 15972 exit 1 15973fi 15974 15975# Unset variables that we do not need and which cause bugs (e.g. in 15976# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 15977# suppresses any "Segmentation fault" message there. '((' could 15978# trigger a bug in pdksh 5.2.14. 15979for as_var in BASH_ENV ENV MAIL MAILPATH 15980do eval test x\${$as_var+set} = xset \ 15981 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 15982done 15983PS1='$ ' 15984PS2='> ' 15985PS4='+ ' 15986 15987# NLS nuisances. 15988LC_ALL=C 15989export LC_ALL 15990LANGUAGE=C 15991export LANGUAGE 15992 15993# CDPATH. 15994(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15995 15996 15997# as_fn_error ERROR [LINENO LOG_FD] 15998# --------------------------------- 15999# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 16000# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 16001# script with status $?, using 1 if that was 0. 16002as_fn_error () 16003{ 16004 as_status=$?; test $as_status -eq 0 && as_status=1 16005 if test "$3"; then 16006 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16007 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 16008 fi 16009 $as_echo "$as_me: error: $1" >&2 16010 as_fn_exit $as_status 16011} # as_fn_error 16012 16013 16014# as_fn_set_status STATUS 16015# ----------------------- 16016# Set $? to STATUS, without forking. 16017as_fn_set_status () 16018{ 16019 return $1 16020} # as_fn_set_status 16021 16022# as_fn_exit STATUS 16023# ----------------- 16024# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 16025as_fn_exit () 16026{ 16027 set +e 16028 as_fn_set_status $1 16029 exit $1 16030} # as_fn_exit 16031 16032# as_fn_unset VAR 16033# --------------- 16034# Portably unset VAR. 16035as_fn_unset () 16036{ 16037 { eval $1=; unset $1;} 16038} 16039as_unset=as_fn_unset 16040# as_fn_append VAR VALUE 16041# ---------------------- 16042# Append the text in VALUE to the end of the definition contained in VAR. Take 16043# advantage of any shell optimizations that allow amortized linear growth over 16044# repeated appends, instead of the typical quadratic growth present in naive 16045# implementations. 16046if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 16047 eval 'as_fn_append () 16048 { 16049 eval $1+=\$2 16050 }' 16051else 16052 as_fn_append () 16053 { 16054 eval $1=\$$1\$2 16055 } 16056fi # as_fn_append 16057 16058# as_fn_arith ARG... 16059# ------------------ 16060# Perform arithmetic evaluation on the ARGs, and store the result in the 16061# global $as_val. Take advantage of shells that can avoid forks. The arguments 16062# must be portable across $(()) and expr. 16063if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 16064 eval 'as_fn_arith () 16065 { 16066 as_val=$(( $* )) 16067 }' 16068else 16069 as_fn_arith () 16070 { 16071 as_val=`expr "$@" || test $? -eq 1` 16072 } 16073fi # as_fn_arith 16074 16075 16076if expr a : '\(a\)' >/dev/null 2>&1 && 16077 test "X`expr 00001 : '.*\(...\)'`" = X001; then 16078 as_expr=expr 16079else 16080 as_expr=false 16081fi 16082 16083if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 16084 as_basename=basename 16085else 16086 as_basename=false 16087fi 16088 16089if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 16090 as_dirname=dirname 16091else 16092 as_dirname=false 16093fi 16094 16095as_me=`$as_basename -- "$0" || 16096$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 16097 X"$0" : 'X\(//\)$' \| \ 16098 X"$0" : 'X\(/\)' \| . 2>/dev/null || 16099$as_echo X/"$0" | 16100 sed '/^.*\/\([^/][^/]*\)\/*$/{ 16101 s//\1/ 16102 q 16103 } 16104 /^X\/\(\/\/\)$/{ 16105 s//\1/ 16106 q 16107 } 16108 /^X\/\(\/\).*/{ 16109 s//\1/ 16110 q 16111 } 16112 s/.*/./; q'` 16113 16114# Avoid depending upon Character Ranges. 16115as_cr_letters='abcdefghijklmnopqrstuvwxyz' 16116as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 16117as_cr_Letters=$as_cr_letters$as_cr_LETTERS 16118as_cr_digits='0123456789' 16119as_cr_alnum=$as_cr_Letters$as_cr_digits 16120 16121ECHO_C= ECHO_N= ECHO_T= 16122case `echo -n x` in #((((( 16123-n*) 16124 case `echo 'xy\c'` in 16125 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 16126 xy) ECHO_C='\c';; 16127 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 16128 ECHO_T=' ';; 16129 esac;; 16130*) 16131 ECHO_N='-n';; 16132esac 16133 16134rm -f conf$$ conf$$.exe conf$$.file 16135if test -d conf$$.dir; then 16136 rm -f conf$$.dir/conf$$.file 16137else 16138 rm -f conf$$.dir 16139 mkdir conf$$.dir 2>/dev/null 16140fi 16141if (echo >conf$$.file) 2>/dev/null; then 16142 if ln -s conf$$.file conf$$ 2>/dev/null; then 16143 as_ln_s='ln -s' 16144 # ... but there are two gotchas: 16145 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 16146 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 16147 # In both cases, we have to default to `cp -p'. 16148 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 16149 as_ln_s='cp -p' 16150 elif ln conf$$.file conf$$ 2>/dev/null; then 16151 as_ln_s=ln 16152 else 16153 as_ln_s='cp -p' 16154 fi 16155else 16156 as_ln_s='cp -p' 16157fi 16158rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 16159rmdir conf$$.dir 2>/dev/null 16160 16161 16162# as_fn_mkdir_p 16163# ------------- 16164# Create "$as_dir" as a directory, including parents if necessary. 16165as_fn_mkdir_p () 16166{ 16167 16168 case $as_dir in #( 16169 -*) as_dir=./$as_dir;; 16170 esac 16171 test -d "$as_dir" || eval $as_mkdir_p || { 16172 as_dirs= 16173 while :; do 16174 case $as_dir in #( 16175 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 16176 *) as_qdir=$as_dir;; 16177 esac 16178 as_dirs="'$as_qdir' $as_dirs" 16179 as_dir=`$as_dirname -- "$as_dir" || 16180$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16181 X"$as_dir" : 'X\(//\)[^/]' \| \ 16182 X"$as_dir" : 'X\(//\)$' \| \ 16183 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 16184$as_echo X"$as_dir" | 16185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16186 s//\1/ 16187 q 16188 } 16189 /^X\(\/\/\)[^/].*/{ 16190 s//\1/ 16191 q 16192 } 16193 /^X\(\/\/\)$/{ 16194 s//\1/ 16195 q 16196 } 16197 /^X\(\/\).*/{ 16198 s//\1/ 16199 q 16200 } 16201 s/.*/./; q'` 16202 test -d "$as_dir" && break 16203 done 16204 test -z "$as_dirs" || eval "mkdir $as_dirs" 16205 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 16206 16207 16208} # as_fn_mkdir_p 16209if mkdir -p . 2>/dev/null; then 16210 as_mkdir_p='mkdir -p "$as_dir"' 16211else 16212 test -d ./-p && rmdir ./-p 16213 as_mkdir_p=false 16214fi 16215 16216if test -x / >/dev/null 2>&1; then 16217 as_test_x='test -x' 16218else 16219 if ls -dL / >/dev/null 2>&1; then 16220 as_ls_L_option=L 16221 else 16222 as_ls_L_option= 16223 fi 16224 as_test_x=' 16225 eval sh -c '\'' 16226 if test -d "$1"; then 16227 test -d "$1/."; 16228 else 16229 case $1 in #( 16230 -*)set "./$1";; 16231 esac; 16232 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 16233 ???[sx]*):;;*)false;;esac;fi 16234 '\'' sh 16235 ' 16236fi 16237as_executable_p=$as_test_x 16238 16239# Sed expression to map a string onto a valid CPP name. 16240as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 16241 16242# Sed expression to map a string onto a valid variable name. 16243as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 16244 16245 16246exec 6>&1 16247## ----------------------------------- ## 16248## Main body of $CONFIG_STATUS script. ## 16249## ----------------------------------- ## 16250_ASEOF 16251test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 16252 16253cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16254# Save the log message, to keep $0 and so on meaningful, and to 16255# report actual input values of CONFIG_FILES etc. instead of their 16256# values after options handling. 16257ac_log=" 16258This file was extended by xdm $as_me 1.1.10, which was 16259generated by GNU Autoconf 2.65. Invocation command line was 16260 16261 CONFIG_FILES = $CONFIG_FILES 16262 CONFIG_HEADERS = $CONFIG_HEADERS 16263 CONFIG_LINKS = $CONFIG_LINKS 16264 CONFIG_COMMANDS = $CONFIG_COMMANDS 16265 $ $0 $@ 16266 16267on `(hostname || uname -n) 2>/dev/null | sed 1q` 16268" 16269 16270_ACEOF 16271 16272case $ac_config_files in *" 16273"*) set x $ac_config_files; shift; ac_config_files=$*;; 16274esac 16275 16276case $ac_config_headers in *" 16277"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 16278esac 16279 16280 16281cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16282# Files that config.status was made for. 16283config_files="$ac_config_files" 16284config_headers="$ac_config_headers" 16285config_commands="$ac_config_commands" 16286 16287_ACEOF 16288 16289cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16290ac_cs_usage="\ 16291\`$as_me' instantiates files and other configuration actions 16292from templates according to the current configuration. Unless the files 16293and actions are specified as TAGs, all are instantiated by default. 16294 16295Usage: $0 [OPTION]... [TAG]... 16296 16297 -h, --help print this help, then exit 16298 -V, --version print version number and configuration settings, then exit 16299 --config print configuration, then exit 16300 -q, --quiet, --silent 16301 do not print progress messages 16302 -d, --debug don't remove temporary files 16303 --recheck update $as_me by reconfiguring in the same conditions 16304 --file=FILE[:TEMPLATE] 16305 instantiate the configuration file FILE 16306 --header=FILE[:TEMPLATE] 16307 instantiate the configuration header FILE 16308 16309Configuration files: 16310$config_files 16311 16312Configuration headers: 16313$config_headers 16314 16315Configuration commands: 16316$config_commands 16317 16318Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 16319 16320_ACEOF 16321cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16322ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 16323ac_cs_version="\\ 16324xdm config.status 1.1.10 16325configured by $0, generated by GNU Autoconf 2.65, 16326 with options \\"\$ac_cs_config\\" 16327 16328Copyright (C) 2009 Free Software Foundation, Inc. 16329This config.status script is free software; the Free Software Foundation 16330gives unlimited permission to copy, distribute and modify it." 16331 16332ac_pwd='$ac_pwd' 16333srcdir='$srcdir' 16334INSTALL='$INSTALL' 16335MKDIR_P='$MKDIR_P' 16336AWK='$AWK' 16337test -n "\$AWK" || AWK=awk 16338_ACEOF 16339 16340cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16341# The default lists apply if the user does not specify any file. 16342ac_need_defaults=: 16343while test $# != 0 16344do 16345 case $1 in 16346 --*=*) 16347 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16348 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 16349 ac_shift=: 16350 ;; 16351 *) 16352 ac_option=$1 16353 ac_optarg=$2 16354 ac_shift=shift 16355 ;; 16356 esac 16357 16358 case $ac_option in 16359 # Handling of the options. 16360 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 16361 ac_cs_recheck=: ;; 16362 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 16363 $as_echo "$ac_cs_version"; exit ;; 16364 --config | --confi | --conf | --con | --co | --c ) 16365 $as_echo "$ac_cs_config"; exit ;; 16366 --debug | --debu | --deb | --de | --d | -d ) 16367 debug=: ;; 16368 --file | --fil | --fi | --f ) 16369 $ac_shift 16370 case $ac_optarg in 16371 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16372 esac 16373 as_fn_append CONFIG_FILES " '$ac_optarg'" 16374 ac_need_defaults=false;; 16375 --header | --heade | --head | --hea ) 16376 $ac_shift 16377 case $ac_optarg in 16378 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16379 esac 16380 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 16381 ac_need_defaults=false;; 16382 --he | --h) 16383 # Conflict between --help and --header 16384 as_fn_error "ambiguous option: \`$1' 16385Try \`$0 --help' for more information.";; 16386 --help | --hel | -h ) 16387 $as_echo "$ac_cs_usage"; exit ;; 16388 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 16389 | -silent | --silent | --silen | --sile | --sil | --si | --s) 16390 ac_cs_silent=: ;; 16391 16392 # This is an error. 16393 -*) as_fn_error "unrecognized option: \`$1' 16394Try \`$0 --help' for more information." ;; 16395 16396 *) as_fn_append ac_config_targets " $1" 16397 ac_need_defaults=false ;; 16398 16399 esac 16400 shift 16401done 16402 16403ac_configure_extra_args= 16404 16405if $ac_cs_silent; then 16406 exec 6>/dev/null 16407 ac_configure_extra_args="$ac_configure_extra_args --silent" 16408fi 16409 16410_ACEOF 16411cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16412if \$ac_cs_recheck; then 16413 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 16414 shift 16415 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 16416 CONFIG_SHELL='$SHELL' 16417 export CONFIG_SHELL 16418 exec "\$@" 16419fi 16420 16421_ACEOF 16422cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16423exec 5>>config.log 16424{ 16425 echo 16426 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 16427## Running $as_me. ## 16428_ASBOX 16429 $as_echo "$ac_log" 16430} >&5 16431 16432_ACEOF 16433cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16434# 16435# INIT-COMMANDS 16436# 16437AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 16438 16439 16440# The HP-UX ksh and POSIX shell print the target directory to stdout 16441# if CDPATH is set. 16442(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16443 16444sed_quote_subst='$sed_quote_subst' 16445double_quote_subst='$double_quote_subst' 16446delay_variable_subst='$delay_variable_subst' 16447AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`' 16448DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`' 16449OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 16450macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 16451macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 16452enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 16453enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 16454pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 16455enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 16456host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 16457host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 16458host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 16459build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 16460build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 16461build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 16462SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 16463Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 16464GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 16465EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 16466FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 16467LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 16468NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 16469LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 16470max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 16471ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 16472exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 16473lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 16474lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 16475lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 16476reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 16477reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16478deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 16479file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 16480AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 16481AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 16482STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 16483RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 16484old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16485old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16486old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16487CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 16488CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 16489compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 16490GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 16491lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 16492lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 16493lt_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"`' 16494lt_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"`' 16495objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 16496SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 16497ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 16498MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 16499lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 16500lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 16501lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 16502lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 16503lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 16504need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 16505DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 16506NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 16507LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 16508OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 16509OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 16510libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 16511shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16512extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16513archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 16514enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 16515export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 16516whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 16517compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 16518old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16519old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16520archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16521archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16522module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16523module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16524with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 16525allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 16526no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 16527hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 16528hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 16529hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 16530hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 16531hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 16532hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 16533hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 16534hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 16535inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 16536link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 16537fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 16538always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 16539export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16540exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 16541include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 16542prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16543file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 16544variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 16545need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 16546need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 16547version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 16548runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 16549shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 16550shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 16551libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 16552library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 16553soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 16554postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16555postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16556finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16557finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 16558hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 16559sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 16560sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 16561hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 16562enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 16563enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 16564enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 16565old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 16566striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 16567 16568LTCC='$LTCC' 16569LTCFLAGS='$LTCFLAGS' 16570compiler='$compiler_DEFAULT' 16571 16572# Quote evaled strings. 16573for var in SED \ 16574GREP \ 16575EGREP \ 16576FGREP \ 16577LD \ 16578NM \ 16579LN_S \ 16580lt_SP2NL \ 16581lt_NL2SP \ 16582reload_flag \ 16583deplibs_check_method \ 16584file_magic_cmd \ 16585AR \ 16586AR_FLAGS \ 16587STRIP \ 16588RANLIB \ 16589CC \ 16590CFLAGS \ 16591compiler \ 16592lt_cv_sys_global_symbol_pipe \ 16593lt_cv_sys_global_symbol_to_cdecl \ 16594lt_cv_sys_global_symbol_to_c_name_address \ 16595lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 16596SHELL \ 16597ECHO \ 16598lt_prog_compiler_no_builtin_flag \ 16599lt_prog_compiler_wl \ 16600lt_prog_compiler_pic \ 16601lt_prog_compiler_static \ 16602lt_cv_prog_compiler_c_o \ 16603need_locks \ 16604DSYMUTIL \ 16605NMEDIT \ 16606LIPO \ 16607OTOOL \ 16608OTOOL64 \ 16609shrext_cmds \ 16610export_dynamic_flag_spec \ 16611whole_archive_flag_spec \ 16612compiler_needs_object \ 16613with_gnu_ld \ 16614allow_undefined_flag \ 16615no_undefined_flag \ 16616hardcode_libdir_flag_spec \ 16617hardcode_libdir_flag_spec_ld \ 16618hardcode_libdir_separator \ 16619fix_srcfile_path \ 16620exclude_expsyms \ 16621include_expsyms \ 16622file_list_spec \ 16623variables_saved_for_relink \ 16624libname_spec \ 16625library_names_spec \ 16626soname_spec \ 16627finish_eval \ 16628old_striplib \ 16629striplib; do 16630 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 16631 *[\\\\\\\`\\"\\\$]*) 16632 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 16633 ;; 16634 *) 16635 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16636 ;; 16637 esac 16638done 16639 16640# Double-quote double-evaled strings. 16641for var in reload_cmds \ 16642old_postinstall_cmds \ 16643old_postuninstall_cmds \ 16644old_archive_cmds \ 16645extract_expsyms_cmds \ 16646old_archive_from_new_cmds \ 16647old_archive_from_expsyms_cmds \ 16648archive_cmds \ 16649archive_expsym_cmds \ 16650module_cmds \ 16651module_expsym_cmds \ 16652export_symbols_cmds \ 16653prelink_cmds \ 16654postinstall_cmds \ 16655postuninstall_cmds \ 16656finish_cmds \ 16657sys_lib_search_path_spec \ 16658sys_lib_dlsearch_path_spec; do 16659 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 16660 *[\\\\\\\`\\"\\\$]*) 16661 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 16662 ;; 16663 *) 16664 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16665 ;; 16666 esac 16667done 16668 16669# Fix-up fallback echo if it was mangled by the above quoting rules. 16670case \$lt_ECHO in 16671*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 16672 ;; 16673esac 16674 16675ac_aux_dir='$ac_aux_dir' 16676xsi_shell='$xsi_shell' 16677lt_shell_append='$lt_shell_append' 16678 16679# See if we are running on zsh, and set the options which allow our 16680# commands through without removal of \ escapes INIT. 16681if test -n "\${ZSH_VERSION+set}" ; then 16682 setopt NO_GLOB_SUBST 16683fi 16684 16685 16686 PACKAGE='$PACKAGE' 16687 VERSION='$VERSION' 16688 TIMESTAMP='$TIMESTAMP' 16689 RM='$RM' 16690 ofile='$ofile' 16691 16692 16693 16694 16695_ACEOF 16696 16697cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16698 16699# Handling of arguments. 16700for ac_config_target in $ac_config_targets 16701do 16702 case $ac_config_target in 16703 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 16704 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 16705 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 16706 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 16707 "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;; 16708 "greeter/Makefile") CONFIG_FILES="$CONFIG_FILES greeter/Makefile" ;; 16709 16710 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 16711 esac 16712done 16713 16714 16715# If the user did not use the arguments to specify the items to instantiate, 16716# then the envvar interface is used. Set only those that are not. 16717# We use the long form for the default assignment because of an extremely 16718# bizarre bug on SunOS 4.1.3. 16719if $ac_need_defaults; then 16720 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 16721 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 16722 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 16723fi 16724 16725# Have a temporary directory for convenience. Make it in the build tree 16726# simply because there is no reason against having it here, and in addition, 16727# creating and moving files from /tmp can sometimes cause problems. 16728# Hook for its removal unless debugging. 16729# Note that there is a small window in which the directory will not be cleaned: 16730# after its creation but before its name has been assigned to `$tmp'. 16731$debug || 16732{ 16733 tmp= 16734 trap 'exit_status=$? 16735 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 16736' 0 16737 trap 'as_fn_exit 1' 1 2 13 15 16738} 16739# Create a (secure) tmp directory for tmp files. 16740 16741{ 16742 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 16743 test -n "$tmp" && test -d "$tmp" 16744} || 16745{ 16746 tmp=./conf$$-$RANDOM 16747 (umask 077 && mkdir "$tmp") 16748} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 16749 16750# Set up the scripts for CONFIG_FILES section. 16751# No need to generate them if there are no CONFIG_FILES. 16752# This happens for instance with `./config.status config.h'. 16753if test -n "$CONFIG_FILES"; then 16754 16755 16756ac_cr=`echo X | tr X '\015'` 16757# On cygwin, bash can eat \r inside `` if the user requested igncr. 16758# But we know of no other shell where ac_cr would be empty at this 16759# point, so we can use a bashism as a fallback. 16760if test "x$ac_cr" = x; then 16761 eval ac_cr=\$\'\\r\' 16762fi 16763ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 16764if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 16765 ac_cs_awk_cr='\r' 16766else 16767 ac_cs_awk_cr=$ac_cr 16768fi 16769 16770echo 'BEGIN {' >"$tmp/subs1.awk" && 16771_ACEOF 16772 16773 16774{ 16775 echo "cat >conf$$subs.awk <<_ACEOF" && 16776 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 16777 echo "_ACEOF" 16778} >conf$$subs.sh || 16779 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 16780ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 16781ac_delim='%!_!# ' 16782for ac_last_try in false false false false false :; do 16783 . ./conf$$subs.sh || 16784 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 16785 16786 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 16787 if test $ac_delim_n = $ac_delim_num; then 16788 break 16789 elif $ac_last_try; then 16790 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 16791 else 16792 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16793 fi 16794done 16795rm -f conf$$subs.sh 16796 16797cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16798cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 16799_ACEOF 16800sed -n ' 16801h 16802s/^/S["/; s/!.*/"]=/ 16803p 16804g 16805s/^[^!]*!// 16806:repl 16807t repl 16808s/'"$ac_delim"'$// 16809t delim 16810:nl 16811h 16812s/\(.\{148\}\)..*/\1/ 16813t more1 16814s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 16815p 16816n 16817b repl 16818:more1 16819s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16820p 16821g 16822s/.\{148\}// 16823t nl 16824:delim 16825h 16826s/\(.\{148\}\)..*/\1/ 16827t more2 16828s/["\\]/\\&/g; s/^/"/; s/$/"/ 16829p 16830b 16831:more2 16832s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16833p 16834g 16835s/.\{148\}// 16836t delim 16837' <conf$$subs.awk | sed ' 16838/^[^""]/{ 16839 N 16840 s/\n// 16841} 16842' >>$CONFIG_STATUS || ac_write_fail=1 16843rm -f conf$$subs.awk 16844cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16845_ACAWK 16846cat >>"\$tmp/subs1.awk" <<_ACAWK && 16847 for (key in S) S_is_set[key] = 1 16848 FS = "" 16849 16850} 16851{ 16852 line = $ 0 16853 nfields = split(line, field, "@") 16854 substed = 0 16855 len = length(field[1]) 16856 for (i = 2; i < nfields; i++) { 16857 key = field[i] 16858 keylen = length(key) 16859 if (S_is_set[key]) { 16860 value = S[key] 16861 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 16862 len += length(value) + length(field[++i]) 16863 substed = 1 16864 } else 16865 len += 1 + keylen 16866 } 16867 16868 print line 16869} 16870 16871_ACAWK 16872_ACEOF 16873cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16874if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 16875 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 16876else 16877 cat 16878fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 16879 || as_fn_error "could not setup config files machinery" "$LINENO" 5 16880_ACEOF 16881 16882# VPATH may cause trouble with some makes, so we remove $(srcdir), 16883# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 16884# trailing colons and then remove the whole line if VPATH becomes empty 16885# (actually we leave an empty line to preserve line numbers). 16886if test "x$srcdir" = x.; then 16887 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 16888s/:*\$(srcdir):*/:/ 16889s/:*\${srcdir}:*/:/ 16890s/:*@srcdir@:*/:/ 16891s/^\([^=]*=[ ]*\):*/\1/ 16892s/:*$// 16893s/^[^=]*=[ ]*$// 16894}' 16895fi 16896 16897cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16898fi # test -n "$CONFIG_FILES" 16899 16900# Set up the scripts for CONFIG_HEADERS section. 16901# No need to generate them if there are no CONFIG_HEADERS. 16902# This happens for instance with `./config.status Makefile'. 16903if test -n "$CONFIG_HEADERS"; then 16904cat >"$tmp/defines.awk" <<\_ACAWK || 16905BEGIN { 16906_ACEOF 16907 16908# Transform confdefs.h into an awk script `defines.awk', embedded as 16909# here-document in config.status, that substitutes the proper values into 16910# config.h.in to produce config.h. 16911 16912# Create a delimiter string that does not exist in confdefs.h, to ease 16913# handling of long lines. 16914ac_delim='%!_!# ' 16915for ac_last_try in false false :; do 16916 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 16917 if test -z "$ac_t"; then 16918 break 16919 elif $ac_last_try; then 16920 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 16921 else 16922 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16923 fi 16924done 16925 16926# For the awk script, D is an array of macro values keyed by name, 16927# likewise P contains macro parameters if any. Preserve backslash 16928# newline sequences. 16929 16930ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 16931sed -n ' 16932s/.\{148\}/&'"$ac_delim"'/g 16933t rset 16934:rset 16935s/^[ ]*#[ ]*define[ ][ ]*/ / 16936t def 16937d 16938:def 16939s/\\$// 16940t bsnl 16941s/["\\]/\\&/g 16942s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16943D["\1"]=" \3"/p 16944s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 16945d 16946:bsnl 16947s/["\\]/\\&/g 16948s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16949D["\1"]=" \3\\\\\\n"\\/p 16950t cont 16951s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 16952t cont 16953d 16954:cont 16955n 16956s/.\{148\}/&'"$ac_delim"'/g 16957t clear 16958:clear 16959s/\\$// 16960t bsnlc 16961s/["\\]/\\&/g; s/^/"/; s/$/"/p 16962d 16963:bsnlc 16964s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 16965b cont 16966' <confdefs.h | sed ' 16967s/'"$ac_delim"'/"\\\ 16968"/g' >>$CONFIG_STATUS || ac_write_fail=1 16969 16970cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16971 for (key in D) D_is_set[key] = 1 16972 FS = "" 16973} 16974/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 16975 line = \$ 0 16976 split(line, arg, " ") 16977 if (arg[1] == "#") { 16978 defundef = arg[2] 16979 mac1 = arg[3] 16980 } else { 16981 defundef = substr(arg[1], 2) 16982 mac1 = arg[2] 16983 } 16984 split(mac1, mac2, "(") #) 16985 macro = mac2[1] 16986 prefix = substr(line, 1, index(line, defundef) - 1) 16987 if (D_is_set[macro]) { 16988 # Preserve the white space surrounding the "#". 16989 print prefix "define", macro P[macro] D[macro] 16990 next 16991 } else { 16992 # Replace #undef with comments. This is necessary, for example, 16993 # in the case of _POSIX_SOURCE, which is predefined and required 16994 # on some systems where configure will not decide to define it. 16995 if (defundef == "undef") { 16996 print "/*", prefix defundef, macro, "*/" 16997 next 16998 } 16999 } 17000} 17001{ print } 17002_ACAWK 17003_ACEOF 17004cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17005 as_fn_error "could not setup config headers machinery" "$LINENO" 5 17006fi # test -n "$CONFIG_HEADERS" 17007 17008 17009eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 17010shift 17011for ac_tag 17012do 17013 case $ac_tag in 17014 :[FHLC]) ac_mode=$ac_tag; continue;; 17015 esac 17016 case $ac_mode$ac_tag in 17017 :[FHL]*:*);; 17018 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 17019 :[FH]-) ac_tag=-:-;; 17020 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 17021 esac 17022 ac_save_IFS=$IFS 17023 IFS=: 17024 set x $ac_tag 17025 IFS=$ac_save_IFS 17026 shift 17027 ac_file=$1 17028 shift 17029 17030 case $ac_mode in 17031 :L) ac_source=$1;; 17032 :[FH]) 17033 ac_file_inputs= 17034 for ac_f 17035 do 17036 case $ac_f in 17037 -) ac_f="$tmp/stdin";; 17038 *) # Look for the file first in the build tree, then in the source tree 17039 # (if the path is not absolute). The absolute path cannot be DOS-style, 17040 # because $ac_f cannot contain `:'. 17041 test -f "$ac_f" || 17042 case $ac_f in 17043 [\\/$]*) false;; 17044 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 17045 esac || 17046 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 17047 esac 17048 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 17049 as_fn_append ac_file_inputs " '$ac_f'" 17050 done 17051 17052 # Let's still pretend it is `configure' which instantiates (i.e., don't 17053 # use $as_me), people would be surprised to read: 17054 # /* config.h. Generated by config.status. */ 17055 configure_input='Generated from '` 17056 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 17057 `' by configure.' 17058 if test x"$ac_file" != x-; then 17059 configure_input="$ac_file. $configure_input" 17060 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 17061$as_echo "$as_me: creating $ac_file" >&6;} 17062 fi 17063 # Neutralize special characters interpreted by sed in replacement strings. 17064 case $configure_input in #( 17065 *\&* | *\|* | *\\* ) 17066 ac_sed_conf_input=`$as_echo "$configure_input" | 17067 sed 's/[\\\\&|]/\\\\&/g'`;; #( 17068 *) ac_sed_conf_input=$configure_input;; 17069 esac 17070 17071 case $ac_tag in 17072 *:-:* | *:-) cat >"$tmp/stdin" \ 17073 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 17074 esac 17075 ;; 17076 esac 17077 17078 ac_dir=`$as_dirname -- "$ac_file" || 17079$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17080 X"$ac_file" : 'X\(//\)[^/]' \| \ 17081 X"$ac_file" : 'X\(//\)$' \| \ 17082 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 17083$as_echo X"$ac_file" | 17084 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17085 s//\1/ 17086 q 17087 } 17088 /^X\(\/\/\)[^/].*/{ 17089 s//\1/ 17090 q 17091 } 17092 /^X\(\/\/\)$/{ 17093 s//\1/ 17094 q 17095 } 17096 /^X\(\/\).*/{ 17097 s//\1/ 17098 q 17099 } 17100 s/.*/./; q'` 17101 as_dir="$ac_dir"; as_fn_mkdir_p 17102 ac_builddir=. 17103 17104case "$ac_dir" in 17105.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 17106*) 17107 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 17108 # A ".." for each directory in $ac_dir_suffix. 17109 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 17110 case $ac_top_builddir_sub in 17111 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 17112 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 17113 esac ;; 17114esac 17115ac_abs_top_builddir=$ac_pwd 17116ac_abs_builddir=$ac_pwd$ac_dir_suffix 17117# for backward compatibility: 17118ac_top_builddir=$ac_top_build_prefix 17119 17120case $srcdir in 17121 .) # We are building in place. 17122 ac_srcdir=. 17123 ac_top_srcdir=$ac_top_builddir_sub 17124 ac_abs_top_srcdir=$ac_pwd ;; 17125 [\\/]* | ?:[\\/]* ) # Absolute name. 17126 ac_srcdir=$srcdir$ac_dir_suffix; 17127 ac_top_srcdir=$srcdir 17128 ac_abs_top_srcdir=$srcdir ;; 17129 *) # Relative name. 17130 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 17131 ac_top_srcdir=$ac_top_build_prefix$srcdir 17132 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 17133esac 17134ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 17135 17136 17137 case $ac_mode in 17138 :F) 17139 # 17140 # CONFIG_FILE 17141 # 17142 17143 case $INSTALL in 17144 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 17145 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 17146 esac 17147 ac_MKDIR_P=$MKDIR_P 17148 case $MKDIR_P in 17149 [\\/$]* | ?:[\\/]* ) ;; 17150 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 17151 esac 17152_ACEOF 17153 17154cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17155# If the template does not know about datarootdir, expand it. 17156# FIXME: This hack should be removed a few years after 2.60. 17157ac_datarootdir_hack=; ac_datarootdir_seen= 17158ac_sed_dataroot=' 17159/datarootdir/ { 17160 p 17161 q 17162} 17163/@datadir@/p 17164/@docdir@/p 17165/@infodir@/p 17166/@localedir@/p 17167/@mandir@/p' 17168case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 17169*datarootdir*) ac_datarootdir_seen=yes;; 17170*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 17171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 17172$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 17173_ACEOF 17174cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17175 ac_datarootdir_hack=' 17176 s&@datadir@&$datadir&g 17177 s&@docdir@&$docdir&g 17178 s&@infodir@&$infodir&g 17179 s&@localedir@&$localedir&g 17180 s&@mandir@&$mandir&g 17181 s&\\\${datarootdir}&$datarootdir&g' ;; 17182esac 17183_ACEOF 17184 17185# Neutralize VPATH when `$srcdir' = `.'. 17186# Shell code in configure.ac might set extrasub. 17187# FIXME: do we really want to maintain this feature? 17188cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17189ac_sed_extra="$ac_vpsub 17190$extrasub 17191_ACEOF 17192cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17193:t 17194/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 17195s|@configure_input@|$ac_sed_conf_input|;t t 17196s&@top_builddir@&$ac_top_builddir_sub&;t t 17197s&@top_build_prefix@&$ac_top_build_prefix&;t t 17198s&@srcdir@&$ac_srcdir&;t t 17199s&@abs_srcdir@&$ac_abs_srcdir&;t t 17200s&@top_srcdir@&$ac_top_srcdir&;t t 17201s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 17202s&@builddir@&$ac_builddir&;t t 17203s&@abs_builddir@&$ac_abs_builddir&;t t 17204s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 17205s&@INSTALL@&$ac_INSTALL&;t t 17206s&@MKDIR_P@&$ac_MKDIR_P&;t t 17207$ac_datarootdir_hack 17208" 17209eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 17210 || as_fn_error "could not create $ac_file" "$LINENO" 5 17211 17212test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 17213 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 17214 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 17215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17216which seems to be undefined. Please make sure it is defined." >&5 17217$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17218which seems to be undefined. Please make sure it is defined." >&2;} 17219 17220 rm -f "$tmp/stdin" 17221 case $ac_file in 17222 -) cat "$tmp/out" && rm -f "$tmp/out";; 17223 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 17224 esac \ 17225 || as_fn_error "could not create $ac_file" "$LINENO" 5 17226 ;; 17227 :H) 17228 # 17229 # CONFIG_HEADER 17230 # 17231 if test x"$ac_file" != x-; then 17232 { 17233 $as_echo "/* $configure_input */" \ 17234 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 17235 } >"$tmp/config.h" \ 17236 || as_fn_error "could not create $ac_file" "$LINENO" 5 17237 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 17238 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 17239$as_echo "$as_me: $ac_file is unchanged" >&6;} 17240 else 17241 rm -f "$ac_file" 17242 mv "$tmp/config.h" "$ac_file" \ 17243 || as_fn_error "could not create $ac_file" "$LINENO" 5 17244 fi 17245 else 17246 $as_echo "/* $configure_input */" \ 17247 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 17248 || as_fn_error "could not create -" "$LINENO" 5 17249 fi 17250# Compute "$ac_file"'s index in $config_headers. 17251_am_arg="$ac_file" 17252_am_stamp_count=1 17253for _am_header in $config_headers :; do 17254 case $_am_header in 17255 $_am_arg | $_am_arg:* ) 17256 break ;; 17257 * ) 17258 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 17259 esac 17260done 17261echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 17262$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17263 X"$_am_arg" : 'X\(//\)[^/]' \| \ 17264 X"$_am_arg" : 'X\(//\)$' \| \ 17265 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 17266$as_echo X"$_am_arg" | 17267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17268 s//\1/ 17269 q 17270 } 17271 /^X\(\/\/\)[^/].*/{ 17272 s//\1/ 17273 q 17274 } 17275 /^X\(\/\/\)$/{ 17276 s//\1/ 17277 q 17278 } 17279 /^X\(\/\).*/{ 17280 s//\1/ 17281 q 17282 } 17283 s/.*/./; q'`/stamp-h$_am_stamp_count 17284 ;; 17285 17286 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 17287$as_echo "$as_me: executing $ac_file commands" >&6;} 17288 ;; 17289 esac 17290 17291 17292 case $ac_file$ac_mode in 17293 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 17294 # Autoconf 2.62 quotes --file arguments for eval, but not when files 17295 # are listed without --file. Let's play safe and only enable the eval 17296 # if we detect the quoting. 17297 case $CONFIG_FILES in 17298 *\'*) eval set x "$CONFIG_FILES" ;; 17299 *) set x $CONFIG_FILES ;; 17300 esac 17301 shift 17302 for mf 17303 do 17304 # Strip MF so we end up with the name of the file. 17305 mf=`echo "$mf" | sed -e 's/:.*$//'` 17306 # Check whether this is an Automake generated Makefile or not. 17307 # We used to match only the files named `Makefile.in', but 17308 # some people rename them; so instead we look at the file content. 17309 # Grep'ing the first line is not enough: some people post-process 17310 # each Makefile.in and add a new line on top of each file to say so. 17311 # Grep'ing the whole file is not good either: AIX grep has a line 17312 # limit of 2048, but all sed's we know have understand at least 4000. 17313 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 17314 dirpart=`$as_dirname -- "$mf" || 17315$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17316 X"$mf" : 'X\(//\)[^/]' \| \ 17317 X"$mf" : 'X\(//\)$' \| \ 17318 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 17319$as_echo X"$mf" | 17320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17321 s//\1/ 17322 q 17323 } 17324 /^X\(\/\/\)[^/].*/{ 17325 s//\1/ 17326 q 17327 } 17328 /^X\(\/\/\)$/{ 17329 s//\1/ 17330 q 17331 } 17332 /^X\(\/\).*/{ 17333 s//\1/ 17334 q 17335 } 17336 s/.*/./; q'` 17337 else 17338 continue 17339 fi 17340 # Extract the definition of DEPDIR, am__include, and am__quote 17341 # from the Makefile without running `make'. 17342 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 17343 test -z "$DEPDIR" && continue 17344 am__include=`sed -n 's/^am__include = //p' < "$mf"` 17345 test -z "am__include" && continue 17346 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 17347 # When using ansi2knr, U may be empty or an underscore; expand it 17348 U=`sed -n 's/^U = //p' < "$mf"` 17349 # Find all dependency output files, they are included files with 17350 # $(DEPDIR) in their names. We invoke sed twice because it is the 17351 # simplest approach to changing $(DEPDIR) to its actual value in the 17352 # expansion. 17353 for file in `sed -n " 17354 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 17355 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 17356 # Make sure the directory exists. 17357 test -f "$dirpart/$file" && continue 17358 fdir=`$as_dirname -- "$file" || 17359$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17360 X"$file" : 'X\(//\)[^/]' \| \ 17361 X"$file" : 'X\(//\)$' \| \ 17362 X"$file" : 'X\(/\)' \| . 2>/dev/null || 17363$as_echo X"$file" | 17364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17365 s//\1/ 17366 q 17367 } 17368 /^X\(\/\/\)[^/].*/{ 17369 s//\1/ 17370 q 17371 } 17372 /^X\(\/\/\)$/{ 17373 s//\1/ 17374 q 17375 } 17376 /^X\(\/\).*/{ 17377 s//\1/ 17378 q 17379 } 17380 s/.*/./; q'` 17381 as_dir=$dirpart/$fdir; as_fn_mkdir_p 17382 # echo "creating $dirpart/$file" 17383 echo '# dummy' > "$dirpart/$file" 17384 done 17385 done 17386} 17387 ;; 17388 "libtool":C) 17389 17390 # See if we are running on zsh, and set the options which allow our 17391 # commands through without removal of \ escapes. 17392 if test -n "${ZSH_VERSION+set}" ; then 17393 setopt NO_GLOB_SUBST 17394 fi 17395 17396 cfgfile="${ofile}T" 17397 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 17398 $RM "$cfgfile" 17399 17400 cat <<_LT_EOF >> "$cfgfile" 17401#! $SHELL 17402 17403# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 17404# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 17405# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17406# NOTE: Changes made to this file will be lost: look at ltmain.sh. 17407# 17408# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 17409# 2006, 2007, 2008 Free Software Foundation, Inc. 17410# Written by Gordon Matzigkeit, 1996 17411# 17412# This file is part of GNU Libtool. 17413# 17414# GNU Libtool is free software; you can redistribute it and/or 17415# modify it under the terms of the GNU General Public License as 17416# published by the Free Software Foundation; either version 2 of 17417# the License, or (at your option) any later version. 17418# 17419# As a special exception to the GNU General Public License, 17420# if you distribute this file as part of a program or library that 17421# is built using GNU Libtool, you may include this file under the 17422# same distribution terms that you use for the rest of that program. 17423# 17424# GNU Libtool is distributed in the hope that it will be useful, 17425# but WITHOUT ANY WARRANTY; without even the implied warranty of 17426# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17427# GNU General Public License for more details. 17428# 17429# You should have received a copy of the GNU General Public License 17430# along with GNU Libtool; see the file COPYING. If not, a copy 17431# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 17432# obtained by writing to the Free Software Foundation, Inc., 17433# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17434 17435 17436# The names of the tagged configurations supported by this script. 17437available_tags="" 17438 17439# ### BEGIN LIBTOOL CONFIG 17440 17441# Assembler program. 17442AS=$AS 17443 17444# DLL creation program. 17445DLLTOOL=$DLLTOOL 17446 17447# Object dumper program. 17448OBJDUMP=$OBJDUMP 17449 17450# Which release of libtool.m4 was used? 17451macro_version=$macro_version 17452macro_revision=$macro_revision 17453 17454# Whether or not to build shared libraries. 17455build_libtool_libs=$enable_shared 17456 17457# Whether or not to build static libraries. 17458build_old_libs=$enable_static 17459 17460# What type of objects to build. 17461pic_mode=$pic_mode 17462 17463# Whether or not to optimize for fast installation. 17464fast_install=$enable_fast_install 17465 17466# The host system. 17467host_alias=$host_alias 17468host=$host 17469host_os=$host_os 17470 17471# The build system. 17472build_alias=$build_alias 17473build=$build 17474build_os=$build_os 17475 17476# A sed program that does not truncate output. 17477SED=$lt_SED 17478 17479# Sed that helps us avoid accidentally triggering echo(1) options like -n. 17480Xsed="\$SED -e 1s/^X//" 17481 17482# A grep program that handles long lines. 17483GREP=$lt_GREP 17484 17485# An ERE matcher. 17486EGREP=$lt_EGREP 17487 17488# A literal string matcher. 17489FGREP=$lt_FGREP 17490 17491# A BSD- or MS-compatible name lister. 17492NM=$lt_NM 17493 17494# Whether we need soft or hard links. 17495LN_S=$lt_LN_S 17496 17497# What is the maximum length of a command? 17498max_cmd_len=$max_cmd_len 17499 17500# Object file suffix (normally "o"). 17501objext=$ac_objext 17502 17503# Executable file suffix (normally ""). 17504exeext=$exeext 17505 17506# whether the shell understands "unset". 17507lt_unset=$lt_unset 17508 17509# turn spaces into newlines. 17510SP2NL=$lt_lt_SP2NL 17511 17512# turn newlines into spaces. 17513NL2SP=$lt_lt_NL2SP 17514 17515# How to create reloadable object files. 17516reload_flag=$lt_reload_flag 17517reload_cmds=$lt_reload_cmds 17518 17519# Method to check whether dependent libraries are shared objects. 17520deplibs_check_method=$lt_deplibs_check_method 17521 17522# Command to use when deplibs_check_method == "file_magic". 17523file_magic_cmd=$lt_file_magic_cmd 17524 17525# The archiver. 17526AR=$lt_AR 17527AR_FLAGS=$lt_AR_FLAGS 17528 17529# A symbol stripping program. 17530STRIP=$lt_STRIP 17531 17532# Commands used to install an old-style archive. 17533RANLIB=$lt_RANLIB 17534old_postinstall_cmds=$lt_old_postinstall_cmds 17535old_postuninstall_cmds=$lt_old_postuninstall_cmds 17536 17537# A C compiler. 17538LTCC=$lt_CC 17539 17540# LTCC compiler flags. 17541LTCFLAGS=$lt_CFLAGS 17542 17543# Take the output of nm and produce a listing of raw symbols and C names. 17544global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17545 17546# Transform the output of nm in a proper C declaration. 17547global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17548 17549# Transform the output of nm in a C name address pair. 17550global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17551 17552# Transform the output of nm in a C name address pair when lib prefix is needed. 17553global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 17554 17555# The name of the directory that contains temporary libtool files. 17556objdir=$objdir 17557 17558# Shell to use when invoking shell scripts. 17559SHELL=$lt_SHELL 17560 17561# An echo program that does not interpret backslashes. 17562ECHO=$lt_ECHO 17563 17564# Used to examine libraries when file_magic_cmd begins with "file". 17565MAGIC_CMD=$MAGIC_CMD 17566 17567# Must we lock files when doing compilation? 17568need_locks=$lt_need_locks 17569 17570# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 17571DSYMUTIL=$lt_DSYMUTIL 17572 17573# Tool to change global to local symbols on Mac OS X. 17574NMEDIT=$lt_NMEDIT 17575 17576# Tool to manipulate fat objects and archives on Mac OS X. 17577LIPO=$lt_LIPO 17578 17579# ldd/readelf like tool for Mach-O binaries on Mac OS X. 17580OTOOL=$lt_OTOOL 17581 17582# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 17583OTOOL64=$lt_OTOOL64 17584 17585# Old archive suffix (normally "a"). 17586libext=$libext 17587 17588# Shared library suffix (normally ".so"). 17589shrext_cmds=$lt_shrext_cmds 17590 17591# The commands to extract the exported symbol list from a shared archive. 17592extract_expsyms_cmds=$lt_extract_expsyms_cmds 17593 17594# Variables whose values should be saved in libtool wrapper scripts and 17595# restored at link time. 17596variables_saved_for_relink=$lt_variables_saved_for_relink 17597 17598# Do we need the "lib" prefix for modules? 17599need_lib_prefix=$need_lib_prefix 17600 17601# Do we need a version for libraries? 17602need_version=$need_version 17603 17604# Library versioning type. 17605version_type=$version_type 17606 17607# Shared library runtime path variable. 17608runpath_var=$runpath_var 17609 17610# Shared library path variable. 17611shlibpath_var=$shlibpath_var 17612 17613# Is shlibpath searched before the hard-coded library search path? 17614shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17615 17616# Format of library name prefix. 17617libname_spec=$lt_libname_spec 17618 17619# List of archive names. First name is the real one, the rest are links. 17620# The last name is the one that the linker finds with -lNAME 17621library_names_spec=$lt_library_names_spec 17622 17623# The coded name of the library, if different from the real name. 17624soname_spec=$lt_soname_spec 17625 17626# Command to use after installation of a shared archive. 17627postinstall_cmds=$lt_postinstall_cmds 17628 17629# Command to use after uninstallation of a shared archive. 17630postuninstall_cmds=$lt_postuninstall_cmds 17631 17632# Commands used to finish a libtool library installation in a directory. 17633finish_cmds=$lt_finish_cmds 17634 17635# As "finish_cmds", except a single script fragment to be evaled but 17636# not shown. 17637finish_eval=$lt_finish_eval 17638 17639# Whether we should hardcode library paths into libraries. 17640hardcode_into_libs=$hardcode_into_libs 17641 17642# Compile-time system search path for libraries. 17643sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17644 17645# Run-time system search path for libraries. 17646sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 17647 17648# Whether dlopen is supported. 17649dlopen_support=$enable_dlopen 17650 17651# Whether dlopen of programs is supported. 17652dlopen_self=$enable_dlopen_self 17653 17654# Whether dlopen of statically linked programs is supported. 17655dlopen_self_static=$enable_dlopen_self_static 17656 17657# Commands to strip libraries. 17658old_striplib=$lt_old_striplib 17659striplib=$lt_striplib 17660 17661 17662# The linker used to build libraries. 17663LD=$lt_LD 17664 17665# Commands used to build an old-style archive. 17666old_archive_cmds=$lt_old_archive_cmds 17667 17668# A language specific compiler. 17669CC=$lt_compiler 17670 17671# Is the compiler the GNU compiler? 17672with_gcc=$GCC 17673 17674# Compiler flag to turn off builtin functions. 17675no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 17676 17677# How to pass a linker flag through the compiler. 17678wl=$lt_lt_prog_compiler_wl 17679 17680# Additional compiler flags for building library objects. 17681pic_flag=$lt_lt_prog_compiler_pic 17682 17683# Compiler flag to prevent dynamic linking. 17684link_static_flag=$lt_lt_prog_compiler_static 17685 17686# Does compiler simultaneously support -c and -o options? 17687compiler_c_o=$lt_lt_cv_prog_compiler_c_o 17688 17689# Whether or not to add -lc for building shared libraries. 17690build_libtool_need_lc=$archive_cmds_need_lc 17691 17692# Whether or not to disallow shared libs when runtime libs are static. 17693allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 17694 17695# Compiler flag to allow reflexive dlopens. 17696export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 17697 17698# Compiler flag to generate shared objects directly from archives. 17699whole_archive_flag_spec=$lt_whole_archive_flag_spec 17700 17701# Whether the compiler copes with passing no objects directly. 17702compiler_needs_object=$lt_compiler_needs_object 17703 17704# Create an old-style archive from a shared archive. 17705old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 17706 17707# Create a temporary old-style archive to link instead of a shared archive. 17708old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 17709 17710# Commands used to build a shared archive. 17711archive_cmds=$lt_archive_cmds 17712archive_expsym_cmds=$lt_archive_expsym_cmds 17713 17714# Commands used to build a loadable module if different from building 17715# a shared archive. 17716module_cmds=$lt_module_cmds 17717module_expsym_cmds=$lt_module_expsym_cmds 17718 17719# Whether we are building with GNU ld or not. 17720with_gnu_ld=$lt_with_gnu_ld 17721 17722# Flag that allows shared libraries with undefined symbols to be built. 17723allow_undefined_flag=$lt_allow_undefined_flag 17724 17725# Flag that enforces no undefined symbols. 17726no_undefined_flag=$lt_no_undefined_flag 17727 17728# Flag to hardcode \$libdir into a binary during linking. 17729# This must work even if \$libdir does not exist 17730hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 17731 17732# If ld is used when linking, flag to hardcode \$libdir into a binary 17733# during linking. This must work even if \$libdir does not exist. 17734hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 17735 17736# Whether we need a single "-rpath" flag with a separated argument. 17737hardcode_libdir_separator=$lt_hardcode_libdir_separator 17738 17739# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17740# DIR into the resulting binary. 17741hardcode_direct=$hardcode_direct 17742 17743# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17744# DIR into the resulting binary and the resulting library dependency is 17745# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 17746# library is relocated. 17747hardcode_direct_absolute=$hardcode_direct_absolute 17748 17749# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 17750# into the resulting binary. 17751hardcode_minus_L=$hardcode_minus_L 17752 17753# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 17754# into the resulting binary. 17755hardcode_shlibpath_var=$hardcode_shlibpath_var 17756 17757# Set to "yes" if building a shared library automatically hardcodes DIR 17758# into the library and all subsequent libraries and executables linked 17759# against it. 17760hardcode_automatic=$hardcode_automatic 17761 17762# Set to yes if linker adds runtime paths of dependent libraries 17763# to runtime path list. 17764inherit_rpath=$inherit_rpath 17765 17766# Whether libtool must link a program against all its dependency libraries. 17767link_all_deplibs=$link_all_deplibs 17768 17769# Fix the shell variable \$srcfile for the compiler. 17770fix_srcfile_path=$lt_fix_srcfile_path 17771 17772# Set to "yes" if exported symbols are required. 17773always_export_symbols=$always_export_symbols 17774 17775# The commands to list exported symbols. 17776export_symbols_cmds=$lt_export_symbols_cmds 17777 17778# Symbols that should not be listed in the preloaded symbols. 17779exclude_expsyms=$lt_exclude_expsyms 17780 17781# Symbols that must always be exported. 17782include_expsyms=$lt_include_expsyms 17783 17784# Commands necessary for linking programs (against libraries) with templates. 17785prelink_cmds=$lt_prelink_cmds 17786 17787# Specify filename containing input files. 17788file_list_spec=$lt_file_list_spec 17789 17790# How to hardcode a shared library path into an executable. 17791hardcode_action=$hardcode_action 17792 17793# ### END LIBTOOL CONFIG 17794 17795_LT_EOF 17796 17797 case $host_os in 17798 aix3*) 17799 cat <<\_LT_EOF >> "$cfgfile" 17800# AIX sometimes has problems with the GCC collect2 program. For some 17801# reason, if we set the COLLECT_NAMES environment variable, the problems 17802# vanish in a puff of smoke. 17803if test "X${COLLECT_NAMES+set}" != Xset; then 17804 COLLECT_NAMES= 17805 export COLLECT_NAMES 17806fi 17807_LT_EOF 17808 ;; 17809 esac 17810 17811 17812ltmain="$ac_aux_dir/ltmain.sh" 17813 17814 17815 # We use sed instead of cat because bash on DJGPP gets confused if 17816 # if finds mixed CR/LF and LF-only lines. Since sed operates in 17817 # text mode, it properly converts lines to CR/LF. This bash problem 17818 # is reportedly fixed, but why not run on old versions too? 17819 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 17820 || (rm -f "$cfgfile"; exit 1) 17821 17822 case $xsi_shell in 17823 yes) 17824 cat << \_LT_EOF >> "$cfgfile" 17825 17826# func_dirname file append nondir_replacement 17827# Compute the dirname of FILE. If nonempty, add APPEND to the result, 17828# otherwise set result to NONDIR_REPLACEMENT. 17829func_dirname () 17830{ 17831 case ${1} in 17832 */*) func_dirname_result="${1%/*}${2}" ;; 17833 * ) func_dirname_result="${3}" ;; 17834 esac 17835} 17836 17837# func_basename file 17838func_basename () 17839{ 17840 func_basename_result="${1##*/}" 17841} 17842 17843# func_dirname_and_basename file append nondir_replacement 17844# perform func_basename and func_dirname in a single function 17845# call: 17846# dirname: Compute the dirname of FILE. If nonempty, 17847# add APPEND to the result, otherwise set result 17848# to NONDIR_REPLACEMENT. 17849# value returned in "$func_dirname_result" 17850# basename: Compute filename of FILE. 17851# value retuned in "$func_basename_result" 17852# Implementation must be kept synchronized with func_dirname 17853# and func_basename. For efficiency, we do not delegate to 17854# those functions but instead duplicate the functionality here. 17855func_dirname_and_basename () 17856{ 17857 case ${1} in 17858 */*) func_dirname_result="${1%/*}${2}" ;; 17859 * ) func_dirname_result="${3}" ;; 17860 esac 17861 func_basename_result="${1##*/}" 17862} 17863 17864# func_stripname prefix suffix name 17865# strip PREFIX and SUFFIX off of NAME. 17866# PREFIX and SUFFIX must not contain globbing or regex special 17867# characters, hashes, percent signs, but SUFFIX may contain a leading 17868# dot (in which case that matches only a dot). 17869func_stripname () 17870{ 17871 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 17872 # positional parameters, so assign one to ordinary parameter first. 17873 func_stripname_result=${3} 17874 func_stripname_result=${func_stripname_result#"${1}"} 17875 func_stripname_result=${func_stripname_result%"${2}"} 17876} 17877 17878# func_opt_split 17879func_opt_split () 17880{ 17881 func_opt_split_opt=${1%%=*} 17882 func_opt_split_arg=${1#*=} 17883} 17884 17885# func_lo2o object 17886func_lo2o () 17887{ 17888 case ${1} in 17889 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 17890 *) func_lo2o_result=${1} ;; 17891 esac 17892} 17893 17894# func_xform libobj-or-source 17895func_xform () 17896{ 17897 func_xform_result=${1%.*}.lo 17898} 17899 17900# func_arith arithmetic-term... 17901func_arith () 17902{ 17903 func_arith_result=$(( $* )) 17904} 17905 17906# func_len string 17907# STRING may not start with a hyphen. 17908func_len () 17909{ 17910 func_len_result=${#1} 17911} 17912 17913_LT_EOF 17914 ;; 17915 *) # Bourne compatible functions. 17916 cat << \_LT_EOF >> "$cfgfile" 17917 17918# func_dirname file append nondir_replacement 17919# Compute the dirname of FILE. If nonempty, add APPEND to the result, 17920# otherwise set result to NONDIR_REPLACEMENT. 17921func_dirname () 17922{ 17923 # Extract subdirectory from the argument. 17924 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 17925 if test "X$func_dirname_result" = "X${1}"; then 17926 func_dirname_result="${3}" 17927 else 17928 func_dirname_result="$func_dirname_result${2}" 17929 fi 17930} 17931 17932# func_basename file 17933func_basename () 17934{ 17935 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 17936} 17937 17938 17939# func_stripname prefix suffix name 17940# strip PREFIX and SUFFIX off of NAME. 17941# PREFIX and SUFFIX must not contain globbing or regex special 17942# characters, hashes, percent signs, but SUFFIX may contain a leading 17943# dot (in which case that matches only a dot). 17944# func_strip_suffix prefix name 17945func_stripname () 17946{ 17947 case ${2} in 17948 .*) func_stripname_result=`$ECHO "X${3}" \ 17949 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 17950 *) func_stripname_result=`$ECHO "X${3}" \ 17951 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 17952 esac 17953} 17954 17955# sed scripts: 17956my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 17957my_sed_long_arg='1s/^-[^=]*=//' 17958 17959# func_opt_split 17960func_opt_split () 17961{ 17962 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 17963 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 17964} 17965 17966# func_lo2o object 17967func_lo2o () 17968{ 17969 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 17970} 17971 17972# func_xform libobj-or-source 17973func_xform () 17974{ 17975 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 17976} 17977 17978# func_arith arithmetic-term... 17979func_arith () 17980{ 17981 func_arith_result=`expr "$@"` 17982} 17983 17984# func_len string 17985# STRING may not start with a hyphen. 17986func_len () 17987{ 17988 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 17989} 17990 17991_LT_EOF 17992esac 17993 17994case $lt_shell_append in 17995 yes) 17996 cat << \_LT_EOF >> "$cfgfile" 17997 17998# func_append var value 17999# Append VALUE to the end of shell variable VAR. 18000func_append () 18001{ 18002 eval "$1+=\$2" 18003} 18004_LT_EOF 18005 ;; 18006 *) 18007 cat << \_LT_EOF >> "$cfgfile" 18008 18009# func_append var value 18010# Append VALUE to the end of shell variable VAR. 18011func_append () 18012{ 18013 eval "$1=\$$1\$2" 18014} 18015 18016_LT_EOF 18017 ;; 18018 esac 18019 18020 18021 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 18022 || (rm -f "$cfgfile"; exit 1) 18023 18024 mv -f "$cfgfile" "$ofile" || 18025 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 18026 chmod +x "$ofile" 18027 18028 ;; 18029 18030 esac 18031done # for ac_tag 18032 18033 18034as_fn_exit 0 18035_ACEOF 18036ac_clean_files=$ac_clean_files_save 18037 18038test $ac_write_fail = 0 || 18039 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 18040 18041 18042# configure is writing to config.log, and then calls config.status. 18043# config.status does its own redirection, appending to config.log. 18044# Unfortunately, on DOS this fails, as config.log is still kept open 18045# by configure, so config.status won't be able to write to it; its 18046# output is simply discarded. So we exec the FD to /dev/null, 18047# effectively closing config.log, so it can be properly (re)opened and 18048# appended to by config.status. When coming back to configure, we 18049# need to make the FD available again. 18050if test "$no_create" != yes; then 18051 ac_cs_success=: 18052 ac_config_status_args= 18053 test "$silent" = yes && 18054 ac_config_status_args="$ac_config_status_args --quiet" 18055 exec 5>/dev/null 18056 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 18057 exec 5>>config.log 18058 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 18059 # would make configure fail if this is the last instruction. 18060 $ac_cs_success || as_fn_exit $? 18061fi 18062if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 18063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 18064$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 18065fi 18066 18067