configure revision 141b754027d9967cbe3f00204a93eb7cb3fd86bc
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for ImageMagick 7.0.0-0. 4# 5# Report bugs to <http://www.imagemagick.org>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: http://www.imagemagick.org about your system, including 279$0: any error possibly output before this message. Then 280$0: install a modern shell, or manually run the script 281$0: under such a shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='ImageMagick' 592PACKAGE_TARNAME='ImageMagick' 593PACKAGE_VERSION='7.0.0-0' 594PACKAGE_STRING='ImageMagick 7.0.0-0' 595PACKAGE_BUGREPORT='http://www.imagemagick.org' 596PACKAGE_URL='' 597 598ac_unique_file="MagickCore/MagickCore.h" 599# Factoring default headers for most tests. 600ac_includes_default="\ 601#include <stdio.h> 602#ifdef HAVE_SYS_TYPES_H 603# include <sys/types.h> 604#endif 605#ifdef HAVE_SYS_STAT_H 606# include <sys/stat.h> 607#endif 608#ifdef STDC_HEADERS 609# include <stdlib.h> 610# include <stddef.h> 611#else 612# ifdef HAVE_STDLIB_H 613# include <stdlib.h> 614# endif 615#endif 616#ifdef HAVE_STRING_H 617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618# include <memory.h> 619# endif 620# include <string.h> 621#endif 622#ifdef HAVE_STRINGS_H 623# include <strings.h> 624#endif 625#ifdef HAVE_INTTYPES_H 626# include <inttypes.h> 627#endif 628#ifdef HAVE_STDINT_H 629# include <stdint.h> 630#endif 631#ifdef HAVE_UNISTD_H 632# include <unistd.h> 633#endif" 634 635ac_header_list= 636ac_subst_vars='am__EXEEXT_FALSE 637am__EXEEXT_TRUE 638LTLIBOBJS 639MAGICK_LIBS 640MAGICK_LDFLAGS 641MAGICK_PCFLAGS 642MAGICK_CPPFLAGS 643MAGICK_CXXFLAGS 644MAGICK_CFLAGS 645MAGICK_DEP_LIBS 646OSX_GCOV_LDFLAG 647MAGICK_FEATURES 648MAGICK_DELEGATES 649MAGICKCORE_PATH 650PERL_SUPPORTS_DESTDIR 651WITH_PERL_DYNAMIC_FALSE 652WITH_PERL_DYNAMIC_TRUE 653WITH_PERL_STATIC_FALSE 654WITH_PERL_STATIC_TRUE 655WITH_PERL_FALSE 656WITH_PERL_TRUE 657PERL_VERSION 658GSVersion 659GSPSDevice 660GSPDFDevice 661GSMonoDevice 662GSEPSDevice 663GSColorDevice 664GSCMYKDevice 665GSAlphaDevice 666XPSVersion 667XPSCMYKDevice 668XPSColorDevice 669XPSMonoDevice 670PCLVersion 671PCLCMYKDevice 672PCLColorDevice 673PCLMonoDevice 674ZIP_DELEGATE_FALSE 675ZIP_DELEGATE_TRUE 676ZIP 677P7ZIP_DELEGATE_FALSE 678P7ZIP_DELEGATE_TRUE 679P7ZIP 680RPM_DELEGATE_FALSE 681RPM_DELEGATE_TRUE 682RPM 683PERL 684TAR 685ShowImageDelegate 686type_include_files 687ghostscript_font_dir 688windows_font_dir 689dejavu_font_dir 690PrintDelegate 691ZipDelegate 692XPSDelegate 693WWWDecodeDelegate 694WMFDecodeDelegate 695UniconvertorDelegate 696TXTDelegate 697SVGDecodeDelegate 698SCANDecodeDelegate 699RSVGDecodeDelegate 700RMDelegate 701RLEEncodeDelegate 702PSDelegate 703POVDelegate 704PGPDecodeDelegate 705PCLDelegate 706MVDelegate 707MrSIDDecodeDelegate 708MPEGEncodeDelegate 709MPEGDecodeDelegate 710MANDelegate 711LaunchDelegate 712LPRDelegate 713LPDelegate 714ILBMEncodeDelegate 715ILBMDecodeDelegate 716HTMLDecodeDelegate 717HPGLDecodeDelegate 718GnuplotDecodeDelegate 719MogrifyDelegate 720DisplayDelegate 721ConvertDelegate 722FIGDecodeDelegate 723EditorDelegate 724EchoDelegate 725DVIDecodeDelegate 726GVCDecodeDelegate 727DNGDecodeDelegate 728CatDelegate 729CGMDecodeDelegate 730BrowseDelegate 731BZIPDelegate 732BlenderDecodeDelegate 733AutotraceDecodeDelegate 734SHAREARCH_PATH 735SHAREARCH_RELATIVE_PATH 736SHAREARCH_DIRNAME 737SHAREARCH_BASEDIRNAME 738SHARE_PATH 739CONFIGURE_PATH 740DOCUMENTATION_PATH 741FILTER_PATH 742FILTER_DIRNAME 743CODER_PATH 744CODER_DIRNAME 745MODULES_PATH 746MODULES_RELATIVE_PATH 747MODULES_DIRNAME 748MODULES_BASEDIRNAME 749LIBRARY_PATH 750EXECUTABLE_PATH 751INCLUDEARCH_PATH 752INCLUDE_PATH 753PERLMAINCC 754XML_LIBS 755XML_DELEGATE_FALSE 756XML_DELEGATE_TRUE 757xml2_config 758WMF_LIBS_DEPS 759WMF_LIBS 760WMF_DELEGATE_FALSE 761WMF_DELEGATE_TRUE 762WEBP_LIBS 763WEBP_DELEGATE_FALSE 764WEBP_DELEGATE_TRUE 765TIFF_LIBS 766TIFF_DELEGATE_FALSE 767TIFF_DELEGATE_TRUE 768CAIRO_DELEGATE_FALSE 769CAIRO_DELEGATE_TRUE 770RSVG_DELEGATE_FALSE 771RSVG_DELEGATE_TRUE 772CAIRO_SVG_LIBS 773CAIRO_SVG_CFLAGS 774RSVG_LIBS 775RSVG_CFLAGS 776PNG_LIBS 777PNG_DELEGATE_FALSE 778PNG_DELEGATE_TRUE 779PANGOCAIRO_DELEGATE_FALSE 780PANGOCAIRO_DELEGATE_TRUE 781PANGO_DELEGATE_FALSE 782PANGO_DELEGATE_TRUE 783PANGO_LIBS 784PANGO_CFLAGS 785OPENEXR_DELEGATE_FALSE 786OPENEXR_DELEGATE_TRUE 787OPENEXR_LIBS 788OPENEXR_CFLAGS 789LZMA_DELEGATE_FALSE 790LZMA_DELEGATE_TRUE 791LZMA_LIBS 792LZMA_CFLAGS 793LQR_DELEGATE_FALSE 794LQR_DELEGATE_TRUE 795LQR_LIBS 796LQR_CFLAGS 797LCMS_LIBS 798LCMS_DELEGATE_FALSE 799LCMS_DELEGATE_TRUE 800JP2_LIBS 801JP2_DELEGATE_FALSE 802JP2_DELEGATE_TRUE 803JPEG_LIBS 804JPEG_DELEGATE_FALSE 805JPEG_DELEGATE_TRUE 806JBIG_LIBS 807JBIG_DELEGATE_FALSE 808JBIG_DELEGATE_TRUE 809GVC_DELEGATE_FALSE 810GVC_DELEGATE_TRUE 811GVC_LIBS 812GVC_CFLAGS 813GS_LIBS 814GS_DELEGATE_FALSE 815GS_DELEGATE_TRUE 816FREETYPE_DELEGATE_FALSE 817FREETYPE_DELEGATE_TRUE 818FREETYPE_LIBS 819FREETYPE_CFLAGS 820FONTCONFIG_DELEGATE_FALSE 821FONTCONFIG_DELEGATE_TRUE 822FONTCONFIG_LIBS 823FONTCONFIG_CFLAGS 824FPX_LIBS 825FPX_DELEGATE_FALSE 826FPX_DELEGATE_TRUE 827FFTW_LIBS 828FFTW_DELEGATE_FALSE 829FFTW_DELEGATE_TRUE 830DJVU_LIBS 831DJVU_DELEGATE_FALSE 832DJVU_DELEGATE_TRUE 833DPS_LIBS 834DPS_DELEGATE_FALSE 835DPS_DELEGATE_TRUE 836AUTOTRACE_DELEGATE_FALSE 837AUTOTRACE_DELEGATE_TRUE 838AUTOTRACE_LIBS 839AUTOTRACE_CFLAGS 840LIB_DL 841WITH_LTDL_FALSE 842WITH_LTDL_TRUE 843ZLIB_LIBS 844ZLIB_DELEGATE_FALSE 845ZLIB_DELEGATE_TRUE 846XEXT_LIBS 847X11_LIBS 848X11_DELEGATE_FALSE 849X11_DELEGATE_TRUE 850X_EXTRA_LIBS 851X_LIBS 852X_PRE_LIBS 853X_CFLAGS 854XMKMF 855BZLIB_LIBS 856BZLIB_DELEGATE_FALSE 857BZLIB_DELEGATE_TRUE 858CCMALLOCDelegate 859UMEM_LIBS 860HasUMEM_FALSE 861HasUMEM_TRUE 862THREAD_LIBS 863GOMP_LIBS 864WITH_MAGICK_PLUS_PLUS_FALSE 865WITH_MAGICK_PLUS_PLUS_TRUE 866OPENMP_CXXFLAGS 867MATH_LIBS 868POW_LIB 869LIBOBJS 870UINTPTR_F 871UINTPTR_T 872UINTMAX_F 873UINTMAX_T 874UINT64_F 875UINT64_T 876INT64_F 877INT64_T 878UINT32_F 879UINT32_T 880INT32_F 881INT32_T 882UINT16_T 883INT16_T 884UINT8_T 885INT8_T 886LIBRARY_EXTRA_CPPFLAGS 887MODULE_EXTRA_CPPFLAGS 888LIBSTDCLDFLAGS 889PERL_MAKE_OPTIONS 890MAGICK_LT_RELEASE_OPTS 891MAGICK_ABI_SUFFIX 892QUANTUM_DEPTH 893LEGACY_SUPPORT_FALSE 894LEGACY_SUPPORT_TRUE 895MAINT 896MAINTAINER_MODE_FALSE 897MAINTAINER_MODE_TRUE 898MAGICK_HDRI 899WITH_MODULES_FALSE 900WITH_MODULES_TRUE 901WITH_SHARED_LIBS_FALSE 902WITH_SHARED_LIBS_TRUE 903LIBTOOL_DEPS 904CXXCPP 905OTOOL64 906OTOOL 907LIPO 908NMEDIT 909DSYMUTIL 910MANIFEST_TOOL 911RANLIB 912ac_ct_AR 913AR 914NM 915ac_ct_DUMPBIN 916DUMPBIN 917LIBTOOL 918OBJDUMP 919DLLTOOL 920AS 921LFS_CPPFLAGS 922CL_LIBS 923CL_CFLAGS 924OPENMP_CFLAGS 925PTHREAD_CFLAGS 926PTHREAD_LIBS 927PTHREAD_CC 928ax_pthread_config 929pkgconfigdir 930SHAREARCH_DIR 931INCLUDEARCH_DIR 932WinPathScript 933USING_CL_FALSE 934USING_CL_TRUE 935CYGWIN_BUILD_FALSE 936CYGWIN_BUILD_TRUE 937WIN32_NATIVE_BUILD_FALSE 938WIN32_NATIVE_BUILD_TRUE 939WINGDI32_DELEGATE_FALSE 940WINGDI32_DELEGATE_TRUE 941GDI32_LIBS 942HAVE_LD_VERSION_SCRIPT_FALSE 943HAVE_LD_VERSION_SCRIPT_TRUE 944PKG_CONFIG 945PRTDIAG 946LN_S 947LD 948FGREP 949SED 950am__fastdepCXX_FALSE 951am__fastdepCXX_TRUE 952CXXDEPMODE 953ac_ct_CXX 954CXXFLAGS 955CXX 956EGREP 957GREP 958CPP 959am__fastdepCC_FALSE 960am__fastdepCC_TRUE 961CCDEPMODE 962am__nodep 963AMDEPBACKSLASH 964AMDEP_FALSE 965AMDEP_TRUE 966am__quote 967am__include 968DEPDIR 969OBJEXT 970EXEEXT 971ac_ct_CC 972CPPFLAGS 973LDFLAGS 974CFLAGS 975CC 976DIRSEP 977MAGICK_FILTER_MODULE_PATH 978MAGICK_CONFIGURE_BUILD_PATH 979MAGICK_CONFIGURE_SRC_PATH 980MAGICK_CODER_MODULE_PATH 981MAN_DIR 982INFO_DIR 983PERSISTINCLUDE_DIR 984INCLUDE_DIR 985LIB_DIR 986LOCALSTATE_DIR 987SHAREDSTATE_DIR 988SYSCONF_DIR 989DOC_DIR 990DATA_DIR 991LIBEXEC_DIR 992SBIN_DIR 993BIN_DIR 994EXEC_PREFIX_DIR 995PREFIX_DIR 996CONFIG_STATUS_DEPENDENCIES 997MAGICK_LIB_VERSION_NUMBER 998MAGICK_LIB_VERSION_TEXT 999MAGICK_LIB_VERSION 1000AM_BACKSLASH 1001AM_DEFAULT_VERBOSITY 1002AM_DEFAULT_V 1003AM_V 1004am__untar 1005am__tar 1006AMTAR 1007am__leading_dot 1008SET_MAKE 1009AWK 1010mkdir_p 1011MKDIR_P 1012INSTALL_STRIP_PROGRAM 1013STRIP 1014install_sh 1015MAKEINFO 1016AUTOHEADER 1017AUTOMAKE 1018AUTOCONF 1019ACLOCAL 1020VERSION 1021PACKAGE 1022CYGPATH_W 1023am__isrc 1024INSTALL_DATA 1025INSTALL_SCRIPT 1026INSTALL_PROGRAM 1027PACKAGE_VERSION_ADDENDUM 1028PACKAGE_RELEASE_DATE 1029PACKAGE_LIB_VERSION_NUMBER 1030PACKAGE_LIB_VERSION 1031PACKAGE_CHANGE_DATE 1032PACKAGE_RELEASE 1033PACKAGE_PERL_VERSION 1034MAGICK_LIBRARY_VERSION_INFO 1035MAGICK_LIBRARY_CURRENT_MIN 1036MAGICK_LIBRARY_AGE 1037MAGICK_LIBRARY_REVISION 1038MAGICK_LIBRARY_CURRENT 1039MAGICK_SVN_REVISION 1040MAGICK_VERSION 1041MAGICK_PATCHLEVEL_VERSION 1042MAGICK_MICRO_VERSION 1043MAGICK_MINOR_VERSION 1044MAGICK_MAJOR_VERSION 1045MAGICK_TARGET_OS 1046MAGICK_TARGET_VENDOR 1047MAGICK_TARGET_CPU 1048target_os 1049target_vendor 1050target_cpu 1051target 1052host_os 1053host_vendor 1054host_cpu 1055host 1056build_os 1057build_vendor 1058build_cpu 1059build 1060CONFIGURE_ARGS 1061DISTCHECK_CONFIG_FLAGS 1062target_alias 1063host_alias 1064build_alias 1065LIBS 1066ECHO_T 1067ECHO_N 1068ECHO_C 1069DEFS 1070mandir 1071localedir 1072libdir 1073psdir 1074pdfdir 1075dvidir 1076htmldir 1077infodir 1078docdir 1079oldincludedir 1080includedir 1081localstatedir 1082sharedstatedir 1083sysconfdir 1084datadir 1085datarootdir 1086libexecdir 1087sbindir 1088bindir 1089program_transform_name 1090prefix 1091exec_prefix 1092PACKAGE_URL 1093PACKAGE_BUGREPORT 1094PACKAGE_STRING 1095PACKAGE_VERSION 1096PACKAGE_TARNAME 1097PACKAGE_NAME 1098PATH_SEPARATOR 1099SHELL' 1100ac_subst_files='' 1101ac_user_opts=' 1102enable_option_checking 1103enable_silent_rules 1104enable_dependency_tracking 1105with_gnu_ld 1106with_dmalloc 1107with_gcc_arch 1108enable_ld_version_script 1109enable_bounds_checking 1110enable_osx_universal_binary 1111with_includearch_dir 1112with_sharearch_dir 1113with_pkgconfigdir 1114with_threads 1115enable_openmp 1116enable_opencl 1117enable_largefile 1118enable_shared 1119enable_static 1120with_pic 1121enable_fast_install 1122with_sysroot 1123enable_libtool_lock 1124with_modules 1125enable_delegate_build 1126enable_deprecated 1127enable_installed 1128enable_cipher 1129enable_zero_configuration 1130enable_hdri 1131enable_assert 1132enable_maintainer_mode 1133enable_ccmalloc 1134enable_efence 1135enable_prof 1136enable_gprof 1137enable_gcov 1138with_method_prefix 1139enable_legacy_support 1140with_quantum_depth 1141with_cache 1142with_frozenpaths 1143with_magick_plus_plus 1144with_package_release_name 1145with_perl 1146with_perl_options 1147with_umem 1148with_libstdc 1149with_bzlib 1150with_x 1151with_zlib 1152with_autotrace 1153with_dps 1154with_djvu 1155with_dejavu_font_dir 1156with_fftw 1157with_fpx 1158with_fontconfig 1159with_freetype 1160with_gslib 1161with_fontpath 1162with_gs_font_dir 1163with_gvc 1164with_jbig 1165with_jpeg 1166with_jp2 1167with_lcms 1168with_lcms2 1169with_lqr 1170with_lzma 1171with_openexr 1172with_pango 1173with_png 1174with_rsvg 1175with_tiff 1176with_webp 1177with_windows_font_dir 1178with_wmf 1179with_xml 1180' 1181 ac_precious_vars='build_alias 1182host_alias 1183target_alias 1184CC 1185CFLAGS 1186LDFLAGS 1187LIBS 1188CPPFLAGS 1189CPP 1190CXX 1191CXXFLAGS 1192CCC 1193PKG_CONFIG 1194CXXCPP 1195XMKMF 1196AUTOTRACE_CFLAGS 1197AUTOTRACE_LIBS 1198FONTCONFIG_CFLAGS 1199FONTCONFIG_LIBS 1200FREETYPE_CFLAGS 1201FREETYPE_LIBS 1202GVC_CFLAGS 1203GVC_LIBS 1204LQR_CFLAGS 1205LQR_LIBS 1206LZMA_CFLAGS 1207LZMA_LIBS 1208OPENEXR_CFLAGS 1209OPENEXR_LIBS 1210PANGO_CFLAGS 1211PANGO_LIBS 1212RSVG_CFLAGS 1213RSVG_LIBS 1214CAIRO_SVG_CFLAGS 1215CAIRO_SVG_LIBS' 1216 1217 1218# Initialize some variables set by options. 1219ac_init_help= 1220ac_init_version=false 1221ac_unrecognized_opts= 1222ac_unrecognized_sep= 1223# The variables have the same names as the options, with 1224# dashes changed to underlines. 1225cache_file=/dev/null 1226exec_prefix=NONE 1227no_create= 1228no_recursion= 1229prefix=NONE 1230program_prefix=NONE 1231program_suffix=NONE 1232program_transform_name=s,x,x, 1233silent= 1234site= 1235srcdir= 1236verbose= 1237x_includes=NONE 1238x_libraries=NONE 1239 1240# Installation directory options. 1241# These are left unexpanded so users can "make install exec_prefix=/foo" 1242# and all the variables that are supposed to be based on exec_prefix 1243# by default will actually change. 1244# Use braces instead of parens because sh, perl, etc. also accept them. 1245# (The list follows the same order as the GNU Coding Standards.) 1246bindir='${exec_prefix}/bin' 1247sbindir='${exec_prefix}/sbin' 1248libexecdir='${exec_prefix}/libexec' 1249datarootdir='${prefix}/share' 1250datadir='${datarootdir}' 1251sysconfdir='${prefix}/etc' 1252sharedstatedir='${prefix}/com' 1253localstatedir='${prefix}/var' 1254includedir='${prefix}/include' 1255oldincludedir='/usr/include' 1256docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1257infodir='${datarootdir}/info' 1258htmldir='${docdir}' 1259dvidir='${docdir}' 1260pdfdir='${docdir}' 1261psdir='${docdir}' 1262libdir='${exec_prefix}/lib' 1263localedir='${datarootdir}/locale' 1264mandir='${datarootdir}/man' 1265 1266ac_prev= 1267ac_dashdash= 1268for ac_option 1269do 1270 # If the previous option needs an argument, assign it. 1271 if test -n "$ac_prev"; then 1272 eval $ac_prev=\$ac_option 1273 ac_prev= 1274 continue 1275 fi 1276 1277 case $ac_option in 1278 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1279 *=) ac_optarg= ;; 1280 *) ac_optarg=yes ;; 1281 esac 1282 1283 # Accept the important Cygnus configure options, so we can diagnose typos. 1284 1285 case $ac_dashdash$ac_option in 1286 --) 1287 ac_dashdash=yes ;; 1288 1289 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1290 ac_prev=bindir ;; 1291 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1292 bindir=$ac_optarg ;; 1293 1294 -build | --build | --buil | --bui | --bu) 1295 ac_prev=build_alias ;; 1296 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1297 build_alias=$ac_optarg ;; 1298 1299 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1300 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1301 ac_prev=cache_file ;; 1302 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1303 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1304 cache_file=$ac_optarg ;; 1305 1306 --config-cache | -C) 1307 cache_file=config.cache ;; 1308 1309 -datadir | --datadir | --datadi | --datad) 1310 ac_prev=datadir ;; 1311 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1312 datadir=$ac_optarg ;; 1313 1314 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1315 | --dataroo | --dataro | --datar) 1316 ac_prev=datarootdir ;; 1317 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1318 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1319 datarootdir=$ac_optarg ;; 1320 1321 -disable-* | --disable-*) 1322 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1323 # Reject names that are not valid shell variable names. 1324 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1325 as_fn_error $? "invalid feature name: $ac_useropt" 1326 ac_useropt_orig=$ac_useropt 1327 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1328 case $ac_user_opts in 1329 *" 1330"enable_$ac_useropt" 1331"*) ;; 1332 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1333 ac_unrecognized_sep=', ';; 1334 esac 1335 eval enable_$ac_useropt=no ;; 1336 1337 -docdir | --docdir | --docdi | --doc | --do) 1338 ac_prev=docdir ;; 1339 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1340 docdir=$ac_optarg ;; 1341 1342 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1343 ac_prev=dvidir ;; 1344 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1345 dvidir=$ac_optarg ;; 1346 1347 -enable-* | --enable-*) 1348 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1349 # Reject names that are not valid shell variable names. 1350 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1351 as_fn_error $? "invalid feature name: $ac_useropt" 1352 ac_useropt_orig=$ac_useropt 1353 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1354 case $ac_user_opts in 1355 *" 1356"enable_$ac_useropt" 1357"*) ;; 1358 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1359 ac_unrecognized_sep=', ';; 1360 esac 1361 eval enable_$ac_useropt=\$ac_optarg ;; 1362 1363 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1364 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1365 | --exec | --exe | --ex) 1366 ac_prev=exec_prefix ;; 1367 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1368 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1369 | --exec=* | --exe=* | --ex=*) 1370 exec_prefix=$ac_optarg ;; 1371 1372 -gas | --gas | --ga | --g) 1373 # Obsolete; use --with-gas. 1374 with_gas=yes ;; 1375 1376 -help | --help | --hel | --he | -h) 1377 ac_init_help=long ;; 1378 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1379 ac_init_help=recursive ;; 1380 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1381 ac_init_help=short ;; 1382 1383 -host | --host | --hos | --ho) 1384 ac_prev=host_alias ;; 1385 -host=* | --host=* | --hos=* | --ho=*) 1386 host_alias=$ac_optarg ;; 1387 1388 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1389 ac_prev=htmldir ;; 1390 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1391 | --ht=*) 1392 htmldir=$ac_optarg ;; 1393 1394 -includedir | --includedir | --includedi | --included | --include \ 1395 | --includ | --inclu | --incl | --inc) 1396 ac_prev=includedir ;; 1397 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1398 | --includ=* | --inclu=* | --incl=* | --inc=*) 1399 includedir=$ac_optarg ;; 1400 1401 -infodir | --infodir | --infodi | --infod | --info | --inf) 1402 ac_prev=infodir ;; 1403 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1404 infodir=$ac_optarg ;; 1405 1406 -libdir | --libdir | --libdi | --libd) 1407 ac_prev=libdir ;; 1408 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1409 libdir=$ac_optarg ;; 1410 1411 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1412 | --libexe | --libex | --libe) 1413 ac_prev=libexecdir ;; 1414 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1415 | --libexe=* | --libex=* | --libe=*) 1416 libexecdir=$ac_optarg ;; 1417 1418 -localedir | --localedir | --localedi | --localed | --locale) 1419 ac_prev=localedir ;; 1420 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1421 localedir=$ac_optarg ;; 1422 1423 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1424 | --localstate | --localstat | --localsta | --localst | --locals) 1425 ac_prev=localstatedir ;; 1426 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1427 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1428 localstatedir=$ac_optarg ;; 1429 1430 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1431 ac_prev=mandir ;; 1432 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1433 mandir=$ac_optarg ;; 1434 1435 -nfp | --nfp | --nf) 1436 # Obsolete; use --without-fp. 1437 with_fp=no ;; 1438 1439 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1440 | --no-cr | --no-c | -n) 1441 no_create=yes ;; 1442 1443 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1444 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1445 no_recursion=yes ;; 1446 1447 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1448 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1449 | --oldin | --oldi | --old | --ol | --o) 1450 ac_prev=oldincludedir ;; 1451 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1452 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1453 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1454 oldincludedir=$ac_optarg ;; 1455 1456 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1457 ac_prev=prefix ;; 1458 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1459 prefix=$ac_optarg ;; 1460 1461 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1462 | --program-pre | --program-pr | --program-p) 1463 ac_prev=program_prefix ;; 1464 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1465 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1466 program_prefix=$ac_optarg ;; 1467 1468 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1469 | --program-suf | --program-su | --program-s) 1470 ac_prev=program_suffix ;; 1471 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1472 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1473 program_suffix=$ac_optarg ;; 1474 1475 -program-transform-name | --program-transform-name \ 1476 | --program-transform-nam | --program-transform-na \ 1477 | --program-transform-n | --program-transform- \ 1478 | --program-transform | --program-transfor \ 1479 | --program-transfo | --program-transf \ 1480 | --program-trans | --program-tran \ 1481 | --progr-tra | --program-tr | --program-t) 1482 ac_prev=program_transform_name ;; 1483 -program-transform-name=* | --program-transform-name=* \ 1484 | --program-transform-nam=* | --program-transform-na=* \ 1485 | --program-transform-n=* | --program-transform-=* \ 1486 | --program-transform=* | --program-transfor=* \ 1487 | --program-transfo=* | --program-transf=* \ 1488 | --program-trans=* | --program-tran=* \ 1489 | --progr-tra=* | --program-tr=* | --program-t=*) 1490 program_transform_name=$ac_optarg ;; 1491 1492 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1493 ac_prev=pdfdir ;; 1494 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1495 pdfdir=$ac_optarg ;; 1496 1497 -psdir | --psdir | --psdi | --psd | --ps) 1498 ac_prev=psdir ;; 1499 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1500 psdir=$ac_optarg ;; 1501 1502 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1503 | -silent | --silent | --silen | --sile | --sil) 1504 silent=yes ;; 1505 1506 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1507 ac_prev=sbindir ;; 1508 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1509 | --sbi=* | --sb=*) 1510 sbindir=$ac_optarg ;; 1511 1512 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1513 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1514 | --sharedst | --shareds | --shared | --share | --shar \ 1515 | --sha | --sh) 1516 ac_prev=sharedstatedir ;; 1517 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1518 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1519 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1520 | --sha=* | --sh=*) 1521 sharedstatedir=$ac_optarg ;; 1522 1523 -site | --site | --sit) 1524 ac_prev=site ;; 1525 -site=* | --site=* | --sit=*) 1526 site=$ac_optarg ;; 1527 1528 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1529 ac_prev=srcdir ;; 1530 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1531 srcdir=$ac_optarg ;; 1532 1533 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1534 | --syscon | --sysco | --sysc | --sys | --sy) 1535 ac_prev=sysconfdir ;; 1536 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1537 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1538 sysconfdir=$ac_optarg ;; 1539 1540 -target | --target | --targe | --targ | --tar | --ta | --t) 1541 ac_prev=target_alias ;; 1542 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1543 target_alias=$ac_optarg ;; 1544 1545 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1546 verbose=yes ;; 1547 1548 -version | --version | --versio | --versi | --vers | -V) 1549 ac_init_version=: ;; 1550 1551 -with-* | --with-*) 1552 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1553 # Reject names that are not valid shell variable names. 1554 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1555 as_fn_error $? "invalid package name: $ac_useropt" 1556 ac_useropt_orig=$ac_useropt 1557 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1558 case $ac_user_opts in 1559 *" 1560"with_$ac_useropt" 1561"*) ;; 1562 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1563 ac_unrecognized_sep=', ';; 1564 esac 1565 eval with_$ac_useropt=\$ac_optarg ;; 1566 1567 -without-* | --without-*) 1568 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1569 # Reject names that are not valid shell variable names. 1570 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1571 as_fn_error $? "invalid package name: $ac_useropt" 1572 ac_useropt_orig=$ac_useropt 1573 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1574 case $ac_user_opts in 1575 *" 1576"with_$ac_useropt" 1577"*) ;; 1578 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1579 ac_unrecognized_sep=', ';; 1580 esac 1581 eval with_$ac_useropt=no ;; 1582 1583 --x) 1584 # Obsolete; use --with-x. 1585 with_x=yes ;; 1586 1587 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1588 | --x-incl | --x-inc | --x-in | --x-i) 1589 ac_prev=x_includes ;; 1590 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1591 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1592 x_includes=$ac_optarg ;; 1593 1594 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1595 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1596 ac_prev=x_libraries ;; 1597 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1598 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1599 x_libraries=$ac_optarg ;; 1600 1601 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1602Try \`$0 --help' for more information" 1603 ;; 1604 1605 *=*) 1606 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1607 # Reject names that are not valid shell variable names. 1608 case $ac_envvar in #( 1609 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1610 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1611 esac 1612 eval $ac_envvar=\$ac_optarg 1613 export $ac_envvar ;; 1614 1615 *) 1616 # FIXME: should be removed in autoconf 3.0. 1617 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1618 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1619 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1620 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1621 ;; 1622 1623 esac 1624done 1625 1626if test -n "$ac_prev"; then 1627 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1628 as_fn_error $? "missing argument to $ac_option" 1629fi 1630 1631if test -n "$ac_unrecognized_opts"; then 1632 case $enable_option_checking in 1633 no) ;; 1634 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1635 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1636 esac 1637fi 1638 1639# Check all directory arguments for consistency. 1640for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1641 datadir sysconfdir sharedstatedir localstatedir includedir \ 1642 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1643 libdir localedir mandir 1644do 1645 eval ac_val=\$$ac_var 1646 # Remove trailing slashes. 1647 case $ac_val in 1648 */ ) 1649 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1650 eval $ac_var=\$ac_val;; 1651 esac 1652 # Be sure to have absolute directory names. 1653 case $ac_val in 1654 [\\/$]* | ?:[\\/]* ) continue;; 1655 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1656 esac 1657 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1658done 1659 1660# There might be people who depend on the old broken behavior: `$host' 1661# used to hold the argument of --host etc. 1662# FIXME: To remove some day. 1663build=$build_alias 1664host=$host_alias 1665target=$target_alias 1666 1667# FIXME: To remove some day. 1668if test "x$host_alias" != x; then 1669 if test "x$build_alias" = x; then 1670 cross_compiling=maybe 1671 elif test "x$build_alias" != "x$host_alias"; then 1672 cross_compiling=yes 1673 fi 1674fi 1675 1676ac_tool_prefix= 1677test -n "$host_alias" && ac_tool_prefix=$host_alias- 1678 1679test "$silent" = yes && exec 6>/dev/null 1680 1681 1682ac_pwd=`pwd` && test -n "$ac_pwd" && 1683ac_ls_di=`ls -di .` && 1684ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1685 as_fn_error $? "working directory cannot be determined" 1686test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1687 as_fn_error $? "pwd does not report name of working directory" 1688 1689 1690# Find the source files, if location was not specified. 1691if test -z "$srcdir"; then 1692 ac_srcdir_defaulted=yes 1693 # Try the directory containing this script, then the parent directory. 1694 ac_confdir=`$as_dirname -- "$as_myself" || 1695$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1696 X"$as_myself" : 'X\(//\)[^/]' \| \ 1697 X"$as_myself" : 'X\(//\)$' \| \ 1698 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1699$as_echo X"$as_myself" | 1700 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1701 s//\1/ 1702 q 1703 } 1704 /^X\(\/\/\)[^/].*/{ 1705 s//\1/ 1706 q 1707 } 1708 /^X\(\/\/\)$/{ 1709 s//\1/ 1710 q 1711 } 1712 /^X\(\/\).*/{ 1713 s//\1/ 1714 q 1715 } 1716 s/.*/./; q'` 1717 srcdir=$ac_confdir 1718 if test ! -r "$srcdir/$ac_unique_file"; then 1719 srcdir=.. 1720 fi 1721else 1722 ac_srcdir_defaulted=no 1723fi 1724if test ! -r "$srcdir/$ac_unique_file"; then 1725 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1726 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1727fi 1728ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1729ac_abs_confdir=`( 1730 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1731 pwd)` 1732# When building in place, set srcdir=. 1733if test "$ac_abs_confdir" = "$ac_pwd"; then 1734 srcdir=. 1735fi 1736# Remove unnecessary trailing slashes from srcdir. 1737# Double slashes in file names in object file debugging info 1738# mess up M-x gdb in Emacs. 1739case $srcdir in 1740*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1741esac 1742for ac_var in $ac_precious_vars; do 1743 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1744 eval ac_env_${ac_var}_value=\$${ac_var} 1745 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1746 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1747done 1748 1749# 1750# Report the --help message. 1751# 1752if test "$ac_init_help" = "long"; then 1753 # Omit some internal or obsolete options to make the list less imposing. 1754 # This message is too long to be a string in the A/UX 3.1 sh. 1755 cat <<_ACEOF 1756\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems. 1757 1758Usage: $0 [OPTION]... [VAR=VALUE]... 1759 1760To assign environment variables (e.g., CC, CFLAGS...), specify them as 1761VAR=VALUE. See below for descriptions of some of the useful variables. 1762 1763Defaults for the options are specified in brackets. 1764 1765Configuration: 1766 -h, --help display this help and exit 1767 --help=short display options specific to this package 1768 --help=recursive display the short help of all the included packages 1769 -V, --version display version information and exit 1770 -q, --quiet, --silent do not print \`checking ...' messages 1771 --cache-file=FILE cache test results in FILE [disabled] 1772 -C, --config-cache alias for \`--cache-file=config.cache' 1773 -n, --no-create do not create output files 1774 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1775 1776Installation directories: 1777 --prefix=PREFIX install architecture-independent files in PREFIX 1778 [$ac_default_prefix] 1779 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1780 [PREFIX] 1781 1782By default, \`make install' will install all the files in 1783\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1784an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1785for instance \`--prefix=\$HOME'. 1786 1787For better control, use the options below. 1788 1789Fine tuning of the installation directories: 1790 --bindir=DIR user executables [EPREFIX/bin] 1791 --sbindir=DIR system admin executables [EPREFIX/sbin] 1792 --libexecdir=DIR program executables [EPREFIX/libexec] 1793 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1794 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1795 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1796 --libdir=DIR object code libraries [EPREFIX/lib] 1797 --includedir=DIR C header files [PREFIX/include] 1798 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1799 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1800 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1801 --infodir=DIR info documentation [DATAROOTDIR/info] 1802 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1803 --mandir=DIR man documentation [DATAROOTDIR/man] 1804 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick] 1805 --htmldir=DIR html documentation [DOCDIR] 1806 --dvidir=DIR dvi documentation [DOCDIR] 1807 --pdfdir=DIR pdf documentation [DOCDIR] 1808 --psdir=DIR ps documentation [DOCDIR] 1809_ACEOF 1810 1811 cat <<\_ACEOF 1812 1813Program names: 1814 --program-prefix=PREFIX prepend PREFIX to installed program names 1815 --program-suffix=SUFFIX append SUFFIX to installed program names 1816 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1817 1818X features: 1819 --x-includes=DIR X include files are in DIR 1820 --x-libraries=DIR X library files are in DIR 1821 1822System types: 1823 --build=BUILD configure for building on BUILD [guessed] 1824 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1825 --target=TARGET configure for building compilers for TARGET [HOST] 1826_ACEOF 1827fi 1828 1829if test -n "$ac_init_help"; then 1830 case $ac_init_help in 1831 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";; 1832 esac 1833 cat <<\_ACEOF 1834 1835Optional Features: 1836 --disable-option-checking ignore unrecognized --enable/--with options 1837 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1838 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1839 --enable-silent-rules less verbose build output (undo: "make V=1") 1840 --disable-silent-rules verbose build output (undo: "make V=0") 1841 --enable-dependency-tracking 1842 do not reject slow dependency extractors 1843 --disable-dependency-tracking 1844 speeds up one-time build 1845 --enable-ld-version-script 1846 enable linker version script (default is enabled 1847 when possible) 1848 --enable-bounds-checking 1849 enable run-time bounds-checking 1850 --enable-osx-universal-binary 1851 build universal binary on OS X [[default=no]] 1852 --disable-openmp do not use OpenMP 1853 --enable-opencl enable OpenCL support 1854 --disable-largefile omit support for large files 1855 --enable-shared[=PKGS] build shared libraries [default=yes] 1856 --enable-static[=PKGS] build static libraries [default=yes] 1857 --enable-fast-install[=PKGS] 1858 optimize for fast installation [default=yes] 1859 --disable-libtool-lock avoid locking (might break parallel builds) 1860 --enable-delegate-build look for delegate libraries in build directory 1861 --disable-deprecated exclude deprecated methods in MagickCore and 1862 MagickWand APIs 1863 --disable-installed Formally install ImageMagick under PREFIX 1864 --disable-cipher disable enciphering and deciphering image pixels 1865 --enable-zero-configuration 1866 enable self-contained, embeddable, 1867 zero-configuration ImageMagick 1868 --enable-hdri accurately represent the wide range of intensity 1869 levels found in real scenes 1870 --disable-assert disable assert() statements in build 1871 --enable-maintainer-mode 1872 enable make rules and dependencies not useful (and 1873 sometimes confusing) to the casual installer 1874 --enable-ccmalloc enable 'ccmalloc' memory debug support 1875 --enable-efence enable 'efence' memory debug support 1876 --enable-prof enable 'prof' profiling support 1877 --enable-gprof enable 'gprof' profiling support 1878 --enable-gcov enable 'gcov' profiling support 1879 --enable-legacy-support install legacy command-line utilities (default disabled) 1880 --disable-assert turn off assertions 1881 1882Optional Packages: 1883 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1884 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1885 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1886 --with-dmalloc use dmalloc, as in http://www.dmalloc.com 1887 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune, 1888 instead of guessing 1889 --includearch-dir=DIR ARCH specific include directory 1890 --sharearch-dir=DIR ARCH specific config directory 1891 --with-pkgconfigdir=DIR Path to the pkgconfig directory [LIBDIR/pkgconfig] 1892 --without-threads disable threads support 1893 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1894 both] 1895 --with-sysroot=DIR Search for dependent libraries within DIR 1896 (or the compiler's sysroot if not specified). 1897 --with-modules enable building dynamically loadable modules 1898 --with-method-prefix=PREFIX 1899 prefix MagickCore API methods 1900 --with-quantum-depth=DEPTH 1901 number of bits in a pixel quantum (default 16) 1902 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available 1903 memory) 1904 --with-frozenpaths freeze delegate paths 1905 --without-magick-plus-plus 1906 disable build/install of Magick++ 1907 --with-package-release-name=NAME 1908 encode this name into the shared library 1909 --with-perl enable build/install of PerlMagick 1910 --with-perl-options=OPTIONS 1911 options to pass on command-line when generating 1912 PerlMagick build file 1913 --with-umem enable umem memory allocation library support 1914 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++) 1915 --without-bzlib disable BZLIB support 1916 --with-x use the X Window System 1917 --without-zlib disable ZLIB support 1918 --with-autotrace enable autotrace support 1919 --without-dps disable Display Postscript support 1920 --without-djvu disable DjVu support 1921 --with-dejavu-font-dir=DIR 1922 DejaVu font directory 1923 --without-fftw disable FFTW support 1924 --without-fpx disable FlashPIX support 1925 --without-fontconfig disable fontconfig support 1926 --without-freetype disable Freetype support 1927 --without-gslib enable Ghostscript library support 1928 --with-fontpath=DIR prepend to default font search path 1929 --with-gs-font-dir=DIR Ghostscript font directory 1930 --with-gvc disable GVC support 1931 --without-jbig disable JBIG support 1932 --without-jpeg disable JPEG support 1933 --without-jp2 disable JPEG-2000 support 1934 --without-lcms disable lcms (v1.1X) support 1935 --without-lcms2 disable lcms (v2.X) support 1936 --without-lqr disable Liquid Rescale support 1937 --without-lzma disable LZMA support 1938 --without-openexr disable OpenEXR support 1939 --without-pango disable PANGO support 1940 --without-png disable PNG support 1941 --without-rsvg enable RSVG support 1942 --without-tiff disable TIFF support 1943 --without-webp disable WEBP support 1944 --with-windows-font-dir=DIR 1945 directory containing MS-Windows fonts 1946 --with-wmf enable WMF support 1947 --without-xml disable XML support 1948 1949Some influential environment variables: 1950 CC C compiler command 1951 CFLAGS C compiler flags 1952 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1953 nonstandard directory <lib dir> 1954 LIBS libraries to pass to the linker, e.g. -l<library> 1955 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1956 you have headers in a nonstandard directory <include dir> 1957 CPP C preprocessor 1958 CXX C++ compiler command 1959 CXXFLAGS C++ compiler flags 1960 PKG_CONFIG path to pkg-config utility 1961 CXXCPP C++ preprocessor 1962 XMKMF Path to xmkmf, Makefile generator for X Window System 1963 AUTOTRACE_CFLAGS 1964 C compiler flags for AUTOTRACE, overriding pkg-config 1965 AUTOTRACE_LIBS 1966 linker flags for AUTOTRACE, overriding pkg-config 1967 FONTCONFIG_CFLAGS 1968 C compiler flags for FONTCONFIG, overriding pkg-config 1969 FONTCONFIG_LIBS 1970 linker flags for FONTCONFIG, overriding pkg-config 1971 FREETYPE_CFLAGS 1972 C compiler flags for FREETYPE, overriding pkg-config 1973 FREETYPE_LIBS 1974 linker flags for FREETYPE, overriding pkg-config 1975 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config 1976 GVC_LIBS linker flags for GVC, overriding pkg-config 1977 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config 1978 LQR_LIBS linker flags for LQR, overriding pkg-config 1979 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config 1980 LZMA_LIBS linker flags for LZMA, overriding pkg-config 1981 OPENEXR_CFLAGS 1982 C compiler flags for OPENEXR, overriding pkg-config 1983 OPENEXR_LIBS 1984 linker flags for OPENEXR, overriding pkg-config 1985 PANGO_CFLAGS 1986 C compiler flags for PANGO, overriding pkg-config 1987 PANGO_LIBS linker flags for PANGO, overriding pkg-config 1988 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config 1989 RSVG_LIBS linker flags for RSVG, overriding pkg-config 1990 CAIRO_SVG_CFLAGS 1991 C compiler flags for CAIRO_SVG, overriding pkg-config 1992 CAIRO_SVG_LIBS 1993 linker flags for CAIRO_SVG, overriding pkg-config 1994 1995Use these variables to override the choices made by `configure' or to help 1996it to find libraries and programs with nonstandard names/locations. 1997 1998Report bugs to <http://www.imagemagick.org>. 1999_ACEOF 2000ac_status=$? 2001fi 2002 2003if test "$ac_init_help" = "recursive"; then 2004 # If there are subdirs, report their specific --help. 2005 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2006 test -d "$ac_dir" || 2007 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2008 continue 2009 ac_builddir=. 2010 2011case "$ac_dir" in 2012.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2013*) 2014 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 2015 # A ".." for each directory in $ac_dir_suffix. 2016 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2017 case $ac_top_builddir_sub in 2018 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2019 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2020 esac ;; 2021esac 2022ac_abs_top_builddir=$ac_pwd 2023ac_abs_builddir=$ac_pwd$ac_dir_suffix 2024# for backward compatibility: 2025ac_top_builddir=$ac_top_build_prefix 2026 2027case $srcdir in 2028 .) # We are building in place. 2029 ac_srcdir=. 2030 ac_top_srcdir=$ac_top_builddir_sub 2031 ac_abs_top_srcdir=$ac_pwd ;; 2032 [\\/]* | ?:[\\/]* ) # Absolute name. 2033 ac_srcdir=$srcdir$ac_dir_suffix; 2034 ac_top_srcdir=$srcdir 2035 ac_abs_top_srcdir=$srcdir ;; 2036 *) # Relative name. 2037 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2038 ac_top_srcdir=$ac_top_build_prefix$srcdir 2039 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2040esac 2041ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2042 2043 cd "$ac_dir" || { ac_status=$?; continue; } 2044 # Check for guested configure. 2045 if test -f "$ac_srcdir/configure.gnu"; then 2046 echo && 2047 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2048 elif test -f "$ac_srcdir/configure"; then 2049 echo && 2050 $SHELL "$ac_srcdir/configure" --help=recursive 2051 else 2052 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2053 fi || ac_status=$? 2054 cd "$ac_pwd" || { ac_status=$?; break; } 2055 done 2056fi 2057 2058test -n "$ac_init_help" && exit $ac_status 2059if $ac_init_version; then 2060 cat <<\_ACEOF 2061ImageMagick configure 7.0.0-0 2062generated by GNU Autoconf 2.69 2063 2064Copyright (C) 2012 Free Software Foundation, Inc. 2065This configure script is free software; the Free Software Foundation 2066gives unlimited permission to copy, distribute and modify it. 2067_ACEOF 2068 exit 2069fi 2070 2071## ------------------------ ## 2072## Autoconf initialization. ## 2073## ------------------------ ## 2074 2075# ac_fn_c_try_compile LINENO 2076# -------------------------- 2077# Try to compile conftest.$ac_ext, and return whether this succeeded. 2078ac_fn_c_try_compile () 2079{ 2080 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2081 rm -f conftest.$ac_objext 2082 if { { ac_try="$ac_compile" 2083case "(($ac_try" in 2084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2085 *) ac_try_echo=$ac_try;; 2086esac 2087eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2088$as_echo "$ac_try_echo"; } >&5 2089 (eval "$ac_compile") 2>conftest.err 2090 ac_status=$? 2091 if test -s conftest.err; then 2092 grep -v '^ *+' conftest.err >conftest.er1 2093 cat conftest.er1 >&5 2094 mv -f conftest.er1 conftest.err 2095 fi 2096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2097 test $ac_status = 0; } && { 2098 test -z "$ac_c_werror_flag" || 2099 test ! -s conftest.err 2100 } && test -s conftest.$ac_objext; then : 2101 ac_retval=0 2102else 2103 $as_echo "$as_me: failed program was:" >&5 2104sed 's/^/| /' conftest.$ac_ext >&5 2105 2106 ac_retval=1 2107fi 2108 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2109 as_fn_set_status $ac_retval 2110 2111} # ac_fn_c_try_compile 2112 2113# ac_fn_c_try_cpp LINENO 2114# ---------------------- 2115# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2116ac_fn_c_try_cpp () 2117{ 2118 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2119 if { { ac_try="$ac_cpp conftest.$ac_ext" 2120case "(($ac_try" in 2121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2122 *) ac_try_echo=$ac_try;; 2123esac 2124eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2125$as_echo "$ac_try_echo"; } >&5 2126 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2127 ac_status=$? 2128 if test -s conftest.err; then 2129 grep -v '^ *+' conftest.err >conftest.er1 2130 cat conftest.er1 >&5 2131 mv -f conftest.er1 conftest.err 2132 fi 2133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2134 test $ac_status = 0; } > conftest.i && { 2135 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2136 test ! -s conftest.err 2137 }; then : 2138 ac_retval=0 2139else 2140 $as_echo "$as_me: failed program was:" >&5 2141sed 's/^/| /' conftest.$ac_ext >&5 2142 2143 ac_retval=1 2144fi 2145 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2146 as_fn_set_status $ac_retval 2147 2148} # ac_fn_c_try_cpp 2149 2150# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2151# ------------------------------------------------------- 2152# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2153# the include files in INCLUDES and setting the cache variable VAR 2154# accordingly. 2155ac_fn_c_check_header_mongrel () 2156{ 2157 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2158 if eval \${$3+:} false; then : 2159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2160$as_echo_n "checking for $2... " >&6; } 2161if eval \${$3+:} false; then : 2162 $as_echo_n "(cached) " >&6 2163fi 2164eval ac_res=\$$3 2165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2166$as_echo "$ac_res" >&6; } 2167else 2168 # Is the header compilable? 2169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2170$as_echo_n "checking $2 usability... " >&6; } 2171cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2172/* end confdefs.h. */ 2173$4 2174#include <$2> 2175_ACEOF 2176if ac_fn_c_try_compile "$LINENO"; then : 2177 ac_header_compiler=yes 2178else 2179 ac_header_compiler=no 2180fi 2181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2183$as_echo "$ac_header_compiler" >&6; } 2184 2185# Is the header present? 2186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2187$as_echo_n "checking $2 presence... " >&6; } 2188cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2189/* end confdefs.h. */ 2190#include <$2> 2191_ACEOF 2192if ac_fn_c_try_cpp "$LINENO"; then : 2193 ac_header_preproc=yes 2194else 2195 ac_header_preproc=no 2196fi 2197rm -f conftest.err conftest.i conftest.$ac_ext 2198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2199$as_echo "$ac_header_preproc" >&6; } 2200 2201# So? What about this header? 2202case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2203 yes:no: ) 2204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2205$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2207$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2208 ;; 2209 no:yes:* ) 2210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2211$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2213$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2215$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2217$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2219$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2220( $as_echo "## ----------------------------------------- ## 2221## Report this to http://www.imagemagick.org ## 2222## ----------------------------------------- ##" 2223 ) | sed "s/^/$as_me: WARNING: /" >&2 2224 ;; 2225esac 2226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2227$as_echo_n "checking for $2... " >&6; } 2228if eval \${$3+:} false; then : 2229 $as_echo_n "(cached) " >&6 2230else 2231 eval "$3=\$ac_header_compiler" 2232fi 2233eval ac_res=\$$3 2234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2235$as_echo "$ac_res" >&6; } 2236fi 2237 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2238 2239} # ac_fn_c_check_header_mongrel 2240 2241# ac_fn_c_try_run LINENO 2242# ---------------------- 2243# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2244# that executables *can* be run. 2245ac_fn_c_try_run () 2246{ 2247 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2248 if { { ac_try="$ac_link" 2249case "(($ac_try" in 2250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2251 *) ac_try_echo=$ac_try;; 2252esac 2253eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2254$as_echo "$ac_try_echo"; } >&5 2255 (eval "$ac_link") 2>&5 2256 ac_status=$? 2257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2258 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2259 { { case "(($ac_try" in 2260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2261 *) ac_try_echo=$ac_try;; 2262esac 2263eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2264$as_echo "$ac_try_echo"; } >&5 2265 (eval "$ac_try") 2>&5 2266 ac_status=$? 2267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2268 test $ac_status = 0; }; }; then : 2269 ac_retval=0 2270else 2271 $as_echo "$as_me: program exited with status $ac_status" >&5 2272 $as_echo "$as_me: failed program was:" >&5 2273sed 's/^/| /' conftest.$ac_ext >&5 2274 2275 ac_retval=$ac_status 2276fi 2277 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2278 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2279 as_fn_set_status $ac_retval 2280 2281} # ac_fn_c_try_run 2282 2283# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2284# ------------------------------------------------------- 2285# Tests whether HEADER exists and can be compiled using the include files in 2286# INCLUDES, setting the cache variable VAR accordingly. 2287ac_fn_c_check_header_compile () 2288{ 2289 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2291$as_echo_n "checking for $2... " >&6; } 2292if eval \${$3+:} false; then : 2293 $as_echo_n "(cached) " >&6 2294else 2295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2296/* end confdefs.h. */ 2297$4 2298#include <$2> 2299_ACEOF 2300if ac_fn_c_try_compile "$LINENO"; then : 2301 eval "$3=yes" 2302else 2303 eval "$3=no" 2304fi 2305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2306fi 2307eval ac_res=\$$3 2308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2309$as_echo "$ac_res" >&6; } 2310 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2311 2312} # ac_fn_c_check_header_compile 2313 2314# ac_fn_cxx_try_compile LINENO 2315# ---------------------------- 2316# Try to compile conftest.$ac_ext, and return whether this succeeded. 2317ac_fn_cxx_try_compile () 2318{ 2319 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2320 rm -f conftest.$ac_objext 2321 if { { ac_try="$ac_compile" 2322case "(($ac_try" in 2323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2324 *) ac_try_echo=$ac_try;; 2325esac 2326eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2327$as_echo "$ac_try_echo"; } >&5 2328 (eval "$ac_compile") 2>conftest.err 2329 ac_status=$? 2330 if test -s conftest.err; then 2331 grep -v '^ *+' conftest.err >conftest.er1 2332 cat conftest.er1 >&5 2333 mv -f conftest.er1 conftest.err 2334 fi 2335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2336 test $ac_status = 0; } && { 2337 test -z "$ac_cxx_werror_flag" || 2338 test ! -s conftest.err 2339 } && test -s conftest.$ac_objext; then : 2340 ac_retval=0 2341else 2342 $as_echo "$as_me: failed program was:" >&5 2343sed 's/^/| /' conftest.$ac_ext >&5 2344 2345 ac_retval=1 2346fi 2347 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2348 as_fn_set_status $ac_retval 2349 2350} # ac_fn_cxx_try_compile 2351 2352# ac_fn_c_try_link LINENO 2353# ----------------------- 2354# Try to link conftest.$ac_ext, and return whether this succeeded. 2355ac_fn_c_try_link () 2356{ 2357 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2358 rm -f conftest.$ac_objext conftest$ac_exeext 2359 if { { ac_try="$ac_link" 2360case "(($ac_try" in 2361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2362 *) ac_try_echo=$ac_try;; 2363esac 2364eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2365$as_echo "$ac_try_echo"; } >&5 2366 (eval "$ac_link") 2>conftest.err 2367 ac_status=$? 2368 if test -s conftest.err; then 2369 grep -v '^ *+' conftest.err >conftest.er1 2370 cat conftest.er1 >&5 2371 mv -f conftest.er1 conftest.err 2372 fi 2373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2374 test $ac_status = 0; } && { 2375 test -z "$ac_c_werror_flag" || 2376 test ! -s conftest.err 2377 } && test -s conftest$ac_exeext && { 2378 test "$cross_compiling" = yes || 2379 test -x conftest$ac_exeext 2380 }; then : 2381 ac_retval=0 2382else 2383 $as_echo "$as_me: failed program was:" >&5 2384sed 's/^/| /' conftest.$ac_ext >&5 2385 2386 ac_retval=1 2387fi 2388 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2389 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2390 # interfere with the next link command; also delete a directory that is 2391 # left behind by Apple's compiler. We do this before executing the actions. 2392 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2393 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2394 as_fn_set_status $ac_retval 2395 2396} # ac_fn_c_try_link 2397 2398# ac_fn_c_check_func LINENO FUNC VAR 2399# ---------------------------------- 2400# Tests whether FUNC exists, setting the cache variable VAR accordingly 2401ac_fn_c_check_func () 2402{ 2403 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2405$as_echo_n "checking for $2... " >&6; } 2406if eval \${$3+:} false; then : 2407 $as_echo_n "(cached) " >&6 2408else 2409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2410/* end confdefs.h. */ 2411/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2412 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2413#define $2 innocuous_$2 2414 2415/* System header to define __stub macros and hopefully few prototypes, 2416 which can conflict with char $2 (); below. 2417 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2418 <limits.h> exists even on freestanding compilers. */ 2419 2420#ifdef __STDC__ 2421# include <limits.h> 2422#else 2423# include <assert.h> 2424#endif 2425 2426#undef $2 2427 2428/* Override any GCC internal prototype to avoid an error. 2429 Use char because int might match the return type of a GCC 2430 builtin and then its argument prototype would still apply. */ 2431#ifdef __cplusplus 2432extern "C" 2433#endif 2434char $2 (); 2435/* The GNU C library defines this for functions which it implements 2436 to always fail with ENOSYS. Some functions are actually named 2437 something starting with __ and the normal name is an alias. */ 2438#if defined __stub_$2 || defined __stub___$2 2439choke me 2440#endif 2441 2442int 2443main () 2444{ 2445return $2 (); 2446 ; 2447 return 0; 2448} 2449_ACEOF 2450if ac_fn_c_try_link "$LINENO"; then : 2451 eval "$3=yes" 2452else 2453 eval "$3=no" 2454fi 2455rm -f core conftest.err conftest.$ac_objext \ 2456 conftest$ac_exeext conftest.$ac_ext 2457fi 2458eval ac_res=\$$3 2459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2460$as_echo "$ac_res" >&6; } 2461 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2462 2463} # ac_fn_c_check_func 2464 2465# ac_fn_cxx_try_cpp LINENO 2466# ------------------------ 2467# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2468ac_fn_cxx_try_cpp () 2469{ 2470 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2471 if { { ac_try="$ac_cpp conftest.$ac_ext" 2472case "(($ac_try" in 2473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2474 *) ac_try_echo=$ac_try;; 2475esac 2476eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2477$as_echo "$ac_try_echo"; } >&5 2478 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2479 ac_status=$? 2480 if test -s conftest.err; then 2481 grep -v '^ *+' conftest.err >conftest.er1 2482 cat conftest.er1 >&5 2483 mv -f conftest.er1 conftest.err 2484 fi 2485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2486 test $ac_status = 0; } > conftest.i && { 2487 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2488 test ! -s conftest.err 2489 }; then : 2490 ac_retval=0 2491else 2492 $as_echo "$as_me: failed program was:" >&5 2493sed 's/^/| /' conftest.$ac_ext >&5 2494 2495 ac_retval=1 2496fi 2497 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2498 as_fn_set_status $ac_retval 2499 2500} # ac_fn_cxx_try_cpp 2501 2502# ac_fn_cxx_try_link LINENO 2503# ------------------------- 2504# Try to link conftest.$ac_ext, and return whether this succeeded. 2505ac_fn_cxx_try_link () 2506{ 2507 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2508 rm -f conftest.$ac_objext conftest$ac_exeext 2509 if { { ac_try="$ac_link" 2510case "(($ac_try" in 2511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2512 *) ac_try_echo=$ac_try;; 2513esac 2514eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2515$as_echo "$ac_try_echo"; } >&5 2516 (eval "$ac_link") 2>conftest.err 2517 ac_status=$? 2518 if test -s conftest.err; then 2519 grep -v '^ *+' conftest.err >conftest.er1 2520 cat conftest.er1 >&5 2521 mv -f conftest.er1 conftest.err 2522 fi 2523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2524 test $ac_status = 0; } && { 2525 test -z "$ac_cxx_werror_flag" || 2526 test ! -s conftest.err 2527 } && test -s conftest$ac_exeext && { 2528 test "$cross_compiling" = yes || 2529 test -x conftest$ac_exeext 2530 }; then : 2531 ac_retval=0 2532else 2533 $as_echo "$as_me: failed program was:" >&5 2534sed 's/^/| /' conftest.$ac_ext >&5 2535 2536 ac_retval=1 2537fi 2538 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2539 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2540 # interfere with the next link command; also delete a directory that is 2541 # left behind by Apple's compiler. We do this before executing the actions. 2542 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2543 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2544 as_fn_set_status $ac_retval 2545 2546} # ac_fn_cxx_try_link 2547 2548# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2549# ------------------------------------------- 2550# Tests whether TYPE exists after having included INCLUDES, setting cache 2551# variable VAR accordingly. 2552ac_fn_c_check_type () 2553{ 2554 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2556$as_echo_n "checking for $2... " >&6; } 2557if eval \${$3+:} false; then : 2558 $as_echo_n "(cached) " >&6 2559else 2560 eval "$3=no" 2561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2562/* end confdefs.h. */ 2563$4 2564int 2565main () 2566{ 2567if (sizeof ($2)) 2568 return 0; 2569 ; 2570 return 0; 2571} 2572_ACEOF 2573if ac_fn_c_try_compile "$LINENO"; then : 2574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2575/* end confdefs.h. */ 2576$4 2577int 2578main () 2579{ 2580if (sizeof (($2))) 2581 return 0; 2582 ; 2583 return 0; 2584} 2585_ACEOF 2586if ac_fn_c_try_compile "$LINENO"; then : 2587 2588else 2589 eval "$3=yes" 2590fi 2591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2592fi 2593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2594fi 2595eval ac_res=\$$3 2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2597$as_echo "$ac_res" >&6; } 2598 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2599 2600} # ac_fn_c_check_type 2601 2602# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2603# ---------------------------------------------------- 2604# Tries to find if the field MEMBER exists in type AGGR, after including 2605# INCLUDES, setting cache variable VAR accordingly. 2606ac_fn_c_check_member () 2607{ 2608 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2610$as_echo_n "checking for $2.$3... " >&6; } 2611if eval \${$4+:} false; then : 2612 $as_echo_n "(cached) " >&6 2613else 2614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2615/* end confdefs.h. */ 2616$5 2617int 2618main () 2619{ 2620static $2 ac_aggr; 2621if (ac_aggr.$3) 2622return 0; 2623 ; 2624 return 0; 2625} 2626_ACEOF 2627if ac_fn_c_try_compile "$LINENO"; then : 2628 eval "$4=yes" 2629else 2630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2631/* end confdefs.h. */ 2632$5 2633int 2634main () 2635{ 2636static $2 ac_aggr; 2637if (sizeof ac_aggr.$3) 2638return 0; 2639 ; 2640 return 0; 2641} 2642_ACEOF 2643if ac_fn_c_try_compile "$LINENO"; then : 2644 eval "$4=yes" 2645else 2646 eval "$4=no" 2647fi 2648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2649fi 2650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2651fi 2652eval ac_res=\$$4 2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2654$as_echo "$ac_res" >&6; } 2655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2656 2657} # ac_fn_c_check_member 2658 2659# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2660# --------------------------------------------- 2661# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2662# accordingly. 2663ac_fn_c_check_decl () 2664{ 2665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2666 as_decl_name=`echo $2|sed 's/ *(.*//'` 2667 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2669$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2670if eval \${$3+:} false; then : 2671 $as_echo_n "(cached) " >&6 2672else 2673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2674/* end confdefs.h. */ 2675$4 2676int 2677main () 2678{ 2679#ifndef $as_decl_name 2680#ifdef __cplusplus 2681 (void) $as_decl_use; 2682#else 2683 (void) $as_decl_name; 2684#endif 2685#endif 2686 2687 ; 2688 return 0; 2689} 2690_ACEOF 2691if ac_fn_c_try_compile "$LINENO"; then : 2692 eval "$3=yes" 2693else 2694 eval "$3=no" 2695fi 2696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2697fi 2698eval ac_res=\$$3 2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2700$as_echo "$ac_res" >&6; } 2701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2702 2703} # ac_fn_c_check_decl 2704 2705# ac_fn_c_find_intX_t LINENO BITS VAR 2706# ----------------------------------- 2707# Finds a signed integer type with width BITS, setting cache variable VAR 2708# accordingly. 2709ac_fn_c_find_intX_t () 2710{ 2711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 2713$as_echo_n "checking for int$2_t... " >&6; } 2714if eval \${$3+:} false; then : 2715 $as_echo_n "(cached) " >&6 2716else 2717 eval "$3=no" 2718 # Order is important - never check a type that is potentially smaller 2719 # than half of the expected target width. 2720 for ac_type in int$2_t 'int' 'long int' \ 2721 'long long int' 'short int' 'signed char'; do 2722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2723/* end confdefs.h. */ 2724$ac_includes_default 2725 enum { N = $2 / 2 - 1 }; 2726int 2727main () 2728{ 2729static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; 2730test_array [0] = 0; 2731return test_array [0]; 2732 2733 ; 2734 return 0; 2735} 2736_ACEOF 2737if ac_fn_c_try_compile "$LINENO"; then : 2738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2739/* end confdefs.h. */ 2740$ac_includes_default 2741 enum { N = $2 / 2 - 1 }; 2742int 2743main () 2744{ 2745static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) 2746 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; 2747test_array [0] = 0; 2748return test_array [0]; 2749 2750 ; 2751 return 0; 2752} 2753_ACEOF 2754if ac_fn_c_try_compile "$LINENO"; then : 2755 2756else 2757 case $ac_type in #( 2758 int$2_t) : 2759 eval "$3=yes" ;; #( 2760 *) : 2761 eval "$3=\$ac_type" ;; 2762esac 2763fi 2764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2765fi 2766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2767 if eval test \"x\$"$3"\" = x"no"; then : 2768 2769else 2770 break 2771fi 2772 done 2773fi 2774eval ac_res=\$$3 2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2776$as_echo "$ac_res" >&6; } 2777 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2778 2779} # ac_fn_c_find_intX_t 2780 2781# ac_fn_c_find_uintX_t LINENO BITS VAR 2782# ------------------------------------ 2783# Finds an unsigned integer type with width BITS, setting cache variable VAR 2784# accordingly. 2785ac_fn_c_find_uintX_t () 2786{ 2787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 2789$as_echo_n "checking for uint$2_t... " >&6; } 2790if eval \${$3+:} false; then : 2791 $as_echo_n "(cached) " >&6 2792else 2793 eval "$3=no" 2794 # Order is important - never check a type that is potentially smaller 2795 # than half of the expected target width. 2796 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 2797 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 2798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2799/* end confdefs.h. */ 2800$ac_includes_default 2801int 2802main () 2803{ 2804static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 2805test_array [0] = 0; 2806return test_array [0]; 2807 2808 ; 2809 return 0; 2810} 2811_ACEOF 2812if ac_fn_c_try_compile "$LINENO"; then : 2813 case $ac_type in #( 2814 uint$2_t) : 2815 eval "$3=yes" ;; #( 2816 *) : 2817 eval "$3=\$ac_type" ;; 2818esac 2819fi 2820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2821 if eval test \"x\$"$3"\" = x"no"; then : 2822 2823else 2824 break 2825fi 2826 done 2827fi 2828eval ac_res=\$$3 2829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2830$as_echo "$ac_res" >&6; } 2831 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2832 2833} # ac_fn_c_find_uintX_t 2834 2835# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2836# -------------------------------------------- 2837# Tries to find the compile-time value of EXPR in a program that includes 2838# INCLUDES, setting VAR accordingly. Returns whether the value could be 2839# computed 2840ac_fn_c_compute_int () 2841{ 2842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2843 if test "$cross_compiling" = yes; then 2844 # Depending upon the size, compute the lo and hi bounds. 2845cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2846/* end confdefs.h. */ 2847$4 2848int 2849main () 2850{ 2851static int test_array [1 - 2 * !(($2) >= 0)]; 2852test_array [0] = 0; 2853return test_array [0]; 2854 2855 ; 2856 return 0; 2857} 2858_ACEOF 2859if ac_fn_c_try_compile "$LINENO"; then : 2860 ac_lo=0 ac_mid=0 2861 while :; do 2862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2863/* end confdefs.h. */ 2864$4 2865int 2866main () 2867{ 2868static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2869test_array [0] = 0; 2870return test_array [0]; 2871 2872 ; 2873 return 0; 2874} 2875_ACEOF 2876if ac_fn_c_try_compile "$LINENO"; then : 2877 ac_hi=$ac_mid; break 2878else 2879 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2880 if test $ac_lo -le $ac_mid; then 2881 ac_lo= ac_hi= 2882 break 2883 fi 2884 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2885fi 2886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2887 done 2888else 2889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2890/* end confdefs.h. */ 2891$4 2892int 2893main () 2894{ 2895static int test_array [1 - 2 * !(($2) < 0)]; 2896test_array [0] = 0; 2897return test_array [0]; 2898 2899 ; 2900 return 0; 2901} 2902_ACEOF 2903if ac_fn_c_try_compile "$LINENO"; then : 2904 ac_hi=-1 ac_mid=-1 2905 while :; do 2906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2907/* end confdefs.h. */ 2908$4 2909int 2910main () 2911{ 2912static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2913test_array [0] = 0; 2914return test_array [0]; 2915 2916 ; 2917 return 0; 2918} 2919_ACEOF 2920if ac_fn_c_try_compile "$LINENO"; then : 2921 ac_lo=$ac_mid; break 2922else 2923 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2924 if test $ac_mid -le $ac_hi; then 2925 ac_lo= ac_hi= 2926 break 2927 fi 2928 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2929fi 2930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2931 done 2932else 2933 ac_lo= ac_hi= 2934fi 2935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2936fi 2937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2938# Binary search between lo and hi bounds. 2939while test "x$ac_lo" != "x$ac_hi"; do 2940 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2942/* end confdefs.h. */ 2943$4 2944int 2945main () 2946{ 2947static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2948test_array [0] = 0; 2949return test_array [0]; 2950 2951 ; 2952 return 0; 2953} 2954_ACEOF 2955if ac_fn_c_try_compile "$LINENO"; then : 2956 ac_hi=$ac_mid 2957else 2958 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2959fi 2960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2961done 2962case $ac_lo in #(( 2963?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2964'') ac_retval=1 ;; 2965esac 2966 else 2967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2968/* end confdefs.h. */ 2969$4 2970static long int longval () { return $2; } 2971static unsigned long int ulongval () { return $2; } 2972#include <stdio.h> 2973#include <stdlib.h> 2974int 2975main () 2976{ 2977 2978 FILE *f = fopen ("conftest.val", "w"); 2979 if (! f) 2980 return 1; 2981 if (($2) < 0) 2982 { 2983 long int i = longval (); 2984 if (i != ($2)) 2985 return 1; 2986 fprintf (f, "%ld", i); 2987 } 2988 else 2989 { 2990 unsigned long int i = ulongval (); 2991 if (i != ($2)) 2992 return 1; 2993 fprintf (f, "%lu", i); 2994 } 2995 /* Do not output a trailing newline, as this causes \r\n confusion 2996 on some platforms. */ 2997 return ferror (f) || fclose (f) != 0; 2998 2999 ; 3000 return 0; 3001} 3002_ACEOF 3003if ac_fn_c_try_run "$LINENO"; then : 3004 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 3005else 3006 ac_retval=1 3007fi 3008rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3009 conftest.$ac_objext conftest.beam conftest.$ac_ext 3010rm -f conftest.val 3011 3012 fi 3013 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3014 as_fn_set_status $ac_retval 3015 3016} # ac_fn_c_compute_int 3017 3018# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 3019# --------------------------------------------------------- 3020# Tests whether HEADER exists, giving a warning if it cannot be compiled using 3021# the include files in INCLUDES and setting the cache variable VAR 3022# accordingly. 3023ac_fn_cxx_check_header_mongrel () 3024{ 3025 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3026 if eval \${$3+:} false; then : 3027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 3028$as_echo_n "checking for $2... " >&6; } 3029if eval \${$3+:} false; then : 3030 $as_echo_n "(cached) " >&6 3031fi 3032eval ac_res=\$$3 3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3034$as_echo "$ac_res" >&6; } 3035else 3036 # Is the header compilable? 3037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 3038$as_echo_n "checking $2 usability... " >&6; } 3039cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3040/* end confdefs.h. */ 3041$4 3042#include <$2> 3043_ACEOF 3044if ac_fn_cxx_try_compile "$LINENO"; then : 3045 ac_header_compiler=yes 3046else 3047 ac_header_compiler=no 3048fi 3049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 3051$as_echo "$ac_header_compiler" >&6; } 3052 3053# Is the header present? 3054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 3055$as_echo_n "checking $2 presence... " >&6; } 3056cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3057/* end confdefs.h. */ 3058#include <$2> 3059_ACEOF 3060if ac_fn_cxx_try_cpp "$LINENO"; then : 3061 ac_header_preproc=yes 3062else 3063 ac_header_preproc=no 3064fi 3065rm -f conftest.err conftest.i conftest.$ac_ext 3066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 3067$as_echo "$ac_header_preproc" >&6; } 3068 3069# So? What about this header? 3070case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 3071 yes:no: ) 3072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 3073$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 3074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 3075$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 3076 ;; 3077 no:yes:* ) 3078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 3079$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 3080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 3081$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 3082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 3083$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 3084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 3085$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 3086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 3087$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 3088( $as_echo "## ----------------------------------------- ## 3089## Report this to http://www.imagemagick.org ## 3090## ----------------------------------------- ##" 3091 ) | sed "s/^/$as_me: WARNING: /" >&2 3092 ;; 3093esac 3094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 3095$as_echo_n "checking for $2... " >&6; } 3096if eval \${$3+:} false; then : 3097 $as_echo_n "(cached) " >&6 3098else 3099 eval "$3=\$ac_header_compiler" 3100fi 3101eval ac_res=\$$3 3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3103$as_echo "$ac_res" >&6; } 3104fi 3105 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3106 3107} # ac_fn_cxx_check_header_mongrel 3108cat >config.log <<_ACEOF 3109This file contains any messages produced by compilers while 3110running configure, to aid debugging if configure makes a mistake. 3111 3112It was created by ImageMagick $as_me 7.0.0-0, which was 3113generated by GNU Autoconf 2.69. Invocation command line was 3114 3115 $ $0 $@ 3116 3117_ACEOF 3118exec 5>>config.log 3119{ 3120cat <<_ASUNAME 3121## --------- ## 3122## Platform. ## 3123## --------- ## 3124 3125hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 3126uname -m = `(uname -m) 2>/dev/null || echo unknown` 3127uname -r = `(uname -r) 2>/dev/null || echo unknown` 3128uname -s = `(uname -s) 2>/dev/null || echo unknown` 3129uname -v = `(uname -v) 2>/dev/null || echo unknown` 3130 3131/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 3132/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 3133 3134/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 3135/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 3136/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 3137/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 3138/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 3139/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 3140/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 3141 3142_ASUNAME 3143 3144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3145for as_dir in $PATH 3146do 3147 IFS=$as_save_IFS 3148 test -z "$as_dir" && as_dir=. 3149 $as_echo "PATH: $as_dir" 3150 done 3151IFS=$as_save_IFS 3152 3153} >&5 3154 3155cat >&5 <<_ACEOF 3156 3157 3158## ----------- ## 3159## Core tests. ## 3160## ----------- ## 3161 3162_ACEOF 3163 3164 3165# Keep a trace of the command line. 3166# Strip out --no-create and --no-recursion so they do not pile up. 3167# Strip out --silent because we don't want to record it for future runs. 3168# Also quote any args containing shell meta-characters. 3169# Make two passes to allow for proper duplicate-argument suppression. 3170ac_configure_args= 3171ac_configure_args0= 3172ac_configure_args1= 3173ac_must_keep_next=false 3174for ac_pass in 1 2 3175do 3176 for ac_arg 3177 do 3178 case $ac_arg in 3179 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 3180 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 3181 | -silent | --silent | --silen | --sile | --sil) 3182 continue ;; 3183 *\'*) 3184 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 3185 esac 3186 case $ac_pass in 3187 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 3188 2) 3189 as_fn_append ac_configure_args1 " '$ac_arg'" 3190 if test $ac_must_keep_next = true; then 3191 ac_must_keep_next=false # Got value, back to normal. 3192 else 3193 case $ac_arg in 3194 *=* | --config-cache | -C | -disable-* | --disable-* \ 3195 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 3196 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 3197 | -with-* | --with-* | -without-* | --without-* | --x) 3198 case "$ac_configure_args0 " in 3199 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 3200 esac 3201 ;; 3202 -* ) ac_must_keep_next=true ;; 3203 esac 3204 fi 3205 as_fn_append ac_configure_args " '$ac_arg'" 3206 ;; 3207 esac 3208 done 3209done 3210{ ac_configure_args0=; unset ac_configure_args0;} 3211{ ac_configure_args1=; unset ac_configure_args1;} 3212 3213# When interrupted or exit'd, cleanup temporary files, and complete 3214# config.log. We remove comments because anyway the quotes in there 3215# would cause problems or look ugly. 3216# WARNING: Use '\'' to represent an apostrophe within the trap. 3217# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 3218trap 'exit_status=$? 3219 # Save into config.log some information that might help in debugging. 3220 { 3221 echo 3222 3223 $as_echo "## ---------------- ## 3224## Cache variables. ## 3225## ---------------- ##" 3226 echo 3227 # The following way of writing the cache mishandles newlines in values, 3228( 3229 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 3230 eval ac_val=\$$ac_var 3231 case $ac_val in #( 3232 *${as_nl}*) 3233 case $ac_var in #( 3234 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 3235$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 3236 esac 3237 case $ac_var in #( 3238 _ | IFS | as_nl) ;; #( 3239 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 3240 *) { eval $ac_var=; unset $ac_var;} ;; 3241 esac ;; 3242 esac 3243 done 3244 (set) 2>&1 | 3245 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 3246 *${as_nl}ac_space=\ *) 3247 sed -n \ 3248 "s/'\''/'\''\\\\'\'''\''/g; 3249 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 3250 ;; #( 3251 *) 3252 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 3253 ;; 3254 esac | 3255 sort 3256) 3257 echo 3258 3259 $as_echo "## ----------------- ## 3260## Output variables. ## 3261## ----------------- ##" 3262 echo 3263 for ac_var in $ac_subst_vars 3264 do 3265 eval ac_val=\$$ac_var 3266 case $ac_val in 3267 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3268 esac 3269 $as_echo "$ac_var='\''$ac_val'\''" 3270 done | sort 3271 echo 3272 3273 if test -n "$ac_subst_files"; then 3274 $as_echo "## ------------------- ## 3275## File substitutions. ## 3276## ------------------- ##" 3277 echo 3278 for ac_var in $ac_subst_files 3279 do 3280 eval ac_val=\$$ac_var 3281 case $ac_val in 3282 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3283 esac 3284 $as_echo "$ac_var='\''$ac_val'\''" 3285 done | sort 3286 echo 3287 fi 3288 3289 if test -s confdefs.h; then 3290 $as_echo "## ----------- ## 3291## confdefs.h. ## 3292## ----------- ##" 3293 echo 3294 cat confdefs.h 3295 echo 3296 fi 3297 test "$ac_signal" != 0 && 3298 $as_echo "$as_me: caught signal $ac_signal" 3299 $as_echo "$as_me: exit $exit_status" 3300 } >&5 3301 rm -f core *.core core.conftest.* && 3302 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 3303 exit $exit_status 3304' 0 3305for ac_signal in 1 2 13 15; do 3306 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 3307done 3308ac_signal=0 3309 3310# confdefs.h avoids OS command line length limits that DEFS can exceed. 3311rm -f -r conftest* confdefs.h 3312 3313$as_echo "/* confdefs.h */" > confdefs.h 3314 3315# Predefined preprocessor variables. 3316 3317cat >>confdefs.h <<_ACEOF 3318#define PACKAGE_NAME "$PACKAGE_NAME" 3319_ACEOF 3320 3321cat >>confdefs.h <<_ACEOF 3322#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 3323_ACEOF 3324 3325cat >>confdefs.h <<_ACEOF 3326#define PACKAGE_VERSION "$PACKAGE_VERSION" 3327_ACEOF 3328 3329cat >>confdefs.h <<_ACEOF 3330#define PACKAGE_STRING "$PACKAGE_STRING" 3331_ACEOF 3332 3333cat >>confdefs.h <<_ACEOF 3334#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 3335_ACEOF 3336 3337cat >>confdefs.h <<_ACEOF 3338#define PACKAGE_URL "$PACKAGE_URL" 3339_ACEOF 3340 3341 3342# Let the site file select an alternate cache file if it wants to. 3343# Prefer an explicitly selected file to automatically selected ones. 3344ac_site_file1=NONE 3345ac_site_file2=NONE 3346if test -n "$CONFIG_SITE"; then 3347 # We do not want a PATH search for config.site. 3348 case $CONFIG_SITE in #(( 3349 -*) ac_site_file1=./$CONFIG_SITE;; 3350 */*) ac_site_file1=$CONFIG_SITE;; 3351 *) ac_site_file1=./$CONFIG_SITE;; 3352 esac 3353elif test "x$prefix" != xNONE; then 3354 ac_site_file1=$prefix/share/config.site 3355 ac_site_file2=$prefix/etc/config.site 3356else 3357 ac_site_file1=$ac_default_prefix/share/config.site 3358 ac_site_file2=$ac_default_prefix/etc/config.site 3359fi 3360for ac_site_file in "$ac_site_file1" "$ac_site_file2" 3361do 3362 test "x$ac_site_file" = xNONE && continue 3363 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 3364 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3365$as_echo "$as_me: loading site script $ac_site_file" >&6;} 3366 sed 's/^/| /' "$ac_site_file" >&5 3367 . "$ac_site_file" \ 3368 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3369$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3370as_fn_error $? "failed to load site script $ac_site_file 3371See \`config.log' for more details" "$LINENO" 5; } 3372 fi 3373done 3374 3375if test -r "$cache_file"; then 3376 # Some versions of bash will fail to source /dev/null (special files 3377 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3378 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3379 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3380$as_echo "$as_me: loading cache $cache_file" >&6;} 3381 case $cache_file in 3382 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3383 *) . "./$cache_file";; 3384 esac 3385 fi 3386else 3387 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3388$as_echo "$as_me: creating cache $cache_file" >&6;} 3389 >$cache_file 3390fi 3391 3392as_fn_append ac_header_list " stdlib.h" 3393as_fn_append ac_header_list " unistd.h" 3394as_fn_append ac_header_list " sys/param.h" 3395# Check that the precious variables saved in the cache have kept the same 3396# value. 3397ac_cache_corrupted=false 3398for ac_var in $ac_precious_vars; do 3399 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3400 eval ac_new_set=\$ac_env_${ac_var}_set 3401 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3402 eval ac_new_val=\$ac_env_${ac_var}_value 3403 case $ac_old_set,$ac_new_set in 3404 set,) 3405 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3406$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3407 ac_cache_corrupted=: ;; 3408 ,set) 3409 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3410$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3411 ac_cache_corrupted=: ;; 3412 ,);; 3413 *) 3414 if test "x$ac_old_val" != "x$ac_new_val"; then 3415 # differences in whitespace do not lead to failure. 3416 ac_old_val_w=`echo x $ac_old_val` 3417 ac_new_val_w=`echo x $ac_new_val` 3418 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3419 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3420$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3421 ac_cache_corrupted=: 3422 else 3423 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3424$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3425 eval $ac_var=\$ac_old_val 3426 fi 3427 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3428$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3429 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3430$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3431 fi;; 3432 esac 3433 # Pass precious variables to config.status. 3434 if test "$ac_new_set" = set; then 3435 case $ac_new_val in 3436 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3437 *) ac_arg=$ac_var=$ac_new_val ;; 3438 esac 3439 case " $ac_configure_args " in 3440 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3441 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3442 esac 3443 fi 3444done 3445if $ac_cache_corrupted; then 3446 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3447$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3448 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3449$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3450 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3451fi 3452## -------------------- ## 3453## Main body of script. ## 3454## -------------------- ## 3455 3456ac_ext=c 3457ac_cpp='$CPP $CPPFLAGS' 3458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3460ac_compiler_gnu=$ac_cv_c_compiler_gnu 3461 3462 3463 3464ac_aux_dir= 3465for ac_dir in config "$srcdir"/config; do 3466 if test -f "$ac_dir/install-sh"; then 3467 ac_aux_dir=$ac_dir 3468 ac_install_sh="$ac_aux_dir/install-sh -c" 3469 break 3470 elif test -f "$ac_dir/install.sh"; then 3471 ac_aux_dir=$ac_dir 3472 ac_install_sh="$ac_aux_dir/install.sh -c" 3473 break 3474 elif test -f "$ac_dir/shtool"; then 3475 ac_aux_dir=$ac_dir 3476 ac_install_sh="$ac_aux_dir/shtool install -c" 3477 break 3478 fi 3479done 3480if test -z "$ac_aux_dir"; then 3481 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 3482fi 3483 3484# These three variables are undocumented and unsupported, 3485# and are intended to be withdrawn in a future Autoconf release. 3486# They can cause serious problems if a builder's source tree is in a directory 3487# whose full name contains unusual characters. 3488ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3489ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3490ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3491 3492 3493 3494 3495ac_config_headers="$ac_config_headers config/config.h" 3496 3497 3498ac_config_commands="$ac_config_commands MagickCore/magick-baseconfig.h" 3499 3500ac_config_files="$ac_config_files common.shi config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/Magick++.dox config/type-dejavu.xml config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config MagickCore/ImageMagick.pc Magick++/lib/Magick++.pc MagickCore/MagickCore-config MagickCore/MagickCore.pc MagickCore/version.h Makefile magick.sh PerlMagick/check.sh PerlMagick/Makefile.PL PerlMagick/quantum/Makefile.PL PerlMagick/quantum/quantum.pm PerlMagick/quantum/quantum.xs PerlMagick/quantum/typemap PerlMagick/Magick.pm utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 MagickWand/MagickWand-config MagickWand/MagickWand.pc" 3501 3502 3503# 3504# Save initial user-tunable values 3505# 3506USER_LIBS=$LIBS 3507for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do 3508 eval isset=\${$var+set} 3509 if test "$isset" = 'set'; then 3510 eval val=$`echo $var` 3511 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' " 3512 fi 3513done 3514 3515 3516CONFIGURE_ARGS="$0 ${ac_configure_args}" 3517 3518 3519# Source file containing package/library versioning information. 3520. ${srcdir}/version.sh 3521 3522echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}" 3523# Make sure we can run config.sub. 3524$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3525 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3526 3527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3528$as_echo_n "checking build system type... " >&6; } 3529if ${ac_cv_build+:} false; then : 3530 $as_echo_n "(cached) " >&6 3531else 3532 ac_build_alias=$build_alias 3533test "x$ac_build_alias" = x && 3534 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3535test "x$ac_build_alias" = x && 3536 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3537ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3538 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3539 3540fi 3541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3542$as_echo "$ac_cv_build" >&6; } 3543case $ac_cv_build in 3544*-*-*) ;; 3545*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3546esac 3547build=$ac_cv_build 3548ac_save_IFS=$IFS; IFS='-' 3549set x $ac_cv_build 3550shift 3551build_cpu=$1 3552build_vendor=$2 3553shift; shift 3554# Remember, the first character of IFS is used to create $*, 3555# except with old shells: 3556build_os=$* 3557IFS=$ac_save_IFS 3558case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3559 3560 3561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3562$as_echo_n "checking host system type... " >&6; } 3563if ${ac_cv_host+:} false; then : 3564 $as_echo_n "(cached) " >&6 3565else 3566 if test "x$host_alias" = x; then 3567 ac_cv_host=$ac_cv_build 3568else 3569 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3570 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3571fi 3572 3573fi 3574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3575$as_echo "$ac_cv_host" >&6; } 3576case $ac_cv_host in 3577*-*-*) ;; 3578*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3579esac 3580host=$ac_cv_host 3581ac_save_IFS=$IFS; IFS='-' 3582set x $ac_cv_host 3583shift 3584host_cpu=$1 3585host_vendor=$2 3586shift; shift 3587# Remember, the first character of IFS is used to create $*, 3588# except with old shells: 3589host_os=$* 3590IFS=$ac_save_IFS 3591case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3592 3593 3594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 3595$as_echo_n "checking target system type... " >&6; } 3596if ${ac_cv_target+:} false; then : 3597 $as_echo_n "(cached) " >&6 3598else 3599 if test "x$target_alias" = x; then 3600 ac_cv_target=$ac_cv_host 3601else 3602 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 3603 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 3604fi 3605 3606fi 3607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 3608$as_echo "$ac_cv_target" >&6; } 3609case $ac_cv_target in 3610*-*-*) ;; 3611*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 3612esac 3613target=$ac_cv_target 3614ac_save_IFS=$IFS; IFS='-' 3615set x $ac_cv_target 3616shift 3617target_cpu=$1 3618target_vendor=$2 3619shift; shift 3620# Remember, the first character of IFS is used to create $*, 3621# except with old shells: 3622target_os=$* 3623IFS=$ac_save_IFS 3624case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 3625 3626 3627# The aliases save the names the user supplied, while $host etc. 3628# will get canonicalized. 3629test -n "$target_alias" && 3630 test "$program_prefix$program_suffix$program_transform_name" = \ 3631 NONENONEs,x,x, && 3632 program_prefix=${target_alias}- 3633 3634 3635 3636 3637 3638MAGICK_TARGET_CPU=$host_cpu 3639 3640 3641cat >>confdefs.h <<_ACEOF 3642#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU 3643_ACEOF 3644 3645 3646MAGICK_TARGET_VENDOR=$host_vendor 3647 3648 3649cat >>confdefs.h <<_ACEOF 3650#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR 3651_ACEOF 3652 3653 3654MAGICK_TARGET_OS=$host_os 3655 3656 3657cat >>confdefs.h <<_ACEOF 3658#define MAGICK_TARGET_OS $MAGICK_TARGET_OS 3659_ACEOF 3660 3661 3662 3663# Substitute versioning 3664MAGICK_MAJOR_VERSION=7 3665 3666MAGICK_MINOR_VERSION=0 3667 3668MAGICK_MICRO_VERSION=0 3669 3670MAGICK_PATCHLEVEL_VERSION=0 3671 3672MAGICK_VERSION=7.0.0-0 3673 3674MAGICK_SVN_REVISION=11115:11196M 3675 3676 3677# Substitute library versioning 3678MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE` 3679 3680MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE 3681 3682 3683 3684 3685 3686# Ensure that make can run correctly 3687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3688$as_echo_n "checking whether build environment is sane... " >&6; } 3689# Reject unsafe characters in $srcdir or the absolute working directory 3690# name. Accept space and tab only in the latter. 3691am_lf=' 3692' 3693case `pwd` in 3694 *[\\\"\#\$\&\'\`$am_lf]*) 3695 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3696esac 3697case $srcdir in 3698 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3699 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3700esac 3701 3702# Do 'set' in a subshell so we don't clobber the current shell's 3703# arguments. Must try -L first in case configure is actually a 3704# symlink; some systems play weird games with the mod time of symlinks 3705# (eg FreeBSD returns the mod time of the symlink's containing 3706# directory). 3707if ( 3708 am_has_slept=no 3709 for am_try in 1 2; do 3710 echo "timestamp, slept: $am_has_slept" > conftest.file 3711 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3712 if test "$*" = "X"; then 3713 # -L didn't work. 3714 set X `ls -t "$srcdir/configure" conftest.file` 3715 fi 3716 if test "$*" != "X $srcdir/configure conftest.file" \ 3717 && test "$*" != "X conftest.file $srcdir/configure"; then 3718 3719 # If neither matched, then we have a broken ls. This can happen 3720 # if, for instance, CONFIG_SHELL is bash and it inherits a 3721 # broken ls alias from the environment. This has actually 3722 # happened. Such a system could not be considered "sane". 3723 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3724 alias in your environment" "$LINENO" 5 3725 fi 3726 if test "$2" = conftest.file || test $am_try -eq 2; then 3727 break 3728 fi 3729 # Just in case. 3730 sleep 1 3731 am_has_slept=yes 3732 done 3733 test "$2" = conftest.file 3734 ) 3735then 3736 # Ok. 3737 : 3738else 3739 as_fn_error $? "newly created file is older than distributed files! 3740Check your system clock" "$LINENO" 5 3741fi 3742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3743$as_echo "yes" >&6; } 3744# If we didn't sleep, we still need to ensure time stamps of config.status and 3745# generated files are strictly newer. 3746am_sleep_pid= 3747if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3748 ( sleep 1 ) & 3749 am_sleep_pid=$! 3750fi 3751 3752rm -f conftest.file 3753 3754 3755am__api_version='1.13' 3756 3757# Find a good install program. We prefer a C program (faster), 3758# so one script is as good as another. But avoid the broken or 3759# incompatible versions: 3760# SysV /etc/install, /usr/sbin/install 3761# SunOS /usr/etc/install 3762# IRIX /sbin/install 3763# AIX /bin/install 3764# AmigaOS /C/install, which installs bootblocks on floppy discs 3765# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3766# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3767# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3768# OS/2's system install, which has a completely different semantic 3769# ./install, which can be erroneously created by make from ./install.sh. 3770# Reject install programs that cannot install multiple files. 3771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3772$as_echo_n "checking for a BSD-compatible install... " >&6; } 3773if test -z "$INSTALL"; then 3774if ${ac_cv_path_install+:} false; then : 3775 $as_echo_n "(cached) " >&6 3776else 3777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3778for as_dir in $PATH 3779do 3780 IFS=$as_save_IFS 3781 test -z "$as_dir" && as_dir=. 3782 # Account for people who put trailing slashes in PATH elements. 3783case $as_dir/ in #(( 3784 ./ | .// | /[cC]/* | \ 3785 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3786 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3787 /usr/ucb/* ) ;; 3788 *) 3789 # OSF1 and SCO ODT 3.0 have their own names for install. 3790 # Don't use installbsd from OSF since it installs stuff as root 3791 # by default. 3792 for ac_prog in ginstall scoinst install; do 3793 for ac_exec_ext in '' $ac_executable_extensions; do 3794 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3795 if test $ac_prog = install && 3796 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3797 # AIX install. It has an incompatible calling convention. 3798 : 3799 elif test $ac_prog = install && 3800 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3801 # program-specific install script used by HP pwplus--don't use. 3802 : 3803 else 3804 rm -rf conftest.one conftest.two conftest.dir 3805 echo one > conftest.one 3806 echo two > conftest.two 3807 mkdir conftest.dir 3808 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3809 test -s conftest.one && test -s conftest.two && 3810 test -s conftest.dir/conftest.one && 3811 test -s conftest.dir/conftest.two 3812 then 3813 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3814 break 3 3815 fi 3816 fi 3817 fi 3818 done 3819 done 3820 ;; 3821esac 3822 3823 done 3824IFS=$as_save_IFS 3825 3826rm -rf conftest.one conftest.two conftest.dir 3827 3828fi 3829 if test "${ac_cv_path_install+set}" = set; then 3830 INSTALL=$ac_cv_path_install 3831 else 3832 # As a last resort, use the slow shell script. Don't cache a 3833 # value for INSTALL within a source directory, because that will 3834 # break other packages using the cache if that directory is 3835 # removed, or if the value is a relative name. 3836 INSTALL=$ac_install_sh 3837 fi 3838fi 3839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3840$as_echo "$INSTALL" >&6; } 3841 3842# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3843# It thinks the first close brace ends the variable substitution. 3844test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3845 3846test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3847 3848test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3849 3850test "$program_prefix" != NONE && 3851 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3852# Use a double $ so make ignores it. 3853test "$program_suffix" != NONE && 3854 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3855# Double any \ or $. 3856# By default was `s,x,x', remove it if useless. 3857ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3858program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3859 3860# expand $ac_aux_dir to an absolute path 3861am_aux_dir=`cd $ac_aux_dir && pwd` 3862 3863if test x"${MISSING+set}" != xset; then 3864 case $am_aux_dir in 3865 *\ * | *\ *) 3866 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3867 *) 3868 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3869 esac 3870fi 3871# Use eval to expand $SHELL 3872if eval "$MISSING --is-lightweight"; then 3873 am_missing_run="$MISSING " 3874else 3875 am_missing_run= 3876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3877$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3878fi 3879 3880if test x"${install_sh}" != xset; then 3881 case $am_aux_dir in 3882 *\ * | *\ *) 3883 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3884 *) 3885 install_sh="\${SHELL} $am_aux_dir/install-sh" 3886 esac 3887fi 3888 3889# Installed binaries are usually stripped using 'strip' when the user 3890# run "make install-strip". However 'strip' might not be the right 3891# tool to use in cross-compilation environments, therefore Automake 3892# will honor the 'STRIP' environment variable to overrule this program. 3893if test "$cross_compiling" != no; then 3894 if test -n "$ac_tool_prefix"; then 3895 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3896set dummy ${ac_tool_prefix}strip; ac_word=$2 3897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3898$as_echo_n "checking for $ac_word... " >&6; } 3899if ${ac_cv_prog_STRIP+:} false; then : 3900 $as_echo_n "(cached) " >&6 3901else 3902 if test -n "$STRIP"; then 3903 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3904else 3905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3906for as_dir in $PATH 3907do 3908 IFS=$as_save_IFS 3909 test -z "$as_dir" && as_dir=. 3910 for ac_exec_ext in '' $ac_executable_extensions; do 3911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3912 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3914 break 2 3915 fi 3916done 3917 done 3918IFS=$as_save_IFS 3919 3920fi 3921fi 3922STRIP=$ac_cv_prog_STRIP 3923if test -n "$STRIP"; then 3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3925$as_echo "$STRIP" >&6; } 3926else 3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3928$as_echo "no" >&6; } 3929fi 3930 3931 3932fi 3933if test -z "$ac_cv_prog_STRIP"; then 3934 ac_ct_STRIP=$STRIP 3935 # Extract the first word of "strip", so it can be a program name with args. 3936set dummy strip; ac_word=$2 3937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3938$as_echo_n "checking for $ac_word... " >&6; } 3939if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3940 $as_echo_n "(cached) " >&6 3941else 3942 if test -n "$ac_ct_STRIP"; then 3943 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3944else 3945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3946for as_dir in $PATH 3947do 3948 IFS=$as_save_IFS 3949 test -z "$as_dir" && as_dir=. 3950 for ac_exec_ext in '' $ac_executable_extensions; do 3951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3952 ac_cv_prog_ac_ct_STRIP="strip" 3953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3954 break 2 3955 fi 3956done 3957 done 3958IFS=$as_save_IFS 3959 3960fi 3961fi 3962ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3963if test -n "$ac_ct_STRIP"; then 3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3965$as_echo "$ac_ct_STRIP" >&6; } 3966else 3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3968$as_echo "no" >&6; } 3969fi 3970 3971 if test "x$ac_ct_STRIP" = x; then 3972 STRIP=":" 3973 else 3974 case $cross_compiling:$ac_tool_warned in 3975yes:) 3976{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3977$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3978ac_tool_warned=yes ;; 3979esac 3980 STRIP=$ac_ct_STRIP 3981 fi 3982else 3983 STRIP="$ac_cv_prog_STRIP" 3984fi 3985 3986fi 3987INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3988 3989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3990$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3991if test -z "$MKDIR_P"; then 3992 if ${ac_cv_path_mkdir+:} false; then : 3993 $as_echo_n "(cached) " >&6 3994else 3995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3996for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3997do 3998 IFS=$as_save_IFS 3999 test -z "$as_dir" && as_dir=. 4000 for ac_prog in mkdir gmkdir; do 4001 for ac_exec_ext in '' $ac_executable_extensions; do 4002 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 4003 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 4004 'mkdir (GNU coreutils) '* | \ 4005 'mkdir (coreutils) '* | \ 4006 'mkdir (fileutils) '4.1*) 4007 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 4008 break 3;; 4009 esac 4010 done 4011 done 4012 done 4013IFS=$as_save_IFS 4014 4015fi 4016 4017 test -d ./--version && rmdir ./--version 4018 if test "${ac_cv_path_mkdir+set}" = set; then 4019 MKDIR_P="$ac_cv_path_mkdir -p" 4020 else 4021 # As a last resort, use the slow shell script. Don't cache a 4022 # value for MKDIR_P within a source directory, because that will 4023 # break other packages using the cache if that directory is 4024 # removed, or if the value is a relative name. 4025 MKDIR_P="$ac_install_sh -d" 4026 fi 4027fi 4028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4029$as_echo "$MKDIR_P" >&6; } 4030 4031for ac_prog in gawk mawk nawk awk 4032do 4033 # Extract the first word of "$ac_prog", so it can be a program name with args. 4034set dummy $ac_prog; ac_word=$2 4035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4036$as_echo_n "checking for $ac_word... " >&6; } 4037if ${ac_cv_prog_AWK+:} false; then : 4038 $as_echo_n "(cached) " >&6 4039else 4040 if test -n "$AWK"; then 4041 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4042else 4043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4044for as_dir in $PATH 4045do 4046 IFS=$as_save_IFS 4047 test -z "$as_dir" && as_dir=. 4048 for ac_exec_ext in '' $ac_executable_extensions; do 4049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4050 ac_cv_prog_AWK="$ac_prog" 4051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4052 break 2 4053 fi 4054done 4055 done 4056IFS=$as_save_IFS 4057 4058fi 4059fi 4060AWK=$ac_cv_prog_AWK 4061if test -n "$AWK"; then 4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4063$as_echo "$AWK" >&6; } 4064else 4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4066$as_echo "no" >&6; } 4067fi 4068 4069 4070 test -n "$AWK" && break 4071done 4072 4073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4074$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4075set x ${MAKE-make} 4076ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4077if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4078 $as_echo_n "(cached) " >&6 4079else 4080 cat >conftest.make <<\_ACEOF 4081SHELL = /bin/sh 4082all: 4083 @echo '@@@%%%=$(MAKE)=@@@%%%' 4084_ACEOF 4085# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4086case `${MAKE-make} -f conftest.make 2>/dev/null` in 4087 *@@@%%%=?*=@@@%%%*) 4088 eval ac_cv_prog_make_${ac_make}_set=yes;; 4089 *) 4090 eval ac_cv_prog_make_${ac_make}_set=no;; 4091esac 4092rm -f conftest.make 4093fi 4094if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4096$as_echo "yes" >&6; } 4097 SET_MAKE= 4098else 4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4100$as_echo "no" >&6; } 4101 SET_MAKE="MAKE=${MAKE-make}" 4102fi 4103 4104rm -rf .tst 2>/dev/null 4105mkdir .tst 2>/dev/null 4106if test -d .tst; then 4107 am__leading_dot=. 4108else 4109 am__leading_dot=_ 4110fi 4111rmdir .tst 2>/dev/null 4112 4113# Check whether --enable-silent-rules was given. 4114if test "${enable_silent_rules+set}" = set; then : 4115 enableval=$enable_silent_rules; 4116fi 4117 4118case $enable_silent_rules in # ((( 4119 yes) AM_DEFAULT_VERBOSITY=0;; 4120 no) AM_DEFAULT_VERBOSITY=1;; 4121 *) AM_DEFAULT_VERBOSITY=1;; 4122esac 4123am_make=${MAKE-make} 4124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4125$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4126if ${am_cv_make_support_nested_variables+:} false; then : 4127 $as_echo_n "(cached) " >&6 4128else 4129 if $as_echo 'TRUE=$(BAR$(V)) 4130BAR0=false 4131BAR1=true 4132V=1 4133am__doit: 4134 @$(TRUE) 4135.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4136 am_cv_make_support_nested_variables=yes 4137else 4138 am_cv_make_support_nested_variables=no 4139fi 4140fi 4141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4142$as_echo "$am_cv_make_support_nested_variables" >&6; } 4143if test $am_cv_make_support_nested_variables = yes; then 4144 AM_V='$(V)' 4145 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4146else 4147 AM_V=$AM_DEFAULT_VERBOSITY 4148 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4149fi 4150AM_BACKSLASH='\' 4151 4152if test "`cd $srcdir && pwd`" != "`pwd`"; then 4153 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4154 # is not polluted with repeated "-I." 4155 am__isrc=' -I$(srcdir)' 4156 # test to see if srcdir already configured 4157 if test -f $srcdir/config.status; then 4158 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4159 fi 4160fi 4161 4162# test whether we have cygpath 4163if test -z "$CYGPATH_W"; then 4164 if (cygpath --version) >/dev/null 2>/dev/null; then 4165 CYGPATH_W='cygpath -w' 4166 else 4167 CYGPATH_W=echo 4168 fi 4169fi 4170 4171 4172# Define the identity of the package. 4173 PACKAGE='ImageMagick' 4174 VERSION='7.0.0-0' 4175 4176 4177cat >>confdefs.h <<_ACEOF 4178#define PACKAGE "$PACKAGE" 4179_ACEOF 4180 4181 4182cat >>confdefs.h <<_ACEOF 4183#define VERSION "$VERSION" 4184_ACEOF 4185 4186# Some tools Automake needs. 4187 4188ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4189 4190 4191AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4192 4193 4194AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4195 4196 4197AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4198 4199 4200MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4201 4202# For better backward compatibility. To be removed once Automake 1.9.x 4203# dies out for good. For more background, see: 4204# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4205# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4206mkdir_p='$(MKDIR_P)' 4207 4208# We need awk for the "check" target. The system "awk" is bad on 4209# some platforms. 4210# Always define AMTAR for backward compatibility. Yes, it's still used 4211# in the wild :-( We should find a proper way to deprecate it ... 4212AMTAR='$${TAR-tar}' 4213 4214am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4215 4216 4217 4218 4219 4220 4221# Enable support for silent build rules 4222# Check whether --enable-silent-rules was given. 4223if test "${enable_silent_rules+set}" = set; then : 4224 enableval=$enable_silent_rules; 4225fi 4226 4227case $enable_silent_rules in # ((( 4228 yes) AM_DEFAULT_VERBOSITY=0;; 4229 no) AM_DEFAULT_VERBOSITY=1;; 4230 *) AM_DEFAULT_VERBOSITY=0;; 4231esac 4232am_make=${MAKE-make} 4233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4234$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4235if ${am_cv_make_support_nested_variables+:} false; then : 4236 $as_echo_n "(cached) " >&6 4237else 4238 if $as_echo 'TRUE=$(BAR$(V)) 4239BAR0=false 4240BAR1=true 4241V=1 4242am__doit: 4243 @$(TRUE) 4244.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4245 am_cv_make_support_nested_variables=yes 4246else 4247 am_cv_make_support_nested_variables=no 4248fi 4249fi 4250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4251$as_echo "$am_cv_make_support_nested_variables" >&6; } 4252if test $am_cv_make_support_nested_variables = yes; then 4253 AM_V='$(V)' 4254 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4255else 4256 AM_V=$AM_DEFAULT_VERBOSITY 4257 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4258fi 4259AM_BACKSLASH='\' 4260 4261 4262MAGICK_LIB_VERSION="0x" 4263if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then 4264 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0 4265fi 4266MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT} 4267if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then 4268 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0 4269fi 4270MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE} 4271if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then 4272 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0 4273fi 4274MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION} 4275 4276 4277# Definition used to define MagickLibVersionText in version.h 4278MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}" 4279 4280 4281# Definition used to define MagickLibVersionNumber in version.h 4282MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}" 4283 4284 4285# Regenerate config.status if ChangeLog or version.sh is updated. 4286CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh' 4287 4288 4289PERLMAINCC=$CC 4290 4291MAGICK_CFLAGS='' 4292MAGICK_CPPFLAGS=$CPPFLAGS_USER 4293MAGICK_PCFLAGS=$CPPFLAGS_USER 4294MAGICK_LDFLAGS='' 4295MAGICK_LIBS='' 4296MAGICK_FEATURES='' 4297 4298# 4299# Evaluate shell variable equivalents to Makefile directory variables 4300# 4301if test "x$prefix" = xNONE; then 4302 prefix=$ac_default_prefix 4303fi 4304# Let make expand exec_prefix. 4305if test "x$exec_prefix" = xNONE; then 4306 exec_prefix='${prefix}' 4307fi 4308 4309# 4310eval "eval PREFIX_DIR=${prefix}" 4311 4312eval "eval EXEC_PREFIX_DIR=${exec_prefix}" 4313 4314eval "eval BIN_DIR=$bindir" 4315 4316eval "eval SBIN_DIR=$sbindir" 4317 4318eval "eval LIBEXEC_DIR=$libexecdir" 4319 4320eval "eval DATA_DIR=$datadir" 4321 4322eval "eval DOC_DIR=$datadir/doc" 4323 4324eval "eval SYSCONF_DIR=$sysconfdir" 4325 4326eval "eval SHAREDSTATE_DIR=$sharedstatedir" 4327 4328eval "eval LOCALSTATE_DIR=$localstatedir" 4329 4330eval "eval LIB_DIR=$libdir" 4331 4332eval "eval INCLUDE_DIR=$includedir" 4333 4334eval "eval PERSISTINCLUDE_DIR=$oldincludedir" 4335 4336eval "eval INFO_DIR=$infodir" 4337 4338eval "eval MAN_DIR=$mandir" 4339 4340 4341# Get full paths to source and build directories 4342srcdirfull="`cd $srcdir && pwd`" 4343builddir="`pwd`" 4344 4345# 4346# Compute variables useful for running uninstalled software. 4347# 4348MAGICK_CODER_MODULE_PATH="${builddir}/coders" 4349MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config" 4350MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config" 4351MAGICK_FILTER_MODULE_PATH="${builddir}/filters" 4352DIRSEP=':' 4353case "${build_os}" in 4354 mingw* ) 4355 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0` 4356 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0` 4357 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0` 4358 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0` 4359 DIRSEP=';' 4360 ;; 4361esac 4362case "${host_os}" in 4363 mingw* ) 4364 DIRSEP=';' 4365 ;; 4366esac 4367 4368 4369 4370 4371 4372 4373 4374# 4375# Enable OS features. 4376# 4377DEPDIR="${am__leading_dot}deps" 4378 4379ac_config_commands="$ac_config_commands depfiles" 4380 4381 4382am_make=${MAKE-make} 4383cat > confinc << 'END' 4384am__doit: 4385 @echo this is the am__doit target 4386.PHONY: am__doit 4387END 4388# If we don't find an include directive, just comment out the code. 4389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4390$as_echo_n "checking for style of include used by $am_make... " >&6; } 4391am__include="#" 4392am__quote= 4393_am_result=none 4394# First try GNU make style include. 4395echo "include confinc" > confmf 4396# Ignore all kinds of additional output from 'make'. 4397case `$am_make -s -f confmf 2> /dev/null` in #( 4398*the\ am__doit\ target*) 4399 am__include=include 4400 am__quote= 4401 _am_result=GNU 4402 ;; 4403esac 4404# Now try BSD make style include. 4405if test "$am__include" = "#"; then 4406 echo '.include "confinc"' > confmf 4407 case `$am_make -s -f confmf 2> /dev/null` in #( 4408 *the\ am__doit\ target*) 4409 am__include=.include 4410 am__quote="\"" 4411 _am_result=BSD 4412 ;; 4413 esac 4414fi 4415 4416 4417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4418$as_echo "$_am_result" >&6; } 4419rm -f confinc confmf 4420 4421# Check whether --enable-dependency-tracking was given. 4422if test "${enable_dependency_tracking+set}" = set; then : 4423 enableval=$enable_dependency_tracking; 4424fi 4425 4426if test "x$enable_dependency_tracking" != xno; then 4427 am_depcomp="$ac_aux_dir/depcomp" 4428 AMDEPBACKSLASH='\' 4429 am__nodep='_no' 4430fi 4431 if test "x$enable_dependency_tracking" != xno; then 4432 AMDEP_TRUE= 4433 AMDEP_FALSE='#' 4434else 4435 AMDEP_TRUE='#' 4436 AMDEP_FALSE= 4437fi 4438 4439 4440ac_ext=c 4441ac_cpp='$CPP $CPPFLAGS' 4442ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4443ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4444ac_compiler_gnu=$ac_cv_c_compiler_gnu 4445if test -n "$ac_tool_prefix"; then 4446 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4447set dummy ${ac_tool_prefix}gcc; ac_word=$2 4448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4449$as_echo_n "checking for $ac_word... " >&6; } 4450if ${ac_cv_prog_CC+:} false; then : 4451 $as_echo_n "(cached) " >&6 4452else 4453 if test -n "$CC"; then 4454 ac_cv_prog_CC="$CC" # Let the user override the test. 4455else 4456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4457for as_dir in $PATH 4458do 4459 IFS=$as_save_IFS 4460 test -z "$as_dir" && as_dir=. 4461 for ac_exec_ext in '' $ac_executable_extensions; do 4462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4463 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4465 break 2 4466 fi 4467done 4468 done 4469IFS=$as_save_IFS 4470 4471fi 4472fi 4473CC=$ac_cv_prog_CC 4474if test -n "$CC"; then 4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4476$as_echo "$CC" >&6; } 4477else 4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4479$as_echo "no" >&6; } 4480fi 4481 4482 4483fi 4484if test -z "$ac_cv_prog_CC"; then 4485 ac_ct_CC=$CC 4486 # Extract the first word of "gcc", so it can be a program name with args. 4487set dummy gcc; ac_word=$2 4488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4489$as_echo_n "checking for $ac_word... " >&6; } 4490if ${ac_cv_prog_ac_ct_CC+:} false; then : 4491 $as_echo_n "(cached) " >&6 4492else 4493 if test -n "$ac_ct_CC"; then 4494 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4495else 4496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4497for as_dir in $PATH 4498do 4499 IFS=$as_save_IFS 4500 test -z "$as_dir" && as_dir=. 4501 for ac_exec_ext in '' $ac_executable_extensions; do 4502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4503 ac_cv_prog_ac_ct_CC="gcc" 4504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4505 break 2 4506 fi 4507done 4508 done 4509IFS=$as_save_IFS 4510 4511fi 4512fi 4513ac_ct_CC=$ac_cv_prog_ac_ct_CC 4514if test -n "$ac_ct_CC"; then 4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4516$as_echo "$ac_ct_CC" >&6; } 4517else 4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4519$as_echo "no" >&6; } 4520fi 4521 4522 if test "x$ac_ct_CC" = x; then 4523 CC="" 4524 else 4525 case $cross_compiling:$ac_tool_warned in 4526yes:) 4527{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4528$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4529ac_tool_warned=yes ;; 4530esac 4531 CC=$ac_ct_CC 4532 fi 4533else 4534 CC="$ac_cv_prog_CC" 4535fi 4536 4537if test -z "$CC"; then 4538 if test -n "$ac_tool_prefix"; then 4539 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4540set dummy ${ac_tool_prefix}cc; ac_word=$2 4541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4542$as_echo_n "checking for $ac_word... " >&6; } 4543if ${ac_cv_prog_CC+:} false; then : 4544 $as_echo_n "(cached) " >&6 4545else 4546 if test -n "$CC"; then 4547 ac_cv_prog_CC="$CC" # Let the user override the test. 4548else 4549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4550for as_dir in $PATH 4551do 4552 IFS=$as_save_IFS 4553 test -z "$as_dir" && as_dir=. 4554 for ac_exec_ext in '' $ac_executable_extensions; do 4555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4556 ac_cv_prog_CC="${ac_tool_prefix}cc" 4557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4558 break 2 4559 fi 4560done 4561 done 4562IFS=$as_save_IFS 4563 4564fi 4565fi 4566CC=$ac_cv_prog_CC 4567if test -n "$CC"; then 4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4569$as_echo "$CC" >&6; } 4570else 4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4572$as_echo "no" >&6; } 4573fi 4574 4575 4576 fi 4577fi 4578if test -z "$CC"; then 4579 # Extract the first word of "cc", so it can be a program name with args. 4580set dummy cc; ac_word=$2 4581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4582$as_echo_n "checking for $ac_word... " >&6; } 4583if ${ac_cv_prog_CC+:} false; then : 4584 $as_echo_n "(cached) " >&6 4585else 4586 if test -n "$CC"; then 4587 ac_cv_prog_CC="$CC" # Let the user override the test. 4588else 4589 ac_prog_rejected=no 4590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4591for as_dir in $PATH 4592do 4593 IFS=$as_save_IFS 4594 test -z "$as_dir" && as_dir=. 4595 for ac_exec_ext in '' $ac_executable_extensions; do 4596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4597 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4598 ac_prog_rejected=yes 4599 continue 4600 fi 4601 ac_cv_prog_CC="cc" 4602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4603 break 2 4604 fi 4605done 4606 done 4607IFS=$as_save_IFS 4608 4609if test $ac_prog_rejected = yes; then 4610 # We found a bogon in the path, so make sure we never use it. 4611 set dummy $ac_cv_prog_CC 4612 shift 4613 if test $# != 0; then 4614 # We chose a different compiler from the bogus one. 4615 # However, it has the same basename, so the bogon will be chosen 4616 # first if we set CC to just the basename; use the full file name. 4617 shift 4618 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4619 fi 4620fi 4621fi 4622fi 4623CC=$ac_cv_prog_CC 4624if test -n "$CC"; then 4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4626$as_echo "$CC" >&6; } 4627else 4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4629$as_echo "no" >&6; } 4630fi 4631 4632 4633fi 4634if test -z "$CC"; then 4635 if test -n "$ac_tool_prefix"; then 4636 for ac_prog in cl.exe 4637 do 4638 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4639set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4641$as_echo_n "checking for $ac_word... " >&6; } 4642if ${ac_cv_prog_CC+:} false; then : 4643 $as_echo_n "(cached) " >&6 4644else 4645 if test -n "$CC"; then 4646 ac_cv_prog_CC="$CC" # Let the user override the test. 4647else 4648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4649for as_dir in $PATH 4650do 4651 IFS=$as_save_IFS 4652 test -z "$as_dir" && as_dir=. 4653 for ac_exec_ext in '' $ac_executable_extensions; do 4654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4655 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4657 break 2 4658 fi 4659done 4660 done 4661IFS=$as_save_IFS 4662 4663fi 4664fi 4665CC=$ac_cv_prog_CC 4666if test -n "$CC"; then 4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4668$as_echo "$CC" >&6; } 4669else 4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4671$as_echo "no" >&6; } 4672fi 4673 4674 4675 test -n "$CC" && break 4676 done 4677fi 4678if test -z "$CC"; then 4679 ac_ct_CC=$CC 4680 for ac_prog in cl.exe 4681do 4682 # Extract the first word of "$ac_prog", so it can be a program name with args. 4683set dummy $ac_prog; ac_word=$2 4684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4685$as_echo_n "checking for $ac_word... " >&6; } 4686if ${ac_cv_prog_ac_ct_CC+:} false; then : 4687 $as_echo_n "(cached) " >&6 4688else 4689 if test -n "$ac_ct_CC"; then 4690 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4691else 4692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4693for as_dir in $PATH 4694do 4695 IFS=$as_save_IFS 4696 test -z "$as_dir" && as_dir=. 4697 for ac_exec_ext in '' $ac_executable_extensions; do 4698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4699 ac_cv_prog_ac_ct_CC="$ac_prog" 4700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4701 break 2 4702 fi 4703done 4704 done 4705IFS=$as_save_IFS 4706 4707fi 4708fi 4709ac_ct_CC=$ac_cv_prog_ac_ct_CC 4710if test -n "$ac_ct_CC"; then 4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4712$as_echo "$ac_ct_CC" >&6; } 4713else 4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4715$as_echo "no" >&6; } 4716fi 4717 4718 4719 test -n "$ac_ct_CC" && break 4720done 4721 4722 if test "x$ac_ct_CC" = x; then 4723 CC="" 4724 else 4725 case $cross_compiling:$ac_tool_warned in 4726yes:) 4727{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4728$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4729ac_tool_warned=yes ;; 4730esac 4731 CC=$ac_ct_CC 4732 fi 4733fi 4734 4735fi 4736 4737 4738test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4739$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4740as_fn_error $? "no acceptable C compiler found in \$PATH 4741See \`config.log' for more details" "$LINENO" 5; } 4742 4743# Provide some information about the compiler. 4744$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4745set X $ac_compile 4746ac_compiler=$2 4747for ac_option in --version -v -V -qversion; do 4748 { { ac_try="$ac_compiler $ac_option >&5" 4749case "(($ac_try" in 4750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4751 *) ac_try_echo=$ac_try;; 4752esac 4753eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4754$as_echo "$ac_try_echo"; } >&5 4755 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4756 ac_status=$? 4757 if test -s conftest.err; then 4758 sed '10a\ 4759... rest of stderr output deleted ... 4760 10q' conftest.err >conftest.er1 4761 cat conftest.er1 >&5 4762 fi 4763 rm -f conftest.er1 conftest.err 4764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4765 test $ac_status = 0; } 4766done 4767 4768cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4769/* end confdefs.h. */ 4770 4771int 4772main () 4773{ 4774 4775 ; 4776 return 0; 4777} 4778_ACEOF 4779ac_clean_files_save=$ac_clean_files 4780ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4781# Try to create an executable without -o first, disregard a.out. 4782# It will help us diagnose broken compilers, and finding out an intuition 4783# of exeext. 4784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4785$as_echo_n "checking whether the C compiler works... " >&6; } 4786ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4787 4788# The possible output files: 4789ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4790 4791ac_rmfiles= 4792for ac_file in $ac_files 4793do 4794 case $ac_file in 4795 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4796 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4797 esac 4798done 4799rm -f $ac_rmfiles 4800 4801if { { ac_try="$ac_link_default" 4802case "(($ac_try" in 4803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4804 *) ac_try_echo=$ac_try;; 4805esac 4806eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4807$as_echo "$ac_try_echo"; } >&5 4808 (eval "$ac_link_default") 2>&5 4809 ac_status=$? 4810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4811 test $ac_status = 0; }; then : 4812 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4813# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4814# in a Makefile. We should not override ac_cv_exeext if it was cached, 4815# so that the user can short-circuit this test for compilers unknown to 4816# Autoconf. 4817for ac_file in $ac_files '' 4818do 4819 test -f "$ac_file" || continue 4820 case $ac_file in 4821 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4822 ;; 4823 [ab].out ) 4824 # We found the default executable, but exeext='' is most 4825 # certainly right. 4826 break;; 4827 *.* ) 4828 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4829 then :; else 4830 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4831 fi 4832 # We set ac_cv_exeext here because the later test for it is not 4833 # safe: cross compilers may not add the suffix if given an `-o' 4834 # argument, so we may need to know it at that point already. 4835 # Even if this section looks crufty: it has the advantage of 4836 # actually working. 4837 break;; 4838 * ) 4839 break;; 4840 esac 4841done 4842test "$ac_cv_exeext" = no && ac_cv_exeext= 4843 4844else 4845 ac_file='' 4846fi 4847if test -z "$ac_file"; then : 4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4849$as_echo "no" >&6; } 4850$as_echo "$as_me: failed program was:" >&5 4851sed 's/^/| /' conftest.$ac_ext >&5 4852 4853{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4854$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4855as_fn_error 77 "C compiler cannot create executables 4856See \`config.log' for more details" "$LINENO" 5; } 4857else 4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4859$as_echo "yes" >&6; } 4860fi 4861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4862$as_echo_n "checking for C compiler default output file name... " >&6; } 4863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4864$as_echo "$ac_file" >&6; } 4865ac_exeext=$ac_cv_exeext 4866 4867rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4868ac_clean_files=$ac_clean_files_save 4869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4870$as_echo_n "checking for suffix of executables... " >&6; } 4871if { { ac_try="$ac_link" 4872case "(($ac_try" in 4873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4874 *) ac_try_echo=$ac_try;; 4875esac 4876eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4877$as_echo "$ac_try_echo"; } >&5 4878 (eval "$ac_link") 2>&5 4879 ac_status=$? 4880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4881 test $ac_status = 0; }; then : 4882 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4883# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4884# work properly (i.e., refer to `conftest.exe'), while it won't with 4885# `rm'. 4886for ac_file in conftest.exe conftest conftest.*; do 4887 test -f "$ac_file" || continue 4888 case $ac_file in 4889 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4890 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4891 break;; 4892 * ) break;; 4893 esac 4894done 4895else 4896 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4897$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4898as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4899See \`config.log' for more details" "$LINENO" 5; } 4900fi 4901rm -f conftest conftest$ac_cv_exeext 4902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4903$as_echo "$ac_cv_exeext" >&6; } 4904 4905rm -f conftest.$ac_ext 4906EXEEXT=$ac_cv_exeext 4907ac_exeext=$EXEEXT 4908cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4909/* end confdefs.h. */ 4910#include <stdio.h> 4911int 4912main () 4913{ 4914FILE *f = fopen ("conftest.out", "w"); 4915 return ferror (f) || fclose (f) != 0; 4916 4917 ; 4918 return 0; 4919} 4920_ACEOF 4921ac_clean_files="$ac_clean_files conftest.out" 4922# Check that the compiler produces executables we can run. If not, either 4923# the compiler is broken, or we cross compile. 4924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4925$as_echo_n "checking whether we are cross compiling... " >&6; } 4926if test "$cross_compiling" != yes; then 4927 { { ac_try="$ac_link" 4928case "(($ac_try" in 4929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4930 *) ac_try_echo=$ac_try;; 4931esac 4932eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4933$as_echo "$ac_try_echo"; } >&5 4934 (eval "$ac_link") 2>&5 4935 ac_status=$? 4936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4937 test $ac_status = 0; } 4938 if { ac_try='./conftest$ac_cv_exeext' 4939 { { case "(($ac_try" in 4940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4941 *) ac_try_echo=$ac_try;; 4942esac 4943eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4944$as_echo "$ac_try_echo"; } >&5 4945 (eval "$ac_try") 2>&5 4946 ac_status=$? 4947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4948 test $ac_status = 0; }; }; then 4949 cross_compiling=no 4950 else 4951 if test "$cross_compiling" = maybe; then 4952 cross_compiling=yes 4953 else 4954 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4955$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4956as_fn_error $? "cannot run C compiled programs. 4957If you meant to cross compile, use \`--host'. 4958See \`config.log' for more details" "$LINENO" 5; } 4959 fi 4960 fi 4961fi 4962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4963$as_echo "$cross_compiling" >&6; } 4964 4965rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4966ac_clean_files=$ac_clean_files_save 4967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4968$as_echo_n "checking for suffix of object files... " >&6; } 4969if ${ac_cv_objext+:} false; then : 4970 $as_echo_n "(cached) " >&6 4971else 4972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4973/* end confdefs.h. */ 4974 4975int 4976main () 4977{ 4978 4979 ; 4980 return 0; 4981} 4982_ACEOF 4983rm -f conftest.o conftest.obj 4984if { { ac_try="$ac_compile" 4985case "(($ac_try" in 4986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4987 *) ac_try_echo=$ac_try;; 4988esac 4989eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4990$as_echo "$ac_try_echo"; } >&5 4991 (eval "$ac_compile") 2>&5 4992 ac_status=$? 4993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4994 test $ac_status = 0; }; then : 4995 for ac_file in conftest.o conftest.obj conftest.*; do 4996 test -f "$ac_file" || continue; 4997 case $ac_file in 4998 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4999 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 5000 break;; 5001 esac 5002done 5003else 5004 $as_echo "$as_me: failed program was:" >&5 5005sed 's/^/| /' conftest.$ac_ext >&5 5006 5007{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5008$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5009as_fn_error $? "cannot compute suffix of object files: cannot compile 5010See \`config.log' for more details" "$LINENO" 5; } 5011fi 5012rm -f conftest.$ac_cv_objext conftest.$ac_ext 5013fi 5014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 5015$as_echo "$ac_cv_objext" >&6; } 5016OBJEXT=$ac_cv_objext 5017ac_objext=$OBJEXT 5018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 5019$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 5020if ${ac_cv_c_compiler_gnu+:} false; then : 5021 $as_echo_n "(cached) " >&6 5022else 5023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5024/* end confdefs.h. */ 5025 5026int 5027main () 5028{ 5029#ifndef __GNUC__ 5030 choke me 5031#endif 5032 5033 ; 5034 return 0; 5035} 5036_ACEOF 5037if ac_fn_c_try_compile "$LINENO"; then : 5038 ac_compiler_gnu=yes 5039else 5040 ac_compiler_gnu=no 5041fi 5042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5043ac_cv_c_compiler_gnu=$ac_compiler_gnu 5044 5045fi 5046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5047$as_echo "$ac_cv_c_compiler_gnu" >&6; } 5048if test $ac_compiler_gnu = yes; then 5049 GCC=yes 5050else 5051 GCC= 5052fi 5053ac_test_CFLAGS=${CFLAGS+set} 5054ac_save_CFLAGS=$CFLAGS 5055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5056$as_echo_n "checking whether $CC accepts -g... " >&6; } 5057if ${ac_cv_prog_cc_g+:} false; then : 5058 $as_echo_n "(cached) " >&6 5059else 5060 ac_save_c_werror_flag=$ac_c_werror_flag 5061 ac_c_werror_flag=yes 5062 ac_cv_prog_cc_g=no 5063 CFLAGS="-g" 5064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5065/* end confdefs.h. */ 5066 5067int 5068main () 5069{ 5070 5071 ; 5072 return 0; 5073} 5074_ACEOF 5075if ac_fn_c_try_compile "$LINENO"; then : 5076 ac_cv_prog_cc_g=yes 5077else 5078 CFLAGS="" 5079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5080/* end confdefs.h. */ 5081 5082int 5083main () 5084{ 5085 5086 ; 5087 return 0; 5088} 5089_ACEOF 5090if ac_fn_c_try_compile "$LINENO"; then : 5091 5092else 5093 ac_c_werror_flag=$ac_save_c_werror_flag 5094 CFLAGS="-g" 5095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5096/* end confdefs.h. */ 5097 5098int 5099main () 5100{ 5101 5102 ; 5103 return 0; 5104} 5105_ACEOF 5106if ac_fn_c_try_compile "$LINENO"; then : 5107 ac_cv_prog_cc_g=yes 5108fi 5109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5110fi 5111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5112fi 5113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5114 ac_c_werror_flag=$ac_save_c_werror_flag 5115fi 5116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5117$as_echo "$ac_cv_prog_cc_g" >&6; } 5118if test "$ac_test_CFLAGS" = set; then 5119 CFLAGS=$ac_save_CFLAGS 5120elif test $ac_cv_prog_cc_g = yes; then 5121 if test "$GCC" = yes; then 5122 CFLAGS="-g -O2" 5123 else 5124 CFLAGS="-g" 5125 fi 5126else 5127 if test "$GCC" = yes; then 5128 CFLAGS="-O2" 5129 else 5130 CFLAGS= 5131 fi 5132fi 5133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5134$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5135if ${ac_cv_prog_cc_c89+:} false; then : 5136 $as_echo_n "(cached) " >&6 5137else 5138 ac_cv_prog_cc_c89=no 5139ac_save_CC=$CC 5140cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5141/* end confdefs.h. */ 5142#include <stdarg.h> 5143#include <stdio.h> 5144struct stat; 5145/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5146struct buf { int x; }; 5147FILE * (*rcsopen) (struct buf *, struct stat *, int); 5148static char *e (p, i) 5149 char **p; 5150 int i; 5151{ 5152 return p[i]; 5153} 5154static char *f (char * (*g) (char **, int), char **p, ...) 5155{ 5156 char *s; 5157 va_list v; 5158 va_start (v,p); 5159 s = g (p, va_arg (v,int)); 5160 va_end (v); 5161 return s; 5162} 5163 5164/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5165 function prototypes and stuff, but not '\xHH' hex character constants. 5166 These don't provoke an error unfortunately, instead are silently treated 5167 as 'x'. The following induces an error, until -std is added to get 5168 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5169 array size at least. It's necessary to write '\x00'==0 to get something 5170 that's true only with -std. */ 5171int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5172 5173/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5174 inside strings and character constants. */ 5175#define FOO(x) 'x' 5176int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5177 5178int test (int i, double x); 5179struct s1 {int (*f) (int a);}; 5180struct s2 {int (*f) (double a);}; 5181int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5182int argc; 5183char **argv; 5184int 5185main () 5186{ 5187return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5188 ; 5189 return 0; 5190} 5191_ACEOF 5192for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5193 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5194do 5195 CC="$ac_save_CC $ac_arg" 5196 if ac_fn_c_try_compile "$LINENO"; then : 5197 ac_cv_prog_cc_c89=$ac_arg 5198fi 5199rm -f core conftest.err conftest.$ac_objext 5200 test "x$ac_cv_prog_cc_c89" != "xno" && break 5201done 5202rm -f conftest.$ac_ext 5203CC=$ac_save_CC 5204 5205fi 5206# AC_CACHE_VAL 5207case "x$ac_cv_prog_cc_c89" in 5208 x) 5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5210$as_echo "none needed" >&6; } ;; 5211 xno) 5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5213$as_echo "unsupported" >&6; } ;; 5214 *) 5215 CC="$CC $ac_cv_prog_cc_c89" 5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5217$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5218esac 5219if test "x$ac_cv_prog_cc_c89" != xno; then : 5220 5221fi 5222 5223ac_ext=c 5224ac_cpp='$CPP $CPPFLAGS' 5225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5227ac_compiler_gnu=$ac_cv_c_compiler_gnu 5228 5229depcc="$CC" am_compiler_list= 5230 5231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5232$as_echo_n "checking dependency style of $depcc... " >&6; } 5233if ${am_cv_CC_dependencies_compiler_type+:} false; then : 5234 $as_echo_n "(cached) " >&6 5235else 5236 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5237 # We make a subdir and do the tests there. Otherwise we can end up 5238 # making bogus files that we don't know about and never remove. For 5239 # instance it was reported that on HP-UX the gcc test will end up 5240 # making a dummy file named 'D' -- because '-MD' means "put the output 5241 # in D". 5242 rm -rf conftest.dir 5243 mkdir conftest.dir 5244 # Copy depcomp to subdir because otherwise we won't find it if we're 5245 # using a relative directory. 5246 cp "$am_depcomp" conftest.dir 5247 cd conftest.dir 5248 # We will build objects and dependencies in a subdirectory because 5249 # it helps to detect inapplicable dependency modes. For instance 5250 # both Tru64's cc and ICC support -MD to output dependencies as a 5251 # side effect of compilation, but ICC will put the dependencies in 5252 # the current directory while Tru64 will put them in the object 5253 # directory. 5254 mkdir sub 5255 5256 am_cv_CC_dependencies_compiler_type=none 5257 if test "$am_compiler_list" = ""; then 5258 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5259 fi 5260 am__universal=false 5261 case " $depcc " in #( 5262 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5263 esac 5264 5265 for depmode in $am_compiler_list; do 5266 # Setup a source with many dependencies, because some compilers 5267 # like to wrap large dependency lists on column 80 (with \), and 5268 # we should not choose a depcomp mode which is confused by this. 5269 # 5270 # We need to recreate these files for each test, as the compiler may 5271 # overwrite some of them when testing with obscure command lines. 5272 # This happens at least with the AIX C compiler. 5273 : > sub/conftest.c 5274 for i in 1 2 3 4 5 6; do 5275 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5276 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5277 # Solaris 10 /bin/sh. 5278 echo '/* dummy */' > sub/conftst$i.h 5279 done 5280 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5281 5282 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5283 # mode. It turns out that the SunPro C++ compiler does not properly 5284 # handle '-M -o', and we need to detect this. Also, some Intel 5285 # versions had trouble with output in subdirs. 5286 am__obj=sub/conftest.${OBJEXT-o} 5287 am__minus_obj="-o $am__obj" 5288 case $depmode in 5289 gcc) 5290 # This depmode causes a compiler race in universal mode. 5291 test "$am__universal" = false || continue 5292 ;; 5293 nosideeffect) 5294 # After this tag, mechanisms are not by side-effect, so they'll 5295 # only be used when explicitly requested. 5296 if test "x$enable_dependency_tracking" = xyes; then 5297 continue 5298 else 5299 break 5300 fi 5301 ;; 5302 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5303 # This compiler won't grok '-c -o', but also, the minuso test has 5304 # not run yet. These depmodes are late enough in the game, and 5305 # so weak that their functioning should not be impacted. 5306 am__obj=conftest.${OBJEXT-o} 5307 am__minus_obj= 5308 ;; 5309 none) break ;; 5310 esac 5311 if depmode=$depmode \ 5312 source=sub/conftest.c object=$am__obj \ 5313 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5314 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5315 >/dev/null 2>conftest.err && 5316 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5317 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5318 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5319 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5320 # icc doesn't choke on unknown options, it will just issue warnings 5321 # or remarks (even with -Werror). So we grep stderr for any message 5322 # that says an option was ignored or not supported. 5323 # When given -MP, icc 7.0 and 7.1 complain thusly: 5324 # icc: Command line warning: ignoring option '-M'; no argument required 5325 # The diagnosis changed in icc 8.0: 5326 # icc: Command line remark: option '-MP' not supported 5327 if (grep 'ignoring option' conftest.err || 5328 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5329 am_cv_CC_dependencies_compiler_type=$depmode 5330 break 5331 fi 5332 fi 5333 done 5334 5335 cd .. 5336 rm -rf conftest.dir 5337else 5338 am_cv_CC_dependencies_compiler_type=none 5339fi 5340 5341fi 5342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5343$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5344CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5345 5346 if 5347 test "x$enable_dependency_tracking" != xno \ 5348 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5349 am__fastdepCC_TRUE= 5350 am__fastdepCC_FALSE='#' 5351else 5352 am__fastdepCC_TRUE='#' 5353 am__fastdepCC_FALSE= 5354fi 5355 5356 5357 5358ac_ext=c 5359ac_cpp='$CPP $CPPFLAGS' 5360ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5361ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5362ac_compiler_gnu=$ac_cv_c_compiler_gnu 5363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5364$as_echo_n "checking how to run the C preprocessor... " >&6; } 5365# On Suns, sometimes $CPP names a directory. 5366if test -n "$CPP" && test -d "$CPP"; then 5367 CPP= 5368fi 5369if test -z "$CPP"; then 5370 if ${ac_cv_prog_CPP+:} false; then : 5371 $as_echo_n "(cached) " >&6 5372else 5373 # Double quotes because CPP needs to be expanded 5374 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5375 do 5376 ac_preproc_ok=false 5377for ac_c_preproc_warn_flag in '' yes 5378do 5379 # Use a header file that comes with gcc, so configuring glibc 5380 # with a fresh cross-compiler works. 5381 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5382 # <limits.h> exists even on freestanding compilers. 5383 # On the NeXT, cc -E runs the code through the compiler's parser, 5384 # not just through cpp. "Syntax error" is here to catch this case. 5385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5386/* end confdefs.h. */ 5387#ifdef __STDC__ 5388# include <limits.h> 5389#else 5390# include <assert.h> 5391#endif 5392 Syntax error 5393_ACEOF 5394if ac_fn_c_try_cpp "$LINENO"; then : 5395 5396else 5397 # Broken: fails on valid input. 5398continue 5399fi 5400rm -f conftest.err conftest.i conftest.$ac_ext 5401 5402 # OK, works on sane cases. Now check whether nonexistent headers 5403 # can be detected and how. 5404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5405/* end confdefs.h. */ 5406#include <ac_nonexistent.h> 5407_ACEOF 5408if ac_fn_c_try_cpp "$LINENO"; then : 5409 # Broken: success on invalid input. 5410continue 5411else 5412 # Passes both tests. 5413ac_preproc_ok=: 5414break 5415fi 5416rm -f conftest.err conftest.i conftest.$ac_ext 5417 5418done 5419# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5420rm -f conftest.i conftest.err conftest.$ac_ext 5421if $ac_preproc_ok; then : 5422 break 5423fi 5424 5425 done 5426 ac_cv_prog_CPP=$CPP 5427 5428fi 5429 CPP=$ac_cv_prog_CPP 5430else 5431 ac_cv_prog_CPP=$CPP 5432fi 5433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5434$as_echo "$CPP" >&6; } 5435ac_preproc_ok=false 5436for ac_c_preproc_warn_flag in '' yes 5437do 5438 # Use a header file that comes with gcc, so configuring glibc 5439 # with a fresh cross-compiler works. 5440 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5441 # <limits.h> exists even on freestanding compilers. 5442 # On the NeXT, cc -E runs the code through the compiler's parser, 5443 # not just through cpp. "Syntax error" is here to catch this case. 5444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5445/* end confdefs.h. */ 5446#ifdef __STDC__ 5447# include <limits.h> 5448#else 5449# include <assert.h> 5450#endif 5451 Syntax error 5452_ACEOF 5453if ac_fn_c_try_cpp "$LINENO"; then : 5454 5455else 5456 # Broken: fails on valid input. 5457continue 5458fi 5459rm -f conftest.err conftest.i conftest.$ac_ext 5460 5461 # OK, works on sane cases. Now check whether nonexistent headers 5462 # can be detected and how. 5463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5464/* end confdefs.h. */ 5465#include <ac_nonexistent.h> 5466_ACEOF 5467if ac_fn_c_try_cpp "$LINENO"; then : 5468 # Broken: success on invalid input. 5469continue 5470else 5471 # Passes both tests. 5472ac_preproc_ok=: 5473break 5474fi 5475rm -f conftest.err conftest.i conftest.$ac_ext 5476 5477done 5478# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5479rm -f conftest.i conftest.err conftest.$ac_ext 5480if $ac_preproc_ok; then : 5481 5482else 5483 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5484$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5485as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 5486See \`config.log' for more details" "$LINENO" 5; } 5487fi 5488 5489ac_ext=c 5490ac_cpp='$CPP $CPPFLAGS' 5491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5493ac_compiler_gnu=$ac_cv_c_compiler_gnu 5494 5495 5496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5497$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5498if ${ac_cv_path_GREP+:} false; then : 5499 $as_echo_n "(cached) " >&6 5500else 5501 if test -z "$GREP"; then 5502 ac_path_GREP_found=false 5503 # Loop through the user's path and test for each of PROGNAME-LIST 5504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5505for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5506do 5507 IFS=$as_save_IFS 5508 test -z "$as_dir" && as_dir=. 5509 for ac_prog in grep ggrep; do 5510 for ac_exec_ext in '' $ac_executable_extensions; do 5511 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5512 as_fn_executable_p "$ac_path_GREP" || continue 5513# Check for GNU ac_path_GREP and select it if it is found. 5514 # Check for GNU $ac_path_GREP 5515case `"$ac_path_GREP" --version 2>&1` in 5516*GNU*) 5517 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5518*) 5519 ac_count=0 5520 $as_echo_n 0123456789 >"conftest.in" 5521 while : 5522 do 5523 cat "conftest.in" "conftest.in" >"conftest.tmp" 5524 mv "conftest.tmp" "conftest.in" 5525 cp "conftest.in" "conftest.nl" 5526 $as_echo 'GREP' >> "conftest.nl" 5527 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5528 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5529 as_fn_arith $ac_count + 1 && ac_count=$as_val 5530 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5531 # Best one so far, save it but keep looking for a better one 5532 ac_cv_path_GREP="$ac_path_GREP" 5533 ac_path_GREP_max=$ac_count 5534 fi 5535 # 10*(2^10) chars as input seems more than enough 5536 test $ac_count -gt 10 && break 5537 done 5538 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5539esac 5540 5541 $ac_path_GREP_found && break 3 5542 done 5543 done 5544 done 5545IFS=$as_save_IFS 5546 if test -z "$ac_cv_path_GREP"; then 5547 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5548 fi 5549else 5550 ac_cv_path_GREP=$GREP 5551fi 5552 5553fi 5554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5555$as_echo "$ac_cv_path_GREP" >&6; } 5556 GREP="$ac_cv_path_GREP" 5557 5558 5559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5560$as_echo_n "checking for egrep... " >&6; } 5561if ${ac_cv_path_EGREP+:} false; then : 5562 $as_echo_n "(cached) " >&6 5563else 5564 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5565 then ac_cv_path_EGREP="$GREP -E" 5566 else 5567 if test -z "$EGREP"; then 5568 ac_path_EGREP_found=false 5569 # Loop through the user's path and test for each of PROGNAME-LIST 5570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5571for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5572do 5573 IFS=$as_save_IFS 5574 test -z "$as_dir" && as_dir=. 5575 for ac_prog in egrep; do 5576 for ac_exec_ext in '' $ac_executable_extensions; do 5577 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5578 as_fn_executable_p "$ac_path_EGREP" || continue 5579# Check for GNU ac_path_EGREP and select it if it is found. 5580 # Check for GNU $ac_path_EGREP 5581case `"$ac_path_EGREP" --version 2>&1` in 5582*GNU*) 5583 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5584*) 5585 ac_count=0 5586 $as_echo_n 0123456789 >"conftest.in" 5587 while : 5588 do 5589 cat "conftest.in" "conftest.in" >"conftest.tmp" 5590 mv "conftest.tmp" "conftest.in" 5591 cp "conftest.in" "conftest.nl" 5592 $as_echo 'EGREP' >> "conftest.nl" 5593 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5594 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5595 as_fn_arith $ac_count + 1 && ac_count=$as_val 5596 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5597 # Best one so far, save it but keep looking for a better one 5598 ac_cv_path_EGREP="$ac_path_EGREP" 5599 ac_path_EGREP_max=$ac_count 5600 fi 5601 # 10*(2^10) chars as input seems more than enough 5602 test $ac_count -gt 10 && break 5603 done 5604 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5605esac 5606 5607 $ac_path_EGREP_found && break 3 5608 done 5609 done 5610 done 5611IFS=$as_save_IFS 5612 if test -z "$ac_cv_path_EGREP"; then 5613 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5614 fi 5615else 5616 ac_cv_path_EGREP=$EGREP 5617fi 5618 5619 fi 5620fi 5621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5622$as_echo "$ac_cv_path_EGREP" >&6; } 5623 EGREP="$ac_cv_path_EGREP" 5624 5625 5626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 5627$as_echo_n "checking for ANSI C header files... " >&6; } 5628if ${ac_cv_header_stdc+:} false; then : 5629 $as_echo_n "(cached) " >&6 5630else 5631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5632/* end confdefs.h. */ 5633#include <stdlib.h> 5634#include <stdarg.h> 5635#include <string.h> 5636#include <float.h> 5637 5638int 5639main () 5640{ 5641 5642 ; 5643 return 0; 5644} 5645_ACEOF 5646if ac_fn_c_try_compile "$LINENO"; then : 5647 ac_cv_header_stdc=yes 5648else 5649 ac_cv_header_stdc=no 5650fi 5651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5652 5653if test $ac_cv_header_stdc = yes; then 5654 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5656/* end confdefs.h. */ 5657#include <string.h> 5658 5659_ACEOF 5660if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5661 $EGREP "memchr" >/dev/null 2>&1; then : 5662 5663else 5664 ac_cv_header_stdc=no 5665fi 5666rm -f conftest* 5667 5668fi 5669 5670if test $ac_cv_header_stdc = yes; then 5671 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5673/* end confdefs.h. */ 5674#include <stdlib.h> 5675 5676_ACEOF 5677if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5678 $EGREP "free" >/dev/null 2>&1; then : 5679 5680else 5681 ac_cv_header_stdc=no 5682fi 5683rm -f conftest* 5684 5685fi 5686 5687if test $ac_cv_header_stdc = yes; then 5688 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5689 if test "$cross_compiling" = yes; then : 5690 : 5691else 5692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5693/* end confdefs.h. */ 5694#include <ctype.h> 5695#include <stdlib.h> 5696#if ((' ' & 0x0FF) == 0x020) 5697# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5698# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5699#else 5700# define ISLOWER(c) \ 5701 (('a' <= (c) && (c) <= 'i') \ 5702 || ('j' <= (c) && (c) <= 'r') \ 5703 || ('s' <= (c) && (c) <= 'z')) 5704# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5705#endif 5706 5707#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5708int 5709main () 5710{ 5711 int i; 5712 for (i = 0; i < 256; i++) 5713 if (XOR (islower (i), ISLOWER (i)) 5714 || toupper (i) != TOUPPER (i)) 5715 return 2; 5716 return 0; 5717} 5718_ACEOF 5719if ac_fn_c_try_run "$LINENO"; then : 5720 5721else 5722 ac_cv_header_stdc=no 5723fi 5724rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5725 conftest.$ac_objext conftest.beam conftest.$ac_ext 5726fi 5727 5728fi 5729fi 5730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5731$as_echo "$ac_cv_header_stdc" >&6; } 5732if test $ac_cv_header_stdc = yes; then 5733 5734$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5735 5736fi 5737 5738# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5739for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5740 inttypes.h stdint.h unistd.h 5741do : 5742 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5743ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5744" 5745if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5746 cat >>confdefs.h <<_ACEOF 5747#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5748_ACEOF 5749 5750fi 5751 5752done 5753 5754 5755 5756 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 5757if test "x$ac_cv_header_minix_config_h" = xyes; then : 5758 MINIX=yes 5759else 5760 MINIX= 5761fi 5762 5763 5764 if test "$MINIX" = yes; then 5765 5766$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 5767 5768 5769$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 5770 5771 5772$as_echo "#define _MINIX 1" >>confdefs.h 5773 5774 fi 5775 5776 5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5778$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5779if ${ac_cv_safe_to_define___extensions__+:} false; then : 5780 $as_echo_n "(cached) " >&6 5781else 5782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5783/* end confdefs.h. */ 5784 5785# define __EXTENSIONS__ 1 5786 $ac_includes_default 5787int 5788main () 5789{ 5790 5791 ; 5792 return 0; 5793} 5794_ACEOF 5795if ac_fn_c_try_compile "$LINENO"; then : 5796 ac_cv_safe_to_define___extensions__=yes 5797else 5798 ac_cv_safe_to_define___extensions__=no 5799fi 5800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5801fi 5802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5803$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 5804 test $ac_cv_safe_to_define___extensions__ = yes && 5805 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 5806 5807 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 5808 5809 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 5810 5811 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5812 5813 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 5814 5815 5816 5817# Check for programs 5818ac_ext=c 5819ac_cpp='$CPP $CPPFLAGS' 5820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5822ac_compiler_gnu=$ac_cv_c_compiler_gnu 5823if test -n "$ac_tool_prefix"; then 5824 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 5825set dummy ${ac_tool_prefix}gcc; ac_word=$2 5826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5827$as_echo_n "checking for $ac_word... " >&6; } 5828if ${ac_cv_prog_CC+:} false; then : 5829 $as_echo_n "(cached) " >&6 5830else 5831 if test -n "$CC"; then 5832 ac_cv_prog_CC="$CC" # Let the user override the test. 5833else 5834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5835for as_dir in $PATH 5836do 5837 IFS=$as_save_IFS 5838 test -z "$as_dir" && as_dir=. 5839 for ac_exec_ext in '' $ac_executable_extensions; do 5840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5841 ac_cv_prog_CC="${ac_tool_prefix}gcc" 5842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5843 break 2 5844 fi 5845done 5846 done 5847IFS=$as_save_IFS 5848 5849fi 5850fi 5851CC=$ac_cv_prog_CC 5852if test -n "$CC"; then 5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5854$as_echo "$CC" >&6; } 5855else 5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5857$as_echo "no" >&6; } 5858fi 5859 5860 5861fi 5862if test -z "$ac_cv_prog_CC"; then 5863 ac_ct_CC=$CC 5864 # Extract the first word of "gcc", so it can be a program name with args. 5865set dummy gcc; ac_word=$2 5866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5867$as_echo_n "checking for $ac_word... " >&6; } 5868if ${ac_cv_prog_ac_ct_CC+:} false; then : 5869 $as_echo_n "(cached) " >&6 5870else 5871 if test -n "$ac_ct_CC"; then 5872 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5873else 5874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5875for as_dir in $PATH 5876do 5877 IFS=$as_save_IFS 5878 test -z "$as_dir" && as_dir=. 5879 for ac_exec_ext in '' $ac_executable_extensions; do 5880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5881 ac_cv_prog_ac_ct_CC="gcc" 5882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5883 break 2 5884 fi 5885done 5886 done 5887IFS=$as_save_IFS 5888 5889fi 5890fi 5891ac_ct_CC=$ac_cv_prog_ac_ct_CC 5892if test -n "$ac_ct_CC"; then 5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5894$as_echo "$ac_ct_CC" >&6; } 5895else 5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5897$as_echo "no" >&6; } 5898fi 5899 5900 if test "x$ac_ct_CC" = x; then 5901 CC="" 5902 else 5903 case $cross_compiling:$ac_tool_warned in 5904yes:) 5905{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5906$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5907ac_tool_warned=yes ;; 5908esac 5909 CC=$ac_ct_CC 5910 fi 5911else 5912 CC="$ac_cv_prog_CC" 5913fi 5914 5915if test -z "$CC"; then 5916 if test -n "$ac_tool_prefix"; then 5917 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 5918set dummy ${ac_tool_prefix}cc; ac_word=$2 5919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5920$as_echo_n "checking for $ac_word... " >&6; } 5921if ${ac_cv_prog_CC+:} false; then : 5922 $as_echo_n "(cached) " >&6 5923else 5924 if test -n "$CC"; then 5925 ac_cv_prog_CC="$CC" # Let the user override the test. 5926else 5927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5928for as_dir in $PATH 5929do 5930 IFS=$as_save_IFS 5931 test -z "$as_dir" && as_dir=. 5932 for ac_exec_ext in '' $ac_executable_extensions; do 5933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5934 ac_cv_prog_CC="${ac_tool_prefix}cc" 5935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5936 break 2 5937 fi 5938done 5939 done 5940IFS=$as_save_IFS 5941 5942fi 5943fi 5944CC=$ac_cv_prog_CC 5945if test -n "$CC"; then 5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5947$as_echo "$CC" >&6; } 5948else 5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5950$as_echo "no" >&6; } 5951fi 5952 5953 5954 fi 5955fi 5956if test -z "$CC"; then 5957 # Extract the first word of "cc", so it can be a program name with args. 5958set dummy cc; ac_word=$2 5959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5960$as_echo_n "checking for $ac_word... " >&6; } 5961if ${ac_cv_prog_CC+:} false; then : 5962 $as_echo_n "(cached) " >&6 5963else 5964 if test -n "$CC"; then 5965 ac_cv_prog_CC="$CC" # Let the user override the test. 5966else 5967 ac_prog_rejected=no 5968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5969for as_dir in $PATH 5970do 5971 IFS=$as_save_IFS 5972 test -z "$as_dir" && as_dir=. 5973 for ac_exec_ext in '' $ac_executable_extensions; do 5974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5975 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 5976 ac_prog_rejected=yes 5977 continue 5978 fi 5979 ac_cv_prog_CC="cc" 5980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5981 break 2 5982 fi 5983done 5984 done 5985IFS=$as_save_IFS 5986 5987if test $ac_prog_rejected = yes; then 5988 # We found a bogon in the path, so make sure we never use it. 5989 set dummy $ac_cv_prog_CC 5990 shift 5991 if test $# != 0; then 5992 # We chose a different compiler from the bogus one. 5993 # However, it has the same basename, so the bogon will be chosen 5994 # first if we set CC to just the basename; use the full file name. 5995 shift 5996 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 5997 fi 5998fi 5999fi 6000fi 6001CC=$ac_cv_prog_CC 6002if test -n "$CC"; then 6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 6004$as_echo "$CC" >&6; } 6005else 6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6007$as_echo "no" >&6; } 6008fi 6009 6010 6011fi 6012if test -z "$CC"; then 6013 if test -n "$ac_tool_prefix"; then 6014 for ac_prog in cl.exe 6015 do 6016 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6017set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6019$as_echo_n "checking for $ac_word... " >&6; } 6020if ${ac_cv_prog_CC+:} false; then : 6021 $as_echo_n "(cached) " >&6 6022else 6023 if test -n "$CC"; then 6024 ac_cv_prog_CC="$CC" # Let the user override the test. 6025else 6026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6027for as_dir in $PATH 6028do 6029 IFS=$as_save_IFS 6030 test -z "$as_dir" && as_dir=. 6031 for ac_exec_ext in '' $ac_executable_extensions; do 6032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6033 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 6034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6035 break 2 6036 fi 6037done 6038 done 6039IFS=$as_save_IFS 6040 6041fi 6042fi 6043CC=$ac_cv_prog_CC 6044if test -n "$CC"; then 6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 6046$as_echo "$CC" >&6; } 6047else 6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6049$as_echo "no" >&6; } 6050fi 6051 6052 6053 test -n "$CC" && break 6054 done 6055fi 6056if test -z "$CC"; then 6057 ac_ct_CC=$CC 6058 for ac_prog in cl.exe 6059do 6060 # Extract the first word of "$ac_prog", so it can be a program name with args. 6061set dummy $ac_prog; ac_word=$2 6062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6063$as_echo_n "checking for $ac_word... " >&6; } 6064if ${ac_cv_prog_ac_ct_CC+:} false; then : 6065 $as_echo_n "(cached) " >&6 6066else 6067 if test -n "$ac_ct_CC"; then 6068 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 6069else 6070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6071for as_dir in $PATH 6072do 6073 IFS=$as_save_IFS 6074 test -z "$as_dir" && as_dir=. 6075 for ac_exec_ext in '' $ac_executable_extensions; do 6076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6077 ac_cv_prog_ac_ct_CC="$ac_prog" 6078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6079 break 2 6080 fi 6081done 6082 done 6083IFS=$as_save_IFS 6084 6085fi 6086fi 6087ac_ct_CC=$ac_cv_prog_ac_ct_CC 6088if test -n "$ac_ct_CC"; then 6089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 6090$as_echo "$ac_ct_CC" >&6; } 6091else 6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6093$as_echo "no" >&6; } 6094fi 6095 6096 6097 test -n "$ac_ct_CC" && break 6098done 6099 6100 if test "x$ac_ct_CC" = x; then 6101 CC="" 6102 else 6103 case $cross_compiling:$ac_tool_warned in 6104yes:) 6105{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6106$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6107ac_tool_warned=yes ;; 6108esac 6109 CC=$ac_ct_CC 6110 fi 6111fi 6112 6113fi 6114 6115 6116test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6117$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6118as_fn_error $? "no acceptable C compiler found in \$PATH 6119See \`config.log' for more details" "$LINENO" 5; } 6120 6121# Provide some information about the compiler. 6122$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 6123set X $ac_compile 6124ac_compiler=$2 6125for ac_option in --version -v -V -qversion; do 6126 { { ac_try="$ac_compiler $ac_option >&5" 6127case "(($ac_try" in 6128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6129 *) ac_try_echo=$ac_try;; 6130esac 6131eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6132$as_echo "$ac_try_echo"; } >&5 6133 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 6134 ac_status=$? 6135 if test -s conftest.err; then 6136 sed '10a\ 6137... rest of stderr output deleted ... 6138 10q' conftest.err >conftest.er1 6139 cat conftest.er1 >&5 6140 fi 6141 rm -f conftest.er1 conftest.err 6142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6143 test $ac_status = 0; } 6144done 6145 6146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 6147$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 6148if ${ac_cv_c_compiler_gnu+:} false; then : 6149 $as_echo_n "(cached) " >&6 6150else 6151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6152/* end confdefs.h. */ 6153 6154int 6155main () 6156{ 6157#ifndef __GNUC__ 6158 choke me 6159#endif 6160 6161 ; 6162 return 0; 6163} 6164_ACEOF 6165if ac_fn_c_try_compile "$LINENO"; then : 6166 ac_compiler_gnu=yes 6167else 6168 ac_compiler_gnu=no 6169fi 6170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6171ac_cv_c_compiler_gnu=$ac_compiler_gnu 6172 6173fi 6174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 6175$as_echo "$ac_cv_c_compiler_gnu" >&6; } 6176if test $ac_compiler_gnu = yes; then 6177 GCC=yes 6178else 6179 GCC= 6180fi 6181ac_test_CFLAGS=${CFLAGS+set} 6182ac_save_CFLAGS=$CFLAGS 6183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 6184$as_echo_n "checking whether $CC accepts -g... " >&6; } 6185if ${ac_cv_prog_cc_g+:} false; then : 6186 $as_echo_n "(cached) " >&6 6187else 6188 ac_save_c_werror_flag=$ac_c_werror_flag 6189 ac_c_werror_flag=yes 6190 ac_cv_prog_cc_g=no 6191 CFLAGS="-g" 6192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6193/* end confdefs.h. */ 6194 6195int 6196main () 6197{ 6198 6199 ; 6200 return 0; 6201} 6202_ACEOF 6203if ac_fn_c_try_compile "$LINENO"; then : 6204 ac_cv_prog_cc_g=yes 6205else 6206 CFLAGS="" 6207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6208/* end confdefs.h. */ 6209 6210int 6211main () 6212{ 6213 6214 ; 6215 return 0; 6216} 6217_ACEOF 6218if ac_fn_c_try_compile "$LINENO"; then : 6219 6220else 6221 ac_c_werror_flag=$ac_save_c_werror_flag 6222 CFLAGS="-g" 6223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6224/* end confdefs.h. */ 6225 6226int 6227main () 6228{ 6229 6230 ; 6231 return 0; 6232} 6233_ACEOF 6234if ac_fn_c_try_compile "$LINENO"; then : 6235 ac_cv_prog_cc_g=yes 6236fi 6237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6238fi 6239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6240fi 6241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6242 ac_c_werror_flag=$ac_save_c_werror_flag 6243fi 6244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 6245$as_echo "$ac_cv_prog_cc_g" >&6; } 6246if test "$ac_test_CFLAGS" = set; then 6247 CFLAGS=$ac_save_CFLAGS 6248elif test $ac_cv_prog_cc_g = yes; then 6249 if test "$GCC" = yes; then 6250 CFLAGS="-g -O2" 6251 else 6252 CFLAGS="-g" 6253 fi 6254else 6255 if test "$GCC" = yes; then 6256 CFLAGS="-O2" 6257 else 6258 CFLAGS= 6259 fi 6260fi 6261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 6262$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 6263if ${ac_cv_prog_cc_c89+:} false; then : 6264 $as_echo_n "(cached) " >&6 6265else 6266 ac_cv_prog_cc_c89=no 6267ac_save_CC=$CC 6268cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6269/* end confdefs.h. */ 6270#include <stdarg.h> 6271#include <stdio.h> 6272struct stat; 6273/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 6274struct buf { int x; }; 6275FILE * (*rcsopen) (struct buf *, struct stat *, int); 6276static char *e (p, i) 6277 char **p; 6278 int i; 6279{ 6280 return p[i]; 6281} 6282static char *f (char * (*g) (char **, int), char **p, ...) 6283{ 6284 char *s; 6285 va_list v; 6286 va_start (v,p); 6287 s = g (p, va_arg (v,int)); 6288 va_end (v); 6289 return s; 6290} 6291 6292/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 6293 function prototypes and stuff, but not '\xHH' hex character constants. 6294 These don't provoke an error unfortunately, instead are silently treated 6295 as 'x'. The following induces an error, until -std is added to get 6296 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 6297 array size at least. It's necessary to write '\x00'==0 to get something 6298 that's true only with -std. */ 6299int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 6300 6301/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 6302 inside strings and character constants. */ 6303#define FOO(x) 'x' 6304int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 6305 6306int test (int i, double x); 6307struct s1 {int (*f) (int a);}; 6308struct s2 {int (*f) (double a);}; 6309int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 6310int argc; 6311char **argv; 6312int 6313main () 6314{ 6315return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 6316 ; 6317 return 0; 6318} 6319_ACEOF 6320for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 6321 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 6322do 6323 CC="$ac_save_CC $ac_arg" 6324 if ac_fn_c_try_compile "$LINENO"; then : 6325 ac_cv_prog_cc_c89=$ac_arg 6326fi 6327rm -f core conftest.err conftest.$ac_objext 6328 test "x$ac_cv_prog_cc_c89" != "xno" && break 6329done 6330rm -f conftest.$ac_ext 6331CC=$ac_save_CC 6332 6333fi 6334# AC_CACHE_VAL 6335case "x$ac_cv_prog_cc_c89" in 6336 x) 6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 6338$as_echo "none needed" >&6; } ;; 6339 xno) 6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 6341$as_echo "unsupported" >&6; } ;; 6342 *) 6343 CC="$CC $ac_cv_prog_cc_c89" 6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 6345$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 6346esac 6347if test "x$ac_cv_prog_cc_c89" != xno; then : 6348 6349fi 6350 6351ac_ext=c 6352ac_cpp='$CPP $CPPFLAGS' 6353ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6354ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6355ac_compiler_gnu=$ac_cv_c_compiler_gnu 6356 6357depcc="$CC" am_compiler_list= 6358 6359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 6360$as_echo_n "checking dependency style of $depcc... " >&6; } 6361if ${am_cv_CC_dependencies_compiler_type+:} false; then : 6362 $as_echo_n "(cached) " >&6 6363else 6364 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 6365 # We make a subdir and do the tests there. Otherwise we can end up 6366 # making bogus files that we don't know about and never remove. For 6367 # instance it was reported that on HP-UX the gcc test will end up 6368 # making a dummy file named 'D' -- because '-MD' means "put the output 6369 # in D". 6370 rm -rf conftest.dir 6371 mkdir conftest.dir 6372 # Copy depcomp to subdir because otherwise we won't find it if we're 6373 # using a relative directory. 6374 cp "$am_depcomp" conftest.dir 6375 cd conftest.dir 6376 # We will build objects and dependencies in a subdirectory because 6377 # it helps to detect inapplicable dependency modes. For instance 6378 # both Tru64's cc and ICC support -MD to output dependencies as a 6379 # side effect of compilation, but ICC will put the dependencies in 6380 # the current directory while Tru64 will put them in the object 6381 # directory. 6382 mkdir sub 6383 6384 am_cv_CC_dependencies_compiler_type=none 6385 if test "$am_compiler_list" = ""; then 6386 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 6387 fi 6388 am__universal=false 6389 case " $depcc " in #( 6390 *\ -arch\ *\ -arch\ *) am__universal=true ;; 6391 esac 6392 6393 for depmode in $am_compiler_list; do 6394 # Setup a source with many dependencies, because some compilers 6395 # like to wrap large dependency lists on column 80 (with \), and 6396 # we should not choose a depcomp mode which is confused by this. 6397 # 6398 # We need to recreate these files for each test, as the compiler may 6399 # overwrite some of them when testing with obscure command lines. 6400 # This happens at least with the AIX C compiler. 6401 : > sub/conftest.c 6402 for i in 1 2 3 4 5 6; do 6403 echo '#include "conftst'$i'.h"' >> sub/conftest.c 6404 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 6405 # Solaris 10 /bin/sh. 6406 echo '/* dummy */' > sub/conftst$i.h 6407 done 6408 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6409 6410 # We check with '-c' and '-o' for the sake of the "dashmstdout" 6411 # mode. It turns out that the SunPro C++ compiler does not properly 6412 # handle '-M -o', and we need to detect this. Also, some Intel 6413 # versions had trouble with output in subdirs. 6414 am__obj=sub/conftest.${OBJEXT-o} 6415 am__minus_obj="-o $am__obj" 6416 case $depmode in 6417 gcc) 6418 # This depmode causes a compiler race in universal mode. 6419 test "$am__universal" = false || continue 6420 ;; 6421 nosideeffect) 6422 # After this tag, mechanisms are not by side-effect, so they'll 6423 # only be used when explicitly requested. 6424 if test "x$enable_dependency_tracking" = xyes; then 6425 continue 6426 else 6427 break 6428 fi 6429 ;; 6430 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 6431 # This compiler won't grok '-c -o', but also, the minuso test has 6432 # not run yet. These depmodes are late enough in the game, and 6433 # so weak that their functioning should not be impacted. 6434 am__obj=conftest.${OBJEXT-o} 6435 am__minus_obj= 6436 ;; 6437 none) break ;; 6438 esac 6439 if depmode=$depmode \ 6440 source=sub/conftest.c object=$am__obj \ 6441 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6442 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 6443 >/dev/null 2>conftest.err && 6444 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 6445 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6446 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 6447 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6448 # icc doesn't choke on unknown options, it will just issue warnings 6449 # or remarks (even with -Werror). So we grep stderr for any message 6450 # that says an option was ignored or not supported. 6451 # When given -MP, icc 7.0 and 7.1 complain thusly: 6452 # icc: Command line warning: ignoring option '-M'; no argument required 6453 # The diagnosis changed in icc 8.0: 6454 # icc: Command line remark: option '-MP' not supported 6455 if (grep 'ignoring option' conftest.err || 6456 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6457 am_cv_CC_dependencies_compiler_type=$depmode 6458 break 6459 fi 6460 fi 6461 done 6462 6463 cd .. 6464 rm -rf conftest.dir 6465else 6466 am_cv_CC_dependencies_compiler_type=none 6467fi 6468 6469fi 6470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 6471$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 6472CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 6473 6474 if 6475 test "x$enable_dependency_tracking" != xno \ 6476 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 6477 am__fastdepCC_TRUE= 6478 am__fastdepCC_FALSE='#' 6479else 6480 am__fastdepCC_TRUE='#' 6481 am__fastdepCC_FALSE= 6482fi 6483 6484 6485ac_ext=cpp 6486ac_cpp='$CXXCPP $CPPFLAGS' 6487ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6488ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6489ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6490if test -z "$CXX"; then 6491 if test -n "$CCC"; then 6492 CXX=$CCC 6493 else 6494 if test -n "$ac_tool_prefix"; then 6495 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 6496 do 6497 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6498set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6500$as_echo_n "checking for $ac_word... " >&6; } 6501if ${ac_cv_prog_CXX+:} false; then : 6502 $as_echo_n "(cached) " >&6 6503else 6504 if test -n "$CXX"; then 6505 ac_cv_prog_CXX="$CXX" # Let the user override the test. 6506else 6507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6508for as_dir in $PATH 6509do 6510 IFS=$as_save_IFS 6511 test -z "$as_dir" && as_dir=. 6512 for ac_exec_ext in '' $ac_executable_extensions; do 6513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6514 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 6515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6516 break 2 6517 fi 6518done 6519 done 6520IFS=$as_save_IFS 6521 6522fi 6523fi 6524CXX=$ac_cv_prog_CXX 6525if test -n "$CXX"; then 6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 6527$as_echo "$CXX" >&6; } 6528else 6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6530$as_echo "no" >&6; } 6531fi 6532 6533 6534 test -n "$CXX" && break 6535 done 6536fi 6537if test -z "$CXX"; then 6538 ac_ct_CXX=$CXX 6539 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 6540do 6541 # Extract the first word of "$ac_prog", so it can be a program name with args. 6542set dummy $ac_prog; ac_word=$2 6543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6544$as_echo_n "checking for $ac_word... " >&6; } 6545if ${ac_cv_prog_ac_ct_CXX+:} false; then : 6546 $as_echo_n "(cached) " >&6 6547else 6548 if test -n "$ac_ct_CXX"; then 6549 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 6550else 6551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6552for as_dir in $PATH 6553do 6554 IFS=$as_save_IFS 6555 test -z "$as_dir" && as_dir=. 6556 for ac_exec_ext in '' $ac_executable_extensions; do 6557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6558 ac_cv_prog_ac_ct_CXX="$ac_prog" 6559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6560 break 2 6561 fi 6562done 6563 done 6564IFS=$as_save_IFS 6565 6566fi 6567fi 6568ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 6569if test -n "$ac_ct_CXX"; then 6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 6571$as_echo "$ac_ct_CXX" >&6; } 6572else 6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6574$as_echo "no" >&6; } 6575fi 6576 6577 6578 test -n "$ac_ct_CXX" && break 6579done 6580 6581 if test "x$ac_ct_CXX" = x; then 6582 CXX="g++" 6583 else 6584 case $cross_compiling:$ac_tool_warned in 6585yes:) 6586{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6587$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6588ac_tool_warned=yes ;; 6589esac 6590 CXX=$ac_ct_CXX 6591 fi 6592fi 6593 6594 fi 6595fi 6596# Provide some information about the compiler. 6597$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 6598set X $ac_compile 6599ac_compiler=$2 6600for ac_option in --version -v -V -qversion; do 6601 { { ac_try="$ac_compiler $ac_option >&5" 6602case "(($ac_try" in 6603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6604 *) ac_try_echo=$ac_try;; 6605esac 6606eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6607$as_echo "$ac_try_echo"; } >&5 6608 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 6609 ac_status=$? 6610 if test -s conftest.err; then 6611 sed '10a\ 6612... rest of stderr output deleted ... 6613 10q' conftest.err >conftest.er1 6614 cat conftest.er1 >&5 6615 fi 6616 rm -f conftest.er1 conftest.err 6617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6618 test $ac_status = 0; } 6619done 6620 6621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 6622$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 6623if ${ac_cv_cxx_compiler_gnu+:} false; then : 6624 $as_echo_n "(cached) " >&6 6625else 6626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6627/* end confdefs.h. */ 6628 6629int 6630main () 6631{ 6632#ifndef __GNUC__ 6633 choke me 6634#endif 6635 6636 ; 6637 return 0; 6638} 6639_ACEOF 6640if ac_fn_cxx_try_compile "$LINENO"; then : 6641 ac_compiler_gnu=yes 6642else 6643 ac_compiler_gnu=no 6644fi 6645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6646ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 6647 6648fi 6649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 6650$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 6651if test $ac_compiler_gnu = yes; then 6652 GXX=yes 6653else 6654 GXX= 6655fi 6656ac_test_CXXFLAGS=${CXXFLAGS+set} 6657ac_save_CXXFLAGS=$CXXFLAGS 6658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 6659$as_echo_n "checking whether $CXX accepts -g... " >&6; } 6660if ${ac_cv_prog_cxx_g+:} false; then : 6661 $as_echo_n "(cached) " >&6 6662else 6663 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 6664 ac_cxx_werror_flag=yes 6665 ac_cv_prog_cxx_g=no 6666 CXXFLAGS="-g" 6667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6668/* end confdefs.h. */ 6669 6670int 6671main () 6672{ 6673 6674 ; 6675 return 0; 6676} 6677_ACEOF 6678if ac_fn_cxx_try_compile "$LINENO"; then : 6679 ac_cv_prog_cxx_g=yes 6680else 6681 CXXFLAGS="" 6682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6683/* end confdefs.h. */ 6684 6685int 6686main () 6687{ 6688 6689 ; 6690 return 0; 6691} 6692_ACEOF 6693if ac_fn_cxx_try_compile "$LINENO"; then : 6694 6695else 6696 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6697 CXXFLAGS="-g" 6698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6699/* end confdefs.h. */ 6700 6701int 6702main () 6703{ 6704 6705 ; 6706 return 0; 6707} 6708_ACEOF 6709if ac_fn_cxx_try_compile "$LINENO"; then : 6710 ac_cv_prog_cxx_g=yes 6711fi 6712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6713fi 6714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6715fi 6716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6717 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6718fi 6719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 6720$as_echo "$ac_cv_prog_cxx_g" >&6; } 6721if test "$ac_test_CXXFLAGS" = set; then 6722 CXXFLAGS=$ac_save_CXXFLAGS 6723elif test $ac_cv_prog_cxx_g = yes; then 6724 if test "$GXX" = yes; then 6725 CXXFLAGS="-g -O2" 6726 else 6727 CXXFLAGS="-g" 6728 fi 6729else 6730 if test "$GXX" = yes; then 6731 CXXFLAGS="-O2" 6732 else 6733 CXXFLAGS= 6734 fi 6735fi 6736ac_ext=c 6737ac_cpp='$CPP $CPPFLAGS' 6738ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6739ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6740ac_compiler_gnu=$ac_cv_c_compiler_gnu 6741 6742depcc="$CXX" am_compiler_list= 6743 6744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 6745$as_echo_n "checking dependency style of $depcc... " >&6; } 6746if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 6747 $as_echo_n "(cached) " >&6 6748else 6749 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 6750 # We make a subdir and do the tests there. Otherwise we can end up 6751 # making bogus files that we don't know about and never remove. For 6752 # instance it was reported that on HP-UX the gcc test will end up 6753 # making a dummy file named 'D' -- because '-MD' means "put the output 6754 # in D". 6755 rm -rf conftest.dir 6756 mkdir conftest.dir 6757 # Copy depcomp to subdir because otherwise we won't find it if we're 6758 # using a relative directory. 6759 cp "$am_depcomp" conftest.dir 6760 cd conftest.dir 6761 # We will build objects and dependencies in a subdirectory because 6762 # it helps to detect inapplicable dependency modes. For instance 6763 # both Tru64's cc and ICC support -MD to output dependencies as a 6764 # side effect of compilation, but ICC will put the dependencies in 6765 # the current directory while Tru64 will put them in the object 6766 # directory. 6767 mkdir sub 6768 6769 am_cv_CXX_dependencies_compiler_type=none 6770 if test "$am_compiler_list" = ""; then 6771 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 6772 fi 6773 am__universal=false 6774 case " $depcc " in #( 6775 *\ -arch\ *\ -arch\ *) am__universal=true ;; 6776 esac 6777 6778 for depmode in $am_compiler_list; do 6779 # Setup a source with many dependencies, because some compilers 6780 # like to wrap large dependency lists on column 80 (with \), and 6781 # we should not choose a depcomp mode which is confused by this. 6782 # 6783 # We need to recreate these files for each test, as the compiler may 6784 # overwrite some of them when testing with obscure command lines. 6785 # This happens at least with the AIX C compiler. 6786 : > sub/conftest.c 6787 for i in 1 2 3 4 5 6; do 6788 echo '#include "conftst'$i'.h"' >> sub/conftest.c 6789 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 6790 # Solaris 10 /bin/sh. 6791 echo '/* dummy */' > sub/conftst$i.h 6792 done 6793 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6794 6795 # We check with '-c' and '-o' for the sake of the "dashmstdout" 6796 # mode. It turns out that the SunPro C++ compiler does not properly 6797 # handle '-M -o', and we need to detect this. Also, some Intel 6798 # versions had trouble with output in subdirs. 6799 am__obj=sub/conftest.${OBJEXT-o} 6800 am__minus_obj="-o $am__obj" 6801 case $depmode in 6802 gcc) 6803 # This depmode causes a compiler race in universal mode. 6804 test "$am__universal" = false || continue 6805 ;; 6806 nosideeffect) 6807 # After this tag, mechanisms are not by side-effect, so they'll 6808 # only be used when explicitly requested. 6809 if test "x$enable_dependency_tracking" = xyes; then 6810 continue 6811 else 6812 break 6813 fi 6814 ;; 6815 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 6816 # This compiler won't grok '-c -o', but also, the minuso test has 6817 # not run yet. These depmodes are late enough in the game, and 6818 # so weak that their functioning should not be impacted. 6819 am__obj=conftest.${OBJEXT-o} 6820 am__minus_obj= 6821 ;; 6822 none) break ;; 6823 esac 6824 if depmode=$depmode \ 6825 source=sub/conftest.c object=$am__obj \ 6826 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6827 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 6828 >/dev/null 2>conftest.err && 6829 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 6830 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6831 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 6832 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6833 # icc doesn't choke on unknown options, it will just issue warnings 6834 # or remarks (even with -Werror). So we grep stderr for any message 6835 # that says an option was ignored or not supported. 6836 # When given -MP, icc 7.0 and 7.1 complain thusly: 6837 # icc: Command line warning: ignoring option '-M'; no argument required 6838 # The diagnosis changed in icc 8.0: 6839 # icc: Command line remark: option '-MP' not supported 6840 if (grep 'ignoring option' conftest.err || 6841 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6842 am_cv_CXX_dependencies_compiler_type=$depmode 6843 break 6844 fi 6845 fi 6846 done 6847 6848 cd .. 6849 rm -rf conftest.dir 6850else 6851 am_cv_CXX_dependencies_compiler_type=none 6852fi 6853 6854fi 6855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 6856$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 6857CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 6858 6859 if 6860 test "x$enable_dependency_tracking" != xno \ 6861 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 6862 am__fastdepCXX_TRUE= 6863 am__fastdepCXX_FALSE='#' 6864else 6865 am__fastdepCXX_TRUE='#' 6866 am__fastdepCXX_FALSE= 6867fi 6868 6869 6870 case $ac_cv_prog_cc_stdc in #( 6871 no) : 6872 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( 6873 *) : 6874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 6875$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 6876if ${ac_cv_prog_cc_c99+:} false; then : 6877 $as_echo_n "(cached) " >&6 6878else 6879 ac_cv_prog_cc_c99=no 6880ac_save_CC=$CC 6881cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6882/* end confdefs.h. */ 6883#include <stdarg.h> 6884#include <stdbool.h> 6885#include <stdlib.h> 6886#include <wchar.h> 6887#include <stdio.h> 6888 6889// Check varargs macros. These examples are taken from C99 6.10.3.5. 6890#define debug(...) fprintf (stderr, __VA_ARGS__) 6891#define showlist(...) puts (#__VA_ARGS__) 6892#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 6893static void 6894test_varargs_macros (void) 6895{ 6896 int x = 1234; 6897 int y = 5678; 6898 debug ("Flag"); 6899 debug ("X = %d\n", x); 6900 showlist (The first, second, and third items.); 6901 report (x>y, "x is %d but y is %d", x, y); 6902} 6903 6904// Check long long types. 6905#define BIG64 18446744073709551615ull 6906#define BIG32 4294967295ul 6907#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 6908#if !BIG_OK 6909 your preprocessor is broken; 6910#endif 6911#if BIG_OK 6912#else 6913 your preprocessor is broken; 6914#endif 6915static long long int bignum = -9223372036854775807LL; 6916static unsigned long long int ubignum = BIG64; 6917 6918struct incomplete_array 6919{ 6920 int datasize; 6921 double data[]; 6922}; 6923 6924struct named_init { 6925 int number; 6926 const wchar_t *name; 6927 double average; 6928}; 6929 6930typedef const char *ccp; 6931 6932static inline int 6933test_restrict (ccp restrict text) 6934{ 6935 // See if C++-style comments work. 6936 // Iterate through items via the restricted pointer. 6937 // Also check for declarations in for loops. 6938 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 6939 continue; 6940 return 0; 6941} 6942 6943// Check varargs and va_copy. 6944static void 6945test_varargs (const char *format, ...) 6946{ 6947 va_list args; 6948 va_start (args, format); 6949 va_list args_copy; 6950 va_copy (args_copy, args); 6951 6952 const char *str; 6953 int number; 6954 float fnumber; 6955 6956 while (*format) 6957 { 6958 switch (*format++) 6959 { 6960 case 's': // string 6961 str = va_arg (args_copy, const char *); 6962 break; 6963 case 'd': // int 6964 number = va_arg (args_copy, int); 6965 break; 6966 case 'f': // float 6967 fnumber = va_arg (args_copy, double); 6968 break; 6969 default: 6970 break; 6971 } 6972 } 6973 va_end (args_copy); 6974 va_end (args); 6975} 6976 6977int 6978main () 6979{ 6980 6981 // Check bool. 6982 _Bool success = false; 6983 6984 // Check restrict. 6985 if (test_restrict ("String literal") == 0) 6986 success = true; 6987 char *restrict newvar = "Another string"; 6988 6989 // Check varargs. 6990 test_varargs ("s, d' f .", "string", 65, 34.234); 6991 test_varargs_macros (); 6992 6993 // Check flexible array members. 6994 struct incomplete_array *ia = 6995 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 6996 ia->datasize = 10; 6997 for (int i = 0; i < ia->datasize; ++i) 6998 ia->data[i] = i * 1.234; 6999 7000 // Check named initializers. 7001 struct named_init ni = { 7002 .number = 34, 7003 .name = L"Test wide string", 7004 .average = 543.34343, 7005 }; 7006 7007 ni.number = 58; 7008 7009 int dynamic_array[ni.number]; 7010 dynamic_array[ni.number - 1] = 543; 7011 7012 // work around unused variable warnings 7013 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 7014 || dynamic_array[ni.number - 1] != 543); 7015 7016 ; 7017 return 0; 7018} 7019_ACEOF 7020for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 7021do 7022 CC="$ac_save_CC $ac_arg" 7023 if ac_fn_c_try_compile "$LINENO"; then : 7024 ac_cv_prog_cc_c99=$ac_arg 7025fi 7026rm -f core conftest.err conftest.$ac_objext 7027 test "x$ac_cv_prog_cc_c99" != "xno" && break 7028done 7029rm -f conftest.$ac_ext 7030CC=$ac_save_CC 7031 7032fi 7033# AC_CACHE_VAL 7034case "x$ac_cv_prog_cc_c99" in 7035 x) 7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 7037$as_echo "none needed" >&6; } ;; 7038 xno) 7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 7040$as_echo "unsupported" >&6; } ;; 7041 *) 7042 CC="$CC $ac_cv_prog_cc_c99" 7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 7044$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 7045esac 7046if test "x$ac_cv_prog_cc_c99" != xno; then : 7047 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 7048else 7049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 7050$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 7051if ${ac_cv_prog_cc_c89+:} false; then : 7052 $as_echo_n "(cached) " >&6 7053else 7054 ac_cv_prog_cc_c89=no 7055ac_save_CC=$CC 7056cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7057/* end confdefs.h. */ 7058#include <stdarg.h> 7059#include <stdio.h> 7060struct stat; 7061/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 7062struct buf { int x; }; 7063FILE * (*rcsopen) (struct buf *, struct stat *, int); 7064static char *e (p, i) 7065 char **p; 7066 int i; 7067{ 7068 return p[i]; 7069} 7070static char *f (char * (*g) (char **, int), char **p, ...) 7071{ 7072 char *s; 7073 va_list v; 7074 va_start (v,p); 7075 s = g (p, va_arg (v,int)); 7076 va_end (v); 7077 return s; 7078} 7079 7080/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 7081 function prototypes and stuff, but not '\xHH' hex character constants. 7082 These don't provoke an error unfortunately, instead are silently treated 7083 as 'x'. The following induces an error, until -std is added to get 7084 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 7085 array size at least. It's necessary to write '\x00'==0 to get something 7086 that's true only with -std. */ 7087int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 7088 7089/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 7090 inside strings and character constants. */ 7091#define FOO(x) 'x' 7092int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 7093 7094int test (int i, double x); 7095struct s1 {int (*f) (int a);}; 7096struct s2 {int (*f) (double a);}; 7097int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 7098int argc; 7099char **argv; 7100int 7101main () 7102{ 7103return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 7104 ; 7105 return 0; 7106} 7107_ACEOF 7108for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 7109 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 7110do 7111 CC="$ac_save_CC $ac_arg" 7112 if ac_fn_c_try_compile "$LINENO"; then : 7113 ac_cv_prog_cc_c89=$ac_arg 7114fi 7115rm -f core conftest.err conftest.$ac_objext 7116 test "x$ac_cv_prog_cc_c89" != "xno" && break 7117done 7118rm -f conftest.$ac_ext 7119CC=$ac_save_CC 7120 7121fi 7122# AC_CACHE_VAL 7123case "x$ac_cv_prog_cc_c89" in 7124 x) 7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 7126$as_echo "none needed" >&6; } ;; 7127 xno) 7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 7129$as_echo "unsupported" >&6; } ;; 7130 *) 7131 CC="$CC $ac_cv_prog_cc_c89" 7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 7133$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 7134esac 7135if test "x$ac_cv_prog_cc_c89" != xno; then : 7136 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 7137else 7138 ac_cv_prog_cc_stdc=no 7139fi 7140 7141fi 7142 ;; 7143esac 7144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5 7145$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } 7146 if ${ac_cv_prog_cc_stdc+:} false; then : 7147 $as_echo_n "(cached) " >&6 7148fi 7149 7150 case $ac_cv_prog_cc_stdc in #( 7151 no) : 7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 7153$as_echo "unsupported" >&6; } ;; #( 7154 '') : 7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 7156$as_echo "none needed" >&6; } ;; #( 7157 *) : 7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5 7159$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; 7160esac 7161 7162ac_ext=c 7163ac_cpp='$CPP $CPPFLAGS' 7164ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7165ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7166ac_compiler_gnu=$ac_cv_c_compiler_gnu 7167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7168$as_echo_n "checking how to run the C preprocessor... " >&6; } 7169# On Suns, sometimes $CPP names a directory. 7170if test -n "$CPP" && test -d "$CPP"; then 7171 CPP= 7172fi 7173if test -z "$CPP"; then 7174 if ${ac_cv_prog_CPP+:} false; then : 7175 $as_echo_n "(cached) " >&6 7176else 7177 # Double quotes because CPP needs to be expanded 7178 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7179 do 7180 ac_preproc_ok=false 7181for ac_c_preproc_warn_flag in '' yes 7182do 7183 # Use a header file that comes with gcc, so configuring glibc 7184 # with a fresh cross-compiler works. 7185 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7186 # <limits.h> exists even on freestanding compilers. 7187 # On the NeXT, cc -E runs the code through the compiler's parser, 7188 # not just through cpp. "Syntax error" is here to catch this case. 7189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7190/* end confdefs.h. */ 7191#ifdef __STDC__ 7192# include <limits.h> 7193#else 7194# include <assert.h> 7195#endif 7196 Syntax error 7197_ACEOF 7198if ac_fn_c_try_cpp "$LINENO"; then : 7199 7200else 7201 # Broken: fails on valid input. 7202continue 7203fi 7204rm -f conftest.err conftest.i conftest.$ac_ext 7205 7206 # OK, works on sane cases. Now check whether nonexistent headers 7207 # can be detected and how. 7208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7209/* end confdefs.h. */ 7210#include <ac_nonexistent.h> 7211_ACEOF 7212if ac_fn_c_try_cpp "$LINENO"; then : 7213 # Broken: success on invalid input. 7214continue 7215else 7216 # Passes both tests. 7217ac_preproc_ok=: 7218break 7219fi 7220rm -f conftest.err conftest.i conftest.$ac_ext 7221 7222done 7223# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7224rm -f conftest.i conftest.err conftest.$ac_ext 7225if $ac_preproc_ok; then : 7226 break 7227fi 7228 7229 done 7230 ac_cv_prog_CPP=$CPP 7231 7232fi 7233 CPP=$ac_cv_prog_CPP 7234else 7235 ac_cv_prog_CPP=$CPP 7236fi 7237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7238$as_echo "$CPP" >&6; } 7239ac_preproc_ok=false 7240for ac_c_preproc_warn_flag in '' yes 7241do 7242 # Use a header file that comes with gcc, so configuring glibc 7243 # with a fresh cross-compiler works. 7244 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7245 # <limits.h> exists even on freestanding compilers. 7246 # On the NeXT, cc -E runs the code through the compiler's parser, 7247 # not just through cpp. "Syntax error" is here to catch this case. 7248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7249/* end confdefs.h. */ 7250#ifdef __STDC__ 7251# include <limits.h> 7252#else 7253# include <assert.h> 7254#endif 7255 Syntax error 7256_ACEOF 7257if ac_fn_c_try_cpp "$LINENO"; then : 7258 7259else 7260 # Broken: fails on valid input. 7261continue 7262fi 7263rm -f conftest.err conftest.i conftest.$ac_ext 7264 7265 # OK, works on sane cases. Now check whether nonexistent headers 7266 # can be detected and how. 7267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7268/* end confdefs.h. */ 7269#include <ac_nonexistent.h> 7270_ACEOF 7271if ac_fn_c_try_cpp "$LINENO"; then : 7272 # Broken: success on invalid input. 7273continue 7274else 7275 # Passes both tests. 7276ac_preproc_ok=: 7277break 7278fi 7279rm -f conftest.err conftest.i conftest.$ac_ext 7280 7281done 7282# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7283rm -f conftest.i conftest.err conftest.$ac_ext 7284if $ac_preproc_ok; then : 7285 7286else 7287 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7288$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7289as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7290See \`config.log' for more details" "$LINENO" 5; } 7291fi 7292 7293ac_ext=c 7294ac_cpp='$CPP $CPPFLAGS' 7295ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7296ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7297ac_compiler_gnu=$ac_cv_c_compiler_gnu 7298 7299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 7300$as_echo_n "checking for a sed that does not truncate output... " >&6; } 7301if ${ac_cv_path_SED+:} false; then : 7302 $as_echo_n "(cached) " >&6 7303else 7304 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 7305 for ac_i in 1 2 3 4 5 6 7; do 7306 ac_script="$ac_script$as_nl$ac_script" 7307 done 7308 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 7309 { ac_script=; unset ac_script;} 7310 if test -z "$SED"; then 7311 ac_path_SED_found=false 7312 # Loop through the user's path and test for each of PROGNAME-LIST 7313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7314for as_dir in $PATH 7315do 7316 IFS=$as_save_IFS 7317 test -z "$as_dir" && as_dir=. 7318 for ac_prog in sed gsed; do 7319 for ac_exec_ext in '' $ac_executable_extensions; do 7320 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 7321 as_fn_executable_p "$ac_path_SED" || continue 7322# Check for GNU ac_path_SED and select it if it is found. 7323 # Check for GNU $ac_path_SED 7324case `"$ac_path_SED" --version 2>&1` in 7325*GNU*) 7326 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 7327*) 7328 ac_count=0 7329 $as_echo_n 0123456789 >"conftest.in" 7330 while : 7331 do 7332 cat "conftest.in" "conftest.in" >"conftest.tmp" 7333 mv "conftest.tmp" "conftest.in" 7334 cp "conftest.in" "conftest.nl" 7335 $as_echo '' >> "conftest.nl" 7336 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 7337 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7338 as_fn_arith $ac_count + 1 && ac_count=$as_val 7339 if test $ac_count -gt ${ac_path_SED_max-0}; then 7340 # Best one so far, save it but keep looking for a better one 7341 ac_cv_path_SED="$ac_path_SED" 7342 ac_path_SED_max=$ac_count 7343 fi 7344 # 10*(2^10) chars as input seems more than enough 7345 test $ac_count -gt 10 && break 7346 done 7347 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7348esac 7349 7350 $ac_path_SED_found && break 3 7351 done 7352 done 7353 done 7354IFS=$as_save_IFS 7355 if test -z "$ac_cv_path_SED"; then 7356 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 7357 fi 7358else 7359 ac_cv_path_SED=$SED 7360fi 7361 7362fi 7363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 7364$as_echo "$ac_cv_path_SED" >&6; } 7365 SED="$ac_cv_path_SED" 7366 rm -f conftest.sed 7367 7368test -z "$SED" && SED=sed 7369Xsed="$SED -e 1s/^X//" 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 7382$as_echo_n "checking for fgrep... " >&6; } 7383if ${ac_cv_path_FGREP+:} false; then : 7384 $as_echo_n "(cached) " >&6 7385else 7386 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 7387 then ac_cv_path_FGREP="$GREP -F" 7388 else 7389 if test -z "$FGREP"; then 7390 ac_path_FGREP_found=false 7391 # Loop through the user's path and test for each of PROGNAME-LIST 7392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7393for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7394do 7395 IFS=$as_save_IFS 7396 test -z "$as_dir" && as_dir=. 7397 for ac_prog in fgrep; do 7398 for ac_exec_ext in '' $ac_executable_extensions; do 7399 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 7400 as_fn_executable_p "$ac_path_FGREP" || continue 7401# Check for GNU ac_path_FGREP and select it if it is found. 7402 # Check for GNU $ac_path_FGREP 7403case `"$ac_path_FGREP" --version 2>&1` in 7404*GNU*) 7405 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 7406*) 7407 ac_count=0 7408 $as_echo_n 0123456789 >"conftest.in" 7409 while : 7410 do 7411 cat "conftest.in" "conftest.in" >"conftest.tmp" 7412 mv "conftest.tmp" "conftest.in" 7413 cp "conftest.in" "conftest.nl" 7414 $as_echo 'FGREP' >> "conftest.nl" 7415 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 7416 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7417 as_fn_arith $ac_count + 1 && ac_count=$as_val 7418 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 7419 # Best one so far, save it but keep looking for a better one 7420 ac_cv_path_FGREP="$ac_path_FGREP" 7421 ac_path_FGREP_max=$ac_count 7422 fi 7423 # 10*(2^10) chars as input seems more than enough 7424 test $ac_count -gt 10 && break 7425 done 7426 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7427esac 7428 7429 $ac_path_FGREP_found && break 3 7430 done 7431 done 7432 done 7433IFS=$as_save_IFS 7434 if test -z "$ac_cv_path_FGREP"; then 7435 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7436 fi 7437else 7438 ac_cv_path_FGREP=$FGREP 7439fi 7440 7441 fi 7442fi 7443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 7444$as_echo "$ac_cv_path_FGREP" >&6; } 7445 FGREP="$ac_cv_path_FGREP" 7446 7447 7448test -z "$GREP" && GREP=grep 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 7467ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 7468ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 7469 7470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 7471$as_echo_n "checking how to print strings... " >&6; } 7472# Test print first, because it will be a builtin if present. 7473if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 7474 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 7475 ECHO='print -r --' 7476elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 7477 ECHO='printf %s\n' 7478else 7479 # Use this function as a fallback that always works. 7480 func_fallback_echo () 7481 { 7482 eval 'cat <<_LTECHO_EOF 7483$1 7484_LTECHO_EOF' 7485 } 7486 ECHO='func_fallback_echo' 7487fi 7488 7489# func_echo_all arg... 7490# Invoke $ECHO with all args, space-separated. 7491func_echo_all () 7492{ 7493 $ECHO "" 7494} 7495 7496case "$ECHO" in 7497 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 7498$as_echo "printf" >&6; } ;; 7499 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 7500$as_echo "print -r" >&6; } ;; 7501 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 7502$as_echo "cat" >&6; } ;; 7503esac 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520# Check whether --with-gnu-ld was given. 7521if test "${with_gnu_ld+set}" = set; then : 7522 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 7523else 7524 with_gnu_ld=no 7525fi 7526 7527ac_prog=ld 7528if test "$GCC" = yes; then 7529 # Check if gcc -print-prog-name=ld gives a path. 7530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 7531$as_echo_n "checking for ld used by $CC... " >&6; } 7532 case $host in 7533 *-*-mingw*) 7534 # gcc leaves a trailing carriage return which upsets mingw 7535 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 7536 *) 7537 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 7538 esac 7539 case $ac_prog in 7540 # Accept absolute paths. 7541 [\\/]* | ?:[\\/]*) 7542 re_direlt='/[^/][^/]*/\.\./' 7543 # Canonicalize the pathname of ld 7544 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 7545 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 7546 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 7547 done 7548 test -z "$LD" && LD="$ac_prog" 7549 ;; 7550 "") 7551 # If it fails, then pretend we aren't using GCC. 7552 ac_prog=ld 7553 ;; 7554 *) 7555 # If it is relative, then search for the first ld in PATH. 7556 with_gnu_ld=unknown 7557 ;; 7558 esac 7559elif test "$with_gnu_ld" = yes; then 7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 7561$as_echo_n "checking for GNU ld... " >&6; } 7562else 7563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 7564$as_echo_n "checking for non-GNU ld... " >&6; } 7565fi 7566if ${lt_cv_path_LD+:} false; then : 7567 $as_echo_n "(cached) " >&6 7568else 7569 if test -z "$LD"; then 7570 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7571 for ac_dir in $PATH; do 7572 IFS="$lt_save_ifs" 7573 test -z "$ac_dir" && ac_dir=. 7574 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 7575 lt_cv_path_LD="$ac_dir/$ac_prog" 7576 # Check to see if the program is GNU ld. I'd rather use --version, 7577 # but apparently some variants of GNU ld only accept -v. 7578 # Break only if it was the GNU/non-GNU ld that we prefer. 7579 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 7580 *GNU* | *'with BFD'*) 7581 test "$with_gnu_ld" != no && break 7582 ;; 7583 *) 7584 test "$with_gnu_ld" != yes && break 7585 ;; 7586 esac 7587 fi 7588 done 7589 IFS="$lt_save_ifs" 7590else 7591 lt_cv_path_LD="$LD" # Let the user override the test with a path. 7592fi 7593fi 7594 7595LD="$lt_cv_path_LD" 7596if test -n "$LD"; then 7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 7598$as_echo "$LD" >&6; } 7599else 7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7601$as_echo "no" >&6; } 7602fi 7603test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 7604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 7605$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 7606if ${lt_cv_prog_gnu_ld+:} false; then : 7607 $as_echo_n "(cached) " >&6 7608else 7609 # I'd rather use --version here, but apparently some GNU lds only accept -v. 7610case `$LD -v 2>&1 </dev/null` in 7611*GNU* | *'with BFD'*) 7612 lt_cv_prog_gnu_ld=yes 7613 ;; 7614*) 7615 lt_cv_prog_gnu_ld=no 7616 ;; 7617esac 7618fi 7619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 7620$as_echo "$lt_cv_prog_gnu_ld" >&6; } 7621with_gnu_ld=$lt_cv_prog_gnu_ld 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 7633$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 7634if ${ac_cv_prog_cc_c99+:} false; then : 7635 $as_echo_n "(cached) " >&6 7636else 7637 ac_cv_prog_cc_c99=no 7638ac_save_CC=$CC 7639cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7640/* end confdefs.h. */ 7641#include <stdarg.h> 7642#include <stdbool.h> 7643#include <stdlib.h> 7644#include <wchar.h> 7645#include <stdio.h> 7646 7647// Check varargs macros. These examples are taken from C99 6.10.3.5. 7648#define debug(...) fprintf (stderr, __VA_ARGS__) 7649#define showlist(...) puts (#__VA_ARGS__) 7650#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 7651static void 7652test_varargs_macros (void) 7653{ 7654 int x = 1234; 7655 int y = 5678; 7656 debug ("Flag"); 7657 debug ("X = %d\n", x); 7658 showlist (The first, second, and third items.); 7659 report (x>y, "x is %d but y is %d", x, y); 7660} 7661 7662// Check long long types. 7663#define BIG64 18446744073709551615ull 7664#define BIG32 4294967295ul 7665#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 7666#if !BIG_OK 7667 your preprocessor is broken; 7668#endif 7669#if BIG_OK 7670#else 7671 your preprocessor is broken; 7672#endif 7673static long long int bignum = -9223372036854775807LL; 7674static unsigned long long int ubignum = BIG64; 7675 7676struct incomplete_array 7677{ 7678 int datasize; 7679 double data[]; 7680}; 7681 7682struct named_init { 7683 int number; 7684 const wchar_t *name; 7685 double average; 7686}; 7687 7688typedef const char *ccp; 7689 7690static inline int 7691test_restrict (ccp restrict text) 7692{ 7693 // See if C++-style comments work. 7694 // Iterate through items via the restricted pointer. 7695 // Also check for declarations in for loops. 7696 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 7697 continue; 7698 return 0; 7699} 7700 7701// Check varargs and va_copy. 7702static void 7703test_varargs (const char *format, ...) 7704{ 7705 va_list args; 7706 va_start (args, format); 7707 va_list args_copy; 7708 va_copy (args_copy, args); 7709 7710 const char *str; 7711 int number; 7712 float fnumber; 7713 7714 while (*format) 7715 { 7716 switch (*format++) 7717 { 7718 case 's': // string 7719 str = va_arg (args_copy, const char *); 7720 break; 7721 case 'd': // int 7722 number = va_arg (args_copy, int); 7723 break; 7724 case 'f': // float 7725 fnumber = va_arg (args_copy, double); 7726 break; 7727 default: 7728 break; 7729 } 7730 } 7731 va_end (args_copy); 7732 va_end (args); 7733} 7734 7735int 7736main () 7737{ 7738 7739 // Check bool. 7740 _Bool success = false; 7741 7742 // Check restrict. 7743 if (test_restrict ("String literal") == 0) 7744 success = true; 7745 char *restrict newvar = "Another string"; 7746 7747 // Check varargs. 7748 test_varargs ("s, d' f .", "string", 65, 34.234); 7749 test_varargs_macros (); 7750 7751 // Check flexible array members. 7752 struct incomplete_array *ia = 7753 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 7754 ia->datasize = 10; 7755 for (int i = 0; i < ia->datasize; ++i) 7756 ia->data[i] = i * 1.234; 7757 7758 // Check named initializers. 7759 struct named_init ni = { 7760 .number = 34, 7761 .name = L"Test wide string", 7762 .average = 543.34343, 7763 }; 7764 7765 ni.number = 58; 7766 7767 int dynamic_array[ni.number]; 7768 dynamic_array[ni.number - 1] = 543; 7769 7770 // work around unused variable warnings 7771 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 7772 || dynamic_array[ni.number - 1] != 543); 7773 7774 ; 7775 return 0; 7776} 7777_ACEOF 7778for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 7779do 7780 CC="$ac_save_CC $ac_arg" 7781 if ac_fn_c_try_compile "$LINENO"; then : 7782 ac_cv_prog_cc_c99=$ac_arg 7783fi 7784rm -f core conftest.err conftest.$ac_objext 7785 test "x$ac_cv_prog_cc_c99" != "xno" && break 7786done 7787rm -f conftest.$ac_ext 7788CC=$ac_save_CC 7789 7790fi 7791# AC_CACHE_VAL 7792case "x$ac_cv_prog_cc_c99" in 7793 x) 7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 7795$as_echo "none needed" >&6; } ;; 7796 xno) 7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 7798$as_echo "unsupported" >&6; } ;; 7799 *) 7800 CC="$CC $ac_cv_prog_cc_c99" 7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 7802$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 7803esac 7804if test "x$ac_cv_prog_cc_c99" != xno; then : 7805 7806fi 7807 7808 7809if test "x$CC" != xcc; then 7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 7811$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } 7812else 7813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 7814$as_echo_n "checking whether cc understands -c and -o together... " >&6; } 7815fi 7816set dummy $CC; ac_cc=`$as_echo "$2" | 7817 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 7818if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then : 7819 $as_echo_n "(cached) " >&6 7820else 7821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7822/* end confdefs.h. */ 7823 7824int 7825main () 7826{ 7827 7828 ; 7829 return 0; 7830} 7831_ACEOF 7832# Make sure it works both with $CC and with simple cc. 7833# We do the test twice because some compilers refuse to overwrite an 7834# existing .o file with -o, though they will create one. 7835ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 7836rm -f conftest2.* 7837if { { case "(($ac_try" in 7838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7839 *) ac_try_echo=$ac_try;; 7840esac 7841eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7842$as_echo "$ac_try_echo"; } >&5 7843 (eval "$ac_try") 2>&5 7844 ac_status=$? 7845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7846 test $ac_status = 0; } && 7847 test -f conftest2.$ac_objext && { { case "(($ac_try" in 7848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7849 *) ac_try_echo=$ac_try;; 7850esac 7851eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7852$as_echo "$ac_try_echo"; } >&5 7853 (eval "$ac_try") 2>&5 7854 ac_status=$? 7855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7856 test $ac_status = 0; }; 7857then 7858 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 7859 if test "x$CC" != xcc; then 7860 # Test first that cc exists at all. 7861 if { ac_try='cc -c conftest.$ac_ext >&5' 7862 { { case "(($ac_try" in 7863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7864 *) ac_try_echo=$ac_try;; 7865esac 7866eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7867$as_echo "$ac_try_echo"; } >&5 7868 (eval "$ac_try") 2>&5 7869 ac_status=$? 7870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7871 test $ac_status = 0; }; }; then 7872 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 7873 rm -f conftest2.* 7874 if { { case "(($ac_try" in 7875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7876 *) ac_try_echo=$ac_try;; 7877esac 7878eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7879$as_echo "$ac_try_echo"; } >&5 7880 (eval "$ac_try") 2>&5 7881 ac_status=$? 7882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7883 test $ac_status = 0; } && 7884 test -f conftest2.$ac_objext && { { case "(($ac_try" in 7885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7886 *) ac_try_echo=$ac_try;; 7887esac 7888eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7889$as_echo "$ac_try_echo"; } >&5 7890 (eval "$ac_try") 2>&5 7891 ac_status=$? 7892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7893 test $ac_status = 0; }; 7894 then 7895 # cc works too. 7896 : 7897 else 7898 # cc exists but doesn't like -o. 7899 eval ac_cv_prog_cc_${ac_cc}_c_o=no 7900 fi 7901 fi 7902 fi 7903else 7904 eval ac_cv_prog_cc_${ac_cc}_c_o=no 7905fi 7906rm -f core conftest* 7907 7908fi 7909if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7911$as_echo "yes" >&6; } 7912else 7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7914$as_echo "no" >&6; } 7915 7916$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h 7917 7918fi 7919 7920# FIXME: we rely on the cache variable name because 7921# there is no other way. 7922set dummy $CC 7923am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 7924eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o 7925if test "$am_t" != yes; then 7926 # Losing compiler, so override with the script. 7927 # FIXME: It is wrong to rewrite CC. 7928 # But if we don't then we get into trouble of one sort or another. 7929 # A longer-term fix would be to have automake use am__CC in this case, 7930 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 7931 CC="$am_aux_dir/compile $CC" 7932fi 7933 7934 7935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5 7936$as_echo_n "checking CFLAGS for maximum warnings... " >&6; } 7937if ${ac_cv_cflags_warn_all+:} false; then : 7938 $as_echo_n "(cached) " >&6 7939else 7940 ac_cv_cflags_warn_all="no, unknown" 7941 ac_ext=c 7942ac_cpp='$CPP $CPPFLAGS' 7943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7945ac_compiler_gnu=$ac_cv_c_compiler_gnu 7946 7947 ac_save_CFLAGS="$CFLAGS" 7948for ac_arg in "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" # 7949do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` 7950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7951/* end confdefs.h. */ 7952 7953int 7954main () 7955{ 7956 7957 ; 7958 return 0; 7959} 7960_ACEOF 7961if ac_fn_c_try_compile "$LINENO"; then : 7962 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break 7963fi 7964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7965done 7966 CFLAGS="$ac_save_CFLAGS" 7967 ac_ext=c 7968ac_cpp='$CPP $CPPFLAGS' 7969ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7970ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7971ac_compiler_gnu=$ac_cv_c_compiler_gnu 7972 7973 7974fi 7975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5 7976$as_echo "$ac_cv_cflags_warn_all" >&6; } 7977case ".$ac_cv_cflags_warn_all" in 7978 .ok|.ok,*) ;; 7979 .|.no|.no,*) 7980 ;; 7981 *) 7982 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null 7983 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5 7984 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5 7985 ac_status=$? 7986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7987 test $ac_status = 0; } 7988 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5 7989 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5 7990 ac_status=$? 7991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7992 test $ac_status = 0; } 7993 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all" 7994 fi 7995 ;; 7996esac 7997 7998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5 7999$as_echo_n "checking for C compiler vendor... " >&6; } 8000if ${ax_cv_c_compiler_vendor+:} false; then : 8001 $as_echo_n "(cached) " >&6 8002else 8003 # note: don't check for gcc first since some other compilers define __GNUC__ 8004 vendors="intel: __ICC,__ECC,__INTEL_COMPILER 8005 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__ 8006 pathscale: __PATHCC__,__PATHSCALE__ 8007 clang: __clang__ 8008 gnu: __GNUC__ 8009 sun: __SUNPRO_C,__SUNPRO_CC 8010 hp: __HP_cc,__HP_aCC 8011 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER 8012 borland: __BORLANDC__,__TURBOC__ 8013 comeau: __COMO__ 8014 cray: _CRAYC 8015 kai: __KCC 8016 lcc: __LCC__ 8017 sgi: __sgi,sgi 8018 microsoft: _MSC_VER 8019 metrowerks: __MWERKS__ 8020 watcom: __WATCOMC__ 8021 portland: __PGI 8022 unknown: UNKNOWN" 8023 for ventest in $vendors; do 8024 case $ventest in 8025 *:) vendor=$ventest; continue ;; 8026 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;; 8027 esac 8028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8029/* end confdefs.h. */ 8030 8031int 8032main () 8033{ 8034 8035 #if !($vencpp) 8036 thisisanerror; 8037 #endif 8038 8039 ; 8040 return 0; 8041} 8042_ACEOF 8043if ac_fn_c_try_compile "$LINENO"; then : 8044 break 8045fi 8046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8047 done 8048 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1` 8049 8050fi 8051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5 8052$as_echo "$ax_cv_c_compiler_vendor" >&6; } 8053 8054 8055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 8056$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 8057set x ${MAKE-make} 8058ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 8059if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 8060 $as_echo_n "(cached) " >&6 8061else 8062 cat >conftest.make <<\_ACEOF 8063SHELL = /bin/sh 8064all: 8065 @echo '@@@%%%=$(MAKE)=@@@%%%' 8066_ACEOF 8067# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 8068case `${MAKE-make} -f conftest.make 2>/dev/null` in 8069 *@@@%%%=?*=@@@%%%*) 8070 eval ac_cv_prog_make_${ac_make}_set=yes;; 8071 *) 8072 eval ac_cv_prog_make_${ac_make}_set=no;; 8073esac 8074rm -f conftest.make 8075fi 8076if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8078$as_echo "yes" >&6; } 8079 SET_MAKE= 8080else 8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8082$as_echo "no" >&6; } 8083 SET_MAKE="MAKE=${MAKE-make}" 8084fi 8085 8086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 8087$as_echo_n "checking whether ln -s works... " >&6; } 8088LN_S=$as_ln_s 8089if test "$LN_S" = "ln -s"; then 8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8091$as_echo "yes" >&6; } 8092else 8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 8094$as_echo "no, using $LN_S" >&6; } 8095fi 8096 8097for ac_prog in gawk mawk nawk awk 8098do 8099 # Extract the first word of "$ac_prog", so it can be a program name with args. 8100set dummy $ac_prog; ac_word=$2 8101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8102$as_echo_n "checking for $ac_word... " >&6; } 8103if ${ac_cv_prog_AWK+:} false; then : 8104 $as_echo_n "(cached) " >&6 8105else 8106 if test -n "$AWK"; then 8107 ac_cv_prog_AWK="$AWK" # Let the user override the test. 8108else 8109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8110for as_dir in $PATH 8111do 8112 IFS=$as_save_IFS 8113 test -z "$as_dir" && as_dir=. 8114 for ac_exec_ext in '' $ac_executable_extensions; do 8115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8116 ac_cv_prog_AWK="$ac_prog" 8117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8118 break 2 8119 fi 8120done 8121 done 8122IFS=$as_save_IFS 8123 8124fi 8125fi 8126AWK=$ac_cv_prog_AWK 8127if test -n "$AWK"; then 8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 8129$as_echo "$AWK" >&6; } 8130else 8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8132$as_echo "no" >&6; } 8133fi 8134 8135 8136 test -n "$AWK" && break 8137done 8138 8139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5 8140$as_echo_n "checking if malloc debugging is wanted... " >&6; } 8141 8142# Check whether --with-dmalloc was given. 8143if test "${with_dmalloc+set}" = set; then : 8144 withval=$with_dmalloc; if test "$withval" = yes; then 8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8146$as_echo "yes" >&6; } 8147 8148$as_echo "#define WITH_DMALLOC 1" >>confdefs.h 8149 8150 LIBS="$LIBS -ldmalloc" 8151 LDFLAGS="$LDFLAGS -g" 8152else 8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8154$as_echo "no" >&6; } 8155fi 8156else 8157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8158$as_echo "no" >&6; } 8159fi 8160 8161 8162 8163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5 8164$as_echo_n "checking for __attribute__... " >&6; } 8165if ${ax_cv___attribute__+:} false; then : 8166 $as_echo_n "(cached) " >&6 8167else 8168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8169/* end confdefs.h. */ 8170#include <stdlib.h> 8171 static void foo(void) __attribute__ ((__unused__)); 8172 static void 8173 foo(void) { 8174 exit(1); 8175 } 8176 8177int 8178main () 8179{ 8180 8181 ; 8182 return 0; 8183} 8184_ACEOF 8185if ac_fn_c_try_compile "$LINENO"; then : 8186 ax_cv___attribute__=yes 8187else 8188 ax_cv___attribute__=no 8189 8190fi 8191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8192 8193fi 8194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5 8195$as_echo "$ax_cv___attribute__" >&6; } 8196 if test "$ax_cv___attribute__" = "yes"; then 8197 8198$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h 8199 8200 fi 8201 8202 8203 8204 8205 8206# Check whether --with-gcc-arch was given. 8207if test "${with_gcc_arch+set}" = set; then : 8208 withval=$with_gcc_arch; ax_gcc_arch=$withval 8209else 8210 ax_gcc_arch=no 8211fi 8212 8213 8214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5 8215$as_echo_n "checking for gcc architecture flag... " >&6; } 8216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 8217$as_echo "" >&6; } 8218if ${ax_cv_gcc_archflag+:} false; then : 8219 $as_echo_n "(cached) " >&6 8220else 8221 8222ax_cv_gcc_archflag="unknown" 8223 8224if test "$GCC" = yes; then 8225 8226if test "x$ax_gcc_arch" = xyes; then 8227ax_gcc_arch="" 8228if test "$cross_compiling" = no; then 8229case $host_cpu in 8230 i[3456]86*|x86_64*) # use cpuid codes 8231 8232ac_ext=c 8233ac_cpp='$CPP $CPPFLAGS' 8234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8236ac_compiler_gnu=$ac_cv_c_compiler_gnu 8237 8238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5 8239$as_echo_n "checking for x86 cpuid 0 output... " >&6; } 8240if ${ax_cv_gcc_x86_cpuid_0+:} false; then : 8241 $as_echo_n "(cached) " >&6 8242else 8243 if test "$cross_compiling" = yes; then : 8244 ax_cv_gcc_x86_cpuid_0=unknown 8245else 8246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8247/* end confdefs.h. */ 8248#include <stdio.h> 8249int 8250main () 8251{ 8252 8253 int op = 0, eax, ebx, ecx, edx; 8254 FILE *f; 8255 __asm__("cpuid" 8256 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx) 8257 : "a" (op)); 8258 f = fopen("conftest_cpuid", "w"); if (!f) return 1; 8259 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx); 8260 fclose(f); 8261 return 0; 8262 8263 ; 8264 return 0; 8265} 8266_ACEOF 8267if ac_fn_c_try_run "$LINENO"; then : 8268 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid 8269else 8270 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid 8271fi 8272rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8273 conftest.$ac_objext conftest.beam conftest.$ac_ext 8274fi 8275 8276fi 8277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5 8278$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; } 8279ac_ext=c 8280ac_cpp='$CPP $CPPFLAGS' 8281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8283ac_compiler_gnu=$ac_cv_c_compiler_gnu 8284 8285 8286 8287ac_ext=c 8288ac_cpp='$CPP $CPPFLAGS' 8289ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8290ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8291ac_compiler_gnu=$ac_cv_c_compiler_gnu 8292 8293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5 8294$as_echo_n "checking for x86 cpuid 1 output... " >&6; } 8295if ${ax_cv_gcc_x86_cpuid_1+:} false; then : 8296 $as_echo_n "(cached) " >&6 8297else 8298 if test "$cross_compiling" = yes; then : 8299 ax_cv_gcc_x86_cpuid_1=unknown 8300else 8301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8302/* end confdefs.h. */ 8303#include <stdio.h> 8304int 8305main () 8306{ 8307 8308 int op = 1, eax, ebx, ecx, edx; 8309 FILE *f; 8310 __asm__("cpuid" 8311 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx) 8312 : "a" (op)); 8313 f = fopen("conftest_cpuid", "w"); if (!f) return 1; 8314 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx); 8315 fclose(f); 8316 return 0; 8317 8318 ; 8319 return 0; 8320} 8321_ACEOF 8322if ac_fn_c_try_run "$LINENO"; then : 8323 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid 8324else 8325 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid 8326fi 8327rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8328 conftest.$ac_objext conftest.beam conftest.$ac_ext 8329fi 8330 8331fi 8332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5 8333$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; } 8334ac_ext=c 8335ac_cpp='$CPP $CPPFLAGS' 8336ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8337ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8338ac_compiler_gnu=$ac_cv_c_compiler_gnu 8339 8340 8341 case $ax_cv_gcc_x86_cpuid_0 in 8342 *:756e6547:*:*) # Intel 8343 case $ax_cv_gcc_x86_cpuid_1 in 8344 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;; 8345 *5??:*:*:*) ax_gcc_arch=pentium ;; 8346 *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;; 8347 *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;; 8348 *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;; 8349 *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;; 8350 *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;; 8351 *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;; 8352 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;; 8353 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;; 8354 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;; 8355 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;; 8356 *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;; 8357 *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;; 8358 ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*) 8359 case $host_cpu in 8360 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;; 8361 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;; 8362 esac ;; 8363 ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";; 8364 esac ;; 8365 *:68747541:*:*) # AMD 8366 case $ax_cv_gcc_x86_cpuid_1 in 8367 *5[67]?:*:*:*) ax_gcc_arch=k6 ;; 8368 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;; 8369 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;; 8370 *60?:*:*:*) ax_gcc_arch=k7 ;; 8371 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;; 8372 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;; 8373 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;; 8374 *6[68a]?:*:*:*) 8375 8376ac_ext=c 8377ac_cpp='$CPP $CPPFLAGS' 8378ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8379ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8380ac_compiler_gnu=$ac_cv_c_compiler_gnu 8381 8382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5 8383$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; } 8384if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then : 8385 $as_echo_n "(cached) " >&6 8386else 8387 if test "$cross_compiling" = yes; then : 8388 ax_cv_gcc_x86_cpuid_0x80000006=unknown 8389else 8390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8391/* end confdefs.h. */ 8392#include <stdio.h> 8393int 8394main () 8395{ 8396 8397 int op = 0x80000006, eax, ebx, ecx, edx; 8398 FILE *f; 8399 __asm__("cpuid" 8400 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx) 8401 : "a" (op)); 8402 f = fopen("conftest_cpuid", "w"); if (!f) return 1; 8403 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx); 8404 fclose(f); 8405 return 0; 8406 8407 ; 8408 return 0; 8409} 8410_ACEOF 8411if ac_fn_c_try_run "$LINENO"; then : 8412 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid 8413else 8414 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid 8415fi 8416rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8417 conftest.$ac_objext conftest.beam conftest.$ac_ext 8418fi 8419 8420fi 8421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5 8422$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; } 8423ac_ext=c 8424ac_cpp='$CPP $CPPFLAGS' 8425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8427ac_compiler_gnu=$ac_cv_c_compiler_gnu 8428 8429 # L2 cache size 8430 case $ax_cv_gcc_x86_cpuid_0x80000006 in 8431 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256 8432 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;; 8433 *) ax_gcc_arch="athlon-4 athlon k7" ;; 8434 esac ;; 8435 ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;; 8436 ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;; 8437 ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;; 8438 ?00??f??:*:*:*) ax_gcc_arch="k8" ;; 8439 ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;; 8440 ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;; 8441 *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;; 8442 esac ;; 8443 *:746e6543:*:*) # IDT 8444 case $ax_cv_gcc_x86_cpuid_1 in 8445 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;; 8446 *58?:*:*:*) ax_gcc_arch=winchip2 ;; 8447 *6[78]?:*:*:*) ax_gcc_arch=c3 ;; 8448 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;; 8449 esac ;; 8450 esac 8451 if test x"$ax_gcc_arch" = x; then # fallback 8452 case $host_cpu in 8453 i586*) ax_gcc_arch=pentium ;; 8454 i686*) ax_gcc_arch=pentiumpro ;; 8455 esac 8456 fi 8457 ;; 8458 8459 sparc*) 8460 # Extract the first word of "prtdiag", so it can be a program name with args. 8461set dummy prtdiag; ac_word=$2 8462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8463$as_echo_n "checking for $ac_word... " >&6; } 8464if ${ac_cv_path_PRTDIAG+:} false; then : 8465 $as_echo_n "(cached) " >&6 8466else 8467 case $PRTDIAG in 8468 [\\/]* | ?:[\\/]*) 8469 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path. 8470 ;; 8471 *) 8472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8473as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/" 8474for as_dir in $as_dummy 8475do 8476 IFS=$as_save_IFS 8477 test -z "$as_dir" && as_dir=. 8478 for ac_exec_ext in '' $ac_executable_extensions; do 8479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8480 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext" 8481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8482 break 2 8483 fi 8484done 8485 done 8486IFS=$as_save_IFS 8487 8488 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag" 8489 ;; 8490esac 8491fi 8492PRTDIAG=$ac_cv_path_PRTDIAG 8493if test -n "$PRTDIAG"; then 8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5 8495$as_echo "$PRTDIAG" >&6; } 8496else 8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8498$as_echo "no" >&6; } 8499fi 8500 8501 8502 cputype=`(((grep cpu /proc/cpuinfo | cut -d: -f2) ; ($PRTDIAG -v |grep -i sparc) ; grep -i cpu /var/run/dmesg.boot ) | head -n 1) 2> /dev/null` 8503 cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters` 8504 case $cputype in 8505 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;; 8506 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;; 8507 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;; 8508 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;; 8509 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;; 8510 *cypress*) ax_gcc_arch=cypress ;; 8511 esac ;; 8512 8513 alphaev5) ax_gcc_arch=ev5 ;; 8514 alphaev56) ax_gcc_arch=ev56 ;; 8515 alphapca56) ax_gcc_arch="pca56 ev56" ;; 8516 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;; 8517 alphaev6) ax_gcc_arch=ev6 ;; 8518 alphaev67) ax_gcc_arch=ev67 ;; 8519 alphaev68) ax_gcc_arch="ev68 ev67" ;; 8520 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;; 8521 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;; 8522 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;; 8523 8524 powerpc*) 8525 cputype=`((grep cpu /proc/cpuinfo | head -n 1 | cut -d: -f2 | cut -d, -f1 | sed 's/ //g') ; /usr/bin/machine ; /bin/machine; grep CPU /var/run/dmesg.boot | head -n 1 | cut -d" " -f2) 2> /dev/null` 8526 cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'` 8527 case $cputype in 8528 *750*) ax_gcc_arch="750 G3" ;; 8529 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;; 8530 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;; 8531 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;; 8532 *970*) ax_gcc_arch="970 G5 power4";; 8533 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";; 8534 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";; 8535 603ev|8240) ax_gcc_arch="$cputype 603e 603";; 8536 *) ax_gcc_arch=$cputype ;; 8537 esac 8538 ax_gcc_arch="$ax_gcc_arch powerpc" 8539 ;; 8540esac 8541fi # not cross-compiling 8542fi # guess arch 8543 8544if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then 8545for arch in $ax_gcc_arch; do 8546 if test "xno" = xyes; then # if we require portable code 8547 flags="-mtune=$arch" 8548 # -mcpu=$arch and m$arch generate nonportable code on every arch except 8549 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr. 8550 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac 8551 else 8552 flags="-march=$arch -mcpu=$arch -m$arch" 8553 fi 8554 for flag in $flags; do 8555 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` 8556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 8557$as_echo_n "checking whether C compiler accepts $flag... " >&6; } 8558if eval \${$as_CACHEVAR+:} false; then : 8559 $as_echo_n "(cached) " >&6 8560else 8561 8562 ax_check_save_flags=$CFLAGS 8563 CFLAGS="$CFLAGS $flag" 8564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8565/* end confdefs.h. */ 8566 8567int 8568main () 8569{ 8570 8571 ; 8572 return 0; 8573} 8574_ACEOF 8575if ac_fn_c_try_compile "$LINENO"; then : 8576 eval "$as_CACHEVAR=yes" 8577else 8578 eval "$as_CACHEVAR=no" 8579fi 8580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8581 CFLAGS=$ax_check_save_flags 8582fi 8583eval ac_res=\$$as_CACHEVAR 8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8585$as_echo "$ac_res" >&6; } 8586if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : 8587 ax_cv_gcc_archflag=$flag; break 8588else 8589 : 8590fi 8591 8592 done 8593 test "x$ax_cv_gcc_archflag" = xunknown || break 8594done 8595fi 8596 8597fi # $GCC=yes 8598 8599fi 8600 8601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5 8602$as_echo_n "checking for gcc architecture flag... " >&6; } 8603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5 8604$as_echo "$ax_cv_gcc_archflag" >&6; } 8605if test "x$ax_cv_gcc_archflag" = xunknown; then 8606 : 8607else 8608 CFLAGS="$CFLAGS $ax_cv_gcc_archflag" 8609fi 8610 8611 8612 8613if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 8614 if test -n "$ac_tool_prefix"; then 8615 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 8616set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 8617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8618$as_echo_n "checking for $ac_word... " >&6; } 8619if ${ac_cv_path_PKG_CONFIG+:} false; then : 8620 $as_echo_n "(cached) " >&6 8621else 8622 case $PKG_CONFIG in 8623 [\\/]* | ?:[\\/]*) 8624 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 8625 ;; 8626 *) 8627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8628for as_dir in $PATH 8629do 8630 IFS=$as_save_IFS 8631 test -z "$as_dir" && as_dir=. 8632 for ac_exec_ext in '' $ac_executable_extensions; do 8633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8634 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 8635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8636 break 2 8637 fi 8638done 8639 done 8640IFS=$as_save_IFS 8641 8642 ;; 8643esac 8644fi 8645PKG_CONFIG=$ac_cv_path_PKG_CONFIG 8646if test -n "$PKG_CONFIG"; then 8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 8648$as_echo "$PKG_CONFIG" >&6; } 8649else 8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8651$as_echo "no" >&6; } 8652fi 8653 8654 8655fi 8656if test -z "$ac_cv_path_PKG_CONFIG"; then 8657 ac_pt_PKG_CONFIG=$PKG_CONFIG 8658 # Extract the first word of "pkg-config", so it can be a program name with args. 8659set dummy pkg-config; ac_word=$2 8660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8661$as_echo_n "checking for $ac_word... " >&6; } 8662if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 8663 $as_echo_n "(cached) " >&6 8664else 8665 case $ac_pt_PKG_CONFIG in 8666 [\\/]* | ?:[\\/]*) 8667 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 8668 ;; 8669 *) 8670 as_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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8677 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 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 8685 ;; 8686esac 8687fi 8688ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 8689if test -n "$ac_pt_PKG_CONFIG"; then 8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 8691$as_echo "$ac_pt_PKG_CONFIG" >&6; } 8692else 8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8694$as_echo "no" >&6; } 8695fi 8696 8697 if test "x$ac_pt_PKG_CONFIG" = x; then 8698 PKG_CONFIG="" 8699 else 8700 case $cross_compiling:$ac_tool_warned in 8701yes:) 8702{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8703$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8704ac_tool_warned=yes ;; 8705esac 8706 PKG_CONFIG=$ac_pt_PKG_CONFIG 8707 fi 8708else 8709 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 8710fi 8711 8712fi 8713if test -n "$PKG_CONFIG"; then 8714 _pkg_min_version=0.9.0 8715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 8716$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 8717 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8719$as_echo "yes" >&6; } 8720 else 8721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8722$as_echo "no" >&6; } 8723 PKG_CONFIG="" 8724 fi 8725 8726fi 8727 8728# Check for linker script support 8729 8730 # Check whether --enable-ld-version-script was given. 8731if test "${enable_ld_version_script+set}" = set; then : 8732 enableval=$enable_ld_version_script; have_ld_version_script=$enableval 8733fi 8734 8735 if test -z "$have_ld_version_script"; then 8736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5 8737$as_echo_n "checking if LD -Wl,--version-script works... " >&6; } 8738 save_LDFLAGS="$LDFLAGS" 8739 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map" 8740 cat > conftest.map <<EOF 8741foo 8742EOF 8743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8744/* end confdefs.h. */ 8745 8746int 8747main () 8748{ 8749 8750 ; 8751 return 0; 8752} 8753_ACEOF 8754if ac_fn_c_try_link "$LINENO"; then : 8755 accepts_syntax_errors=yes 8756else 8757 accepts_syntax_errors=no 8758fi 8759rm -f core conftest.err conftest.$ac_objext \ 8760 conftest$ac_exeext conftest.$ac_ext 8761 if test "$accepts_syntax_errors" = no; then 8762 cat > conftest.map <<EOF 8763VERS_1 { 8764 global: sym; 8765}; 8766 8767VERS_2 { 8768 global: sym; 8769} VERS_1; 8770EOF 8771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8772/* end confdefs.h. */ 8773 8774int 8775main () 8776{ 8777 8778 ; 8779 return 0; 8780} 8781_ACEOF 8782if ac_fn_c_try_link "$LINENO"; then : 8783 have_ld_version_script=yes 8784else 8785 have_ld_version_script=no 8786fi 8787rm -f core conftest.err conftest.$ac_objext \ 8788 conftest$ac_exeext conftest.$ac_ext 8789 else 8790 have_ld_version_script=no 8791 fi 8792 rm -f conftest.map 8793 LDFLAGS="$save_LDFLAGS" 8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5 8795$as_echo "$have_ld_version_script" >&6; } 8796 fi 8797 if test "$have_ld_version_script" = "yes"; then 8798 HAVE_LD_VERSION_SCRIPT_TRUE= 8799 HAVE_LD_VERSION_SCRIPT_FALSE='#' 8800else 8801 HAVE_LD_VERSION_SCRIPT_TRUE='#' 8802 HAVE_LD_VERSION_SCRIPT_FALSE= 8803fi 8804 8805 8806 8807# 8808# Enable run-time checking. 8809# 8810# Check whether --enable-bounds-checking was given. 8811if test "${enable_bounds_checking+set}" = set; then : 8812 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval 8813else 8814 enable_bounds_checking='no' 8815fi 8816 8817 8818if test "$enable_bounds_checking" = yes; then 8819 8820$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h 8821 8822fi 8823 8824# 8825# Tests for Windows 8826# 8827 8828 8829 8830GDI32_LIBS='' 8831native_win32_build='no' 8832cygwin_build='no' 8833case "${host_os}" in 8834 cygwin* ) 8835 cygwin_build='yes' 8836 GDI32_LIBS='-lgdi32' 8837 ;; 8838 mingw* ) 8839 native_win32_build='yes' 8840 GDI32_LIBS='-lgdi32' 8841 ;; 8842esac 8843if test "${GDI32_LIBS}x" != 'x'; then 8844 8845$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h 8846 8847fi 8848 8849 if test "${GDI32_LIBS}x" != 'x' ; then 8850 WINGDI32_DELEGATE_TRUE= 8851 WINGDI32_DELEGATE_FALSE='#' 8852else 8853 WINGDI32_DELEGATE_TRUE='#' 8854 WINGDI32_DELEGATE_FALSE= 8855fi 8856 8857 if test "${native_win32_build}" = 'yes' ; then 8858 WIN32_NATIVE_BUILD_TRUE= 8859 WIN32_NATIVE_BUILD_FALSE='#' 8860else 8861 WIN32_NATIVE_BUILD_TRUE='#' 8862 WIN32_NATIVE_BUILD_FALSE= 8863fi 8864 8865 if test "${cygwin_build}" = 'yes' ; then 8866 CYGWIN_BUILD_TRUE= 8867 CYGWIN_BUILD_FALSE='#' 8868else 8869 CYGWIN_BUILD_TRUE='#' 8870 CYGWIN_BUILD_FALSE= 8871fi 8872 8873 if test "x${CC}" = 'xcl.exe' ; then 8874 USING_CL_TRUE= 8875 USING_CL_FALSE='#' 8876else 8877 USING_CL_TRUE='#' 8878 USING_CL_FALSE= 8879fi 8880 8881 8882WinPathScript="${srcdirfull}/winpath.sh" 8883 8884 8885# 8886# Compiler flags tweaks 8887# 8888if test "${GCC}" != "yes"; then 8889 case "${host}" in 8890 *-*-hpux* ) 8891 # aCC: HP ANSI C++ B3910B A.03.34 8892 CFLAGS="${CFLAGS} -Wp,-H30000" 8893 if test -n "${CXXFLAGS}"; then 8894 CXXFLAGS='-AA' 8895 else 8896 CXXFLAGS="${CXXFLAGS} -AA" 8897 fi 8898 ;; 8899 *-dec-osf5.* ) 8900 # Compaq alphaev68-dec-osf5.1 compiler 8901 if test -n "${CXXFLAGS}"; then 8902 CXXFLAGS='-std strict_ansi -noimplicit_include' 8903 else 8904 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include" 8905 fi 8906 esac 8907fi 8908 8909# Check for lazy-loading. 8910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5 8911$as_echo_n "checking for linker lazyload option... " >&6; } 8912if ${im_cv_ld_lazyload+:} false; then : 8913 $as_echo_n "(cached) " >&6 8914else 8915 8916im_cv_ld_lazyload='none' 8917case "${host}" in 8918 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? ) 8919 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then 8920 im_cv_ld_lazyload='-Wl,-zlazyload' 8921 fi 8922 ;; 8923esac 8924 8925fi 8926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5 8927$as_echo "$im_cv_ld_lazyload" >&6; } 8928if test "${im_cv_ld_lazyload}" != 'none' ; then 8929 if test -z "${LDFLAGS}" ; then 8930 LDFLAGS="${im_cv_ld_lazyload}" 8931 else 8932 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}" 8933 fi 8934fi 8935 8936case "$host" in 8937 *darwin* | *-macos10*) 8938 CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=0" 8939 # Check whether --enable-osx-universal-binary was given. 8940if test "${enable_osx_universal_binary+set}" = set; then : 8941 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}" 8942else 8943 build_osxuniversal=no 8944fi 8945 8946 8947 if test "${build_osxuniversal}" != no ; then 8948 if test "$enable_dependency_tracking" != no ; then 8949 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking. 8950Please re-run configure with these options: 8951 --disable-dependency-tracking --enable-osx-universal-binary 8952 " "$LINENO" 5 8953 fi 8954 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386" 8955 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386" 8956 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386" 8957 fi 8958 ;; 8959esac 8960 8961# 8962# ARCH specific include directory 8963# 8964 8965# Check whether --with-includearch-dir was given. 8966if test "${with_includearch_dir+set}" = set; then : 8967 withval=$with_includearch_dir; includearch_dir=$withval 8968else 8969 includearch_dir=$INCLUDE_DIR 8970fi 8971 8972 8973eval "eval INCLUDEARCH_DIR=$includearch_dir" 8974 8975 8976# 8977# ARCH specific configuration directory 8978# 8979 8980# Check whether --with-sharearch-dir was given. 8981if test "${with_sharearch_dir+set}" = set; then : 8982 withval=$with_sharearch_dir; sharearch_dir=$withval 8983else 8984 sharearch_dir="${LIB_DIR}" 8985fi 8986 8987 8988eval "eval SHAREARCH_DIR=$sharearch_dir" 8989 8990 8991# Path to the pkgconfig folder 8992 8993# Check whether --with-pkgconfigdir was given. 8994if test "${with_pkgconfigdir+set}" = set; then : 8995 withval=$with_pkgconfigdir; pkgconfigdir="$withval" 8996else 8997 pkgconfigdir='${libdir}/pkgconfig' 8998fi 8999 9000 9001 9002# 9003# Enable support for threads 9004 9005# Check whether --with-threads was given. 9006if test "${with_threads+set}" = set; then : 9007 withval=$with_threads; with_threads=$withval 9008else 9009 with_threads='yes' 9010fi 9011 9012 9013have_threads=no 9014if test "$with_threads" != 'no'; then 9015 9016 9017ac_ext=c 9018ac_cpp='$CPP $CPPFLAGS' 9019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9021ac_compiler_gnu=$ac_cv_c_compiler_gnu 9022 9023ax_pthread_ok=no 9024 9025# We used to check for pthread.h first, but this fails if pthread.h 9026# requires special compiler flags (e.g. on True64 or Sequent). 9027# It gets checked for in the link test anyway. 9028 9029# First of all, check if the user has set any of the PTHREAD_LIBS, 9030# etcetera environment variables, and if threads linking works using 9031# them: 9032if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 9033 save_CFLAGS="$CFLAGS" 9034 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 9035 save_LIBS="$LIBS" 9036 LIBS="$PTHREAD_LIBS $LIBS" 9037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 9038$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 9039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9040/* end confdefs.h. */ 9041 9042/* Override any GCC internal prototype to avoid an error. 9043 Use char because int might match the return type of a GCC 9044 builtin and then its argument prototype would still apply. */ 9045#ifdef __cplusplus 9046extern "C" 9047#endif 9048char pthread_join (); 9049int 9050main () 9051{ 9052return pthread_join (); 9053 ; 9054 return 0; 9055} 9056_ACEOF 9057if ac_fn_c_try_link "$LINENO"; then : 9058 ax_pthread_ok=yes 9059fi 9060rm -f core conftest.err conftest.$ac_objext \ 9061 conftest$ac_exeext conftest.$ac_ext 9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 9063$as_echo "$ax_pthread_ok" >&6; } 9064 if test x"$ax_pthread_ok" = xno; then 9065 PTHREAD_LIBS="" 9066 PTHREAD_CFLAGS="" 9067 fi 9068 LIBS="$save_LIBS" 9069 CFLAGS="$save_CFLAGS" 9070fi 9071 9072# We must check for the threads library under a number of different 9073# names; the ordering is very important because some systems 9074# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 9075# libraries is broken (non-POSIX). 9076 9077# Create a list of thread flags to try. Items starting with a "-" are 9078# C compiler flags, and other items are library names, except for "none" 9079# which indicates that we try without any flags at all, and "pthread-config" 9080# which is a program returning the flags for the Pth emulation library. 9081 9082ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 9083 9084# The ordering *is* (sometimes) important. Some notes on the 9085# individual items follow: 9086 9087# pthreads: AIX (must check this before -lpthread) 9088# none: in case threads are in libc; should be tried before -Kthread and 9089# other compiler flags to prevent continual compiler warnings 9090# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 9091# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 9092# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 9093# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 9094# -pthreads: Solaris/gcc 9095# -mthreads: Mingw32/gcc, Lynx/gcc 9096# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 9097# doesn't hurt to check since this sometimes defines pthreads too; 9098# also defines -D_REENTRANT) 9099# ... -mt is also the pthreads flag for HP/aCC 9100# pthread: Linux, etcetera 9101# --thread-safe: KAI C++ 9102# pthread-config: use pthread-config program (for GNU Pth library) 9103 9104case ${host_os} in 9105 solaris*) 9106 9107 # On Solaris (at least, for some versions), libc contains stubbed 9108 # (non-functional) versions of the pthreads routines, so link-based 9109 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 9110 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 9111 # a function called by this macro, so we could check for that, but 9112 # who knows whether they'll stub that too in a future libc.) So, 9113 # we'll just look for -pthreads and -lpthread first: 9114 9115 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" 9116 ;; 9117 9118 darwin*) 9119 ax_pthread_flags="-pthread $ax_pthread_flags" 9120 ;; 9121esac 9122 9123if test x"$ax_pthread_ok" = xno; then 9124for flag in $ax_pthread_flags; do 9125 9126 case $flag in 9127 none) 9128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 9129$as_echo_n "checking whether pthreads work without any flags... " >&6; } 9130 ;; 9131 9132 -*) 9133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 9134$as_echo_n "checking whether pthreads work with $flag... " >&6; } 9135 PTHREAD_CFLAGS="$flag" 9136 ;; 9137 9138 pthread-config) 9139 # Extract the first word of "pthread-config", so it can be a program name with args. 9140set dummy pthread-config; ac_word=$2 9141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9142$as_echo_n "checking for $ac_word... " >&6; } 9143if ${ac_cv_prog_ax_pthread_config+:} false; then : 9144 $as_echo_n "(cached) " >&6 9145else 9146 if test -n "$ax_pthread_config"; then 9147 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 9148else 9149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9150for as_dir in $PATH 9151do 9152 IFS=$as_save_IFS 9153 test -z "$as_dir" && as_dir=. 9154 for ac_exec_ext in '' $ac_executable_extensions; do 9155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9156 ac_cv_prog_ax_pthread_config="yes" 9157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9158 break 2 9159 fi 9160done 9161 done 9162IFS=$as_save_IFS 9163 9164 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 9165fi 9166fi 9167ax_pthread_config=$ac_cv_prog_ax_pthread_config 9168if test -n "$ax_pthread_config"; then 9169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 9170$as_echo "$ax_pthread_config" >&6; } 9171else 9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9173$as_echo "no" >&6; } 9174fi 9175 9176 9177 if test x"$ax_pthread_config" = xno; then continue; fi 9178 PTHREAD_CFLAGS="`pthread-config --cflags`" 9179 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 9180 ;; 9181 9182 *) 9183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 9184$as_echo_n "checking for the pthreads library -l$flag... " >&6; } 9185 PTHREAD_LIBS="-l$flag" 9186 ;; 9187 esac 9188 9189 save_LIBS="$LIBS" 9190 save_CFLAGS="$CFLAGS" 9191 LIBS="$PTHREAD_LIBS $LIBS" 9192 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 9193 9194 # Check for various functions. We must include pthread.h, 9195 # since some functions may be macros. (On the Sequent, we 9196 # need a special flag -Kthread to make this header compile.) 9197 # We check for pthread_join because it is in -lpthread on IRIX 9198 # while pthread_create is in libc. We check for pthread_attr_init 9199 # due to DEC craziness with -lpthreads. We check for 9200 # pthread_cleanup_push because it is one of the few pthread 9201 # functions on Solaris that doesn't have a non-functional libc stub. 9202 # We try pthread_create on general principles. 9203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9204/* end confdefs.h. */ 9205#include <pthread.h> 9206 static void routine(void *a) { a = 0; } 9207 static void *start_routine(void *a) { return a; } 9208int 9209main () 9210{ 9211pthread_t th; pthread_attr_t attr; 9212 pthread_create(&th, 0, start_routine, 0); 9213 pthread_join(th, 0); 9214 pthread_attr_init(&attr); 9215 pthread_cleanup_push(routine, 0); 9216 pthread_cleanup_pop(0) /* ; */ 9217 ; 9218 return 0; 9219} 9220_ACEOF 9221if ac_fn_c_try_link "$LINENO"; then : 9222 ax_pthread_ok=yes 9223fi 9224rm -f core conftest.err conftest.$ac_objext \ 9225 conftest$ac_exeext conftest.$ac_ext 9226 9227 LIBS="$save_LIBS" 9228 CFLAGS="$save_CFLAGS" 9229 9230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 9231$as_echo "$ax_pthread_ok" >&6; } 9232 if test "x$ax_pthread_ok" = xyes; then 9233 break; 9234 fi 9235 9236 PTHREAD_LIBS="" 9237 PTHREAD_CFLAGS="" 9238done 9239fi 9240 9241# Various other checks: 9242if test "x$ax_pthread_ok" = xyes; then 9243 save_LIBS="$LIBS" 9244 LIBS="$PTHREAD_LIBS $LIBS" 9245 save_CFLAGS="$CFLAGS" 9246 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 9247 9248 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 9249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 9250$as_echo_n "checking for joinable pthread attribute... " >&6; } 9251 attr_name=unknown 9252 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 9253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9254/* end confdefs.h. */ 9255#include <pthread.h> 9256int 9257main () 9258{ 9259int attr = $attr; return attr /* ; */ 9260 ; 9261 return 0; 9262} 9263_ACEOF 9264if ac_fn_c_try_link "$LINENO"; then : 9265 attr_name=$attr; break 9266fi 9267rm -f core conftest.err conftest.$ac_objext \ 9268 conftest$ac_exeext conftest.$ac_ext 9269 done 9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 9271$as_echo "$attr_name" >&6; } 9272 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 9273 9274cat >>confdefs.h <<_ACEOF 9275#define PTHREAD_CREATE_JOINABLE $attr_name 9276_ACEOF 9277 9278 fi 9279 9280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 9281$as_echo_n "checking if more special flags are required for pthreads... " >&6; } 9282 flag=no 9283 case ${host_os} in 9284 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";; 9285 osf* | hpux*) flag="-D_REENTRANT";; 9286 solaris*) 9287 if test "$GCC" = "yes"; then 9288 flag="-D_REENTRANT" 9289 else 9290 flag="-mt -D_REENTRANT" 9291 fi 9292 ;; 9293 esac 9294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 9295$as_echo "${flag}" >&6; } 9296 if test "x$flag" != xno; then 9297 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 9298 fi 9299 9300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 9301$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } 9302if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : 9303 $as_echo_n "(cached) " >&6 9304else 9305 9306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9307/* end confdefs.h. */ 9308 9309 #include <pthread.h> 9310int 9311main () 9312{ 9313int i = PTHREAD_PRIO_INHERIT; 9314 ; 9315 return 0; 9316} 9317_ACEOF 9318if ac_fn_c_try_link "$LINENO"; then : 9319 ax_cv_PTHREAD_PRIO_INHERIT=yes 9320else 9321 ax_cv_PTHREAD_PRIO_INHERIT=no 9322fi 9323rm -f core conftest.err conftest.$ac_objext \ 9324 conftest$ac_exeext conftest.$ac_ext 9325 9326fi 9327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 9328$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 9329 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then : 9330 9331$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 9332 9333fi 9334 9335 LIBS="$save_LIBS" 9336 CFLAGS="$save_CFLAGS" 9337 9338 # More AIX lossage: must compile with xlc_r or cc_r 9339 if test x"$GCC" != xyes; then 9340 for ac_prog in xlc_r cc_r 9341do 9342 # Extract the first word of "$ac_prog", so it can be a program name with args. 9343set dummy $ac_prog; ac_word=$2 9344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9345$as_echo_n "checking for $ac_word... " >&6; } 9346if ${ac_cv_prog_PTHREAD_CC+:} false; then : 9347 $as_echo_n "(cached) " >&6 9348else 9349 if test -n "$PTHREAD_CC"; then 9350 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 9351else 9352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9353for as_dir in $PATH 9354do 9355 IFS=$as_save_IFS 9356 test -z "$as_dir" && as_dir=. 9357 for ac_exec_ext in '' $ac_executable_extensions; do 9358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9359 ac_cv_prog_PTHREAD_CC="$ac_prog" 9360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9361 break 2 9362 fi 9363done 9364 done 9365IFS=$as_save_IFS 9366 9367fi 9368fi 9369PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 9370if test -n "$PTHREAD_CC"; then 9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 9372$as_echo "$PTHREAD_CC" >&6; } 9373else 9374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9375$as_echo "no" >&6; } 9376fi 9377 9378 9379 test -n "$PTHREAD_CC" && break 9380done 9381test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" 9382 9383 else 9384 PTHREAD_CC=$CC 9385 fi 9386else 9387 PTHREAD_CC="$CC" 9388fi 9389 9390 9391 9392 9393 9394# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 9395if test x"$ax_pthread_ok" = xyes; then 9396 9397$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 9398 9399 : 9400else 9401 ax_pthread_ok=no 9402 9403fi 9404ac_ext=c 9405ac_cpp='$CPP $CPPFLAGS' 9406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9408ac_compiler_gnu=$ac_cv_c_compiler_gnu 9409 9410 9411 if test "$ax_pthread_ok" = yes; then 9412 have_threads=yes 9413 DEF_THREAD="$PTHREAD_CFLAGS" 9414 CFLAGS="$CFLAGS $DEF_THREAD" 9415 CXXFLAGS="$CXXFLAGS $DEF_THREAD" 9416 if test "$CC" != "$PTHREAD_CC"; then 9417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5 9418$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;} 9419 CC="$PTHREAD_CC" 9420 fi 9421 9422$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h 9423 9424 fi 9425fi 9426 9427# Enable support for OpenMP 9428if test "$have_threads" != 'yes'; then 9429 ac_cv_prog_c_openmp=unsupported 9430fi 9431 9432 OPENMP_CFLAGS= 9433 # Check whether --enable-openmp was given. 9434if test "${enable_openmp+set}" = set; then : 9435 enableval=$enable_openmp; 9436fi 9437 9438 if test "$enable_openmp" != no; then 9439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5 9440$as_echo_n "checking for $CC option to support OpenMP... " >&6; } 9441if ${ac_cv_prog_c_openmp+:} false; then : 9442 $as_echo_n "(cached) " >&6 9443else 9444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9445/* end confdefs.h. */ 9446 9447#ifndef _OPENMP 9448 choke me 9449#endif 9450#include <omp.h> 9451int main () { return omp_get_num_threads (); } 9452 9453_ACEOF 9454if ac_fn_c_try_link "$LINENO"; then : 9455 ac_cv_prog_c_openmp='none needed' 9456else 9457 ac_cv_prog_c_openmp='unsupported' 9458 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \ 9459 -Popenmp --openmp; do 9460 ac_save_CFLAGS=$CFLAGS 9461 CFLAGS="$CFLAGS $ac_option" 9462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9463/* end confdefs.h. */ 9464 9465#ifndef _OPENMP 9466 choke me 9467#endif 9468#include <omp.h> 9469int main () { return omp_get_num_threads (); } 9470 9471_ACEOF 9472if ac_fn_c_try_link "$LINENO"; then : 9473 ac_cv_prog_c_openmp=$ac_option 9474fi 9475rm -f core conftest.err conftest.$ac_objext \ 9476 conftest$ac_exeext conftest.$ac_ext 9477 CFLAGS=$ac_save_CFLAGS 9478 if test "$ac_cv_prog_c_openmp" != unsupported; then 9479 break 9480 fi 9481 done 9482fi 9483rm -f core conftest.err conftest.$ac_objext \ 9484 conftest$ac_exeext conftest.$ac_ext 9485fi 9486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5 9487$as_echo "$ac_cv_prog_c_openmp" >&6; } 9488 case $ac_cv_prog_c_openmp in #( 9489 "none needed" | unsupported) 9490 ;; #( 9491 *) 9492 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;; 9493 esac 9494 fi 9495 9496 9497CFLAGS="$OPENMP_CFLAGS $CFLAGS" 9498MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS" 9499 9500if test "$enable_openmp" != no; then 9501 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then 9502 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES" 9503 fi 9504fi 9505 9506# Enable support for OpenCL 9507 9508 9509ac_ext=c 9510ac_cpp='$CPP $CPPFLAGS' 9511ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9512ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9513ac_compiler_gnu=$ac_cv_c_compiler_gnu 9514 9515ax_pthread_ok=no 9516 9517# We used to check for pthread.h first, but this fails if pthread.h 9518# requires special compiler flags (e.g. on True64 or Sequent). 9519# It gets checked for in the link test anyway. 9520 9521# First of all, check if the user has set any of the PTHREAD_LIBS, 9522# etcetera environment variables, and if threads linking works using 9523# them: 9524if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 9525 save_CFLAGS="$CFLAGS" 9526 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 9527 save_LIBS="$LIBS" 9528 LIBS="$PTHREAD_LIBS $LIBS" 9529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 9530$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 9531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9532/* end confdefs.h. */ 9533 9534/* Override any GCC internal prototype to avoid an error. 9535 Use char because int might match the return type of a GCC 9536 builtin and then its argument prototype would still apply. */ 9537#ifdef __cplusplus 9538extern "C" 9539#endif 9540char pthread_join (); 9541int 9542main () 9543{ 9544return pthread_join (); 9545 ; 9546 return 0; 9547} 9548_ACEOF 9549if ac_fn_c_try_link "$LINENO"; then : 9550 ax_pthread_ok=yes 9551fi 9552rm -f core conftest.err conftest.$ac_objext \ 9553 conftest$ac_exeext conftest.$ac_ext 9554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 9555$as_echo "$ax_pthread_ok" >&6; } 9556 if test x"$ax_pthread_ok" = xno; then 9557 PTHREAD_LIBS="" 9558 PTHREAD_CFLAGS="" 9559 fi 9560 LIBS="$save_LIBS" 9561 CFLAGS="$save_CFLAGS" 9562fi 9563 9564# We must check for the threads library under a number of different 9565# names; the ordering is very important because some systems 9566# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 9567# libraries is broken (non-POSIX). 9568 9569# Create a list of thread flags to try. Items starting with a "-" are 9570# C compiler flags, and other items are library names, except for "none" 9571# which indicates that we try without any flags at all, and "pthread-config" 9572# which is a program returning the flags for the Pth emulation library. 9573 9574ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 9575 9576# The ordering *is* (sometimes) important. Some notes on the 9577# individual items follow: 9578 9579# pthreads: AIX (must check this before -lpthread) 9580# none: in case threads are in libc; should be tried before -Kthread and 9581# other compiler flags to prevent continual compiler warnings 9582# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 9583# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 9584# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 9585# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 9586# -pthreads: Solaris/gcc 9587# -mthreads: Mingw32/gcc, Lynx/gcc 9588# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 9589# doesn't hurt to check since this sometimes defines pthreads too; 9590# also defines -D_REENTRANT) 9591# ... -mt is also the pthreads flag for HP/aCC 9592# pthread: Linux, etcetera 9593# --thread-safe: KAI C++ 9594# pthread-config: use pthread-config program (for GNU Pth library) 9595 9596case ${host_os} in 9597 solaris*) 9598 9599 # On Solaris (at least, for some versions), libc contains stubbed 9600 # (non-functional) versions of the pthreads routines, so link-based 9601 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 9602 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 9603 # a function called by this macro, so we could check for that, but 9604 # who knows whether they'll stub that too in a future libc.) So, 9605 # we'll just look for -pthreads and -lpthread first: 9606 9607 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" 9608 ;; 9609 9610 darwin*) 9611 ax_pthread_flags="-pthread $ax_pthread_flags" 9612 ;; 9613esac 9614 9615if test x"$ax_pthread_ok" = xno; then 9616for flag in $ax_pthread_flags; do 9617 9618 case $flag in 9619 none) 9620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 9621$as_echo_n "checking whether pthreads work without any flags... " >&6; } 9622 ;; 9623 9624 -*) 9625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 9626$as_echo_n "checking whether pthreads work with $flag... " >&6; } 9627 PTHREAD_CFLAGS="$flag" 9628 ;; 9629 9630 pthread-config) 9631 # Extract the first word of "pthread-config", so it can be a program name with args. 9632set dummy pthread-config; ac_word=$2 9633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9634$as_echo_n "checking for $ac_word... " >&6; } 9635if ${ac_cv_prog_ax_pthread_config+:} false; then : 9636 $as_echo_n "(cached) " >&6 9637else 9638 if test -n "$ax_pthread_config"; then 9639 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 9640else 9641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9642for as_dir in $PATH 9643do 9644 IFS=$as_save_IFS 9645 test -z "$as_dir" && as_dir=. 9646 for ac_exec_ext in '' $ac_executable_extensions; do 9647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9648 ac_cv_prog_ax_pthread_config="yes" 9649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9650 break 2 9651 fi 9652done 9653 done 9654IFS=$as_save_IFS 9655 9656 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 9657fi 9658fi 9659ax_pthread_config=$ac_cv_prog_ax_pthread_config 9660if test -n "$ax_pthread_config"; then 9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 9662$as_echo "$ax_pthread_config" >&6; } 9663else 9664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9665$as_echo "no" >&6; } 9666fi 9667 9668 9669 if test x"$ax_pthread_config" = xno; then continue; fi 9670 PTHREAD_CFLAGS="`pthread-config --cflags`" 9671 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 9672 ;; 9673 9674 *) 9675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 9676$as_echo_n "checking for the pthreads library -l$flag... " >&6; } 9677 PTHREAD_LIBS="-l$flag" 9678 ;; 9679 esac 9680 9681 save_LIBS="$LIBS" 9682 save_CFLAGS="$CFLAGS" 9683 LIBS="$PTHREAD_LIBS $LIBS" 9684 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 9685 9686 # Check for various functions. We must include pthread.h, 9687 # since some functions may be macros. (On the Sequent, we 9688 # need a special flag -Kthread to make this header compile.) 9689 # We check for pthread_join because it is in -lpthread on IRIX 9690 # while pthread_create is in libc. We check for pthread_attr_init 9691 # due to DEC craziness with -lpthreads. We check for 9692 # pthread_cleanup_push because it is one of the few pthread 9693 # functions on Solaris that doesn't have a non-functional libc stub. 9694 # We try pthread_create on general principles. 9695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9696/* end confdefs.h. */ 9697#include <pthread.h> 9698 static void routine(void *a) { a = 0; } 9699 static void *start_routine(void *a) { return a; } 9700int 9701main () 9702{ 9703pthread_t th; pthread_attr_t attr; 9704 pthread_create(&th, 0, start_routine, 0); 9705 pthread_join(th, 0); 9706 pthread_attr_init(&attr); 9707 pthread_cleanup_push(routine, 0); 9708 pthread_cleanup_pop(0) /* ; */ 9709 ; 9710 return 0; 9711} 9712_ACEOF 9713if ac_fn_c_try_link "$LINENO"; then : 9714 ax_pthread_ok=yes 9715fi 9716rm -f core conftest.err conftest.$ac_objext \ 9717 conftest$ac_exeext conftest.$ac_ext 9718 9719 LIBS="$save_LIBS" 9720 CFLAGS="$save_CFLAGS" 9721 9722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 9723$as_echo "$ax_pthread_ok" >&6; } 9724 if test "x$ax_pthread_ok" = xyes; then 9725 break; 9726 fi 9727 9728 PTHREAD_LIBS="" 9729 PTHREAD_CFLAGS="" 9730done 9731fi 9732 9733# Various other checks: 9734if test "x$ax_pthread_ok" = xyes; then 9735 save_LIBS="$LIBS" 9736 LIBS="$PTHREAD_LIBS $LIBS" 9737 save_CFLAGS="$CFLAGS" 9738 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 9739 9740 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 9741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 9742$as_echo_n "checking for joinable pthread attribute... " >&6; } 9743 attr_name=unknown 9744 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 9745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9746/* end confdefs.h. */ 9747#include <pthread.h> 9748int 9749main () 9750{ 9751int attr = $attr; return attr /* ; */ 9752 ; 9753 return 0; 9754} 9755_ACEOF 9756if ac_fn_c_try_link "$LINENO"; then : 9757 attr_name=$attr; break 9758fi 9759rm -f core conftest.err conftest.$ac_objext \ 9760 conftest$ac_exeext conftest.$ac_ext 9761 done 9762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 9763$as_echo "$attr_name" >&6; } 9764 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 9765 9766cat >>confdefs.h <<_ACEOF 9767#define PTHREAD_CREATE_JOINABLE $attr_name 9768_ACEOF 9769 9770 fi 9771 9772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 9773$as_echo_n "checking if more special flags are required for pthreads... " >&6; } 9774 flag=no 9775 case ${host_os} in 9776 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";; 9777 osf* | hpux*) flag="-D_REENTRANT";; 9778 solaris*) 9779 if test "$GCC" = "yes"; then 9780 flag="-D_REENTRANT" 9781 else 9782 flag="-mt -D_REENTRANT" 9783 fi 9784 ;; 9785 esac 9786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 9787$as_echo "${flag}" >&6; } 9788 if test "x$flag" != xno; then 9789 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 9790 fi 9791 9792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 9793$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } 9794if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : 9795 $as_echo_n "(cached) " >&6 9796else 9797 9798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9799/* end confdefs.h. */ 9800 9801 #include <pthread.h> 9802int 9803main () 9804{ 9805int i = PTHREAD_PRIO_INHERIT; 9806 ; 9807 return 0; 9808} 9809_ACEOF 9810if ac_fn_c_try_link "$LINENO"; then : 9811 ax_cv_PTHREAD_PRIO_INHERIT=yes 9812else 9813 ax_cv_PTHREAD_PRIO_INHERIT=no 9814fi 9815rm -f core conftest.err conftest.$ac_objext \ 9816 conftest$ac_exeext conftest.$ac_ext 9817 9818fi 9819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 9820$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 9821 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then : 9822 9823$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 9824 9825fi 9826 9827 LIBS="$save_LIBS" 9828 CFLAGS="$save_CFLAGS" 9829 9830 # More AIX lossage: must compile with xlc_r or cc_r 9831 if test x"$GCC" != xyes; then 9832 for ac_prog in xlc_r cc_r 9833do 9834 # Extract the first word of "$ac_prog", so it can be a program name with args. 9835set dummy $ac_prog; ac_word=$2 9836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9837$as_echo_n "checking for $ac_word... " >&6; } 9838if ${ac_cv_prog_PTHREAD_CC+:} false; then : 9839 $as_echo_n "(cached) " >&6 9840else 9841 if test -n "$PTHREAD_CC"; then 9842 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 9843else 9844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9845for as_dir in $PATH 9846do 9847 IFS=$as_save_IFS 9848 test -z "$as_dir" && as_dir=. 9849 for ac_exec_ext in '' $ac_executable_extensions; do 9850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9851 ac_cv_prog_PTHREAD_CC="$ac_prog" 9852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9853 break 2 9854 fi 9855done 9856 done 9857IFS=$as_save_IFS 9858 9859fi 9860fi 9861PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 9862if test -n "$PTHREAD_CC"; then 9863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 9864$as_echo "$PTHREAD_CC" >&6; } 9865else 9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9867$as_echo "no" >&6; } 9868fi 9869 9870 9871 test -n "$PTHREAD_CC" && break 9872done 9873test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" 9874 9875 else 9876 PTHREAD_CC=$CC 9877 fi 9878else 9879 PTHREAD_CC="$CC" 9880fi 9881 9882 9883 9884 9885 9886# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 9887if test x"$ax_pthread_ok" = xyes; then 9888 9889$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 9890 9891 : 9892else 9893 ax_pthread_ok=no 9894 9895fi 9896ac_ext=c 9897ac_cpp='$CPP $CPPFLAGS' 9898ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9899ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9900ac_compiler_gnu=$ac_cv_c_compiler_gnu 9901 9902 9903 9904# Check whether --enable-opencl was given. 9905if test "${enable_opencl+set}" = set; then : 9906 enableval=$enable_opencl; enable_opencl=$enableval 9907else 9908 enable_opencl='no' 9909fi 9910 9911 9912if test "$enable_opencl" = 'yes'; then 9913 ac_ext=c 9914ac_cpp='$CPP $CPPFLAGS' 9915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9917ac_compiler_gnu=$ac_cv_c_compiler_gnu 9918 9919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5 9920$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; } 9921if ${ax_cv_c_compiler_ms+:} false; then : 9922 $as_echo_n "(cached) " >&6 9923else 9924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9925/* end confdefs.h. */ 9926 9927int 9928main () 9929{ 9930#ifndef _MSC_VER 9931 choke me 9932#endif 9933 9934 ; 9935 return 0; 9936} 9937_ACEOF 9938if ac_fn_c_try_compile "$LINENO"; then : 9939 ax_compiler_ms=yes 9940else 9941 ax_compiler_ms=no 9942fi 9943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9944ax_cv_c_compiler_ms=$ax_compiler_ms 9945 9946fi 9947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5 9948$as_echo "$ax_cv_c_compiler_ms" >&6; } 9949 if test X$ax_compiler_ms = Xno; then : 9950 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm" 9951fi 9952 9953 ax_save_CPPFLAGS=$CPPFLAGS 9954 CPPFLAGS="$CL_CFLAGS $CPPFLAGS" 9955 for ac_header in CL/cl.h OpenCL/cl.h 9956do : 9957 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 9958ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 9959if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 9960 cat >>confdefs.h <<_ACEOF 9961#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 9962_ACEOF 9963 9964fi 9965 9966done 9967 9968 CPPFLAGS=$ax_save_CPPFLAGS 9969 9970 for ac_header in windows.h 9971do : 9972 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" 9973if test "x$ac_cv_header_windows_h" = xyes; then : 9974 cat >>confdefs.h <<_ACEOF 9975#define HAVE_WINDOWS_H 1 9976_ACEOF 9977 9978fi 9979 9980done 9981 9982 9983 9984 9985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5 9986$as_echo_n "checking for OpenCL library... " >&6; } 9987if ${ax_cv_check_cl_libcl+:} false; then : 9988 $as_echo_n "(cached) " >&6 9989else 9990 ax_cv_check_cl_libcl=no 9991 case $host_cpu in 9992 x86_64) ax_check_cl_libdir=lib64 ;; 9993 *) ax_check_cl_libdir=lib ;; 9994 esac 9995 ax_save_CPPFLAGS=$CPPFLAGS 9996 CPPFLAGS="$CL_CFLAGS $CPPFLAGS" 9997 ax_save_LIBS=$LIBS 9998 LIBS="" 9999 ax_check_libs="-lOpenCL -lCL -lclparser" 10000 for ax_lib in $ax_check_libs; do 10001 if test X$ax_compiler_ms = Xyes; then : 10002 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'` 10003else 10004 ax_try_lib=$ax_lib 10005fi 10006 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS" 10007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10008/* end confdefs.h. */ 10009 10010 # if defined(HAVE_WINDOWS_H) && defined(_WIN32) 10011 # include <windows.h> 10012 # endif 10013 # ifdef HAVE_CL_CL_H 10014 # include <CL/cl.h> 10015 # elif defined(HAVE_OPENCL_CL_H) 10016 # include <OpenCL/cl.h> 10017 # else 10018 # error no CL.h 10019 # endif 10020int 10021main () 10022{ 10023clCreateContextFromType(0,0,0,0,0) 10024 ; 10025 return 0; 10026} 10027_ACEOF 10028if ac_fn_c_try_link "$LINENO"; then : 10029 ax_cv_check_cl_libcl=$ax_try_lib; break 10030else 10031 ax_check_cl_nvidia_flags="-L/usr/$ax_check_cl_libdir/nvidia" LIBS="$ax_try_lib $ax_check_cl_nvidia_flags $CL_LIBS $ax_save_LIBS" 10032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10033/* end confdefs.h. */ 10034 10035 # if defined(HAVE_WINDOWS_H) && defined(_WIN32) 10036 # include <windows.h> 10037 # endif 10038 # ifdef HAVE_CL_CL_H 10039 # include <CL/cl.h> 10040 # elif defined(HAVE_OPENCL_CL_H) 10041 # include <OpenCL/cl.h> 10042 # else 10043 # error no CL.h 10044 # endif 10045int 10046main () 10047{ 10048clCreateContextFromType(0,0,0,0,0) 10049 ; 10050 return 0; 10051} 10052_ACEOF 10053if ac_fn_c_try_link "$LINENO"; then : 10054 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break 10055else 10056 ax_check_cl_dylib_flag='-Wl,-framework,OpenCL -L/System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries' LIBS="$ax_try_lib $ax_check_cl_dylib_flag $CL_LIBS $ax_save_LIBS" 10057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10058/* end confdefs.h. */ 10059 10060 # if defined(HAVE_WINDOWS_H) && defined(_WIN32) 10061 # include <windows.h> 10062 # endif 10063 # ifdef HAVE_CL_CL_H 10064 # include <CL/cl.h> 10065 # elif defined(HAVE_OPENCL_CL_H) 10066 # include <OpenCL/cl.h> 10067 # else 10068 # error no CL.h 10069 # endif 10070int 10071main () 10072{ 10073clCreateContextFromType(0,0,0,0,0) 10074 ; 10075 return 0; 10076} 10077_ACEOF 10078if ac_fn_c_try_link "$LINENO"; then : 10079 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break 10080fi 10081rm -f core conftest.err conftest.$ac_objext \ 10082 conftest$ac_exeext conftest.$ac_ext 10083fi 10084rm -f core conftest.err conftest.$ac_objext \ 10085 conftest$ac_exeext conftest.$ac_ext 10086fi 10087rm -f core conftest.err conftest.$ac_objext \ 10088 conftest$ac_exeext conftest.$ac_ext 10089 done 10090 10091 if test "X$ax_cv_check_cl_libcl" = Xno; then : 10092 LIBS='-Wl,-framework,OpenCL' 10093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10094/* end confdefs.h. */ 10095 10096 # if defined(HAVE_WINDOWS_H) && defined(_WIN32) 10097 # include <windows.h> 10098 # endif 10099 # ifdef HAVE_CL_CL_H 10100 # include <CL/cl.h> 10101 # elif defined(HAVE_OPENCL_CL_H) 10102 # include <OpenCL/cl.h> 10103 # else 10104 # error no CL.h 10105 # endif 10106int 10107main () 10108{ 10109clCreateContextFromType(0,0,0,0,0) 10110 ; 10111 return 0; 10112} 10113_ACEOF 10114if ac_fn_c_try_link "$LINENO"; then : 10115 ax_cv_check_cl_libcl=$LIBS 10116fi 10117rm -f core conftest.err conftest.$ac_objext \ 10118 conftest$ac_exeext conftest.$ac_ext 10119fi 10120 10121 LIBS=$ax_save_LIBS 10122 CPPFLAGS=$ax_save_CPPFLAGS 10123fi 10124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5 10125$as_echo "$ax_cv_check_cl_libcl" >&6; } 10126 10127 if test "X$ax_cv_check_cl_libcl" = Xno; then : 10128 no_cl=yes; CL_CFLAGS=""; CL_LIBS="" 10129else 10130 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS"; 10131$as_echo "#define _OPENCL 1" >>confdefs.h 10132 10133fi 10134 ac_ext=c 10135ac_cpp='$CPP $CPPFLAGS' 10136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10138ac_compiler_gnu=$ac_cv_c_compiler_gnu 10139 10140fi 10141 10142 10143 10144 10145CFLAGS="$CL_CFLAGS $CFLAGS" 10146LIBS="$CL_LIBS $LIBS" 10147 10148if test "$enable_opencl" != no; then 10149 if test "X$ax_cv_check_cl_libcl" != Xno; then : 10150 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES" 10151 fi 10152fi 10153 10154######## 10155# 10156# Check for large file support 10157# 10158######## 10159# Check whether --enable-largefile was given. 10160if test "${enable_largefile+set}" = set; then : 10161 enableval=$enable_largefile; 10162fi 10163 10164if test "$enable_largefile" != no; then 10165 10166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 10167$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 10168if ${ac_cv_sys_largefile_CC+:} false; then : 10169 $as_echo_n "(cached) " >&6 10170else 10171 ac_cv_sys_largefile_CC=no 10172 if test "$GCC" != yes; then 10173 ac_save_CC=$CC 10174 while :; do 10175 # IRIX 6.2 and later do not support large files by default, 10176 # so use the C compiler's -n32 option if that helps. 10177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10178/* end confdefs.h. */ 10179#include <sys/types.h> 10180 /* Check that off_t can represent 2**63 - 1 correctly. 10181 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10182 since some C++ compilers masquerading as C compilers 10183 incorrectly reject 9223372036854775807. */ 10184#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10185 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10186 && LARGE_OFF_T % 2147483647 == 1) 10187 ? 1 : -1]; 10188int 10189main () 10190{ 10191 10192 ; 10193 return 0; 10194} 10195_ACEOF 10196 if ac_fn_c_try_compile "$LINENO"; then : 10197 break 10198fi 10199rm -f core conftest.err conftest.$ac_objext 10200 CC="$CC -n32" 10201 if ac_fn_c_try_compile "$LINENO"; then : 10202 ac_cv_sys_largefile_CC=' -n32'; break 10203fi 10204rm -f core conftest.err conftest.$ac_objext 10205 break 10206 done 10207 CC=$ac_save_CC 10208 rm -f conftest.$ac_ext 10209 fi 10210fi 10211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 10212$as_echo "$ac_cv_sys_largefile_CC" >&6; } 10213 if test "$ac_cv_sys_largefile_CC" != no; then 10214 CC=$CC$ac_cv_sys_largefile_CC 10215 fi 10216 10217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 10218$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 10219if ${ac_cv_sys_file_offset_bits+:} false; then : 10220 $as_echo_n "(cached) " >&6 10221else 10222 while :; do 10223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10224/* end confdefs.h. */ 10225#include <sys/types.h> 10226 /* Check that off_t can represent 2**63 - 1 correctly. 10227 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10228 since some C++ compilers masquerading as C compilers 10229 incorrectly reject 9223372036854775807. */ 10230#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10231 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10232 && LARGE_OFF_T % 2147483647 == 1) 10233 ? 1 : -1]; 10234int 10235main () 10236{ 10237 10238 ; 10239 return 0; 10240} 10241_ACEOF 10242if ac_fn_c_try_compile "$LINENO"; then : 10243 ac_cv_sys_file_offset_bits=no; break 10244fi 10245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10247/* end confdefs.h. */ 10248#define _FILE_OFFSET_BITS 64 10249#include <sys/types.h> 10250 /* Check that off_t can represent 2**63 - 1 correctly. 10251 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10252 since some C++ compilers masquerading as C compilers 10253 incorrectly reject 9223372036854775807. */ 10254#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10255 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10256 && LARGE_OFF_T % 2147483647 == 1) 10257 ? 1 : -1]; 10258int 10259main () 10260{ 10261 10262 ; 10263 return 0; 10264} 10265_ACEOF 10266if ac_fn_c_try_compile "$LINENO"; then : 10267 ac_cv_sys_file_offset_bits=64; break 10268fi 10269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10270 ac_cv_sys_file_offset_bits=unknown 10271 break 10272done 10273fi 10274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 10275$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 10276case $ac_cv_sys_file_offset_bits in #( 10277 no | unknown) ;; 10278 *) 10279cat >>confdefs.h <<_ACEOF 10280#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 10281_ACEOF 10282;; 10283esac 10284rm -rf conftest* 10285 if test $ac_cv_sys_file_offset_bits = unknown; then 10286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 10287$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 10288if ${ac_cv_sys_large_files+:} false; then : 10289 $as_echo_n "(cached) " >&6 10290else 10291 while :; do 10292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10293/* end confdefs.h. */ 10294#include <sys/types.h> 10295 /* Check that off_t can represent 2**63 - 1 correctly. 10296 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10297 since some C++ compilers masquerading as C compilers 10298 incorrectly reject 9223372036854775807. */ 10299#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10300 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10301 && LARGE_OFF_T % 2147483647 == 1) 10302 ? 1 : -1]; 10303int 10304main () 10305{ 10306 10307 ; 10308 return 0; 10309} 10310_ACEOF 10311if ac_fn_c_try_compile "$LINENO"; then : 10312 ac_cv_sys_large_files=no; break 10313fi 10314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10316/* end confdefs.h. */ 10317#define _LARGE_FILES 1 10318#include <sys/types.h> 10319 /* Check that off_t can represent 2**63 - 1 correctly. 10320 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10321 since some C++ compilers masquerading as C compilers 10322 incorrectly reject 9223372036854775807. */ 10323#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10324 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10325 && LARGE_OFF_T % 2147483647 == 1) 10326 ? 1 : -1]; 10327int 10328main () 10329{ 10330 10331 ; 10332 return 0; 10333} 10334_ACEOF 10335if ac_fn_c_try_compile "$LINENO"; then : 10336 ac_cv_sys_large_files=1; break 10337fi 10338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10339 ac_cv_sys_large_files=unknown 10340 break 10341done 10342fi 10343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 10344$as_echo "$ac_cv_sys_large_files" >&6; } 10345case $ac_cv_sys_large_files in #( 10346 no | unknown) ;; 10347 *) 10348cat >>confdefs.h <<_ACEOF 10349#define _LARGE_FILES $ac_cv_sys_large_files 10350_ACEOF 10351;; 10352esac 10353rm -rf conftest* 10354 fi 10355 10356 10357fi 10358 10359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 10360$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 10361if ${ac_cv_sys_largefile_source+:} false; then : 10362 $as_echo_n "(cached) " >&6 10363else 10364 while :; do 10365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10366/* end confdefs.h. */ 10367#include <sys/types.h> /* for off_t */ 10368 #include <stdio.h> 10369int 10370main () 10371{ 10372int (*fp) (FILE *, off_t, int) = fseeko; 10373 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 10374 ; 10375 return 0; 10376} 10377_ACEOF 10378if ac_fn_c_try_link "$LINENO"; then : 10379 ac_cv_sys_largefile_source=no; break 10380fi 10381rm -f core conftest.err conftest.$ac_objext \ 10382 conftest$ac_exeext conftest.$ac_ext 10383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10384/* end confdefs.h. */ 10385#define _LARGEFILE_SOURCE 1 10386#include <sys/types.h> /* for off_t */ 10387 #include <stdio.h> 10388int 10389main () 10390{ 10391int (*fp) (FILE *, off_t, int) = fseeko; 10392 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 10393 ; 10394 return 0; 10395} 10396_ACEOF 10397if ac_fn_c_try_link "$LINENO"; then : 10398 ac_cv_sys_largefile_source=1; break 10399fi 10400rm -f core conftest.err conftest.$ac_objext \ 10401 conftest$ac_exeext conftest.$ac_ext 10402 ac_cv_sys_largefile_source=unknown 10403 break 10404done 10405fi 10406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 10407$as_echo "$ac_cv_sys_largefile_source" >&6; } 10408case $ac_cv_sys_largefile_source in #( 10409 no | unknown) ;; 10410 *) 10411cat >>confdefs.h <<_ACEOF 10412#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 10413_ACEOF 10414;; 10415esac 10416rm -rf conftest* 10417 10418# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 10419# in glibc 2.1.3, but that breaks too many other things. 10420# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 10421if test $ac_cv_sys_largefile_source != unknown; then 10422 10423$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 10424 10425fi 10426 10427LFS_CPPFLAGS='' 10428if test "$enable_largefile" != no; then 10429 case $ac_cv_sys_file_offset_bits in 10430 no) 10431 # nothing to do here as the host supports LFS fine 10432 ;; 10433 unknown) 10434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5 10435$as_echo_n "checking for native large file support... " >&6; } 10436 if test "$cross_compiling" = yes; then : 10437 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10438$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10439as_fn_error $? "cannot run test program while cross compiling 10440See \`config.log' for more details" "$LINENO" 5; } 10441else 10442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10443/* end confdefs.h. */ 10444#include <unistd.h> 10445 main () { 10446 exit(!(sizeof(off_t) == 8)); 10447 } 10448int 10449main () 10450{ 10451 10452 ; 10453 return 0; 10454} 10455_ACEOF 10456if ac_fn_c_try_run "$LINENO"; then : 10457 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h 10458 10459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10460$as_echo "yes" >&6; } 10461else 10462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10463$as_echo "no" >&6; } 10464fi 10465rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10466 conftest.$ac_objext conftest.beam conftest.$ac_ext 10467fi 10468 10469 ;; 10470 *) 10471 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits" 10472 ;; 10473 esac 10474 if test "$ac_cv_sys_large_files" != 'no'; then 10475 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1" 10476 fi 10477 if test "$ac_cv_sys_largefile_source" != 'no'; then 10478 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1" 10479 fi 10480fi 10481 10482 10483# Configure libtool 10484enable_dlopen=yes 10485 10486 10487 10488case `pwd` in 10489 *\ * | *\ *) 10490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 10491$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 10492esac 10493 10494 10495 10496macro_version='2.4.2' 10497macro_revision='1.3337' 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511ltmain="$ac_aux_dir/ltmain.sh" 10512 10513# Backslashify metacharacters that are still active within 10514# double-quoted strings. 10515sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 10516 10517# Same as above, but do not quote variable references. 10518double_quote_subst='s/\(["`\\]\)/\\\1/g' 10519 10520# Sed substitution to delay expansion of an escaped shell variable in a 10521# double_quote_subst'ed string. 10522delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 10523 10524# Sed substitution to delay expansion of an escaped single quote. 10525delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 10526 10527# Sed substitution to avoid accidental globbing in evaled expressions 10528no_glob_subst='s/\*/\\\*/g' 10529 10530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 10531$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 10532if ${lt_cv_path_NM+:} false; then : 10533 $as_echo_n "(cached) " >&6 10534else 10535 if test -n "$NM"; then 10536 # Let the user override the test. 10537 lt_cv_path_NM="$NM" 10538else 10539 lt_nm_to_check="${ac_tool_prefix}nm" 10540 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 10541 lt_nm_to_check="$lt_nm_to_check nm" 10542 fi 10543 for lt_tmp_nm in $lt_nm_to_check; do 10544 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10545 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 10546 IFS="$lt_save_ifs" 10547 test -z "$ac_dir" && ac_dir=. 10548 tmp_nm="$ac_dir/$lt_tmp_nm" 10549 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 10550 # Check to see if the nm accepts a BSD-compat flag. 10551 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 10552 # nm: unknown option "B" ignored 10553 # Tru64's nm complains that /dev/null is an invalid object file 10554 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 10555 */dev/null* | *'Invalid file or object type'*) 10556 lt_cv_path_NM="$tmp_nm -B" 10557 break 10558 ;; 10559 *) 10560 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 10561 */dev/null*) 10562 lt_cv_path_NM="$tmp_nm -p" 10563 break 10564 ;; 10565 *) 10566 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 10567 continue # so that we can try to find one that supports BSD flags 10568 ;; 10569 esac 10570 ;; 10571 esac 10572 fi 10573 done 10574 IFS="$lt_save_ifs" 10575 done 10576 : ${lt_cv_path_NM=no} 10577fi 10578fi 10579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 10580$as_echo "$lt_cv_path_NM" >&6; } 10581if test "$lt_cv_path_NM" != "no"; then 10582 NM="$lt_cv_path_NM" 10583else 10584 # Didn't find any BSD compatible name lister, look for dumpbin. 10585 if test -n "$DUMPBIN"; then : 10586 # Let the user override the test. 10587 else 10588 if test -n "$ac_tool_prefix"; then 10589 for ac_prog in dumpbin "link -dump" 10590 do 10591 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 10592set dummy $ac_tool_prefix$ac_prog; ac_word=$2 10593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10594$as_echo_n "checking for $ac_word... " >&6; } 10595if ${ac_cv_prog_DUMPBIN+:} false; then : 10596 $as_echo_n "(cached) " >&6 10597else 10598 if test -n "$DUMPBIN"; then 10599 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 10600else 10601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10602for as_dir in $PATH 10603do 10604 IFS=$as_save_IFS 10605 test -z "$as_dir" && as_dir=. 10606 for ac_exec_ext in '' $ac_executable_extensions; do 10607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10608 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 10609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10610 break 2 10611 fi 10612done 10613 done 10614IFS=$as_save_IFS 10615 10616fi 10617fi 10618DUMPBIN=$ac_cv_prog_DUMPBIN 10619if test -n "$DUMPBIN"; then 10620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 10621$as_echo "$DUMPBIN" >&6; } 10622else 10623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10624$as_echo "no" >&6; } 10625fi 10626 10627 10628 test -n "$DUMPBIN" && break 10629 done 10630fi 10631if test -z "$DUMPBIN"; then 10632 ac_ct_DUMPBIN=$DUMPBIN 10633 for ac_prog in dumpbin "link -dump" 10634do 10635 # Extract the first word of "$ac_prog", so it can be a program name with args. 10636set dummy $ac_prog; ac_word=$2 10637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10638$as_echo_n "checking for $ac_word... " >&6; } 10639if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 10640 $as_echo_n "(cached) " >&6 10641else 10642 if test -n "$ac_ct_DUMPBIN"; then 10643 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 10644else 10645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10646for as_dir in $PATH 10647do 10648 IFS=$as_save_IFS 10649 test -z "$as_dir" && as_dir=. 10650 for ac_exec_ext in '' $ac_executable_extensions; do 10651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10652 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 10653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10654 break 2 10655 fi 10656done 10657 done 10658IFS=$as_save_IFS 10659 10660fi 10661fi 10662ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 10663if test -n "$ac_ct_DUMPBIN"; then 10664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 10665$as_echo "$ac_ct_DUMPBIN" >&6; } 10666else 10667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10668$as_echo "no" >&6; } 10669fi 10670 10671 10672 test -n "$ac_ct_DUMPBIN" && break 10673done 10674 10675 if test "x$ac_ct_DUMPBIN" = x; then 10676 DUMPBIN=":" 10677 else 10678 case $cross_compiling:$ac_tool_warned in 10679yes:) 10680{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10681$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10682ac_tool_warned=yes ;; 10683esac 10684 DUMPBIN=$ac_ct_DUMPBIN 10685 fi 10686fi 10687 10688 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 10689 *COFF*) 10690 DUMPBIN="$DUMPBIN -symbols" 10691 ;; 10692 *) 10693 DUMPBIN=: 10694 ;; 10695 esac 10696 fi 10697 10698 if test "$DUMPBIN" != ":"; then 10699 NM="$DUMPBIN" 10700 fi 10701fi 10702test -z "$NM" && NM=nm 10703 10704 10705 10706 10707 10708 10709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 10710$as_echo_n "checking the name lister ($NM) interface... " >&6; } 10711if ${lt_cv_nm_interface+:} false; then : 10712 $as_echo_n "(cached) " >&6 10713else 10714 lt_cv_nm_interface="BSD nm" 10715 echo "int some_variable = 0;" > conftest.$ac_ext 10716 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 10717 (eval "$ac_compile" 2>conftest.err) 10718 cat conftest.err >&5 10719 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 10720 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 10721 cat conftest.err >&5 10722 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 10723 cat conftest.out >&5 10724 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 10725 lt_cv_nm_interface="MS dumpbin" 10726 fi 10727 rm -f conftest* 10728fi 10729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 10730$as_echo "$lt_cv_nm_interface" >&6; } 10731 10732# find the maximum length of command line arguments 10733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 10734$as_echo_n "checking the maximum length of command line arguments... " >&6; } 10735if ${lt_cv_sys_max_cmd_len+:} false; then : 10736 $as_echo_n "(cached) " >&6 10737else 10738 i=0 10739 teststring="ABCD" 10740 10741 case $build_os in 10742 msdosdjgpp*) 10743 # On DJGPP, this test can blow up pretty badly due to problems in libc 10744 # (any single argument exceeding 2000 bytes causes a buffer overrun 10745 # during glob expansion). Even if it were fixed, the result of this 10746 # check would be larger than it should be. 10747 lt_cv_sys_max_cmd_len=12288; # 12K is about right 10748 ;; 10749 10750 gnu*) 10751 # Under GNU Hurd, this test is not required because there is 10752 # no limit to the length of command line arguments. 10753 # Libtool will interpret -1 as no limit whatsoever 10754 lt_cv_sys_max_cmd_len=-1; 10755 ;; 10756 10757 cygwin* | mingw* | cegcc*) 10758 # On Win9x/ME, this test blows up -- it succeeds, but takes 10759 # about 5 minutes as the teststring grows exponentially. 10760 # Worse, since 9x/ME are not pre-emptively multitasking, 10761 # you end up with a "frozen" computer, even though with patience 10762 # the test eventually succeeds (with a max line length of 256k). 10763 # Instead, let's just punt: use the minimum linelength reported by 10764 # all of the supported platforms: 8192 (on NT/2K/XP). 10765 lt_cv_sys_max_cmd_len=8192; 10766 ;; 10767 10768 mint*) 10769 # On MiNT this can take a long time and run out of memory. 10770 lt_cv_sys_max_cmd_len=8192; 10771 ;; 10772 10773 amigaos*) 10774 # On AmigaOS with pdksh, this test takes hours, literally. 10775 # So we just punt and use a minimum line length of 8192. 10776 lt_cv_sys_max_cmd_len=8192; 10777 ;; 10778 10779 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 10780 # This has been around since 386BSD, at least. Likely further. 10781 if test -x /sbin/sysctl; then 10782 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 10783 elif test -x /usr/sbin/sysctl; then 10784 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 10785 else 10786 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 10787 fi 10788 # And add a safety zone 10789 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 10790 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 10791 ;; 10792 10793 interix*) 10794 # We know the value 262144 and hardcode it with a safety zone (like BSD) 10795 lt_cv_sys_max_cmd_len=196608 10796 ;; 10797 10798 os2*) 10799 # The test takes a long time on OS/2. 10800 lt_cv_sys_max_cmd_len=8192 10801 ;; 10802 10803 osf*) 10804 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 10805 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 10806 # nice to cause kernel panics so lets avoid the loop below. 10807 # First set a reasonable default. 10808 lt_cv_sys_max_cmd_len=16384 10809 # 10810 if test -x /sbin/sysconfig; then 10811 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 10812 *1*) lt_cv_sys_max_cmd_len=-1 ;; 10813 esac 10814 fi 10815 ;; 10816 sco3.2v5*) 10817 lt_cv_sys_max_cmd_len=102400 10818 ;; 10819 sysv5* | sco5v6* | sysv4.2uw2*) 10820 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 10821 if test -n "$kargmax"; then 10822 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 10823 else 10824 lt_cv_sys_max_cmd_len=32768 10825 fi 10826 ;; 10827 *) 10828 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 10829 if test -n "$lt_cv_sys_max_cmd_len"; then 10830 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 10831 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 10832 else 10833 # Make teststring a little bigger before we do anything with it. 10834 # a 1K string should be a reasonable start. 10835 for i in 1 2 3 4 5 6 7 8 ; do 10836 teststring=$teststring$teststring 10837 done 10838 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 10839 # If test is not a shell built-in, we'll probably end up computing a 10840 # maximum length that is only half of the actual maximum length, but 10841 # we can't tell. 10842 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 10843 = "X$teststring$teststring"; } >/dev/null 2>&1 && 10844 test $i != 17 # 1/2 MB should be enough 10845 do 10846 i=`expr $i + 1` 10847 teststring=$teststring$teststring 10848 done 10849 # Only check the string length outside the loop. 10850 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 10851 teststring= 10852 # Add a significant safety factor because C++ compilers can tack on 10853 # massive amounts of additional arguments before passing them to the 10854 # linker. It appears as though 1/2 is a usable value. 10855 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 10856 fi 10857 ;; 10858 esac 10859 10860fi 10861 10862if test -n $lt_cv_sys_max_cmd_len ; then 10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 10864$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 10865else 10866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 10867$as_echo "none" >&6; } 10868fi 10869max_cmd_len=$lt_cv_sys_max_cmd_len 10870 10871 10872 10873 10874 10875 10876: ${CP="cp -f"} 10877: ${MV="mv -f"} 10878: ${RM="rm -f"} 10879 10880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 10881$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 10882# Try some XSI features 10883xsi_shell=no 10884( _lt_dummy="a/b/c" 10885 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 10886 = c,a/b,b/c, \ 10887 && eval 'test $(( 1 + 1 )) -eq 2 \ 10888 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 10889 && xsi_shell=yes 10890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 10891$as_echo "$xsi_shell" >&6; } 10892 10893 10894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 10895$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 10896lt_shell_append=no 10897( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 10898 >/dev/null 2>&1 \ 10899 && lt_shell_append=yes 10900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 10901$as_echo "$lt_shell_append" >&6; } 10902 10903 10904if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 10905 lt_unset=unset 10906else 10907 lt_unset=false 10908fi 10909 10910 10911 10912 10913 10914# test EBCDIC or ASCII 10915case `echo X|tr X '\101'` in 10916 A) # ASCII based system 10917 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 10918 lt_SP2NL='tr \040 \012' 10919 lt_NL2SP='tr \015\012 \040\040' 10920 ;; 10921 *) # EBCDIC based system 10922 lt_SP2NL='tr \100 \n' 10923 lt_NL2SP='tr \r\n \100\100' 10924 ;; 10925esac 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 10936$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 10937if ${lt_cv_to_host_file_cmd+:} false; then : 10938 $as_echo_n "(cached) " >&6 10939else 10940 case $host in 10941 *-*-mingw* ) 10942 case $build in 10943 *-*-mingw* ) # actually msys 10944 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 10945 ;; 10946 *-*-cygwin* ) 10947 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 10948 ;; 10949 * ) # otherwise, assume *nix 10950 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 10951 ;; 10952 esac 10953 ;; 10954 *-*-cygwin* ) 10955 case $build in 10956 *-*-mingw* ) # actually msys 10957 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 10958 ;; 10959 *-*-cygwin* ) 10960 lt_cv_to_host_file_cmd=func_convert_file_noop 10961 ;; 10962 * ) # otherwise, assume *nix 10963 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 10964 ;; 10965 esac 10966 ;; 10967 * ) # unhandled hosts (and "normal" native builds) 10968 lt_cv_to_host_file_cmd=func_convert_file_noop 10969 ;; 10970esac 10971 10972fi 10973 10974to_host_file_cmd=$lt_cv_to_host_file_cmd 10975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 10976$as_echo "$lt_cv_to_host_file_cmd" >&6; } 10977 10978 10979 10980 10981 10982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 10983$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 10984if ${lt_cv_to_tool_file_cmd+:} false; then : 10985 $as_echo_n "(cached) " >&6 10986else 10987 #assume ordinary cross tools, or native build. 10988lt_cv_to_tool_file_cmd=func_convert_file_noop 10989case $host in 10990 *-*-mingw* ) 10991 case $build in 10992 *-*-mingw* ) # actually msys 10993 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 10994 ;; 10995 esac 10996 ;; 10997esac 10998 10999fi 11000 11001to_tool_file_cmd=$lt_cv_to_tool_file_cmd 11002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 11003$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 11004 11005 11006 11007 11008 11009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 11010$as_echo_n "checking for $LD option to reload object files... " >&6; } 11011if ${lt_cv_ld_reload_flag+:} false; then : 11012 $as_echo_n "(cached) " >&6 11013else 11014 lt_cv_ld_reload_flag='-r' 11015fi 11016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 11017$as_echo "$lt_cv_ld_reload_flag" >&6; } 11018reload_flag=$lt_cv_ld_reload_flag 11019case $reload_flag in 11020"" | " "*) ;; 11021*) reload_flag=" $reload_flag" ;; 11022esac 11023reload_cmds='$LD$reload_flag -o $output$reload_objs' 11024case $host_os in 11025 cygwin* | mingw* | pw32* | cegcc*) 11026 if test "$GCC" != yes; then 11027 reload_cmds=false 11028 fi 11029 ;; 11030 darwin*) 11031 if test "$GCC" = yes; then 11032 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 11033 else 11034 reload_cmds='$LD$reload_flag -o $output$reload_objs' 11035 fi 11036 ;; 11037esac 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047if test -n "$ac_tool_prefix"; then 11048 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 11049set dummy ${ac_tool_prefix}objdump; ac_word=$2 11050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11051$as_echo_n "checking for $ac_word... " >&6; } 11052if ${ac_cv_prog_OBJDUMP+:} false; then : 11053 $as_echo_n "(cached) " >&6 11054else 11055 if test -n "$OBJDUMP"; then 11056 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 11057else 11058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11059for as_dir in $PATH 11060do 11061 IFS=$as_save_IFS 11062 test -z "$as_dir" && as_dir=. 11063 for ac_exec_ext in '' $ac_executable_extensions; do 11064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11065 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 11066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11067 break 2 11068 fi 11069done 11070 done 11071IFS=$as_save_IFS 11072 11073fi 11074fi 11075OBJDUMP=$ac_cv_prog_OBJDUMP 11076if test -n "$OBJDUMP"; then 11077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 11078$as_echo "$OBJDUMP" >&6; } 11079else 11080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11081$as_echo "no" >&6; } 11082fi 11083 11084 11085fi 11086if test -z "$ac_cv_prog_OBJDUMP"; then 11087 ac_ct_OBJDUMP=$OBJDUMP 11088 # Extract the first word of "objdump", so it can be a program name with args. 11089set dummy objdump; ac_word=$2 11090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11091$as_echo_n "checking for $ac_word... " >&6; } 11092if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 11093 $as_echo_n "(cached) " >&6 11094else 11095 if test -n "$ac_ct_OBJDUMP"; then 11096 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 11097else 11098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11099for as_dir in $PATH 11100do 11101 IFS=$as_save_IFS 11102 test -z "$as_dir" && as_dir=. 11103 for ac_exec_ext in '' $ac_executable_extensions; do 11104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11105 ac_cv_prog_ac_ct_OBJDUMP="objdump" 11106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11107 break 2 11108 fi 11109done 11110 done 11111IFS=$as_save_IFS 11112 11113fi 11114fi 11115ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 11116if test -n "$ac_ct_OBJDUMP"; then 11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 11118$as_echo "$ac_ct_OBJDUMP" >&6; } 11119else 11120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11121$as_echo "no" >&6; } 11122fi 11123 11124 if test "x$ac_ct_OBJDUMP" = x; then 11125 OBJDUMP="false" 11126 else 11127 case $cross_compiling:$ac_tool_warned in 11128yes:) 11129{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11130$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11131ac_tool_warned=yes ;; 11132esac 11133 OBJDUMP=$ac_ct_OBJDUMP 11134 fi 11135else 11136 OBJDUMP="$ac_cv_prog_OBJDUMP" 11137fi 11138 11139test -z "$OBJDUMP" && OBJDUMP=objdump 11140 11141 11142 11143 11144 11145 11146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 11147$as_echo_n "checking how to recognize dependent libraries... " >&6; } 11148if ${lt_cv_deplibs_check_method+:} false; then : 11149 $as_echo_n "(cached) " >&6 11150else 11151 lt_cv_file_magic_cmd='$MAGIC_CMD' 11152lt_cv_file_magic_test_file= 11153lt_cv_deplibs_check_method='unknown' 11154# Need to set the preceding variable on all platforms that support 11155# interlibrary dependencies. 11156# 'none' -- dependencies not supported. 11157# `unknown' -- same as none, but documents that we really don't know. 11158# 'pass_all' -- all dependencies passed with no checks. 11159# 'test_compile' -- check by making test program. 11160# 'file_magic [[regex]]' -- check by looking for files in library path 11161# which responds to the $file_magic_cmd with a given extended regex. 11162# If you have `file' or equivalent on your system and you're not sure 11163# whether `pass_all' will *always* work, you probably want this one. 11164 11165case $host_os in 11166aix[4-9]*) 11167 lt_cv_deplibs_check_method=pass_all 11168 ;; 11169 11170beos*) 11171 lt_cv_deplibs_check_method=pass_all 11172 ;; 11173 11174bsdi[45]*) 11175 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 11176 lt_cv_file_magic_cmd='/usr/bin/file -L' 11177 lt_cv_file_magic_test_file=/shlib/libc.so 11178 ;; 11179 11180cygwin*) 11181 # func_win32_libid is a shell function defined in ltmain.sh 11182 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 11183 lt_cv_file_magic_cmd='func_win32_libid' 11184 ;; 11185 11186mingw* | pw32*) 11187 # Base MSYS/MinGW do not provide the 'file' command needed by 11188 # func_win32_libid shell function, so use a weaker test based on 'objdump', 11189 # unless we find 'file', for example because we are cross-compiling. 11190 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 11191 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 11192 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 11193 lt_cv_file_magic_cmd='func_win32_libid' 11194 else 11195 # Keep this pattern in sync with the one in func_win32_libid. 11196 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 11197 lt_cv_file_magic_cmd='$OBJDUMP -f' 11198 fi 11199 ;; 11200 11201cegcc*) 11202 # use the weaker test based on 'objdump'. See mingw*. 11203 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 11204 lt_cv_file_magic_cmd='$OBJDUMP -f' 11205 ;; 11206 11207darwin* | rhapsody*) 11208 lt_cv_deplibs_check_method=pass_all 11209 ;; 11210 11211freebsd* | dragonfly*) 11212 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 11213 case $host_cpu in 11214 i*86 ) 11215 # Not sure whether the presence of OpenBSD here was a mistake. 11216 # Let's accept both of them until this is cleared up. 11217 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 11218 lt_cv_file_magic_cmd=/usr/bin/file 11219 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 11220 ;; 11221 esac 11222 else 11223 lt_cv_deplibs_check_method=pass_all 11224 fi 11225 ;; 11226 11227gnu*) 11228 lt_cv_deplibs_check_method=pass_all 11229 ;; 11230 11231haiku*) 11232 lt_cv_deplibs_check_method=pass_all 11233 ;; 11234 11235hpux10.20* | hpux11*) 11236 lt_cv_file_magic_cmd=/usr/bin/file 11237 case $host_cpu in 11238 ia64*) 11239 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 11240 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 11241 ;; 11242 hppa*64*) 11243 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' 11244 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 11245 ;; 11246 *) 11247 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 11248 lt_cv_file_magic_test_file=/usr/lib/libc.sl 11249 ;; 11250 esac 11251 ;; 11252 11253interix[3-9]*) 11254 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 11255 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 11256 ;; 11257 11258irix5* | irix6* | nonstopux*) 11259 case $LD in 11260 *-32|*"-32 ") libmagic=32-bit;; 11261 *-n32|*"-n32 ") libmagic=N32;; 11262 *-64|*"-64 ") libmagic=64-bit;; 11263 *) libmagic=never-match;; 11264 esac 11265 lt_cv_deplibs_check_method=pass_all 11266 ;; 11267 11268# This must be glibc/ELF. 11269linux* | k*bsd*-gnu | kopensolaris*-gnu) 11270 lt_cv_deplibs_check_method=pass_all 11271 ;; 11272 11273netbsd*) 11274 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 11275 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 11276 else 11277 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 11278 fi 11279 ;; 11280 11281newos6*) 11282 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 11283 lt_cv_file_magic_cmd=/usr/bin/file 11284 lt_cv_file_magic_test_file=/usr/lib/libnls.so 11285 ;; 11286 11287*nto* | *qnx*) 11288 lt_cv_deplibs_check_method=pass_all 11289 ;; 11290 11291openbsd*) 11292 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11293 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 11294 else 11295 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 11296 fi 11297 ;; 11298 11299osf3* | osf4* | osf5*) 11300 lt_cv_deplibs_check_method=pass_all 11301 ;; 11302 11303rdos*) 11304 lt_cv_deplibs_check_method=pass_all 11305 ;; 11306 11307solaris*) 11308 lt_cv_deplibs_check_method=pass_all 11309 ;; 11310 11311sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11312 lt_cv_deplibs_check_method=pass_all 11313 ;; 11314 11315sysv4 | sysv4.3*) 11316 case $host_vendor in 11317 motorola) 11318 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]' 11319 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 11320 ;; 11321 ncr) 11322 lt_cv_deplibs_check_method=pass_all 11323 ;; 11324 sequent) 11325 lt_cv_file_magic_cmd='/bin/file' 11326 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 11327 ;; 11328 sni) 11329 lt_cv_file_magic_cmd='/bin/file' 11330 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 11331 lt_cv_file_magic_test_file=/lib/libc.so 11332 ;; 11333 siemens) 11334 lt_cv_deplibs_check_method=pass_all 11335 ;; 11336 pc) 11337 lt_cv_deplibs_check_method=pass_all 11338 ;; 11339 esac 11340 ;; 11341 11342tpf*) 11343 lt_cv_deplibs_check_method=pass_all 11344 ;; 11345esac 11346 11347fi 11348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 11349$as_echo "$lt_cv_deplibs_check_method" >&6; } 11350 11351file_magic_glob= 11352want_nocaseglob=no 11353if test "$build" = "$host"; then 11354 case $host_os in 11355 mingw* | pw32*) 11356 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 11357 want_nocaseglob=yes 11358 else 11359 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 11360 fi 11361 ;; 11362 esac 11363fi 11364 11365file_magic_cmd=$lt_cv_file_magic_cmd 11366deplibs_check_method=$lt_cv_deplibs_check_method 11367test -z "$deplibs_check_method" && deplibs_check_method=unknown 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390if test -n "$ac_tool_prefix"; then 11391 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 11392set dummy ${ac_tool_prefix}dlltool; ac_word=$2 11393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11394$as_echo_n "checking for $ac_word... " >&6; } 11395if ${ac_cv_prog_DLLTOOL+:} false; then : 11396 $as_echo_n "(cached) " >&6 11397else 11398 if test -n "$DLLTOOL"; then 11399 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 11400else 11401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11402for as_dir in $PATH 11403do 11404 IFS=$as_save_IFS 11405 test -z "$as_dir" && as_dir=. 11406 for ac_exec_ext in '' $ac_executable_extensions; do 11407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11408 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 11409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11410 break 2 11411 fi 11412done 11413 done 11414IFS=$as_save_IFS 11415 11416fi 11417fi 11418DLLTOOL=$ac_cv_prog_DLLTOOL 11419if test -n "$DLLTOOL"; then 11420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 11421$as_echo "$DLLTOOL" >&6; } 11422else 11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11424$as_echo "no" >&6; } 11425fi 11426 11427 11428fi 11429if test -z "$ac_cv_prog_DLLTOOL"; then 11430 ac_ct_DLLTOOL=$DLLTOOL 11431 # Extract the first word of "dlltool", so it can be a program name with args. 11432set dummy dlltool; ac_word=$2 11433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11434$as_echo_n "checking for $ac_word... " >&6; } 11435if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 11436 $as_echo_n "(cached) " >&6 11437else 11438 if test -n "$ac_ct_DLLTOOL"; then 11439 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 11440else 11441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11442for as_dir in $PATH 11443do 11444 IFS=$as_save_IFS 11445 test -z "$as_dir" && as_dir=. 11446 for ac_exec_ext in '' $ac_executable_extensions; do 11447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11448 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 11449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11450 break 2 11451 fi 11452done 11453 done 11454IFS=$as_save_IFS 11455 11456fi 11457fi 11458ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 11459if test -n "$ac_ct_DLLTOOL"; then 11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 11461$as_echo "$ac_ct_DLLTOOL" >&6; } 11462else 11463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11464$as_echo "no" >&6; } 11465fi 11466 11467 if test "x$ac_ct_DLLTOOL" = x; then 11468 DLLTOOL="false" 11469 else 11470 case $cross_compiling:$ac_tool_warned in 11471yes:) 11472{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11473$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11474ac_tool_warned=yes ;; 11475esac 11476 DLLTOOL=$ac_ct_DLLTOOL 11477 fi 11478else 11479 DLLTOOL="$ac_cv_prog_DLLTOOL" 11480fi 11481 11482test -z "$DLLTOOL" && DLLTOOL=dlltool 11483 11484 11485 11486 11487 11488 11489 11490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 11491$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 11492if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 11493 $as_echo_n "(cached) " >&6 11494else 11495 lt_cv_sharedlib_from_linklib_cmd='unknown' 11496 11497case $host_os in 11498cygwin* | mingw* | pw32* | cegcc*) 11499 # two different shell functions defined in ltmain.sh 11500 # decide which to use based on capabilities of $DLLTOOL 11501 case `$DLLTOOL --help 2>&1` in 11502 *--identify-strict*) 11503 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 11504 ;; 11505 *) 11506 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 11507 ;; 11508 esac 11509 ;; 11510*) 11511 # fallback: assume linklib IS sharedlib 11512 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 11513 ;; 11514esac 11515 11516fi 11517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 11518$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 11519sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 11520test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 11521 11522 11523 11524 11525 11526 11527 11528if test -n "$ac_tool_prefix"; then 11529 for ac_prog in ar 11530 do 11531 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11532set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11534$as_echo_n "checking for $ac_word... " >&6; } 11535if ${ac_cv_prog_AR+:} false; then : 11536 $as_echo_n "(cached) " >&6 11537else 11538 if test -n "$AR"; then 11539 ac_cv_prog_AR="$AR" # Let the user override the test. 11540else 11541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11542for as_dir in $PATH 11543do 11544 IFS=$as_save_IFS 11545 test -z "$as_dir" && as_dir=. 11546 for ac_exec_ext in '' $ac_executable_extensions; do 11547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11548 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 11549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11550 break 2 11551 fi 11552done 11553 done 11554IFS=$as_save_IFS 11555 11556fi 11557fi 11558AR=$ac_cv_prog_AR 11559if test -n "$AR"; then 11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 11561$as_echo "$AR" >&6; } 11562else 11563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11564$as_echo "no" >&6; } 11565fi 11566 11567 11568 test -n "$AR" && break 11569 done 11570fi 11571if test -z "$AR"; then 11572 ac_ct_AR=$AR 11573 for ac_prog in ar 11574do 11575 # Extract the first word of "$ac_prog", so it can be a program name with args. 11576set dummy $ac_prog; ac_word=$2 11577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11578$as_echo_n "checking for $ac_word... " >&6; } 11579if ${ac_cv_prog_ac_ct_AR+:} false; then : 11580 $as_echo_n "(cached) " >&6 11581else 11582 if test -n "$ac_ct_AR"; then 11583 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 11584else 11585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11586for as_dir in $PATH 11587do 11588 IFS=$as_save_IFS 11589 test -z "$as_dir" && as_dir=. 11590 for ac_exec_ext in '' $ac_executable_extensions; do 11591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11592 ac_cv_prog_ac_ct_AR="$ac_prog" 11593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11594 break 2 11595 fi 11596done 11597 done 11598IFS=$as_save_IFS 11599 11600fi 11601fi 11602ac_ct_AR=$ac_cv_prog_ac_ct_AR 11603if test -n "$ac_ct_AR"; then 11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 11605$as_echo "$ac_ct_AR" >&6; } 11606else 11607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11608$as_echo "no" >&6; } 11609fi 11610 11611 11612 test -n "$ac_ct_AR" && break 11613done 11614 11615 if test "x$ac_ct_AR" = x; then 11616 AR="false" 11617 else 11618 case $cross_compiling:$ac_tool_warned in 11619yes:) 11620{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11621$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11622ac_tool_warned=yes ;; 11623esac 11624 AR=$ac_ct_AR 11625 fi 11626fi 11627 11628: ${AR=ar} 11629: ${AR_FLAGS=cru} 11630 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 11642$as_echo_n "checking for archiver @FILE support... " >&6; } 11643if ${lt_cv_ar_at_file+:} false; then : 11644 $as_echo_n "(cached) " >&6 11645else 11646 lt_cv_ar_at_file=no 11647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11648/* end confdefs.h. */ 11649 11650int 11651main () 11652{ 11653 11654 ; 11655 return 0; 11656} 11657_ACEOF 11658if ac_fn_c_try_compile "$LINENO"; then : 11659 echo conftest.$ac_objext > conftest.lst 11660 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 11661 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 11662 (eval $lt_ar_try) 2>&5 11663 ac_status=$? 11664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11665 test $ac_status = 0; } 11666 if test "$ac_status" -eq 0; then 11667 # Ensure the archiver fails upon bogus file names. 11668 rm -f conftest.$ac_objext libconftest.a 11669 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 11670 (eval $lt_ar_try) 2>&5 11671 ac_status=$? 11672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11673 test $ac_status = 0; } 11674 if test "$ac_status" -ne 0; then 11675 lt_cv_ar_at_file=@ 11676 fi 11677 fi 11678 rm -f conftest.* libconftest.a 11679 11680fi 11681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11682 11683fi 11684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 11685$as_echo "$lt_cv_ar_at_file" >&6; } 11686 11687if test "x$lt_cv_ar_at_file" = xno; then 11688 archiver_list_spec= 11689else 11690 archiver_list_spec=$lt_cv_ar_at_file 11691fi 11692 11693 11694 11695 11696 11697 11698 11699if test -n "$ac_tool_prefix"; then 11700 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 11701set dummy ${ac_tool_prefix}strip; ac_word=$2 11702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11703$as_echo_n "checking for $ac_word... " >&6; } 11704if ${ac_cv_prog_STRIP+:} false; then : 11705 $as_echo_n "(cached) " >&6 11706else 11707 if test -n "$STRIP"; then 11708 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 11709else 11710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11711for as_dir in $PATH 11712do 11713 IFS=$as_save_IFS 11714 test -z "$as_dir" && as_dir=. 11715 for ac_exec_ext in '' $ac_executable_extensions; do 11716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11717 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 11718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11719 break 2 11720 fi 11721done 11722 done 11723IFS=$as_save_IFS 11724 11725fi 11726fi 11727STRIP=$ac_cv_prog_STRIP 11728if test -n "$STRIP"; then 11729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 11730$as_echo "$STRIP" >&6; } 11731else 11732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11733$as_echo "no" >&6; } 11734fi 11735 11736 11737fi 11738if test -z "$ac_cv_prog_STRIP"; then 11739 ac_ct_STRIP=$STRIP 11740 # Extract the first word of "strip", so it can be a program name with args. 11741set dummy strip; ac_word=$2 11742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11743$as_echo_n "checking for $ac_word... " >&6; } 11744if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 11745 $as_echo_n "(cached) " >&6 11746else 11747 if test -n "$ac_ct_STRIP"; then 11748 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 11749else 11750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11751for as_dir in $PATH 11752do 11753 IFS=$as_save_IFS 11754 test -z "$as_dir" && as_dir=. 11755 for ac_exec_ext in '' $ac_executable_extensions; do 11756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11757 ac_cv_prog_ac_ct_STRIP="strip" 11758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11759 break 2 11760 fi 11761done 11762 done 11763IFS=$as_save_IFS 11764 11765fi 11766fi 11767ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 11768if test -n "$ac_ct_STRIP"; then 11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 11770$as_echo "$ac_ct_STRIP" >&6; } 11771else 11772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11773$as_echo "no" >&6; } 11774fi 11775 11776 if test "x$ac_ct_STRIP" = x; then 11777 STRIP=":" 11778 else 11779 case $cross_compiling:$ac_tool_warned in 11780yes:) 11781{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11782$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11783ac_tool_warned=yes ;; 11784esac 11785 STRIP=$ac_ct_STRIP 11786 fi 11787else 11788 STRIP="$ac_cv_prog_STRIP" 11789fi 11790 11791test -z "$STRIP" && STRIP=: 11792 11793 11794 11795 11796 11797 11798if test -n "$ac_tool_prefix"; then 11799 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 11800set dummy ${ac_tool_prefix}ranlib; ac_word=$2 11801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11802$as_echo_n "checking for $ac_word... " >&6; } 11803if ${ac_cv_prog_RANLIB+:} false; then : 11804 $as_echo_n "(cached) " >&6 11805else 11806 if test -n "$RANLIB"; then 11807 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 11808else 11809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11810for as_dir in $PATH 11811do 11812 IFS=$as_save_IFS 11813 test -z "$as_dir" && as_dir=. 11814 for ac_exec_ext in '' $ac_executable_extensions; do 11815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11816 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 11817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11818 break 2 11819 fi 11820done 11821 done 11822IFS=$as_save_IFS 11823 11824fi 11825fi 11826RANLIB=$ac_cv_prog_RANLIB 11827if test -n "$RANLIB"; then 11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 11829$as_echo "$RANLIB" >&6; } 11830else 11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11832$as_echo "no" >&6; } 11833fi 11834 11835 11836fi 11837if test -z "$ac_cv_prog_RANLIB"; then 11838 ac_ct_RANLIB=$RANLIB 11839 # Extract the first word of "ranlib", so it can be a program name with args. 11840set dummy ranlib; ac_word=$2 11841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11842$as_echo_n "checking for $ac_word... " >&6; } 11843if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 11844 $as_echo_n "(cached) " >&6 11845else 11846 if test -n "$ac_ct_RANLIB"; then 11847 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 11848else 11849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11850for as_dir in $PATH 11851do 11852 IFS=$as_save_IFS 11853 test -z "$as_dir" && as_dir=. 11854 for ac_exec_ext in '' $ac_executable_extensions; do 11855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11856 ac_cv_prog_ac_ct_RANLIB="ranlib" 11857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11858 break 2 11859 fi 11860done 11861 done 11862IFS=$as_save_IFS 11863 11864fi 11865fi 11866ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 11867if test -n "$ac_ct_RANLIB"; then 11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 11869$as_echo "$ac_ct_RANLIB" >&6; } 11870else 11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11872$as_echo "no" >&6; } 11873fi 11874 11875 if test "x$ac_ct_RANLIB" = x; then 11876 RANLIB=":" 11877 else 11878 case $cross_compiling:$ac_tool_warned in 11879yes:) 11880{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11881$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11882ac_tool_warned=yes ;; 11883esac 11884 RANLIB=$ac_ct_RANLIB 11885 fi 11886else 11887 RANLIB="$ac_cv_prog_RANLIB" 11888fi 11889 11890test -z "$RANLIB" && RANLIB=: 11891 11892 11893 11894 11895 11896 11897# Determine commands to create old-style static archives. 11898old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 11899old_postinstall_cmds='chmod 644 $oldlib' 11900old_postuninstall_cmds= 11901 11902if test -n "$RANLIB"; then 11903 case $host_os in 11904 openbsd*) 11905 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 11906 ;; 11907 *) 11908 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 11909 ;; 11910 esac 11911 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 11912fi 11913 11914case $host_os in 11915 darwin*) 11916 lock_old_archive_extraction=yes ;; 11917 *) 11918 lock_old_archive_extraction=no ;; 11919esac 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959# If no C compiler was specified, use CC. 11960LTCC=${LTCC-"$CC"} 11961 11962# If no C compiler flags were specified, use CFLAGS. 11963LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11964 11965# Allow CC to be a program name with arguments. 11966compiler=$CC 11967 11968 11969# Check for command to grab the raw symbol name followed by C symbol from nm. 11970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 11971$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 11972if ${lt_cv_sys_global_symbol_pipe+:} false; then : 11973 $as_echo_n "(cached) " >&6 11974else 11975 11976# These are sane defaults that work on at least a few old systems. 11977# [They come from Ultrix. What could be older than Ultrix?!! ;)] 11978 11979# Character class describing NM global symbol codes. 11980symcode='[BCDEGRST]' 11981 11982# Regexp to match symbols that can be accessed directly from C. 11983sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 11984 11985# Define system-specific variables. 11986case $host_os in 11987aix*) 11988 symcode='[BCDT]' 11989 ;; 11990cygwin* | mingw* | pw32* | cegcc*) 11991 symcode='[ABCDGISTW]' 11992 ;; 11993hpux*) 11994 if test "$host_cpu" = ia64; then 11995 symcode='[ABCDEGRST]' 11996 fi 11997 ;; 11998irix* | nonstopux*) 11999 symcode='[BCDEGRST]' 12000 ;; 12001osf*) 12002 symcode='[BCDEGQRST]' 12003 ;; 12004solaris*) 12005 symcode='[BDRT]' 12006 ;; 12007sco3.2v5*) 12008 symcode='[DT]' 12009 ;; 12010sysv4.2uw2*) 12011 symcode='[DT]' 12012 ;; 12013sysv5* | sco5v6* | unixware* | OpenUNIX*) 12014 symcode='[ABDT]' 12015 ;; 12016sysv4) 12017 symcode='[DFNSTU]' 12018 ;; 12019esac 12020 12021# If we're using GNU nm, then use its standard symbol codes. 12022case `$NM -V 2>&1` in 12023*GNU* | *'with BFD'*) 12024 symcode='[ABCDGIRSTW]' ;; 12025esac 12026 12027# Transform an extracted symbol line into a proper C declaration. 12028# Some systems (esp. on ia64) link data and code symbols differently, 12029# so use this general approach. 12030lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 12031 12032# Transform an extracted symbol line into symbol name and symbol address 12033lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 12034lt_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'" 12035 12036# Handle CRLF in mingw tool chain 12037opt_cr= 12038case $build_os in 12039mingw*) 12040 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 12041 ;; 12042esac 12043 12044# Try without a prefix underscore, then with it. 12045for ac_symprfx in "" "_"; do 12046 12047 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 12048 symxfrm="\\1 $ac_symprfx\\2 \\2" 12049 12050 # Write the raw and C identifiers. 12051 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12052 # Fake it for dumpbin and say T for any non-static function 12053 # and D for any global variable. 12054 # Also find C++ and __fastcall symbols from MSVC++, 12055 # which start with @ or ?. 12056 lt_cv_sys_global_symbol_pipe="$AWK '"\ 12057" {last_section=section; section=\$ 3};"\ 12058" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 12059" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 12060" \$ 0!~/External *\|/{next};"\ 12061" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 12062" {if(hide[section]) next};"\ 12063" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 12064" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 12065" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 12066" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 12067" ' prfx=^$ac_symprfx" 12068 else 12069 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 12070 fi 12071 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 12072 12073 # Check to see that the pipe works correctly. 12074 pipe_works=no 12075 12076 rm -f conftest* 12077 cat > conftest.$ac_ext <<_LT_EOF 12078#ifdef __cplusplus 12079extern "C" { 12080#endif 12081char nm_test_var; 12082void nm_test_func(void); 12083void nm_test_func(void){} 12084#ifdef __cplusplus 12085} 12086#endif 12087int main(){nm_test_var='a';nm_test_func();return(0);} 12088_LT_EOF 12089 12090 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12091 (eval $ac_compile) 2>&5 12092 ac_status=$? 12093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12094 test $ac_status = 0; }; then 12095 # Now try to grab the symbols. 12096 nlist=conftest.nm 12097 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 12098 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 12099 ac_status=$? 12100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12101 test $ac_status = 0; } && test -s "$nlist"; then 12102 # Try sorting and uniquifying the output. 12103 if sort "$nlist" | uniq > "$nlist"T; then 12104 mv -f "$nlist"T "$nlist" 12105 else 12106 rm -f "$nlist"T 12107 fi 12108 12109 # Make sure that we snagged all the symbols we need. 12110 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 12111 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 12112 cat <<_LT_EOF > conftest.$ac_ext 12113/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 12114#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 12115/* DATA imports from DLLs on WIN32 con't be const, because runtime 12116 relocations are performed -- see ld's documentation on pseudo-relocs. */ 12117# define LT_DLSYM_CONST 12118#elif defined(__osf__) 12119/* This system does not cope well with relocations in const data. */ 12120# define LT_DLSYM_CONST 12121#else 12122# define LT_DLSYM_CONST const 12123#endif 12124 12125#ifdef __cplusplus 12126extern "C" { 12127#endif 12128 12129_LT_EOF 12130 # Now generate the symbol file. 12131 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 12132 12133 cat <<_LT_EOF >> conftest.$ac_ext 12134 12135/* The mapping between symbol names and symbols. */ 12136LT_DLSYM_CONST struct { 12137 const char *name; 12138 void *address; 12139} 12140lt__PROGRAM__LTX_preloaded_symbols[] = 12141{ 12142 { "@PROGRAM@", (void *) 0 }, 12143_LT_EOF 12144 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 12145 cat <<\_LT_EOF >> conftest.$ac_ext 12146 {0, (void *) 0} 12147}; 12148 12149/* This works around a problem in FreeBSD linker */ 12150#ifdef FREEBSD_WORKAROUND 12151static const void *lt_preloaded_setup() { 12152 return lt__PROGRAM__LTX_preloaded_symbols; 12153} 12154#endif 12155 12156#ifdef __cplusplus 12157} 12158#endif 12159_LT_EOF 12160 # Now try linking the two files. 12161 mv conftest.$ac_objext conftstm.$ac_objext 12162 lt_globsym_save_LIBS=$LIBS 12163 lt_globsym_save_CFLAGS=$CFLAGS 12164 LIBS="conftstm.$ac_objext" 12165 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 12166 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12167 (eval $ac_link) 2>&5 12168 ac_status=$? 12169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12170 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 12171 pipe_works=yes 12172 fi 12173 LIBS=$lt_globsym_save_LIBS 12174 CFLAGS=$lt_globsym_save_CFLAGS 12175 else 12176 echo "cannot find nm_test_func in $nlist" >&5 12177 fi 12178 else 12179 echo "cannot find nm_test_var in $nlist" >&5 12180 fi 12181 else 12182 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 12183 fi 12184 else 12185 echo "$progname: failed program was:" >&5 12186 cat conftest.$ac_ext >&5 12187 fi 12188 rm -rf conftest* conftst* 12189 12190 # Do not use the global_symbol_pipe unless it works. 12191 if test "$pipe_works" = yes; then 12192 break 12193 else 12194 lt_cv_sys_global_symbol_pipe= 12195 fi 12196done 12197 12198fi 12199 12200if test -z "$lt_cv_sys_global_symbol_pipe"; then 12201 lt_cv_sys_global_symbol_to_cdecl= 12202fi 12203if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 12204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 12205$as_echo "failed" >&6; } 12206else 12207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 12208$as_echo "ok" >&6; } 12209fi 12210 12211# Response file support. 12212if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12213 nm_file_list_spec='@' 12214elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 12215 nm_file_list_spec='@' 12216fi 12217 12218 12219 12220 12221 12222 12223 12224 12225 12226 12227 12228 12229 12230 12231 12232 12233 12234 12235 12236 12237 12238 12239 12240 12241 12242 12243 12244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 12245$as_echo_n "checking for sysroot... " >&6; } 12246 12247# Check whether --with-sysroot was given. 12248if test "${with_sysroot+set}" = set; then : 12249 withval=$with_sysroot; 12250else 12251 with_sysroot=no 12252fi 12253 12254 12255lt_sysroot= 12256case ${with_sysroot} in #( 12257 yes) 12258 if test "$GCC" = yes; then 12259 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 12260 fi 12261 ;; #( 12262 /*) 12263 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 12264 ;; #( 12265 no|'') 12266 ;; #( 12267 *) 12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 12269$as_echo "${with_sysroot}" >&6; } 12270 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 12271 ;; 12272esac 12273 12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 12275$as_echo "${lt_sysroot:-no}" >&6; } 12276 12277 12278 12279 12280 12281# Check whether --enable-libtool-lock was given. 12282if test "${enable_libtool_lock+set}" = set; then : 12283 enableval=$enable_libtool_lock; 12284fi 12285 12286test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 12287 12288# Some flags need to be propagated to the compiler or linker for good 12289# libtool support. 12290case $host in 12291ia64-*-hpux*) 12292 # Find out which ABI we are using. 12293 echo 'int i;' > conftest.$ac_ext 12294 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12295 (eval $ac_compile) 2>&5 12296 ac_status=$? 12297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12298 test $ac_status = 0; }; then 12299 case `/usr/bin/file conftest.$ac_objext` in 12300 *ELF-32*) 12301 HPUX_IA64_MODE="32" 12302 ;; 12303 *ELF-64*) 12304 HPUX_IA64_MODE="64" 12305 ;; 12306 esac 12307 fi 12308 rm -rf conftest* 12309 ;; 12310*-*-irix6*) 12311 # Find out which ABI we are using. 12312 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 12313 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12314 (eval $ac_compile) 2>&5 12315 ac_status=$? 12316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12317 test $ac_status = 0; }; then 12318 if test "$lt_cv_prog_gnu_ld" = yes; then 12319 case `/usr/bin/file conftest.$ac_objext` in 12320 *32-bit*) 12321 LD="${LD-ld} -melf32bsmip" 12322 ;; 12323 *N32*) 12324 LD="${LD-ld} -melf32bmipn32" 12325 ;; 12326 *64-bit*) 12327 LD="${LD-ld} -melf64bmip" 12328 ;; 12329 esac 12330 else 12331 case `/usr/bin/file conftest.$ac_objext` in 12332 *32-bit*) 12333 LD="${LD-ld} -32" 12334 ;; 12335 *N32*) 12336 LD="${LD-ld} -n32" 12337 ;; 12338 *64-bit*) 12339 LD="${LD-ld} -64" 12340 ;; 12341 esac 12342 fi 12343 fi 12344 rm -rf conftest* 12345 ;; 12346 12347x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 12348s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 12349 # Find out which ABI we are using. 12350 echo 'int i;' > conftest.$ac_ext 12351 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12352 (eval $ac_compile) 2>&5 12353 ac_status=$? 12354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12355 test $ac_status = 0; }; then 12356 case `/usr/bin/file conftest.o` in 12357 *32-bit*) 12358 case $host in 12359 x86_64-*kfreebsd*-gnu) 12360 LD="${LD-ld} -m elf_i386_fbsd" 12361 ;; 12362 x86_64-*linux*) 12363 LD="${LD-ld} -m elf_i386" 12364 ;; 12365 ppc64-*linux*|powerpc64-*linux*) 12366 LD="${LD-ld} -m elf32ppclinux" 12367 ;; 12368 s390x-*linux*) 12369 LD="${LD-ld} -m elf_s390" 12370 ;; 12371 sparc64-*linux*) 12372 LD="${LD-ld} -m elf32_sparc" 12373 ;; 12374 esac 12375 ;; 12376 *64-bit*) 12377 case $host in 12378 x86_64-*kfreebsd*-gnu) 12379 LD="${LD-ld} -m elf_x86_64_fbsd" 12380 ;; 12381 x86_64-*linux*) 12382 LD="${LD-ld} -m elf_x86_64" 12383 ;; 12384 ppc*-*linux*|powerpc*-*linux*) 12385 LD="${LD-ld} -m elf64ppc" 12386 ;; 12387 s390*-*linux*|s390*-*tpf*) 12388 LD="${LD-ld} -m elf64_s390" 12389 ;; 12390 sparc*-*linux*) 12391 LD="${LD-ld} -m elf64_sparc" 12392 ;; 12393 esac 12394 ;; 12395 esac 12396 fi 12397 rm -rf conftest* 12398 ;; 12399 12400*-*-sco3.2v5*) 12401 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 12402 SAVE_CFLAGS="$CFLAGS" 12403 CFLAGS="$CFLAGS -belf" 12404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 12405$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 12406if ${lt_cv_cc_needs_belf+:} false; then : 12407 $as_echo_n "(cached) " >&6 12408else 12409 ac_ext=c 12410ac_cpp='$CPP $CPPFLAGS' 12411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12413ac_compiler_gnu=$ac_cv_c_compiler_gnu 12414 12415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12416/* end confdefs.h. */ 12417 12418int 12419main () 12420{ 12421 12422 ; 12423 return 0; 12424} 12425_ACEOF 12426if ac_fn_c_try_link "$LINENO"; then : 12427 lt_cv_cc_needs_belf=yes 12428else 12429 lt_cv_cc_needs_belf=no 12430fi 12431rm -f core conftest.err conftest.$ac_objext \ 12432 conftest$ac_exeext conftest.$ac_ext 12433 ac_ext=c 12434ac_cpp='$CPP $CPPFLAGS' 12435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12437ac_compiler_gnu=$ac_cv_c_compiler_gnu 12438 12439fi 12440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 12441$as_echo "$lt_cv_cc_needs_belf" >&6; } 12442 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 12443 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 12444 CFLAGS="$SAVE_CFLAGS" 12445 fi 12446 ;; 12447*-*solaris*) 12448 # Find out which ABI we are using. 12449 echo 'int i;' > conftest.$ac_ext 12450 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12451 (eval $ac_compile) 2>&5 12452 ac_status=$? 12453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12454 test $ac_status = 0; }; then 12455 case `/usr/bin/file conftest.o` in 12456 *64-bit*) 12457 case $lt_cv_prog_gnu_ld in 12458 yes*) 12459 case $host in 12460 i?86-*-solaris*) 12461 LD="${LD-ld} -m elf_x86_64" 12462 ;; 12463 sparc*-*-solaris*) 12464 LD="${LD-ld} -m elf64_sparc" 12465 ;; 12466 esac 12467 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 12468 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 12469 LD="${LD-ld}_sol2" 12470 fi 12471 ;; 12472 *) 12473 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 12474 LD="${LD-ld} -64" 12475 fi 12476 ;; 12477 esac 12478 ;; 12479 esac 12480 fi 12481 rm -rf conftest* 12482 ;; 12483esac 12484 12485need_locks="$enable_libtool_lock" 12486 12487if test -n "$ac_tool_prefix"; then 12488 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 12489set dummy ${ac_tool_prefix}mt; ac_word=$2 12490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12491$as_echo_n "checking for $ac_word... " >&6; } 12492if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 12493 $as_echo_n "(cached) " >&6 12494else 12495 if test -n "$MANIFEST_TOOL"; then 12496 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 12497else 12498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12499for as_dir in $PATH 12500do 12501 IFS=$as_save_IFS 12502 test -z "$as_dir" && as_dir=. 12503 for ac_exec_ext in '' $ac_executable_extensions; do 12504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12505 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 12506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12507 break 2 12508 fi 12509done 12510 done 12511IFS=$as_save_IFS 12512 12513fi 12514fi 12515MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 12516if test -n "$MANIFEST_TOOL"; then 12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 12518$as_echo "$MANIFEST_TOOL" >&6; } 12519else 12520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12521$as_echo "no" >&6; } 12522fi 12523 12524 12525fi 12526if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 12527 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 12528 # Extract the first word of "mt", so it can be a program name with args. 12529set dummy mt; ac_word=$2 12530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12531$as_echo_n "checking for $ac_word... " >&6; } 12532if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 12533 $as_echo_n "(cached) " >&6 12534else 12535 if test -n "$ac_ct_MANIFEST_TOOL"; then 12536 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 12537else 12538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12539for as_dir in $PATH 12540do 12541 IFS=$as_save_IFS 12542 test -z "$as_dir" && as_dir=. 12543 for ac_exec_ext in '' $ac_executable_extensions; do 12544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12545 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 12546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12547 break 2 12548 fi 12549done 12550 done 12551IFS=$as_save_IFS 12552 12553fi 12554fi 12555ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 12556if test -n "$ac_ct_MANIFEST_TOOL"; then 12557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 12558$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 12559else 12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12561$as_echo "no" >&6; } 12562fi 12563 12564 if test "x$ac_ct_MANIFEST_TOOL" = x; then 12565 MANIFEST_TOOL=":" 12566 else 12567 case $cross_compiling:$ac_tool_warned in 12568yes:) 12569{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12570$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12571ac_tool_warned=yes ;; 12572esac 12573 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 12574 fi 12575else 12576 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 12577fi 12578 12579test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 12580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 12581$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 12582if ${lt_cv_path_mainfest_tool+:} false; then : 12583 $as_echo_n "(cached) " >&6 12584else 12585 lt_cv_path_mainfest_tool=no 12586 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 12587 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 12588 cat conftest.err >&5 12589 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 12590 lt_cv_path_mainfest_tool=yes 12591 fi 12592 rm -f conftest* 12593fi 12594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 12595$as_echo "$lt_cv_path_mainfest_tool" >&6; } 12596if test "x$lt_cv_path_mainfest_tool" != xyes; then 12597 MANIFEST_TOOL=: 12598fi 12599 12600 12601 12602 12603 12604 12605 case $host_os in 12606 rhapsody* | darwin*) 12607 if test -n "$ac_tool_prefix"; then 12608 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 12609set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 12610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12611$as_echo_n "checking for $ac_word... " >&6; } 12612if ${ac_cv_prog_DSYMUTIL+:} false; then : 12613 $as_echo_n "(cached) " >&6 12614else 12615 if test -n "$DSYMUTIL"; then 12616 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 12617else 12618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12619for as_dir in $PATH 12620do 12621 IFS=$as_save_IFS 12622 test -z "$as_dir" && as_dir=. 12623 for ac_exec_ext in '' $ac_executable_extensions; do 12624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12625 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 12626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12627 break 2 12628 fi 12629done 12630 done 12631IFS=$as_save_IFS 12632 12633fi 12634fi 12635DSYMUTIL=$ac_cv_prog_DSYMUTIL 12636if test -n "$DSYMUTIL"; then 12637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 12638$as_echo "$DSYMUTIL" >&6; } 12639else 12640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12641$as_echo "no" >&6; } 12642fi 12643 12644 12645fi 12646if test -z "$ac_cv_prog_DSYMUTIL"; then 12647 ac_ct_DSYMUTIL=$DSYMUTIL 12648 # Extract the first word of "dsymutil", so it can be a program name with args. 12649set dummy dsymutil; ac_word=$2 12650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12651$as_echo_n "checking for $ac_word... " >&6; } 12652if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 12653 $as_echo_n "(cached) " >&6 12654else 12655 if test -n "$ac_ct_DSYMUTIL"; then 12656 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 12657else 12658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12659for as_dir in $PATH 12660do 12661 IFS=$as_save_IFS 12662 test -z "$as_dir" && as_dir=. 12663 for ac_exec_ext in '' $ac_executable_extensions; do 12664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12665 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 12666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12667 break 2 12668 fi 12669done 12670 done 12671IFS=$as_save_IFS 12672 12673fi 12674fi 12675ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 12676if test -n "$ac_ct_DSYMUTIL"; then 12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 12678$as_echo "$ac_ct_DSYMUTIL" >&6; } 12679else 12680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12681$as_echo "no" >&6; } 12682fi 12683 12684 if test "x$ac_ct_DSYMUTIL" = x; then 12685 DSYMUTIL=":" 12686 else 12687 case $cross_compiling:$ac_tool_warned in 12688yes:) 12689{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12690$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12691ac_tool_warned=yes ;; 12692esac 12693 DSYMUTIL=$ac_ct_DSYMUTIL 12694 fi 12695else 12696 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 12697fi 12698 12699 if test -n "$ac_tool_prefix"; then 12700 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 12701set dummy ${ac_tool_prefix}nmedit; ac_word=$2 12702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12703$as_echo_n "checking for $ac_word... " >&6; } 12704if ${ac_cv_prog_NMEDIT+:} false; then : 12705 $as_echo_n "(cached) " >&6 12706else 12707 if test -n "$NMEDIT"; then 12708 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 12709else 12710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12711for as_dir in $PATH 12712do 12713 IFS=$as_save_IFS 12714 test -z "$as_dir" && as_dir=. 12715 for ac_exec_ext in '' $ac_executable_extensions; do 12716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12717 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 12718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12719 break 2 12720 fi 12721done 12722 done 12723IFS=$as_save_IFS 12724 12725fi 12726fi 12727NMEDIT=$ac_cv_prog_NMEDIT 12728if test -n "$NMEDIT"; then 12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 12730$as_echo "$NMEDIT" >&6; } 12731else 12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12733$as_echo "no" >&6; } 12734fi 12735 12736 12737fi 12738if test -z "$ac_cv_prog_NMEDIT"; then 12739 ac_ct_NMEDIT=$NMEDIT 12740 # Extract the first word of "nmedit", so it can be a program name with args. 12741set dummy nmedit; ac_word=$2 12742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12743$as_echo_n "checking for $ac_word... " >&6; } 12744if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 12745 $as_echo_n "(cached) " >&6 12746else 12747 if test -n "$ac_ct_NMEDIT"; then 12748 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 12749else 12750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12751for as_dir in $PATH 12752do 12753 IFS=$as_save_IFS 12754 test -z "$as_dir" && as_dir=. 12755 for ac_exec_ext in '' $ac_executable_extensions; do 12756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12757 ac_cv_prog_ac_ct_NMEDIT="nmedit" 12758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12759 break 2 12760 fi 12761done 12762 done 12763IFS=$as_save_IFS 12764 12765fi 12766fi 12767ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 12768if test -n "$ac_ct_NMEDIT"; then 12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 12770$as_echo "$ac_ct_NMEDIT" >&6; } 12771else 12772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12773$as_echo "no" >&6; } 12774fi 12775 12776 if test "x$ac_ct_NMEDIT" = x; then 12777 NMEDIT=":" 12778 else 12779 case $cross_compiling:$ac_tool_warned in 12780yes:) 12781{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12782$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12783ac_tool_warned=yes ;; 12784esac 12785 NMEDIT=$ac_ct_NMEDIT 12786 fi 12787else 12788 NMEDIT="$ac_cv_prog_NMEDIT" 12789fi 12790 12791 if test -n "$ac_tool_prefix"; then 12792 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 12793set dummy ${ac_tool_prefix}lipo; ac_word=$2 12794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12795$as_echo_n "checking for $ac_word... " >&6; } 12796if ${ac_cv_prog_LIPO+:} false; then : 12797 $as_echo_n "(cached) " >&6 12798else 12799 if test -n "$LIPO"; then 12800 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 12801else 12802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12803for as_dir in $PATH 12804do 12805 IFS=$as_save_IFS 12806 test -z "$as_dir" && as_dir=. 12807 for ac_exec_ext in '' $ac_executable_extensions; do 12808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12809 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 12810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12811 break 2 12812 fi 12813done 12814 done 12815IFS=$as_save_IFS 12816 12817fi 12818fi 12819LIPO=$ac_cv_prog_LIPO 12820if test -n "$LIPO"; then 12821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 12822$as_echo "$LIPO" >&6; } 12823else 12824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12825$as_echo "no" >&6; } 12826fi 12827 12828 12829fi 12830if test -z "$ac_cv_prog_LIPO"; then 12831 ac_ct_LIPO=$LIPO 12832 # Extract the first word of "lipo", so it can be a program name with args. 12833set dummy lipo; ac_word=$2 12834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12835$as_echo_n "checking for $ac_word... " >&6; } 12836if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 12837 $as_echo_n "(cached) " >&6 12838else 12839 if test -n "$ac_ct_LIPO"; then 12840 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 12841else 12842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12843for as_dir in $PATH 12844do 12845 IFS=$as_save_IFS 12846 test -z "$as_dir" && as_dir=. 12847 for ac_exec_ext in '' $ac_executable_extensions; do 12848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12849 ac_cv_prog_ac_ct_LIPO="lipo" 12850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12851 break 2 12852 fi 12853done 12854 done 12855IFS=$as_save_IFS 12856 12857fi 12858fi 12859ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 12860if test -n "$ac_ct_LIPO"; then 12861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 12862$as_echo "$ac_ct_LIPO" >&6; } 12863else 12864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12865$as_echo "no" >&6; } 12866fi 12867 12868 if test "x$ac_ct_LIPO" = x; then 12869 LIPO=":" 12870 else 12871 case $cross_compiling:$ac_tool_warned in 12872yes:) 12873{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12874$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12875ac_tool_warned=yes ;; 12876esac 12877 LIPO=$ac_ct_LIPO 12878 fi 12879else 12880 LIPO="$ac_cv_prog_LIPO" 12881fi 12882 12883 if test -n "$ac_tool_prefix"; then 12884 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 12885set dummy ${ac_tool_prefix}otool; ac_word=$2 12886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12887$as_echo_n "checking for $ac_word... " >&6; } 12888if ${ac_cv_prog_OTOOL+:} false; then : 12889 $as_echo_n "(cached) " >&6 12890else 12891 if test -n "$OTOOL"; then 12892 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 12893else 12894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12895for as_dir in $PATH 12896do 12897 IFS=$as_save_IFS 12898 test -z "$as_dir" && as_dir=. 12899 for ac_exec_ext in '' $ac_executable_extensions; do 12900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12901 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 12902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12903 break 2 12904 fi 12905done 12906 done 12907IFS=$as_save_IFS 12908 12909fi 12910fi 12911OTOOL=$ac_cv_prog_OTOOL 12912if test -n "$OTOOL"; then 12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 12914$as_echo "$OTOOL" >&6; } 12915else 12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12917$as_echo "no" >&6; } 12918fi 12919 12920 12921fi 12922if test -z "$ac_cv_prog_OTOOL"; then 12923 ac_ct_OTOOL=$OTOOL 12924 # Extract the first word of "otool", so it can be a program name with args. 12925set dummy otool; ac_word=$2 12926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12927$as_echo_n "checking for $ac_word... " >&6; } 12928if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 12929 $as_echo_n "(cached) " >&6 12930else 12931 if test -n "$ac_ct_OTOOL"; then 12932 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 12933else 12934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12935for as_dir in $PATH 12936do 12937 IFS=$as_save_IFS 12938 test -z "$as_dir" && as_dir=. 12939 for ac_exec_ext in '' $ac_executable_extensions; do 12940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12941 ac_cv_prog_ac_ct_OTOOL="otool" 12942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12943 break 2 12944 fi 12945done 12946 done 12947IFS=$as_save_IFS 12948 12949fi 12950fi 12951ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 12952if test -n "$ac_ct_OTOOL"; then 12953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 12954$as_echo "$ac_ct_OTOOL" >&6; } 12955else 12956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12957$as_echo "no" >&6; } 12958fi 12959 12960 if test "x$ac_ct_OTOOL" = x; then 12961 OTOOL=":" 12962 else 12963 case $cross_compiling:$ac_tool_warned in 12964yes:) 12965{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12966$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12967ac_tool_warned=yes ;; 12968esac 12969 OTOOL=$ac_ct_OTOOL 12970 fi 12971else 12972 OTOOL="$ac_cv_prog_OTOOL" 12973fi 12974 12975 if test -n "$ac_tool_prefix"; then 12976 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 12977set dummy ${ac_tool_prefix}otool64; ac_word=$2 12978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12979$as_echo_n "checking for $ac_word... " >&6; } 12980if ${ac_cv_prog_OTOOL64+:} false; then : 12981 $as_echo_n "(cached) " >&6 12982else 12983 if test -n "$OTOOL64"; then 12984 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 12985else 12986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12987for as_dir in $PATH 12988do 12989 IFS=$as_save_IFS 12990 test -z "$as_dir" && as_dir=. 12991 for ac_exec_ext in '' $ac_executable_extensions; do 12992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12993 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 12994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12995 break 2 12996 fi 12997done 12998 done 12999IFS=$as_save_IFS 13000 13001fi 13002fi 13003OTOOL64=$ac_cv_prog_OTOOL64 13004if test -n "$OTOOL64"; then 13005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 13006$as_echo "$OTOOL64" >&6; } 13007else 13008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13009$as_echo "no" >&6; } 13010fi 13011 13012 13013fi 13014if test -z "$ac_cv_prog_OTOOL64"; then 13015 ac_ct_OTOOL64=$OTOOL64 13016 # Extract the first word of "otool64", so it can be a program name with args. 13017set dummy otool64; ac_word=$2 13018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13019$as_echo_n "checking for $ac_word... " >&6; } 13020if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 13021 $as_echo_n "(cached) " >&6 13022else 13023 if test -n "$ac_ct_OTOOL64"; then 13024 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 13025else 13026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13027for as_dir in $PATH 13028do 13029 IFS=$as_save_IFS 13030 test -z "$as_dir" && as_dir=. 13031 for ac_exec_ext in '' $ac_executable_extensions; do 13032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13033 ac_cv_prog_ac_ct_OTOOL64="otool64" 13034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13035 break 2 13036 fi 13037done 13038 done 13039IFS=$as_save_IFS 13040 13041fi 13042fi 13043ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 13044if test -n "$ac_ct_OTOOL64"; then 13045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 13046$as_echo "$ac_ct_OTOOL64" >&6; } 13047else 13048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13049$as_echo "no" >&6; } 13050fi 13051 13052 if test "x$ac_ct_OTOOL64" = x; then 13053 OTOOL64=":" 13054 else 13055 case $cross_compiling:$ac_tool_warned in 13056yes:) 13057{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13058$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13059ac_tool_warned=yes ;; 13060esac 13061 OTOOL64=$ac_ct_OTOOL64 13062 fi 13063else 13064 OTOOL64="$ac_cv_prog_OTOOL64" 13065fi 13066 13067 13068 13069 13070 13071 13072 13073 13074 13075 13076 13077 13078 13079 13080 13081 13082 13083 13084 13085 13086 13087 13088 13089 13090 13091 13092 13093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 13094$as_echo_n "checking for -single_module linker flag... " >&6; } 13095if ${lt_cv_apple_cc_single_mod+:} false; then : 13096 $as_echo_n "(cached) " >&6 13097else 13098 lt_cv_apple_cc_single_mod=no 13099 if test -z "${LT_MULTI_MODULE}"; then 13100 # By default we will add the -single_module flag. You can override 13101 # by either setting the environment variable LT_MULTI_MODULE 13102 # non-empty at configure time, or by adding -multi_module to the 13103 # link flags. 13104 rm -rf libconftest.dylib* 13105 echo "int foo(void){return 1;}" > conftest.c 13106 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 13107-dynamiclib -Wl,-single_module conftest.c" >&5 13108 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 13109 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 13110 _lt_result=$? 13111 # If there is a non-empty error log, and "single_module" 13112 # appears in it, assume the flag caused a linker warning 13113 if test -s conftest.err && $GREP single_module conftest.err; then 13114 cat conftest.err >&5 13115 # Otherwise, if the output was created with a 0 exit code from 13116 # the compiler, it worked. 13117 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 13118 lt_cv_apple_cc_single_mod=yes 13119 else 13120 cat conftest.err >&5 13121 fi 13122 rm -rf libconftest.dylib* 13123 rm -f conftest.* 13124 fi 13125fi 13126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 13127$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 13128 13129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 13130$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 13131if ${lt_cv_ld_exported_symbols_list+:} false; then : 13132 $as_echo_n "(cached) " >&6 13133else 13134 lt_cv_ld_exported_symbols_list=no 13135 save_LDFLAGS=$LDFLAGS 13136 echo "_main" > conftest.sym 13137 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 13138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13139/* end confdefs.h. */ 13140 13141int 13142main () 13143{ 13144 13145 ; 13146 return 0; 13147} 13148_ACEOF 13149if ac_fn_c_try_link "$LINENO"; then : 13150 lt_cv_ld_exported_symbols_list=yes 13151else 13152 lt_cv_ld_exported_symbols_list=no 13153fi 13154rm -f core conftest.err conftest.$ac_objext \ 13155 conftest$ac_exeext conftest.$ac_ext 13156 LDFLAGS="$save_LDFLAGS" 13157 13158fi 13159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 13160$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 13161 13162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 13163$as_echo_n "checking for -force_load linker flag... " >&6; } 13164if ${lt_cv_ld_force_load+:} false; then : 13165 $as_echo_n "(cached) " >&6 13166else 13167 lt_cv_ld_force_load=no 13168 cat > conftest.c << _LT_EOF 13169int forced_loaded() { return 2;} 13170_LT_EOF 13171 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 13172 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 13173 echo "$AR cru libconftest.a conftest.o" >&5 13174 $AR cru libconftest.a conftest.o 2>&5 13175 echo "$RANLIB libconftest.a" >&5 13176 $RANLIB libconftest.a 2>&5 13177 cat > conftest.c << _LT_EOF 13178int main() { return 0;} 13179_LT_EOF 13180 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 13181 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 13182 _lt_result=$? 13183 if test -s conftest.err && $GREP force_load conftest.err; then 13184 cat conftest.err >&5 13185 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 13186 lt_cv_ld_force_load=yes 13187 else 13188 cat conftest.err >&5 13189 fi 13190 rm -f conftest.err libconftest.a conftest conftest.c 13191 rm -rf conftest.dSYM 13192 13193fi 13194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 13195$as_echo "$lt_cv_ld_force_load" >&6; } 13196 case $host_os in 13197 rhapsody* | darwin1.[012]) 13198 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 13199 darwin1.*) 13200 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 13201 darwin*) # darwin 5.x on 13202 # if running on 10.5 or later, the deployment target defaults 13203 # to the OS version, if on x86, and 10.4, the deployment 13204 # target defaults to 10.4. Don't you love it? 13205 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 13206 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 13207 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 13208 10.[012]*) 13209 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 13210 10.*) 13211 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 13212 esac 13213 ;; 13214 esac 13215 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 13216 _lt_dar_single_mod='$single_module' 13217 fi 13218 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 13219 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 13220 else 13221 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 13222 fi 13223 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 13224 _lt_dsymutil='~$DSYMUTIL $lib || :' 13225 else 13226 _lt_dsymutil= 13227 fi 13228 ;; 13229 esac 13230 13231for ac_header in dlfcn.h 13232do : 13233 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 13234" 13235if test "x$ac_cv_header_dlfcn_h" = xyes; then : 13236 cat >>confdefs.h <<_ACEOF 13237#define HAVE_DLFCN_H 1 13238_ACEOF 13239 13240fi 13241 13242done 13243 13244 13245 13246 13247func_stripname_cnf () 13248{ 13249 case ${2} in 13250 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 13251 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 13252 esac 13253} # func_stripname_cnf 13254 13255 13256 13257 13258 13259# Set options 13260enable_win32_dll=yes 13261 13262case $host in 13263*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 13264 if test -n "$ac_tool_prefix"; then 13265 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 13266set dummy ${ac_tool_prefix}as; ac_word=$2 13267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13268$as_echo_n "checking for $ac_word... " >&6; } 13269if ${ac_cv_prog_AS+:} false; then : 13270 $as_echo_n "(cached) " >&6 13271else 13272 if test -n "$AS"; then 13273 ac_cv_prog_AS="$AS" # Let the user override the test. 13274else 13275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13276for as_dir in $PATH 13277do 13278 IFS=$as_save_IFS 13279 test -z "$as_dir" && as_dir=. 13280 for ac_exec_ext in '' $ac_executable_extensions; do 13281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13282 ac_cv_prog_AS="${ac_tool_prefix}as" 13283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13284 break 2 13285 fi 13286done 13287 done 13288IFS=$as_save_IFS 13289 13290fi 13291fi 13292AS=$ac_cv_prog_AS 13293if test -n "$AS"; then 13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 13295$as_echo "$AS" >&6; } 13296else 13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13298$as_echo "no" >&6; } 13299fi 13300 13301 13302fi 13303if test -z "$ac_cv_prog_AS"; then 13304 ac_ct_AS=$AS 13305 # Extract the first word of "as", so it can be a program name with args. 13306set dummy as; ac_word=$2 13307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13308$as_echo_n "checking for $ac_word... " >&6; } 13309if ${ac_cv_prog_ac_ct_AS+:} false; then : 13310 $as_echo_n "(cached) " >&6 13311else 13312 if test -n "$ac_ct_AS"; then 13313 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 13314else 13315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13316for as_dir in $PATH 13317do 13318 IFS=$as_save_IFS 13319 test -z "$as_dir" && as_dir=. 13320 for ac_exec_ext in '' $ac_executable_extensions; do 13321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13322 ac_cv_prog_ac_ct_AS="as" 13323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13324 break 2 13325 fi 13326done 13327 done 13328IFS=$as_save_IFS 13329 13330fi 13331fi 13332ac_ct_AS=$ac_cv_prog_ac_ct_AS 13333if test -n "$ac_ct_AS"; then 13334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 13335$as_echo "$ac_ct_AS" >&6; } 13336else 13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13338$as_echo "no" >&6; } 13339fi 13340 13341 if test "x$ac_ct_AS" = x; then 13342 AS="false" 13343 else 13344 case $cross_compiling:$ac_tool_warned in 13345yes:) 13346{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13347$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13348ac_tool_warned=yes ;; 13349esac 13350 AS=$ac_ct_AS 13351 fi 13352else 13353 AS="$ac_cv_prog_AS" 13354fi 13355 13356 if test -n "$ac_tool_prefix"; then 13357 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 13358set dummy ${ac_tool_prefix}dlltool; ac_word=$2 13359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13360$as_echo_n "checking for $ac_word... " >&6; } 13361if ${ac_cv_prog_DLLTOOL+:} false; then : 13362 $as_echo_n "(cached) " >&6 13363else 13364 if test -n "$DLLTOOL"; then 13365 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 13366else 13367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13368for as_dir in $PATH 13369do 13370 IFS=$as_save_IFS 13371 test -z "$as_dir" && as_dir=. 13372 for ac_exec_ext in '' $ac_executable_extensions; do 13373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13374 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 13375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13376 break 2 13377 fi 13378done 13379 done 13380IFS=$as_save_IFS 13381 13382fi 13383fi 13384DLLTOOL=$ac_cv_prog_DLLTOOL 13385if test -n "$DLLTOOL"; then 13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 13387$as_echo "$DLLTOOL" >&6; } 13388else 13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13390$as_echo "no" >&6; } 13391fi 13392 13393 13394fi 13395if test -z "$ac_cv_prog_DLLTOOL"; then 13396 ac_ct_DLLTOOL=$DLLTOOL 13397 # Extract the first word of "dlltool", so it can be a program name with args. 13398set dummy dlltool; ac_word=$2 13399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13400$as_echo_n "checking for $ac_word... " >&6; } 13401if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 13402 $as_echo_n "(cached) " >&6 13403else 13404 if test -n "$ac_ct_DLLTOOL"; then 13405 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 13406else 13407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13408for as_dir in $PATH 13409do 13410 IFS=$as_save_IFS 13411 test -z "$as_dir" && as_dir=. 13412 for ac_exec_ext in '' $ac_executable_extensions; do 13413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13414 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 13415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13416 break 2 13417 fi 13418done 13419 done 13420IFS=$as_save_IFS 13421 13422fi 13423fi 13424ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 13425if test -n "$ac_ct_DLLTOOL"; then 13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 13427$as_echo "$ac_ct_DLLTOOL" >&6; } 13428else 13429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13430$as_echo "no" >&6; } 13431fi 13432 13433 if test "x$ac_ct_DLLTOOL" = x; then 13434 DLLTOOL="false" 13435 else 13436 case $cross_compiling:$ac_tool_warned in 13437yes:) 13438{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13439$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13440ac_tool_warned=yes ;; 13441esac 13442 DLLTOOL=$ac_ct_DLLTOOL 13443 fi 13444else 13445 DLLTOOL="$ac_cv_prog_DLLTOOL" 13446fi 13447 13448 if test -n "$ac_tool_prefix"; then 13449 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 13450set dummy ${ac_tool_prefix}objdump; ac_word=$2 13451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13452$as_echo_n "checking for $ac_word... " >&6; } 13453if ${ac_cv_prog_OBJDUMP+:} false; then : 13454 $as_echo_n "(cached) " >&6 13455else 13456 if test -n "$OBJDUMP"; then 13457 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 13458else 13459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13460for as_dir in $PATH 13461do 13462 IFS=$as_save_IFS 13463 test -z "$as_dir" && as_dir=. 13464 for ac_exec_ext in '' $ac_executable_extensions; do 13465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13466 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 13467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13468 break 2 13469 fi 13470done 13471 done 13472IFS=$as_save_IFS 13473 13474fi 13475fi 13476OBJDUMP=$ac_cv_prog_OBJDUMP 13477if test -n "$OBJDUMP"; then 13478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 13479$as_echo "$OBJDUMP" >&6; } 13480else 13481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13482$as_echo "no" >&6; } 13483fi 13484 13485 13486fi 13487if test -z "$ac_cv_prog_OBJDUMP"; then 13488 ac_ct_OBJDUMP=$OBJDUMP 13489 # Extract the first word of "objdump", so it can be a program name with args. 13490set dummy objdump; ac_word=$2 13491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13492$as_echo_n "checking for $ac_word... " >&6; } 13493if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 13494 $as_echo_n "(cached) " >&6 13495else 13496 if test -n "$ac_ct_OBJDUMP"; then 13497 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 13498else 13499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13500for as_dir in $PATH 13501do 13502 IFS=$as_save_IFS 13503 test -z "$as_dir" && as_dir=. 13504 for ac_exec_ext in '' $ac_executable_extensions; do 13505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13506 ac_cv_prog_ac_ct_OBJDUMP="objdump" 13507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13508 break 2 13509 fi 13510done 13511 done 13512IFS=$as_save_IFS 13513 13514fi 13515fi 13516ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 13517if test -n "$ac_ct_OBJDUMP"; then 13518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 13519$as_echo "$ac_ct_OBJDUMP" >&6; } 13520else 13521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13522$as_echo "no" >&6; } 13523fi 13524 13525 if test "x$ac_ct_OBJDUMP" = x; then 13526 OBJDUMP="false" 13527 else 13528 case $cross_compiling:$ac_tool_warned in 13529yes:) 13530{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13531$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13532ac_tool_warned=yes ;; 13533esac 13534 OBJDUMP=$ac_ct_OBJDUMP 13535 fi 13536else 13537 OBJDUMP="$ac_cv_prog_OBJDUMP" 13538fi 13539 13540 ;; 13541esac 13542 13543test -z "$AS" && AS=as 13544 13545 13546 13547 13548 13549test -z "$DLLTOOL" && DLLTOOL=dlltool 13550 13551 13552 13553 13554 13555test -z "$OBJDUMP" && OBJDUMP=objdump 13556 13557 13558 13559 13560 13561 13562 13563 13564 13565 # Check whether --enable-shared was given. 13566if test "${enable_shared+set}" = set; then : 13567 enableval=$enable_shared; p=${PACKAGE-default} 13568 case $enableval in 13569 yes) enable_shared=yes ;; 13570 no) enable_shared=no ;; 13571 *) 13572 enable_shared=no 13573 # Look at the argument we got. We use all the common list separators. 13574 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 13575 for pkg in $enableval; do 13576 IFS="$lt_save_ifs" 13577 if test "X$pkg" = "X$p"; then 13578 enable_shared=yes 13579 fi 13580 done 13581 IFS="$lt_save_ifs" 13582 ;; 13583 esac 13584else 13585 enable_shared=yes 13586fi 13587 13588 13589 13590 13591 13592 13593 13594 13595 13596 # Check whether --enable-static was given. 13597if test "${enable_static+set}" = set; then : 13598 enableval=$enable_static; p=${PACKAGE-default} 13599 case $enableval in 13600 yes) enable_static=yes ;; 13601 no) enable_static=no ;; 13602 *) 13603 enable_static=no 13604 # Look at the argument we got. We use all the common list separators. 13605 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 13606 for pkg in $enableval; do 13607 IFS="$lt_save_ifs" 13608 if test "X$pkg" = "X$p"; then 13609 enable_static=yes 13610 fi 13611 done 13612 IFS="$lt_save_ifs" 13613 ;; 13614 esac 13615else 13616 enable_static=yes 13617fi 13618 13619 13620 13621 13622 13623 13624 13625 13626 13627 13628# Check whether --with-pic was given. 13629if test "${with_pic+set}" = set; then : 13630 withval=$with_pic; lt_p=${PACKAGE-default} 13631 case $withval in 13632 yes|no) pic_mode=$withval ;; 13633 *) 13634 pic_mode=default 13635 # Look at the argument we got. We use all the common list separators. 13636 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 13637 for lt_pkg in $withval; do 13638 IFS="$lt_save_ifs" 13639 if test "X$lt_pkg" = "X$lt_p"; then 13640 pic_mode=yes 13641 fi 13642 done 13643 IFS="$lt_save_ifs" 13644 ;; 13645 esac 13646else 13647 pic_mode=default 13648fi 13649 13650 13651test -z "$pic_mode" && pic_mode=default 13652 13653 13654 13655 13656 13657 13658 13659 # Check whether --enable-fast-install was given. 13660if test "${enable_fast_install+set}" = set; then : 13661 enableval=$enable_fast_install; p=${PACKAGE-default} 13662 case $enableval in 13663 yes) enable_fast_install=yes ;; 13664 no) enable_fast_install=no ;; 13665 *) 13666 enable_fast_install=no 13667 # Look at the argument we got. We use all the common list separators. 13668 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 13669 for pkg in $enableval; do 13670 IFS="$lt_save_ifs" 13671 if test "X$pkg" = "X$p"; then 13672 enable_fast_install=yes 13673 fi 13674 done 13675 IFS="$lt_save_ifs" 13676 ;; 13677 esac 13678else 13679 enable_fast_install=yes 13680fi 13681 13682 13683 13684 13685 13686 13687 13688 13689 13690 13691 13692# This can be used to rebuild libtool when needed 13693LIBTOOL_DEPS="$ltmain" 13694 13695# Always use our own libtool. 13696LIBTOOL='$(SHELL) $(top_builddir)/libtool' 13697 13698 13699 13700 13701 13702 13703 13704 13705 13706 13707 13708 13709 13710 13711 13712 13713 13714 13715 13716 13717 13718 13719 13720 13721 13722 13723 13724 13725 13726 13727test -z "$LN_S" && LN_S="ln -s" 13728 13729 13730 13731 13732 13733 13734 13735 13736 13737 13738 13739 13740 13741 13742if test -n "${ZSH_VERSION+set}" ; then 13743 setopt NO_GLOB_SUBST 13744fi 13745 13746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 13747$as_echo_n "checking for objdir... " >&6; } 13748if ${lt_cv_objdir+:} false; then : 13749 $as_echo_n "(cached) " >&6 13750else 13751 rm -f .libs 2>/dev/null 13752mkdir .libs 2>/dev/null 13753if test -d .libs; then 13754 lt_cv_objdir=.libs 13755else 13756 # MS-DOS does not allow filenames that begin with a dot. 13757 lt_cv_objdir=_libs 13758fi 13759rmdir .libs 2>/dev/null 13760fi 13761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 13762$as_echo "$lt_cv_objdir" >&6; } 13763objdir=$lt_cv_objdir 13764 13765 13766 13767 13768 13769cat >>confdefs.h <<_ACEOF 13770#define LT_OBJDIR "$lt_cv_objdir/" 13771_ACEOF 13772 13773 13774 13775 13776case $host_os in 13777aix3*) 13778 # AIX sometimes has problems with the GCC collect2 program. For some 13779 # reason, if we set the COLLECT_NAMES environment variable, the problems 13780 # vanish in a puff of smoke. 13781 if test "X${COLLECT_NAMES+set}" != Xset; then 13782 COLLECT_NAMES= 13783 export COLLECT_NAMES 13784 fi 13785 ;; 13786esac 13787 13788# Global variables: 13789ofile=libtool 13790can_build_shared=yes 13791 13792# All known linkers require a `.a' archive for static linking (except MSVC, 13793# which needs '.lib'). 13794libext=a 13795 13796with_gnu_ld="$lt_cv_prog_gnu_ld" 13797 13798old_CC="$CC" 13799old_CFLAGS="$CFLAGS" 13800 13801# Set sane defaults for various variables 13802test -z "$CC" && CC=cc 13803test -z "$LTCC" && LTCC=$CC 13804test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 13805test -z "$LD" && LD=ld 13806test -z "$ac_objext" && ac_objext=o 13807 13808for cc_temp in $compiler""; do 13809 case $cc_temp in 13810 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13811 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13812 \-*) ;; 13813 *) break;; 13814 esac 13815done 13816cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 13817 13818 13819# Only perform the check for file, if the check method requires it 13820test -z "$MAGIC_CMD" && MAGIC_CMD=file 13821case $deplibs_check_method in 13822file_magic*) 13823 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 13824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 13825$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 13826if ${lt_cv_path_MAGIC_CMD+:} false; then : 13827 $as_echo_n "(cached) " >&6 13828else 13829 case $MAGIC_CMD in 13830[\\/*] | ?:[\\/]*) 13831 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 13832 ;; 13833*) 13834 lt_save_MAGIC_CMD="$MAGIC_CMD" 13835 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 13836 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 13837 for ac_dir in $ac_dummy; do 13838 IFS="$lt_save_ifs" 13839 test -z "$ac_dir" && ac_dir=. 13840 if test -f $ac_dir/${ac_tool_prefix}file; then 13841 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 13842 if test -n "$file_magic_test_file"; then 13843 case $deplibs_check_method in 13844 "file_magic "*) 13845 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 13846 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 13847 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 13848 $EGREP "$file_magic_regex" > /dev/null; then 13849 : 13850 else 13851 cat <<_LT_EOF 1>&2 13852 13853*** Warning: the command libtool uses to detect shared libraries, 13854*** $file_magic_cmd, produces output that libtool cannot recognize. 13855*** The result is that libtool may fail to recognize shared libraries 13856*** as such. This will affect the creation of libtool libraries that 13857*** depend on shared libraries, but programs linked with such libtool 13858*** libraries will work regardless of this problem. Nevertheless, you 13859*** may want to report the problem to your system manager and/or to 13860*** bug-libtool@gnu.org 13861 13862_LT_EOF 13863 fi ;; 13864 esac 13865 fi 13866 break 13867 fi 13868 done 13869 IFS="$lt_save_ifs" 13870 MAGIC_CMD="$lt_save_MAGIC_CMD" 13871 ;; 13872esac 13873fi 13874 13875MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 13876if test -n "$MAGIC_CMD"; then 13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 13878$as_echo "$MAGIC_CMD" >&6; } 13879else 13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13881$as_echo "no" >&6; } 13882fi 13883 13884 13885 13886 13887 13888if test -z "$lt_cv_path_MAGIC_CMD"; then 13889 if test -n "$ac_tool_prefix"; then 13890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 13891$as_echo_n "checking for file... " >&6; } 13892if ${lt_cv_path_MAGIC_CMD+:} false; then : 13893 $as_echo_n "(cached) " >&6 13894else 13895 case $MAGIC_CMD in 13896[\\/*] | ?:[\\/]*) 13897 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 13898 ;; 13899*) 13900 lt_save_MAGIC_CMD="$MAGIC_CMD" 13901 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 13902 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 13903 for ac_dir in $ac_dummy; do 13904 IFS="$lt_save_ifs" 13905 test -z "$ac_dir" && ac_dir=. 13906 if test -f $ac_dir/file; then 13907 lt_cv_path_MAGIC_CMD="$ac_dir/file" 13908 if test -n "$file_magic_test_file"; then 13909 case $deplibs_check_method in 13910 "file_magic "*) 13911 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 13912 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 13913 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 13914 $EGREP "$file_magic_regex" > /dev/null; then 13915 : 13916 else 13917 cat <<_LT_EOF 1>&2 13918 13919*** Warning: the command libtool uses to detect shared libraries, 13920*** $file_magic_cmd, produces output that libtool cannot recognize. 13921*** The result is that libtool may fail to recognize shared libraries 13922*** as such. This will affect the creation of libtool libraries that 13923*** depend on shared libraries, but programs linked with such libtool 13924*** libraries will work regardless of this problem. Nevertheless, you 13925*** may want to report the problem to your system manager and/or to 13926*** bug-libtool@gnu.org 13927 13928_LT_EOF 13929 fi ;; 13930 esac 13931 fi 13932 break 13933 fi 13934 done 13935 IFS="$lt_save_ifs" 13936 MAGIC_CMD="$lt_save_MAGIC_CMD" 13937 ;; 13938esac 13939fi 13940 13941MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 13942if test -n "$MAGIC_CMD"; then 13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 13944$as_echo "$MAGIC_CMD" >&6; } 13945else 13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13947$as_echo "no" >&6; } 13948fi 13949 13950 13951 else 13952 MAGIC_CMD=: 13953 fi 13954fi 13955 13956 fi 13957 ;; 13958esac 13959 13960# Use C for the default configuration in the libtool script 13961 13962lt_save_CC="$CC" 13963ac_ext=c 13964ac_cpp='$CPP $CPPFLAGS' 13965ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13966ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13967ac_compiler_gnu=$ac_cv_c_compiler_gnu 13968 13969 13970# Source file extension for C test sources. 13971ac_ext=c 13972 13973# Object file extension for compiled C test sources. 13974objext=o 13975objext=$objext 13976 13977# Code to be used in simple compile tests 13978lt_simple_compile_test_code="int some_variable = 0;" 13979 13980# Code to be used in simple link tests 13981lt_simple_link_test_code='int main(){return(0);}' 13982 13983 13984 13985 13986 13987 13988 13989# If no C compiler was specified, use CC. 13990LTCC=${LTCC-"$CC"} 13991 13992# If no C compiler flags were specified, use CFLAGS. 13993LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13994 13995# Allow CC to be a program name with arguments. 13996compiler=$CC 13997 13998# Save the default compiler, since it gets overwritten when the other 13999# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 14000compiler_DEFAULT=$CC 14001 14002# save warnings/boilerplate of simple test code 14003ac_outfile=conftest.$ac_objext 14004echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14005eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14006_lt_compiler_boilerplate=`cat conftest.err` 14007$RM conftest* 14008 14009ac_outfile=conftest.$ac_objext 14010echo "$lt_simple_link_test_code" >conftest.$ac_ext 14011eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14012_lt_linker_boilerplate=`cat conftest.err` 14013$RM -r conftest* 14014 14015 14016## CAVEAT EMPTOR: 14017## There is no encapsulation within the following macros, do not change 14018## the running order or otherwise move them around unless you know exactly 14019## what you are doing... 14020if test -n "$compiler"; then 14021 14022lt_prog_compiler_no_builtin_flag= 14023 14024if test "$GCC" = yes; then 14025 case $cc_basename in 14026 nvcc*) 14027 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 14028 *) 14029 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 14030 esac 14031 14032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 14033$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 14034if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 14035 $as_echo_n "(cached) " >&6 14036else 14037 lt_cv_prog_compiler_rtti_exceptions=no 14038 ac_outfile=conftest.$ac_objext 14039 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14040 lt_compiler_flag="-fno-rtti -fno-exceptions" 14041 # Insert the option either (1) after the last *FLAGS variable, or 14042 # (2) before a word containing "conftest.", or (3) at the end. 14043 # Note that $ac_compile itself does not contain backslashes and begins 14044 # with a dollar sign (not a hyphen), so the echo should work correctly. 14045 # The option is referenced via a variable to avoid confusing sed. 14046 lt_compile=`echo "$ac_compile" | $SED \ 14047 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14048 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14049 -e 's:$: $lt_compiler_flag:'` 14050 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14051 (eval "$lt_compile" 2>conftest.err) 14052 ac_status=$? 14053 cat conftest.err >&5 14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14055 if (exit $ac_status) && test -s "$ac_outfile"; then 14056 # The compiler can only warn and ignore the option if not recognized 14057 # So say no if there are warnings other than the usual output. 14058 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14059 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14060 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14061 lt_cv_prog_compiler_rtti_exceptions=yes 14062 fi 14063 fi 14064 $RM conftest* 14065 14066fi 14067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 14068$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 14069 14070if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 14071 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 14072else 14073 : 14074fi 14075 14076fi 14077 14078 14079 14080 14081 14082 14083 lt_prog_compiler_wl= 14084lt_prog_compiler_pic= 14085lt_prog_compiler_static= 14086 14087 14088 if test "$GCC" = yes; then 14089 lt_prog_compiler_wl='-Wl,' 14090 lt_prog_compiler_static='-static' 14091 14092 case $host_os in 14093 aix*) 14094 # All AIX code is PIC. 14095 if test "$host_cpu" = ia64; then 14096 # AIX 5 now supports IA64 processor 14097 lt_prog_compiler_static='-Bstatic' 14098 fi 14099 ;; 14100 14101 amigaos*) 14102 case $host_cpu in 14103 powerpc) 14104 # see comment about AmigaOS4 .so support 14105 lt_prog_compiler_pic='-fPIC' 14106 ;; 14107 m68k) 14108 # FIXME: we need at least 68020 code to build shared libraries, but 14109 # adding the `-m68020' flag to GCC prevents building anything better, 14110 # like `-m68040'. 14111 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 14112 ;; 14113 esac 14114 ;; 14115 14116 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14117 # PIC is the default for these OSes. 14118 ;; 14119 14120 mingw* | cygwin* | pw32* | os2* | cegcc*) 14121 # This hack is so that the source file can tell whether it is being 14122 # built for inclusion in a dll (and should export symbols for example). 14123 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14124 # (--disable-auto-import) libraries 14125 lt_prog_compiler_pic='-DDLL_EXPORT' 14126 ;; 14127 14128 darwin* | rhapsody*) 14129 # PIC is the default on this platform 14130 # Common symbols not allowed in MH_DYLIB files 14131 lt_prog_compiler_pic='-fno-common' 14132 ;; 14133 14134 haiku*) 14135 # PIC is the default for Haiku. 14136 # The "-static" flag exists, but is broken. 14137 lt_prog_compiler_static= 14138 ;; 14139 14140 hpux*) 14141 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14142 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14143 # sets the default TLS model and affects inlining. 14144 case $host_cpu in 14145 hppa*64*) 14146 # +Z the default 14147 ;; 14148 *) 14149 lt_prog_compiler_pic='-fPIC' 14150 ;; 14151 esac 14152 ;; 14153 14154 interix[3-9]*) 14155 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14156 # Instead, we relocate shared libraries at runtime. 14157 ;; 14158 14159 msdosdjgpp*) 14160 # Just because we use GCC doesn't mean we suddenly get shared libraries 14161 # on systems that don't support them. 14162 lt_prog_compiler_can_build_shared=no 14163 enable_shared=no 14164 ;; 14165 14166 *nto* | *qnx*) 14167 # QNX uses GNU C++, but need to define -shared option too, otherwise 14168 # it will coredump. 14169 lt_prog_compiler_pic='-fPIC -shared' 14170 ;; 14171 14172 sysv4*MP*) 14173 if test -d /usr/nec; then 14174 lt_prog_compiler_pic=-Kconform_pic 14175 fi 14176 ;; 14177 14178 *) 14179 lt_prog_compiler_pic='-fPIC' 14180 ;; 14181 esac 14182 14183 case $cc_basename in 14184 nvcc*) # Cuda Compiler Driver 2.2 14185 lt_prog_compiler_wl='-Xlinker ' 14186 if test -n "$lt_prog_compiler_pic"; then 14187 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 14188 fi 14189 ;; 14190 esac 14191 else 14192 # PORTME Check for flag to pass linker flags through the system compiler. 14193 case $host_os in 14194 aix*) 14195 lt_prog_compiler_wl='-Wl,' 14196 if test "$host_cpu" = ia64; then 14197 # AIX 5 now supports IA64 processor 14198 lt_prog_compiler_static='-Bstatic' 14199 else 14200 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 14201 fi 14202 ;; 14203 14204 mingw* | cygwin* | pw32* | os2* | cegcc*) 14205 # This hack is so that the source file can tell whether it is being 14206 # built for inclusion in a dll (and should export symbols for example). 14207 lt_prog_compiler_pic='-DDLL_EXPORT' 14208 ;; 14209 14210 hpux9* | hpux10* | hpux11*) 14211 lt_prog_compiler_wl='-Wl,' 14212 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14213 # not for PA HP-UX. 14214 case $host_cpu in 14215 hppa*64*|ia64*) 14216 # +Z the default 14217 ;; 14218 *) 14219 lt_prog_compiler_pic='+Z' 14220 ;; 14221 esac 14222 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14223 lt_prog_compiler_static='${wl}-a ${wl}archive' 14224 ;; 14225 14226 irix5* | irix6* | nonstopux*) 14227 lt_prog_compiler_wl='-Wl,' 14228 # PIC (with -KPIC) is the default. 14229 lt_prog_compiler_static='-non_shared' 14230 ;; 14231 14232 linux* | k*bsd*-gnu | kopensolaris*-gnu) 14233 case $cc_basename in 14234 # old Intel for x86_64 which still supported -KPIC. 14235 ecc*) 14236 lt_prog_compiler_wl='-Wl,' 14237 lt_prog_compiler_pic='-KPIC' 14238 lt_prog_compiler_static='-static' 14239 ;; 14240 # icc used to be incompatible with GCC. 14241 # ICC 10 doesn't accept -KPIC any more. 14242 icc* | ifort*) 14243 lt_prog_compiler_wl='-Wl,' 14244 lt_prog_compiler_pic='-fPIC' 14245 lt_prog_compiler_static='-static' 14246 ;; 14247 # Lahey Fortran 8.1. 14248 lf95*) 14249 lt_prog_compiler_wl='-Wl,' 14250 lt_prog_compiler_pic='--shared' 14251 lt_prog_compiler_static='--static' 14252 ;; 14253 nagfor*) 14254 # NAG Fortran compiler 14255 lt_prog_compiler_wl='-Wl,-Wl,,' 14256 lt_prog_compiler_pic='-PIC' 14257 lt_prog_compiler_static='-Bstatic' 14258 ;; 14259 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 14260 # Portland Group compilers (*not* the Pentium gcc compiler, 14261 # which looks to be a dead project) 14262 lt_prog_compiler_wl='-Wl,' 14263 lt_prog_compiler_pic='-fpic' 14264 lt_prog_compiler_static='-Bstatic' 14265 ;; 14266 ccc*) 14267 lt_prog_compiler_wl='-Wl,' 14268 # All Alpha code is PIC. 14269 lt_prog_compiler_static='-non_shared' 14270 ;; 14271 xl* | bgxl* | bgf* | mpixl*) 14272 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 14273 lt_prog_compiler_wl='-Wl,' 14274 lt_prog_compiler_pic='-qpic' 14275 lt_prog_compiler_static='-qstaticlink' 14276 ;; 14277 *) 14278 case `$CC -V 2>&1 | sed 5q` in 14279 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 14280 # Sun Fortran 8.3 passes all unrecognized flags to the linker 14281 lt_prog_compiler_pic='-KPIC' 14282 lt_prog_compiler_static='-Bstatic' 14283 lt_prog_compiler_wl='' 14284 ;; 14285 *Sun\ F* | *Sun*Fortran*) 14286 lt_prog_compiler_pic='-KPIC' 14287 lt_prog_compiler_static='-Bstatic' 14288 lt_prog_compiler_wl='-Qoption ld ' 14289 ;; 14290 *Sun\ C*) 14291 # Sun C 5.9 14292 lt_prog_compiler_pic='-KPIC' 14293 lt_prog_compiler_static='-Bstatic' 14294 lt_prog_compiler_wl='-Wl,' 14295 ;; 14296 *Intel*\ [CF]*Compiler*) 14297 lt_prog_compiler_wl='-Wl,' 14298 lt_prog_compiler_pic='-fPIC' 14299 lt_prog_compiler_static='-static' 14300 ;; 14301 *Portland\ Group*) 14302 lt_prog_compiler_wl='-Wl,' 14303 lt_prog_compiler_pic='-fpic' 14304 lt_prog_compiler_static='-Bstatic' 14305 ;; 14306 esac 14307 ;; 14308 esac 14309 ;; 14310 14311 newsos6) 14312 lt_prog_compiler_pic='-KPIC' 14313 lt_prog_compiler_static='-Bstatic' 14314 ;; 14315 14316 *nto* | *qnx*) 14317 # QNX uses GNU C++, but need to define -shared option too, otherwise 14318 # it will coredump. 14319 lt_prog_compiler_pic='-fPIC -shared' 14320 ;; 14321 14322 osf3* | osf4* | osf5*) 14323 lt_prog_compiler_wl='-Wl,' 14324 # All OSF/1 code is PIC. 14325 lt_prog_compiler_static='-non_shared' 14326 ;; 14327 14328 rdos*) 14329 lt_prog_compiler_static='-non_shared' 14330 ;; 14331 14332 solaris*) 14333 lt_prog_compiler_pic='-KPIC' 14334 lt_prog_compiler_static='-Bstatic' 14335 case $cc_basename in 14336 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 14337 lt_prog_compiler_wl='-Qoption ld ';; 14338 *) 14339 lt_prog_compiler_wl='-Wl,';; 14340 esac 14341 ;; 14342 14343 sunos4*) 14344 lt_prog_compiler_wl='-Qoption ld ' 14345 lt_prog_compiler_pic='-PIC' 14346 lt_prog_compiler_static='-Bstatic' 14347 ;; 14348 14349 sysv4 | sysv4.2uw2* | sysv4.3*) 14350 lt_prog_compiler_wl='-Wl,' 14351 lt_prog_compiler_pic='-KPIC' 14352 lt_prog_compiler_static='-Bstatic' 14353 ;; 14354 14355 sysv4*MP*) 14356 if test -d /usr/nec ;then 14357 lt_prog_compiler_pic='-Kconform_pic' 14358 lt_prog_compiler_static='-Bstatic' 14359 fi 14360 ;; 14361 14362 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14363 lt_prog_compiler_wl='-Wl,' 14364 lt_prog_compiler_pic='-KPIC' 14365 lt_prog_compiler_static='-Bstatic' 14366 ;; 14367 14368 unicos*) 14369 lt_prog_compiler_wl='-Wl,' 14370 lt_prog_compiler_can_build_shared=no 14371 ;; 14372 14373 uts4*) 14374 lt_prog_compiler_pic='-pic' 14375 lt_prog_compiler_static='-Bstatic' 14376 ;; 14377 14378 *) 14379 lt_prog_compiler_can_build_shared=no 14380 ;; 14381 esac 14382 fi 14383 14384case $host_os in 14385 # For platforms which do not support PIC, -DPIC is meaningless: 14386 *djgpp*) 14387 lt_prog_compiler_pic= 14388 ;; 14389 *) 14390 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 14391 ;; 14392esac 14393 14394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 14395$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14396if ${lt_cv_prog_compiler_pic+:} false; then : 14397 $as_echo_n "(cached) " >&6 14398else 14399 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 14400fi 14401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 14402$as_echo "$lt_cv_prog_compiler_pic" >&6; } 14403lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 14404 14405# 14406# Check to make sure the PIC flag actually works. 14407# 14408if test -n "$lt_prog_compiler_pic"; then 14409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 14410$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 14411if ${lt_cv_prog_compiler_pic_works+:} false; then : 14412 $as_echo_n "(cached) " >&6 14413else 14414 lt_cv_prog_compiler_pic_works=no 14415 ac_outfile=conftest.$ac_objext 14416 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14417 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 14418 # Insert the option either (1) after the last *FLAGS variable, or 14419 # (2) before a word containing "conftest.", or (3) at the end. 14420 # Note that $ac_compile itself does not contain backslashes and begins 14421 # with a dollar sign (not a hyphen), so the echo should work correctly. 14422 # The option is referenced via a variable to avoid confusing sed. 14423 lt_compile=`echo "$ac_compile" | $SED \ 14424 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14425 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14426 -e 's:$: $lt_compiler_flag:'` 14427 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14428 (eval "$lt_compile" 2>conftest.err) 14429 ac_status=$? 14430 cat conftest.err >&5 14431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14432 if (exit $ac_status) && test -s "$ac_outfile"; then 14433 # The compiler can only warn and ignore the option if not recognized 14434 # So say no if there are warnings other than the usual output. 14435 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14436 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14437 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14438 lt_cv_prog_compiler_pic_works=yes 14439 fi 14440 fi 14441 $RM conftest* 14442 14443fi 14444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 14445$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 14446 14447if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 14448 case $lt_prog_compiler_pic in 14449 "" | " "*) ;; 14450 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 14451 esac 14452else 14453 lt_prog_compiler_pic= 14454 lt_prog_compiler_can_build_shared=no 14455fi 14456 14457fi 14458 14459 14460 14461 14462 14463 14464 14465 14466 14467 14468 14469# 14470# Check to make sure the static flag actually works. 14471# 14472wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 14473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14474$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14475if ${lt_cv_prog_compiler_static_works+:} false; then : 14476 $as_echo_n "(cached) " >&6 14477else 14478 lt_cv_prog_compiler_static_works=no 14479 save_LDFLAGS="$LDFLAGS" 14480 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14481 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14482 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14483 # The linker can only warn and ignore the option if not recognized 14484 # So say no if there are warnings 14485 if test -s conftest.err; then 14486 # Append any errors to the config.log. 14487 cat conftest.err 1>&5 14488 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 14489 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14490 if diff conftest.exp conftest.er2 >/dev/null; then 14491 lt_cv_prog_compiler_static_works=yes 14492 fi 14493 else 14494 lt_cv_prog_compiler_static_works=yes 14495 fi 14496 fi 14497 $RM -r conftest* 14498 LDFLAGS="$save_LDFLAGS" 14499 14500fi 14501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 14502$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 14503 14504if test x"$lt_cv_prog_compiler_static_works" = xyes; then 14505 : 14506else 14507 lt_prog_compiler_static= 14508fi 14509 14510 14511 14512 14513 14514 14515 14516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14517$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14518if ${lt_cv_prog_compiler_c_o+:} false; then : 14519 $as_echo_n "(cached) " >&6 14520else 14521 lt_cv_prog_compiler_c_o=no 14522 $RM -r conftest 2>/dev/null 14523 mkdir conftest 14524 cd conftest 14525 mkdir out 14526 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14527 14528 lt_compiler_flag="-o out/conftest2.$ac_objext" 14529 # Insert the option either (1) after the last *FLAGS variable, or 14530 # (2) before a word containing "conftest.", or (3) at the end. 14531 # Note that $ac_compile itself does not contain backslashes and begins 14532 # with a dollar sign (not a hyphen), so the echo should work correctly. 14533 lt_compile=`echo "$ac_compile" | $SED \ 14534 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14535 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14536 -e 's:$: $lt_compiler_flag:'` 14537 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14538 (eval "$lt_compile" 2>out/conftest.err) 14539 ac_status=$? 14540 cat out/conftest.err >&5 14541 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14542 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14543 then 14544 # The compiler can only warn and ignore the option if not recognized 14545 # So say no if there are warnings 14546 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14547 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14548 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14549 lt_cv_prog_compiler_c_o=yes 14550 fi 14551 fi 14552 chmod u+w . 2>&5 14553 $RM conftest* 14554 # SGI C++ compiler will create directory out/ii_files/ for 14555 # template instantiation 14556 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14557 $RM out/* && rmdir out 14558 cd .. 14559 $RM -r conftest 14560 $RM conftest* 14561 14562fi 14563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 14564$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 14565 14566 14567 14568 14569 14570 14571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14572$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14573if ${lt_cv_prog_compiler_c_o+:} false; then : 14574 $as_echo_n "(cached) " >&6 14575else 14576 lt_cv_prog_compiler_c_o=no 14577 $RM -r conftest 2>/dev/null 14578 mkdir conftest 14579 cd conftest 14580 mkdir out 14581 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14582 14583 lt_compiler_flag="-o out/conftest2.$ac_objext" 14584 # Insert the option either (1) after the last *FLAGS variable, or 14585 # (2) before a word containing "conftest.", or (3) at the end. 14586 # Note that $ac_compile itself does not contain backslashes and begins 14587 # with a dollar sign (not a hyphen), so the echo should work correctly. 14588 lt_compile=`echo "$ac_compile" | $SED \ 14589 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14590 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14591 -e 's:$: $lt_compiler_flag:'` 14592 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14593 (eval "$lt_compile" 2>out/conftest.err) 14594 ac_status=$? 14595 cat out/conftest.err >&5 14596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14597 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14598 then 14599 # The compiler can only warn and ignore the option if not recognized 14600 # So say no if there are warnings 14601 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14602 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14603 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14604 lt_cv_prog_compiler_c_o=yes 14605 fi 14606 fi 14607 chmod u+w . 2>&5 14608 $RM conftest* 14609 # SGI C++ compiler will create directory out/ii_files/ for 14610 # template instantiation 14611 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14612 $RM out/* && rmdir out 14613 cd .. 14614 $RM -r conftest 14615 $RM conftest* 14616 14617fi 14618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 14619$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 14620 14621 14622 14623 14624hard_links="nottested" 14625if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 14626 # do not overwrite the value of need_locks provided by the user 14627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 14628$as_echo_n "checking if we can lock with hard links... " >&6; } 14629 hard_links=yes 14630 $RM conftest* 14631 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14632 touch conftest.a 14633 ln conftest.a conftest.b 2>&5 || hard_links=no 14634 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 14636$as_echo "$hard_links" >&6; } 14637 if test "$hard_links" = no; then 14638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14639$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14640 need_locks=warn 14641 fi 14642else 14643 need_locks=no 14644fi 14645 14646 14647 14648 14649 14650 14651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14652$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14653 14654 runpath_var= 14655 allow_undefined_flag= 14656 always_export_symbols=no 14657 archive_cmds= 14658 archive_expsym_cmds= 14659 compiler_needs_object=no 14660 enable_shared_with_static_runtimes=no 14661 export_dynamic_flag_spec= 14662 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14663 hardcode_automatic=no 14664 hardcode_direct=no 14665 hardcode_direct_absolute=no 14666 hardcode_libdir_flag_spec= 14667 hardcode_libdir_separator= 14668 hardcode_minus_L=no 14669 hardcode_shlibpath_var=unsupported 14670 inherit_rpath=no 14671 link_all_deplibs=unknown 14672 module_cmds= 14673 module_expsym_cmds= 14674 old_archive_from_new_cmds= 14675 old_archive_from_expsyms_cmds= 14676 thread_safe_flag_spec= 14677 whole_archive_flag_spec= 14678 # include_expsyms should be a list of space-separated symbols to be *always* 14679 # included in the symbol list 14680 include_expsyms= 14681 # exclude_expsyms can be an extended regexp of symbols to exclude 14682 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14683 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14684 # as well as any symbol that contains `d'. 14685 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14686 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14687 # platforms (ab)use it in PIC code, but their linkers get confused if 14688 # the symbol is explicitly referenced. Since portable code cannot 14689 # rely on this symbol name, it's probably fine to never include it in 14690 # preloaded symbol tables. 14691 # Exclude shared library initialization/finalization symbols. 14692 extract_expsyms_cmds= 14693 14694 case $host_os in 14695 cygwin* | mingw* | pw32* | cegcc*) 14696 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14697 # When not using gcc, we currently assume that we are using 14698 # Microsoft Visual C++. 14699 if test "$GCC" != yes; then 14700 with_gnu_ld=no 14701 fi 14702 ;; 14703 interix*) 14704 # we just hope/assume this is gcc and not c89 (= MSVC++) 14705 with_gnu_ld=yes 14706 ;; 14707 openbsd*) 14708 with_gnu_ld=no 14709 ;; 14710 esac 14711 14712 ld_shlibs=yes 14713 14714 # On some targets, GNU ld is compatible enough with the native linker 14715 # that we're better off using the native interface for both. 14716 lt_use_gnu_ld_interface=no 14717 if test "$with_gnu_ld" = yes; then 14718 case $host_os in 14719 aix*) 14720 # The AIX port of GNU ld has always aspired to compatibility 14721 # with the native linker. However, as the warning in the GNU ld 14722 # block says, versions before 2.19.5* couldn't really create working 14723 # shared libraries, regardless of the interface used. 14724 case `$LD -v 2>&1` in 14725 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 14726 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 14727 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 14728 *) 14729 lt_use_gnu_ld_interface=yes 14730 ;; 14731 esac 14732 ;; 14733 *) 14734 lt_use_gnu_ld_interface=yes 14735 ;; 14736 esac 14737 fi 14738 14739 if test "$lt_use_gnu_ld_interface" = yes; then 14740 # If archive_cmds runs LD, not CC, wlarc should be empty 14741 wlarc='${wl}' 14742 14743 # Set some defaults for GNU ld with shared library support. These 14744 # are reset later if shared libraries are not supported. Putting them 14745 # here allows them to be overridden if necessary. 14746 runpath_var=LD_RUN_PATH 14747 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 14748 export_dynamic_flag_spec='${wl}--export-dynamic' 14749 # ancient GNU ld didn't support --whole-archive et. al. 14750 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 14751 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14752 else 14753 whole_archive_flag_spec= 14754 fi 14755 supports_anon_versioning=no 14756 case `$LD -v 2>&1` in 14757 *GNU\ gold*) supports_anon_versioning=yes ;; 14758 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14759 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14760 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14761 *\ 2.11.*) ;; # other 2.11 versions 14762 *) supports_anon_versioning=yes ;; 14763 esac 14764 14765 # See if GNU ld supports shared libraries. 14766 case $host_os in 14767 aix[3-9]*) 14768 # On AIX/PPC, the GNU linker is very broken 14769 if test "$host_cpu" != ia64; then 14770 ld_shlibs=no 14771 cat <<_LT_EOF 1>&2 14772 14773*** Warning: the GNU linker, at least up to release 2.19, is reported 14774*** to be unable to reliably create shared libraries on AIX. 14775*** Therefore, libtool is disabling shared libraries support. If you 14776*** really care for shared libraries, you may want to install binutils 14777*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 14778*** You will then need to restart the configuration process. 14779 14780_LT_EOF 14781 fi 14782 ;; 14783 14784 amigaos*) 14785 case $host_cpu in 14786 powerpc) 14787 # see comment about AmigaOS4 .so support 14788 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14789 archive_expsym_cmds='' 14790 ;; 14791 m68k) 14792 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)' 14793 hardcode_libdir_flag_spec='-L$libdir' 14794 hardcode_minus_L=yes 14795 ;; 14796 esac 14797 ;; 14798 14799 beos*) 14800 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14801 allow_undefined_flag=unsupported 14802 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14803 # support --undefined. This deserves some investigation. FIXME 14804 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14805 else 14806 ld_shlibs=no 14807 fi 14808 ;; 14809 14810 cygwin* | mingw* | pw32* | cegcc*) 14811 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 14812 # as there is no search path for DLLs. 14813 hardcode_libdir_flag_spec='-L$libdir' 14814 export_dynamic_flag_spec='${wl}--export-all-symbols' 14815 allow_undefined_flag=unsupported 14816 always_export_symbols=no 14817 enable_shared_with_static_runtimes=yes 14818 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 14819 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 14820 14821 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 14822 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14823 # If the export-symbols file already is a .def file (1st line 14824 # is EXPORTS), use it as is; otherwise, prepend... 14825 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14826 cp $export_symbols $output_objdir/$soname.def; 14827 else 14828 echo EXPORTS > $output_objdir/$soname.def; 14829 cat $export_symbols >> $output_objdir/$soname.def; 14830 fi~ 14831 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14832 else 14833 ld_shlibs=no 14834 fi 14835 ;; 14836 14837 haiku*) 14838 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14839 link_all_deplibs=yes 14840 ;; 14841 14842 interix[3-9]*) 14843 hardcode_direct=no 14844 hardcode_shlibpath_var=no 14845 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 14846 export_dynamic_flag_spec='${wl}-E' 14847 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14848 # Instead, shared libraries are loaded at an image base (0x10000000 by 14849 # default) and relocated if they conflict, which is a slow very memory 14850 # consuming and fragmenting process. To avoid this, we pick a random, 14851 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14852 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14853 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 14854 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' 14855 ;; 14856 14857 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 14858 tmp_diet=no 14859 if test "$host_os" = linux-dietlibc; then 14860 case $cc_basename in 14861 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 14862 esac 14863 fi 14864 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 14865 && test "$tmp_diet" = no 14866 then 14867 tmp_addflag=' $pic_flag' 14868 tmp_sharedflag='-shared' 14869 case $cc_basename,$host_cpu in 14870 pgcc*) # Portland Group C compiler 14871 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 14872 tmp_addflag=' $pic_flag' 14873 ;; 14874 pgf77* | pgf90* | pgf95* | pgfortran*) 14875 # Portland Group f77 and f90 compilers 14876 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 14877 tmp_addflag=' $pic_flag -Mnomain' ;; 14878 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14879 tmp_addflag=' -i_dynamic' ;; 14880 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14881 tmp_addflag=' -i_dynamic -nofor_main' ;; 14882 ifc* | ifort*) # Intel Fortran compiler 14883 tmp_addflag=' -nofor_main' ;; 14884 lf95*) # Lahey Fortran 8.1 14885 whole_archive_flag_spec= 14886 tmp_sharedflag='--shared' ;; 14887 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 14888 tmp_sharedflag='-qmkshrobj' 14889 tmp_addflag= ;; 14890 nvcc*) # Cuda Compiler Driver 2.2 14891 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 14892 compiler_needs_object=yes 14893 ;; 14894 esac 14895 case `$CC -V 2>&1 | sed 5q` in 14896 *Sun\ C*) # Sun C 5.9 14897 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 14898 compiler_needs_object=yes 14899 tmp_sharedflag='-G' ;; 14900 *Sun\ F*) # Sun Fortran 8.3 14901 tmp_sharedflag='-G' ;; 14902 esac 14903 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14904 14905 if test "x$supports_anon_versioning" = xyes; then 14906 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 14907 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14908 echo "local: *; };" >> $output_objdir/$libname.ver~ 14909 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14910 fi 14911 14912 case $cc_basename in 14913 xlf* | bgf* | bgxlf* | mpixlf*) 14914 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 14915 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 14916 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 14917 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 14918 if test "x$supports_anon_versioning" = xyes; then 14919 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 14920 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14921 echo "local: *; };" >> $output_objdir/$libname.ver~ 14922 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 14923 fi 14924 ;; 14925 esac 14926 else 14927 ld_shlibs=no 14928 fi 14929 ;; 14930 14931 netbsd*) 14932 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14933 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14934 wlarc= 14935 else 14936 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14937 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14938 fi 14939 ;; 14940 14941 solaris*) 14942 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 14943 ld_shlibs=no 14944 cat <<_LT_EOF 1>&2 14945 14946*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14947*** create shared libraries on Solaris systems. Therefore, libtool 14948*** is disabling shared libraries support. We urge you to upgrade GNU 14949*** binutils to release 2.9.1 or newer. Another option is to modify 14950*** your PATH or compiler configuration so that the native linker is 14951*** used, and then restart. 14952 14953_LT_EOF 14954 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14955 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14956 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14957 else 14958 ld_shlibs=no 14959 fi 14960 ;; 14961 14962 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14963 case `$LD -v 2>&1` in 14964 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14965 ld_shlibs=no 14966 cat <<_LT_EOF 1>&2 14967 14968*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14969*** reliably create shared libraries on SCO systems. Therefore, libtool 14970*** is disabling shared libraries support. We urge you to upgrade GNU 14971*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14972*** your PATH or compiler configuration so that the native linker is 14973*** used, and then restart. 14974 14975_LT_EOF 14976 ;; 14977 *) 14978 # For security reasons, it is highly recommended that you always 14979 # use absolute paths for naming shared libraries, and exclude the 14980 # DT_RUNPATH tag from executables and libraries. But doing so 14981 # requires that you compile everything twice, which is a pain. 14982 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14983 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 14984 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14985 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14986 else 14987 ld_shlibs=no 14988 fi 14989 ;; 14990 esac 14991 ;; 14992 14993 sunos4*) 14994 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14995 wlarc= 14996 hardcode_direct=yes 14997 hardcode_shlibpath_var=no 14998 ;; 14999 15000 *) 15001 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15002 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15003 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15004 else 15005 ld_shlibs=no 15006 fi 15007 ;; 15008 esac 15009 15010 if test "$ld_shlibs" = no; then 15011 runpath_var= 15012 hardcode_libdir_flag_spec= 15013 export_dynamic_flag_spec= 15014 whole_archive_flag_spec= 15015 fi 15016 else 15017 # PORTME fill in a description of your system's linker (not GNU ld) 15018 case $host_os in 15019 aix3*) 15020 allow_undefined_flag=unsupported 15021 always_export_symbols=yes 15022 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' 15023 # Note: this linker hardcodes the directories in LIBPATH if there 15024 # are no directories specified by -L. 15025 hardcode_minus_L=yes 15026 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 15027 # Neither direct hardcoding nor static linking is supported with a 15028 # broken collect2. 15029 hardcode_direct=unsupported 15030 fi 15031 ;; 15032 15033 aix[4-9]*) 15034 if test "$host_cpu" = ia64; then 15035 # On IA64, the linker does run time linking by default, so we don't 15036 # have to do anything special. 15037 aix_use_runtimelinking=no 15038 exp_sym_flag='-Bexport' 15039 no_entry_flag="" 15040 else 15041 # If we're using GNU nm, then we don't want the "-C" option. 15042 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15043 # Also, AIX nm treats weak defined symbols like other global 15044 # defined symbols, whereas GNU nm marks them as "W". 15045 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15046 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 15047 else 15048 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' 15049 fi 15050 aix_use_runtimelinking=no 15051 15052 # Test if we are trying to use run time linking or normal 15053 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15054 # need to do runtime linking. 15055 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 15056 for ld_flag in $LDFLAGS; do 15057 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 15058 aix_use_runtimelinking=yes 15059 break 15060 fi 15061 done 15062 ;; 15063 esac 15064 15065 exp_sym_flag='-bexport' 15066 no_entry_flag='-bnoentry' 15067 fi 15068 15069 # When large executables or shared objects are built, AIX ld can 15070 # have problems creating the table of contents. If linking a library 15071 # or program results in "error TOC overflow" add -mminimal-toc to 15072 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15073 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15074 15075 archive_cmds='' 15076 hardcode_direct=yes 15077 hardcode_direct_absolute=yes 15078 hardcode_libdir_separator=':' 15079 link_all_deplibs=yes 15080 file_list_spec='${wl}-f,' 15081 15082 if test "$GCC" = yes; then 15083 case $host_os in aix4.[012]|aix4.[012].*) 15084 # We only want to do this on AIX 4.2 and lower, the check 15085 # below for broken collect2 doesn't work under 4.3+ 15086 collect2name=`${CC} -print-prog-name=collect2` 15087 if test -f "$collect2name" && 15088 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 15089 then 15090 # We have reworked collect2 15091 : 15092 else 15093 # We have old collect2 15094 hardcode_direct=unsupported 15095 # It fails to find uninstalled libraries when the uninstalled 15096 # path is not listed in the libpath. Setting hardcode_minus_L 15097 # to unsupported forces relinking 15098 hardcode_minus_L=yes 15099 hardcode_libdir_flag_spec='-L$libdir' 15100 hardcode_libdir_separator= 15101 fi 15102 ;; 15103 esac 15104 shared_flag='-shared' 15105 if test "$aix_use_runtimelinking" = yes; then 15106 shared_flag="$shared_flag "'${wl}-G' 15107 fi 15108 else 15109 # not using gcc 15110 if test "$host_cpu" = ia64; then 15111 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15112 # chokes on -Wl,-G. The following line is correct: 15113 shared_flag='-G' 15114 else 15115 if test "$aix_use_runtimelinking" = yes; then 15116 shared_flag='${wl}-G' 15117 else 15118 shared_flag='${wl}-bM:SRE' 15119 fi 15120 fi 15121 fi 15122 15123 export_dynamic_flag_spec='${wl}-bexpall' 15124 # It seems that -bexpall does not export symbols beginning with 15125 # underscore (_), so it is better to generate a list of symbols to export. 15126 always_export_symbols=yes 15127 if test "$aix_use_runtimelinking" = yes; then 15128 # Warning - without using the other runtime loading flags (-brtl), 15129 # -berok will link without error, but may produce a broken library. 15130 allow_undefined_flag='-berok' 15131 # Determine the default libpath from the value encoded in an 15132 # empty executable. 15133 if test "${lt_cv_aix_libpath+set}" = set; then 15134 aix_libpath=$lt_cv_aix_libpath 15135else 15136 if ${lt_cv_aix_libpath_+:} false; then : 15137 $as_echo_n "(cached) " >&6 15138else 15139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15140/* end confdefs.h. */ 15141 15142int 15143main () 15144{ 15145 15146 ; 15147 return 0; 15148} 15149_ACEOF 15150if ac_fn_c_try_link "$LINENO"; then : 15151 15152 lt_aix_libpath_sed=' 15153 /Import File Strings/,/^$/ { 15154 /^0/ { 15155 s/^0 *\([^ ]*\) *$/\1/ 15156 p 15157 } 15158 }' 15159 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15160 # Check for a 64-bit object if we didn't find anything. 15161 if test -z "$lt_cv_aix_libpath_"; then 15162 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15163 fi 15164fi 15165rm -f core conftest.err conftest.$ac_objext \ 15166 conftest$ac_exeext conftest.$ac_ext 15167 if test -z "$lt_cv_aix_libpath_"; then 15168 lt_cv_aix_libpath_="/usr/lib:/lib" 15169 fi 15170 15171fi 15172 15173 aix_libpath=$lt_cv_aix_libpath_ 15174fi 15175 15176 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 15177 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 15178 else 15179 if test "$host_cpu" = ia64; then 15180 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 15181 allow_undefined_flag="-z nodefs" 15182 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" 15183 else 15184 # Determine the default libpath from the value encoded in an 15185 # empty executable. 15186 if test "${lt_cv_aix_libpath+set}" = set; then 15187 aix_libpath=$lt_cv_aix_libpath 15188else 15189 if ${lt_cv_aix_libpath_+:} false; then : 15190 $as_echo_n "(cached) " >&6 15191else 15192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15193/* end confdefs.h. */ 15194 15195int 15196main () 15197{ 15198 15199 ; 15200 return 0; 15201} 15202_ACEOF 15203if ac_fn_c_try_link "$LINENO"; then : 15204 15205 lt_aix_libpath_sed=' 15206 /Import File Strings/,/^$/ { 15207 /^0/ { 15208 s/^0 *\([^ ]*\) *$/\1/ 15209 p 15210 } 15211 }' 15212 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15213 # Check for a 64-bit object if we didn't find anything. 15214 if test -z "$lt_cv_aix_libpath_"; then 15215 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15216 fi 15217fi 15218rm -f core conftest.err conftest.$ac_objext \ 15219 conftest$ac_exeext conftest.$ac_ext 15220 if test -z "$lt_cv_aix_libpath_"; then 15221 lt_cv_aix_libpath_="/usr/lib:/lib" 15222 fi 15223 15224fi 15225 15226 aix_libpath=$lt_cv_aix_libpath_ 15227fi 15228 15229 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 15230 # Warning - without using the other run time loading flags, 15231 # -berok will link without error, but may produce a broken library. 15232 no_undefined_flag=' ${wl}-bernotok' 15233 allow_undefined_flag=' ${wl}-berok' 15234 if test "$with_gnu_ld" = yes; then 15235 # We only use this code for GNU lds that support --whole-archive. 15236 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 15237 else 15238 # Exported symbols can be pulled into shared objects from archives 15239 whole_archive_flag_spec='$convenience' 15240 fi 15241 archive_cmds_need_lc=yes 15242 # This is similar to how AIX traditionally builds its shared libraries. 15243 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' 15244 fi 15245 fi 15246 ;; 15247 15248 amigaos*) 15249 case $host_cpu in 15250 powerpc) 15251 # see comment about AmigaOS4 .so support 15252 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15253 archive_expsym_cmds='' 15254 ;; 15255 m68k) 15256 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)' 15257 hardcode_libdir_flag_spec='-L$libdir' 15258 hardcode_minus_L=yes 15259 ;; 15260 esac 15261 ;; 15262 15263 bsdi[45]*) 15264 export_dynamic_flag_spec=-rdynamic 15265 ;; 15266 15267 cygwin* | mingw* | pw32* | cegcc*) 15268 # When not using gcc, we currently assume that we are using 15269 # Microsoft Visual C++. 15270 # hardcode_libdir_flag_spec is actually meaningless, as there is 15271 # no search path for DLLs. 15272 case $cc_basename in 15273 cl*) 15274 # Native MSVC 15275 hardcode_libdir_flag_spec=' ' 15276 allow_undefined_flag=unsupported 15277 always_export_symbols=yes 15278 file_list_spec='@' 15279 # Tell ltmain to make .lib files, not .a files. 15280 libext=lib 15281 # Tell ltmain to make .dll files, not .so files. 15282 shrext_cmds=".dll" 15283 # FIXME: Setting linknames here is a bad hack. 15284 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 15285 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 15286 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 15287 else 15288 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 15289 fi~ 15290 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 15291 linknames=' 15292 # The linker will not automatically build a static lib if we build a DLL. 15293 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 15294 enable_shared_with_static_runtimes=yes 15295 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 15296 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 15297 # Don't use ranlib 15298 old_postinstall_cmds='chmod 644 $oldlib' 15299 postlink_cmds='lt_outputfile="@OUTPUT@"~ 15300 lt_tool_outputfile="@TOOL_OUTPUT@"~ 15301 case $lt_outputfile in 15302 *.exe|*.EXE) ;; 15303 *) 15304 lt_outputfile="$lt_outputfile.exe" 15305 lt_tool_outputfile="$lt_tool_outputfile.exe" 15306 ;; 15307 esac~ 15308 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 15309 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 15310 $RM "$lt_outputfile.manifest"; 15311 fi' 15312 ;; 15313 *) 15314 # Assume MSVC wrapper 15315 hardcode_libdir_flag_spec=' ' 15316 allow_undefined_flag=unsupported 15317 # Tell ltmain to make .lib files, not .a files. 15318 libext=lib 15319 # Tell ltmain to make .dll files, not .so files. 15320 shrext_cmds=".dll" 15321 # FIXME: Setting linknames here is a bad hack. 15322 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 15323 # The linker will automatically build a .lib file if we build a DLL. 15324 old_archive_from_new_cmds='true' 15325 # FIXME: Should let the user specify the lib program. 15326 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 15327 enable_shared_with_static_runtimes=yes 15328 ;; 15329 esac 15330 ;; 15331 15332 darwin* | rhapsody*) 15333 15334 15335 archive_cmds_need_lc=no 15336 hardcode_direct=no 15337 hardcode_automatic=yes 15338 hardcode_shlibpath_var=unsupported 15339 if test "$lt_cv_ld_force_load" = "yes"; then 15340 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 15341 15342 else 15343 whole_archive_flag_spec='' 15344 fi 15345 link_all_deplibs=yes 15346 allow_undefined_flag="$_lt_dar_allow_undefined" 15347 case $cc_basename in 15348 ifort*) _lt_dar_can_shared=yes ;; 15349 *) _lt_dar_can_shared=$GCC ;; 15350 esac 15351 if test "$_lt_dar_can_shared" = "yes"; then 15352 output_verbose_link_cmd=func_echo_all 15353 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 15354 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 15355 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}" 15356 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}" 15357 15358 else 15359 ld_shlibs=no 15360 fi 15361 15362 ;; 15363 15364 dgux*) 15365 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15366 hardcode_libdir_flag_spec='-L$libdir' 15367 hardcode_shlibpath_var=no 15368 ;; 15369 15370 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15371 # support. Future versions do this automatically, but an explicit c++rt0.o 15372 # does not break anything, and helps significantly (at the cost of a little 15373 # extra space). 15374 freebsd2.2*) 15375 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15376 hardcode_libdir_flag_spec='-R$libdir' 15377 hardcode_direct=yes 15378 hardcode_shlibpath_var=no 15379 ;; 15380 15381 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15382 freebsd2.*) 15383 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15384 hardcode_direct=yes 15385 hardcode_minus_L=yes 15386 hardcode_shlibpath_var=no 15387 ;; 15388 15389 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15390 freebsd* | dragonfly*) 15391 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15392 hardcode_libdir_flag_spec='-R$libdir' 15393 hardcode_direct=yes 15394 hardcode_shlibpath_var=no 15395 ;; 15396 15397 hpux9*) 15398 if test "$GCC" = yes; then 15399 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 15400 else 15401 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' 15402 fi 15403 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 15404 hardcode_libdir_separator=: 15405 hardcode_direct=yes 15406 15407 # hardcode_minus_L: Not really in the search PATH, 15408 # but as the default location of the library. 15409 hardcode_minus_L=yes 15410 export_dynamic_flag_spec='${wl}-E' 15411 ;; 15412 15413 hpux10*) 15414 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 15415 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15416 else 15417 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15418 fi 15419 if test "$with_gnu_ld" = no; then 15420 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 15421 hardcode_libdir_separator=: 15422 hardcode_direct=yes 15423 hardcode_direct_absolute=yes 15424 export_dynamic_flag_spec='${wl}-E' 15425 # hardcode_minus_L: Not really in the search PATH, 15426 # but as the default location of the library. 15427 hardcode_minus_L=yes 15428 fi 15429 ;; 15430 15431 hpux11*) 15432 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 15433 case $host_cpu in 15434 hppa*64*) 15435 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15436 ;; 15437 ia64*) 15438 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15439 ;; 15440 *) 15441 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15442 ;; 15443 esac 15444 else 15445 case $host_cpu in 15446 hppa*64*) 15447 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15448 ;; 15449 ia64*) 15450 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15451 ;; 15452 *) 15453 15454 # Older versions of the 11.00 compiler do not understand -b yet 15455 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 15456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 15457$as_echo_n "checking if $CC understands -b... " >&6; } 15458if ${lt_cv_prog_compiler__b+:} false; then : 15459 $as_echo_n "(cached) " >&6 15460else 15461 lt_cv_prog_compiler__b=no 15462 save_LDFLAGS="$LDFLAGS" 15463 LDFLAGS="$LDFLAGS -b" 15464 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15465 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15466 # The linker can only warn and ignore the option if not recognized 15467 # So say no if there are warnings 15468 if test -s conftest.err; then 15469 # Append any errors to the config.log. 15470 cat conftest.err 1>&5 15471 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15472 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15473 if diff conftest.exp conftest.er2 >/dev/null; then 15474 lt_cv_prog_compiler__b=yes 15475 fi 15476 else 15477 lt_cv_prog_compiler__b=yes 15478 fi 15479 fi 15480 $RM -r conftest* 15481 LDFLAGS="$save_LDFLAGS" 15482 15483fi 15484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 15485$as_echo "$lt_cv_prog_compiler__b" >&6; } 15486 15487if test x"$lt_cv_prog_compiler__b" = xyes; then 15488 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15489else 15490 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15491fi 15492 15493 ;; 15494 esac 15495 fi 15496 if test "$with_gnu_ld" = no; then 15497 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 15498 hardcode_libdir_separator=: 15499 15500 case $host_cpu in 15501 hppa*64*|ia64*) 15502 hardcode_direct=no 15503 hardcode_shlibpath_var=no 15504 ;; 15505 *) 15506 hardcode_direct=yes 15507 hardcode_direct_absolute=yes 15508 export_dynamic_flag_spec='${wl}-E' 15509 15510 # hardcode_minus_L: Not really in the search PATH, 15511 # but as the default location of the library. 15512 hardcode_minus_L=yes 15513 ;; 15514 esac 15515 fi 15516 ;; 15517 15518 irix5* | irix6* | nonstopux*) 15519 if test "$GCC" = yes; then 15520 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 15521 # Try to use the -exported_symbol ld option, if it does not 15522 # work, assume that -exports_file does not work either and 15523 # implicitly export all symbols. 15524 # This should be the same for all languages, so no per-tag cache variable. 15525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 15526$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 15527if ${lt_cv_irix_exported_symbol+:} false; then : 15528 $as_echo_n "(cached) " >&6 15529else 15530 save_LDFLAGS="$LDFLAGS" 15531 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 15532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15533/* end confdefs.h. */ 15534int foo (void) { return 0; } 15535_ACEOF 15536if ac_fn_c_try_link "$LINENO"; then : 15537 lt_cv_irix_exported_symbol=yes 15538else 15539 lt_cv_irix_exported_symbol=no 15540fi 15541rm -f core conftest.err conftest.$ac_objext \ 15542 conftest$ac_exeext conftest.$ac_ext 15543 LDFLAGS="$save_LDFLAGS" 15544fi 15545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 15546$as_echo "$lt_cv_irix_exported_symbol" >&6; } 15547 if test "$lt_cv_irix_exported_symbol" = yes; then 15548 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 15549 fi 15550 else 15551 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 15552 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 15553 fi 15554 archive_cmds_need_lc='no' 15555 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15556 hardcode_libdir_separator=: 15557 inherit_rpath=yes 15558 link_all_deplibs=yes 15559 ;; 15560 15561 netbsd*) 15562 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15563 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15564 else 15565 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15566 fi 15567 hardcode_libdir_flag_spec='-R$libdir' 15568 hardcode_direct=yes 15569 hardcode_shlibpath_var=no 15570 ;; 15571 15572 newsos6) 15573 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15574 hardcode_direct=yes 15575 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15576 hardcode_libdir_separator=: 15577 hardcode_shlibpath_var=no 15578 ;; 15579 15580 *nto* | *qnx*) 15581 ;; 15582 15583 openbsd*) 15584 if test -f /usr/libexec/ld.so; then 15585 hardcode_direct=yes 15586 hardcode_shlibpath_var=no 15587 hardcode_direct_absolute=yes 15588 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15589 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15590 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15591 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 15592 export_dynamic_flag_spec='${wl}-E' 15593 else 15594 case $host_os in 15595 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15596 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15597 hardcode_libdir_flag_spec='-R$libdir' 15598 ;; 15599 *) 15600 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15601 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 15602 ;; 15603 esac 15604 fi 15605 else 15606 ld_shlibs=no 15607 fi 15608 ;; 15609 15610 os2*) 15611 hardcode_libdir_flag_spec='-L$libdir' 15612 hardcode_minus_L=yes 15613 allow_undefined_flag=unsupported 15614 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' 15615 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15616 ;; 15617 15618 osf3*) 15619 if test "$GCC" = yes; then 15620 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 15621 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 15622 else 15623 allow_undefined_flag=' -expect_unresolved \*' 15624 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 15625 fi 15626 archive_cmds_need_lc='no' 15627 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15628 hardcode_libdir_separator=: 15629 ;; 15630 15631 osf4* | osf5*) # as osf3* with the addition of -msym flag 15632 if test "$GCC" = yes; then 15633 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 15634 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 15635 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15636 else 15637 allow_undefined_flag=' -expect_unresolved \*' 15638 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 15639 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~ 15640 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 15641 15642 # Both c and cxx compiler support -rpath directly 15643 hardcode_libdir_flag_spec='-rpath $libdir' 15644 fi 15645 archive_cmds_need_lc='no' 15646 hardcode_libdir_separator=: 15647 ;; 15648 15649 solaris*) 15650 no_undefined_flag=' -z defs' 15651 if test "$GCC" = yes; then 15652 wlarc='${wl}' 15653 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15654 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15655 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 15656 else 15657 case `$CC -V 2>&1` in 15658 *"Compilers 5.0"*) 15659 wlarc='' 15660 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15661 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15662 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 15663 ;; 15664 *) 15665 wlarc='${wl}' 15666 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 15667 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15668 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 15669 ;; 15670 esac 15671 fi 15672 hardcode_libdir_flag_spec='-R$libdir' 15673 hardcode_shlibpath_var=no 15674 case $host_os in 15675 solaris2.[0-5] | solaris2.[0-5].*) ;; 15676 *) 15677 # The compiler driver will combine and reorder linker options, 15678 # but understands `-z linker_flag'. GCC discards it without `$wl', 15679 # but is careful enough not to reorder. 15680 # Supported since Solaris 2.6 (maybe 2.5.1?) 15681 if test "$GCC" = yes; then 15682 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 15683 else 15684 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 15685 fi 15686 ;; 15687 esac 15688 link_all_deplibs=yes 15689 ;; 15690 15691 sunos4*) 15692 if test "x$host_vendor" = xsequent; then 15693 # Use $CC to link under sequent, because it throws in some extra .o 15694 # files that make .init and .fini sections work. 15695 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15696 else 15697 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15698 fi 15699 hardcode_libdir_flag_spec='-L$libdir' 15700 hardcode_direct=yes 15701 hardcode_minus_L=yes 15702 hardcode_shlibpath_var=no 15703 ;; 15704 15705 sysv4) 15706 case $host_vendor in 15707 sni) 15708 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15709 hardcode_direct=yes # is this really true??? 15710 ;; 15711 siemens) 15712 ## LD is ld it makes a PLAMLIB 15713 ## CC just makes a GrossModule. 15714 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15715 reload_cmds='$CC -r -o $output$reload_objs' 15716 hardcode_direct=no 15717 ;; 15718 motorola) 15719 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15720 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 15721 ;; 15722 esac 15723 runpath_var='LD_RUN_PATH' 15724 hardcode_shlibpath_var=no 15725 ;; 15726 15727 sysv4.3*) 15728 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15729 hardcode_shlibpath_var=no 15730 export_dynamic_flag_spec='-Bexport' 15731 ;; 15732 15733 sysv4*MP*) 15734 if test -d /usr/nec; then 15735 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15736 hardcode_shlibpath_var=no 15737 runpath_var=LD_RUN_PATH 15738 hardcode_runpath_var=yes 15739 ld_shlibs=yes 15740 fi 15741 ;; 15742 15743 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15744 no_undefined_flag='${wl}-z,text' 15745 archive_cmds_need_lc=no 15746 hardcode_shlibpath_var=no 15747 runpath_var='LD_RUN_PATH' 15748 15749 if test "$GCC" = yes; then 15750 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15751 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15752 else 15753 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15754 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15755 fi 15756 ;; 15757 15758 sysv5* | sco3.2v5* | sco5v6*) 15759 # Note: We can NOT use -z defs as we might desire, because we do not 15760 # link with -lc, and that would cause any symbols used from libc to 15761 # always be unresolved, which means just about no library would 15762 # ever link correctly. If we're not using GNU ld we use -z text 15763 # though, which does catch some bad symbols but isn't as heavy-handed 15764 # as -z defs. 15765 no_undefined_flag='${wl}-z,text' 15766 allow_undefined_flag='${wl}-z,nodefs' 15767 archive_cmds_need_lc=no 15768 hardcode_shlibpath_var=no 15769 hardcode_libdir_flag_spec='${wl}-R,$libdir' 15770 hardcode_libdir_separator=':' 15771 link_all_deplibs=yes 15772 export_dynamic_flag_spec='${wl}-Bexport' 15773 runpath_var='LD_RUN_PATH' 15774 15775 if test "$GCC" = yes; then 15776 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15777 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15778 else 15779 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15780 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15781 fi 15782 ;; 15783 15784 uts4*) 15785 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15786 hardcode_libdir_flag_spec='-L$libdir' 15787 hardcode_shlibpath_var=no 15788 ;; 15789 15790 *) 15791 ld_shlibs=no 15792 ;; 15793 esac 15794 15795 if test x$host_vendor = xsni; then 15796 case $host in 15797 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 15798 export_dynamic_flag_spec='${wl}-Blargedynsym' 15799 ;; 15800 esac 15801 fi 15802 fi 15803 15804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 15805$as_echo "$ld_shlibs" >&6; } 15806test "$ld_shlibs" = no && can_build_shared=no 15807 15808with_gnu_ld=$with_gnu_ld 15809 15810 15811 15812 15813 15814 15815 15816 15817 15818 15819 15820 15821 15822 15823 15824# 15825# Do we need to explicitly link libc? 15826# 15827case "x$archive_cmds_need_lc" in 15828x|xyes) 15829 # Assume -lc should be added 15830 archive_cmds_need_lc=yes 15831 15832 if test "$enable_shared" = yes && test "$GCC" = yes; then 15833 case $archive_cmds in 15834 *'~'*) 15835 # FIXME: we may have to deal with multi-command sequences. 15836 ;; 15837 '$CC '*) 15838 # Test whether the compiler implicitly links with -lc since on some 15839 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15840 # to ld, don't add -lc before -lgcc. 15841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 15842$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15843if ${lt_cv_archive_cmds_need_lc+:} false; then : 15844 $as_echo_n "(cached) " >&6 15845else 15846 $RM conftest* 15847 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15848 15849 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15850 (eval $ac_compile) 2>&5 15851 ac_status=$? 15852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15853 test $ac_status = 0; } 2>conftest.err; then 15854 soname=conftest 15855 lib=conftest 15856 libobjs=conftest.$ac_objext 15857 deplibs= 15858 wl=$lt_prog_compiler_wl 15859 pic_flag=$lt_prog_compiler_pic 15860 compiler_flags=-v 15861 linker_flags=-v 15862 verstring= 15863 output_objdir=. 15864 libname=conftest 15865 lt_save_allow_undefined_flag=$allow_undefined_flag 15866 allow_undefined_flag= 15867 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 15868 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 15869 ac_status=$? 15870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15871 test $ac_status = 0; } 15872 then 15873 lt_cv_archive_cmds_need_lc=no 15874 else 15875 lt_cv_archive_cmds_need_lc=yes 15876 fi 15877 allow_undefined_flag=$lt_save_allow_undefined_flag 15878 else 15879 cat conftest.err 1>&5 15880 fi 15881 $RM conftest* 15882 15883fi 15884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 15885$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 15886 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 15887 ;; 15888 esac 15889 fi 15890 ;; 15891esac 15892 15893 15894 15895 15896 15897 15898 15899 15900 15901 15902 15903 15904 15905 15906 15907 15908 15909 15910 15911 15912 15913 15914 15915 15916 15917 15918 15919 15920 15921 15922 15923 15924 15925 15926 15927 15928 15929 15930 15931 15932 15933 15934 15935 15936 15937 15938 15939 15940 15941 15942 15943 15944 15945 15946 15947 15948 15949 15950 15951 15952 15953 15954 15955 15956 15957 15958 15959 15960 15961 15962 15963 15964 15965 15966 15967 15968 15969 15970 15971 15972 15973 15974 15975 15976 15977 15978 15979 15980 15981 15982 15983 15984 15985 15986 15987 15988 15989 15990 15991 15992 15993 15994 15995 15996 15997 15998 15999 16000 16001 16002 16003 16004 16005 16006 16007 16008 16009 16010 16011 16012 16013 16014 16015 16016 16017 16018 16019 16020 16021 16022 16023 16024 16025 16026 16027 16028 16029 16030 16031 16032 16033 16034 16035 16036 16037 16038 16039 16040 16041 16042 16043 16044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 16045$as_echo_n "checking dynamic linker characteristics... " >&6; } 16046 16047if test "$GCC" = yes; then 16048 case $host_os in 16049 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 16050 *) lt_awk_arg="/^libraries:/" ;; 16051 esac 16052 case $host_os in 16053 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 16054 *) lt_sed_strip_eq="s,=/,/,g" ;; 16055 esac 16056 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 16057 case $lt_search_path_spec in 16058 *\;*) 16059 # if the path contains ";" then we assume it to be the separator 16060 # otherwise default to the standard path separator (i.e. ":") - it is 16061 # assumed that no part of a normal pathname contains ";" but that should 16062 # okay in the real world where ";" in dirpaths is itself problematic. 16063 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 16064 ;; 16065 *) 16066 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 16067 ;; 16068 esac 16069 # Ok, now we have the path, separated by spaces, we can step through it 16070 # and add multilib dir if necessary. 16071 lt_tmp_lt_search_path_spec= 16072 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 16073 for lt_sys_path in $lt_search_path_spec; do 16074 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 16075 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 16076 else 16077 test -d "$lt_sys_path" && \ 16078 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 16079 fi 16080 done 16081 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 16082BEGIN {RS=" "; FS="/|\n";} { 16083 lt_foo=""; 16084 lt_count=0; 16085 for (lt_i = NF; lt_i > 0; lt_i--) { 16086 if ($lt_i != "" && $lt_i != ".") { 16087 if ($lt_i == "..") { 16088 lt_count++; 16089 } else { 16090 if (lt_count == 0) { 16091 lt_foo="/" $lt_i lt_foo; 16092 } else { 16093 lt_count--; 16094 } 16095 } 16096 } 16097 } 16098 if (lt_foo != "") { lt_freq[lt_foo]++; } 16099 if (lt_freq[lt_foo] == 1) { print lt_foo; } 16100}'` 16101 # AWK program above erroneously prepends '/' to C:/dos/paths 16102 # for these hosts. 16103 case $host_os in 16104 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 16105 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 16106 esac 16107 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 16108else 16109 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16110fi 16111library_names_spec= 16112libname_spec='lib$name' 16113soname_spec= 16114shrext_cmds=".so" 16115postinstall_cmds= 16116postuninstall_cmds= 16117finish_cmds= 16118finish_eval= 16119shlibpath_var= 16120shlibpath_overrides_runpath=unknown 16121version_type=none 16122dynamic_linker="$host_os ld.so" 16123sys_lib_dlsearch_path_spec="/lib /usr/lib" 16124need_lib_prefix=unknown 16125hardcode_into_libs=no 16126 16127# when you set need_version to no, make sure it does not cause -set_version 16128# flags to be left without arguments 16129need_version=unknown 16130 16131case $host_os in 16132aix3*) 16133 version_type=linux # correct to gnu/linux during the next big refactor 16134 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 16135 shlibpath_var=LIBPATH 16136 16137 # AIX 3 has no versioning support, so we append a major version to the name. 16138 soname_spec='${libname}${release}${shared_ext}$major' 16139 ;; 16140 16141aix[4-9]*) 16142 version_type=linux # correct to gnu/linux during the next big refactor 16143 need_lib_prefix=no 16144 need_version=no 16145 hardcode_into_libs=yes 16146 if test "$host_cpu" = ia64; then 16147 # AIX 5 supports IA64 16148 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 16149 shlibpath_var=LD_LIBRARY_PATH 16150 else 16151 # With GCC up to 2.95.x, collect2 would create an import file 16152 # for dependence libraries. The import file would start with 16153 # the line `#! .'. This would cause the generated library to 16154 # depend on `.', always an invalid library. This was fixed in 16155 # development snapshots of GCC prior to 3.0. 16156 case $host_os in 16157 aix4 | aix4.[01] | aix4.[01].*) 16158 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16159 echo ' yes ' 16160 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 16161 : 16162 else 16163 can_build_shared=no 16164 fi 16165 ;; 16166 esac 16167 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 16168 # soname into executable. Probably we can add versioning support to 16169 # collect2, so additional links can be useful in future. 16170 if test "$aix_use_runtimelinking" = yes; then 16171 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16172 # instead of lib<name>.a to let people know that these are not 16173 # typical AIX shared libraries. 16174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16175 else 16176 # We preserve .a as extension for shared libraries through AIX4.2 16177 # and later when we are not doing run time linking. 16178 library_names_spec='${libname}${release}.a $libname.a' 16179 soname_spec='${libname}${release}${shared_ext}$major' 16180 fi 16181 shlibpath_var=LIBPATH 16182 fi 16183 ;; 16184 16185amigaos*) 16186 case $host_cpu in 16187 powerpc) 16188 # Since July 2007 AmigaOS4 officially supports .so libraries. 16189 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 16190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16191 ;; 16192 m68k) 16193 library_names_spec='$libname.ixlibrary $libname.a' 16194 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16195 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 16196 ;; 16197 esac 16198 ;; 16199 16200beos*) 16201 library_names_spec='${libname}${shared_ext}' 16202 dynamic_linker="$host_os ld.so" 16203 shlibpath_var=LIBRARY_PATH 16204 ;; 16205 16206bsdi[45]*) 16207 version_type=linux # correct to gnu/linux during the next big refactor 16208 need_version=no 16209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16210 soname_spec='${libname}${release}${shared_ext}$major' 16211 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16212 shlibpath_var=LD_LIBRARY_PATH 16213 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16214 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16215 # the default ld.so.conf also contains /usr/contrib/lib and 16216 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16217 # libtool to hard-code these into programs 16218 ;; 16219 16220cygwin* | mingw* | pw32* | cegcc*) 16221 version_type=windows 16222 shrext_cmds=".dll" 16223 need_version=no 16224 need_lib_prefix=no 16225 16226 case $GCC,$cc_basename in 16227 yes,*) 16228 # gcc 16229 library_names_spec='$libname.dll.a' 16230 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16231 postinstall_cmds='base_file=`basename \${file}`~ 16232 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 16233 dldir=$destdir/`dirname \$dlpath`~ 16234 test -d \$dldir || mkdir -p \$dldir~ 16235 $install_prog $dir/$dlname \$dldir/$dlname~ 16236 chmod a+x \$dldir/$dlname~ 16237 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16238 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16239 fi' 16240 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16241 dlpath=$dir/\$dldll~ 16242 $RM \$dlpath' 16243 shlibpath_overrides_runpath=yes 16244 16245 case $host_os in 16246 cygwin*) 16247 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16248 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16249 16250 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 16251 ;; 16252 mingw* | cegcc*) 16253 # MinGW DLLs use traditional 'lib' prefix 16254 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16255 ;; 16256 pw32*) 16257 # pw32 DLLs use 'pw' prefix rather than 'lib' 16258 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16259 ;; 16260 esac 16261 dynamic_linker='Win32 ld.exe' 16262 ;; 16263 16264 *,cl*) 16265 # Native MSVC 16266 libname_spec='$name' 16267 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16268 library_names_spec='${libname}.dll.lib' 16269 16270 case $build_os in 16271 mingw*) 16272 sys_lib_search_path_spec= 16273 lt_save_ifs=$IFS 16274 IFS=';' 16275 for lt_path in $LIB 16276 do 16277 IFS=$lt_save_ifs 16278 # Let DOS variable expansion print the short 8.3 style file name. 16279 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 16280 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 16281 done 16282 IFS=$lt_save_ifs 16283 # Convert to MSYS style. 16284 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 16285 ;; 16286 cygwin*) 16287 # Convert to unix form, then to dos form, then back to unix form 16288 # but this time dos style (no spaces!) so that the unix form looks 16289 # like /cygdrive/c/PROGRA~1:/cygdr... 16290 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 16291 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 16292 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16293 ;; 16294 *) 16295 sys_lib_search_path_spec="$LIB" 16296 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 16297 # It is most probably a Windows format PATH. 16298 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16299 else 16300 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16301 fi 16302 # FIXME: find the short name or the path components, as spaces are 16303 # common. (e.g. "Program Files" -> "PROGRA~1") 16304 ;; 16305 esac 16306 16307 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16308 postinstall_cmds='base_file=`basename \${file}`~ 16309 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 16310 dldir=$destdir/`dirname \$dlpath`~ 16311 test -d \$dldir || mkdir -p \$dldir~ 16312 $install_prog $dir/$dlname \$dldir/$dlname' 16313 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16314 dlpath=$dir/\$dldll~ 16315 $RM \$dlpath' 16316 shlibpath_overrides_runpath=yes 16317 dynamic_linker='Win32 link.exe' 16318 ;; 16319 16320 *) 16321 # Assume MSVC wrapper 16322 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 16323 dynamic_linker='Win32 ld.exe' 16324 ;; 16325 esac 16326 # FIXME: first we should search . and the directory the executable is in 16327 shlibpath_var=PATH 16328 ;; 16329 16330darwin* | rhapsody*) 16331 dynamic_linker="$host_os dyld" 16332 version_type=darwin 16333 need_lib_prefix=no 16334 need_version=no 16335 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 16336 soname_spec='${libname}${release}${major}$shared_ext' 16337 shlibpath_overrides_runpath=yes 16338 shlibpath_var=DYLD_LIBRARY_PATH 16339 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16340 16341 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 16342 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16343 ;; 16344 16345dgux*) 16346 version_type=linux # correct to gnu/linux during the next big refactor 16347 need_lib_prefix=no 16348 need_version=no 16349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 16350 soname_spec='${libname}${release}${shared_ext}$major' 16351 shlibpath_var=LD_LIBRARY_PATH 16352 ;; 16353 16354freebsd* | dragonfly*) 16355 # DragonFly does not have aout. When/if they implement a new 16356 # versioning mechanism, adjust this. 16357 if test -x /usr/bin/objformat; then 16358 objformat=`/usr/bin/objformat` 16359 else 16360 case $host_os in 16361 freebsd[23].*) objformat=aout ;; 16362 *) objformat=elf ;; 16363 esac 16364 fi 16365 version_type=freebsd-$objformat 16366 case $version_type in 16367 freebsd-elf*) 16368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16369 need_version=no 16370 need_lib_prefix=no 16371 ;; 16372 freebsd-*) 16373 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 16374 need_version=yes 16375 ;; 16376 esac 16377 shlibpath_var=LD_LIBRARY_PATH 16378 case $host_os in 16379 freebsd2.*) 16380 shlibpath_overrides_runpath=yes 16381 ;; 16382 freebsd3.[01]* | freebsdelf3.[01]*) 16383 shlibpath_overrides_runpath=yes 16384 hardcode_into_libs=yes 16385 ;; 16386 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16387 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16388 shlibpath_overrides_runpath=no 16389 hardcode_into_libs=yes 16390 ;; 16391 *) # from 4.6 on, and DragonFly 16392 shlibpath_overrides_runpath=yes 16393 hardcode_into_libs=yes 16394 ;; 16395 esac 16396 ;; 16397 16398gnu*) 16399 version_type=linux # correct to gnu/linux during the next big refactor 16400 need_lib_prefix=no 16401 need_version=no 16402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16403 soname_spec='${libname}${release}${shared_ext}$major' 16404 shlibpath_var=LD_LIBRARY_PATH 16405 shlibpath_overrides_runpath=no 16406 hardcode_into_libs=yes 16407 ;; 16408 16409haiku*) 16410 version_type=linux # correct to gnu/linux during the next big refactor 16411 need_lib_prefix=no 16412 need_version=no 16413 dynamic_linker="$host_os runtime_loader" 16414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16415 soname_spec='${libname}${release}${shared_ext}$major' 16416 shlibpath_var=LIBRARY_PATH 16417 shlibpath_overrides_runpath=yes 16418 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 16419 hardcode_into_libs=yes 16420 ;; 16421 16422hpux9* | hpux10* | hpux11*) 16423 # Give a soname corresponding to the major version so that dld.sl refuses to 16424 # link against other versions. 16425 version_type=sunos 16426 need_lib_prefix=no 16427 need_version=no 16428 case $host_cpu in 16429 ia64*) 16430 shrext_cmds='.so' 16431 hardcode_into_libs=yes 16432 dynamic_linker="$host_os dld.so" 16433 shlibpath_var=LD_LIBRARY_PATH 16434 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16436 soname_spec='${libname}${release}${shared_ext}$major' 16437 if test "X$HPUX_IA64_MODE" = X32; then 16438 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16439 else 16440 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16441 fi 16442 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16443 ;; 16444 hppa*64*) 16445 shrext_cmds='.sl' 16446 hardcode_into_libs=yes 16447 dynamic_linker="$host_os dld.sl" 16448 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16449 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16451 soname_spec='${libname}${release}${shared_ext}$major' 16452 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16453 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16454 ;; 16455 *) 16456 shrext_cmds='.sl' 16457 dynamic_linker="$host_os dld.sl" 16458 shlibpath_var=SHLIB_PATH 16459 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16461 soname_spec='${libname}${release}${shared_ext}$major' 16462 ;; 16463 esac 16464 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 16465 postinstall_cmds='chmod 555 $lib' 16466 # or fails outright, so override atomically: 16467 install_override_mode=555 16468 ;; 16469 16470interix[3-9]*) 16471 version_type=linux # correct to gnu/linux during the next big refactor 16472 need_lib_prefix=no 16473 need_version=no 16474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16475 soname_spec='${libname}${release}${shared_ext}$major' 16476 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16477 shlibpath_var=LD_LIBRARY_PATH 16478 shlibpath_overrides_runpath=no 16479 hardcode_into_libs=yes 16480 ;; 16481 16482irix5* | irix6* | nonstopux*) 16483 case $host_os in 16484 nonstopux*) version_type=nonstopux ;; 16485 *) 16486 if test "$lt_cv_prog_gnu_ld" = yes; then 16487 version_type=linux # correct to gnu/linux during the next big refactor 16488 else 16489 version_type=irix 16490 fi ;; 16491 esac 16492 need_lib_prefix=no 16493 need_version=no 16494 soname_spec='${libname}${release}${shared_ext}$major' 16495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16496 case $host_os in 16497 irix5* | nonstopux*) 16498 libsuff= shlibsuff= 16499 ;; 16500 *) 16501 case $LD in # libtool.m4 will add one of these switches to LD 16502 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16503 libsuff= shlibsuff= libmagic=32-bit;; 16504 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16505 libsuff=32 shlibsuff=N32 libmagic=N32;; 16506 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16507 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16508 *) libsuff= shlibsuff= libmagic=never-match;; 16509 esac 16510 ;; 16511 esac 16512 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16513 shlibpath_overrides_runpath=no 16514 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16515 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16516 hardcode_into_libs=yes 16517 ;; 16518 16519# No shared lib support for Linux oldld, aout, or coff. 16520linux*oldld* | linux*aout* | linux*coff*) 16521 dynamic_linker=no 16522 ;; 16523 16524# This must be glibc/ELF. 16525linux* | k*bsd*-gnu | kopensolaris*-gnu) 16526 version_type=linux # correct to gnu/linux during the next big refactor 16527 need_lib_prefix=no 16528 need_version=no 16529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16530 soname_spec='${libname}${release}${shared_ext}$major' 16531 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16532 shlibpath_var=LD_LIBRARY_PATH 16533 shlibpath_overrides_runpath=no 16534 16535 # Some binutils ld are patched to set DT_RUNPATH 16536 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 16537 $as_echo_n "(cached) " >&6 16538else 16539 lt_cv_shlibpath_overrides_runpath=no 16540 save_LDFLAGS=$LDFLAGS 16541 save_libdir=$libdir 16542 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 16543 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 16544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16545/* end confdefs.h. */ 16546 16547int 16548main () 16549{ 16550 16551 ; 16552 return 0; 16553} 16554_ACEOF 16555if ac_fn_c_try_link "$LINENO"; then : 16556 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 16557 lt_cv_shlibpath_overrides_runpath=yes 16558fi 16559fi 16560rm -f core conftest.err conftest.$ac_objext \ 16561 conftest$ac_exeext conftest.$ac_ext 16562 LDFLAGS=$save_LDFLAGS 16563 libdir=$save_libdir 16564 16565fi 16566 16567 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 16568 16569 # This implies no fast_install, which is unacceptable. 16570 # Some rework will be needed to allow for fast_install 16571 # before this can be enabled. 16572 hardcode_into_libs=yes 16573 16574 # Add ABI-specific directories to the system library path. 16575 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 16576 16577 # Append ld.so.conf contents to the search path 16578 if test -f /etc/ld.so.conf; then 16579 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 16580 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 16581 16582 fi 16583 16584 # We used to test for /lib/ld.so.1 and disable shared libraries on 16585 # powerpc, because MkLinux only supported shared libraries with the 16586 # GNU dynamic linker. Since this was broken with cross compilers, 16587 # most powerpc-linux boxes support dynamic linking these days and 16588 # people can always --disable-shared, the test was removed, and we 16589 # assume the GNU/Linux dynamic linker is in use. 16590 dynamic_linker='GNU/Linux ld.so' 16591 ;; 16592 16593netbsd*) 16594 version_type=sunos 16595 need_lib_prefix=no 16596 need_version=no 16597 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16599 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16600 dynamic_linker='NetBSD (a.out) ld.so' 16601 else 16602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16603 soname_spec='${libname}${release}${shared_ext}$major' 16604 dynamic_linker='NetBSD ld.elf_so' 16605 fi 16606 shlibpath_var=LD_LIBRARY_PATH 16607 shlibpath_overrides_runpath=yes 16608 hardcode_into_libs=yes 16609 ;; 16610 16611newsos6) 16612 version_type=linux # correct to gnu/linux during the next big refactor 16613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16614 shlibpath_var=LD_LIBRARY_PATH 16615 shlibpath_overrides_runpath=yes 16616 ;; 16617 16618*nto* | *qnx*) 16619 version_type=qnx 16620 need_lib_prefix=no 16621 need_version=no 16622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16623 soname_spec='${libname}${release}${shared_ext}$major' 16624 shlibpath_var=LD_LIBRARY_PATH 16625 shlibpath_overrides_runpath=no 16626 hardcode_into_libs=yes 16627 dynamic_linker='ldqnx.so' 16628 ;; 16629 16630openbsd*) 16631 version_type=sunos 16632 sys_lib_dlsearch_path_spec="/usr/lib" 16633 need_lib_prefix=no 16634 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16635 case $host_os in 16636 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16637 *) need_version=no ;; 16638 esac 16639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16640 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16641 shlibpath_var=LD_LIBRARY_PATH 16642 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16643 case $host_os in 16644 openbsd2.[89] | openbsd2.[89].*) 16645 shlibpath_overrides_runpath=no 16646 ;; 16647 *) 16648 shlibpath_overrides_runpath=yes 16649 ;; 16650 esac 16651 else 16652 shlibpath_overrides_runpath=yes 16653 fi 16654 ;; 16655 16656os2*) 16657 libname_spec='$name' 16658 shrext_cmds=".dll" 16659 need_lib_prefix=no 16660 library_names_spec='$libname${shared_ext} $libname.a' 16661 dynamic_linker='OS/2 ld.exe' 16662 shlibpath_var=LIBPATH 16663 ;; 16664 16665osf3* | osf4* | osf5*) 16666 version_type=osf 16667 need_lib_prefix=no 16668 need_version=no 16669 soname_spec='${libname}${release}${shared_ext}$major' 16670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16671 shlibpath_var=LD_LIBRARY_PATH 16672 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16673 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16674 ;; 16675 16676rdos*) 16677 dynamic_linker=no 16678 ;; 16679 16680solaris*) 16681 version_type=linux # correct to gnu/linux during the next big refactor 16682 need_lib_prefix=no 16683 need_version=no 16684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16685 soname_spec='${libname}${release}${shared_ext}$major' 16686 shlibpath_var=LD_LIBRARY_PATH 16687 shlibpath_overrides_runpath=yes 16688 hardcode_into_libs=yes 16689 # ldd complains unless libraries are executable 16690 postinstall_cmds='chmod +x $lib' 16691 ;; 16692 16693sunos4*) 16694 version_type=sunos 16695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16696 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16697 shlibpath_var=LD_LIBRARY_PATH 16698 shlibpath_overrides_runpath=yes 16699 if test "$with_gnu_ld" = yes; then 16700 need_lib_prefix=no 16701 fi 16702 need_version=yes 16703 ;; 16704 16705sysv4 | sysv4.3*) 16706 version_type=linux # correct to gnu/linux during the next big refactor 16707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16708 soname_spec='${libname}${release}${shared_ext}$major' 16709 shlibpath_var=LD_LIBRARY_PATH 16710 case $host_vendor in 16711 sni) 16712 shlibpath_overrides_runpath=no 16713 need_lib_prefix=no 16714 runpath_var=LD_RUN_PATH 16715 ;; 16716 siemens) 16717 need_lib_prefix=no 16718 ;; 16719 motorola) 16720 need_lib_prefix=no 16721 need_version=no 16722 shlibpath_overrides_runpath=no 16723 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16724 ;; 16725 esac 16726 ;; 16727 16728sysv4*MP*) 16729 if test -d /usr/nec ;then 16730 version_type=linux # correct to gnu/linux during the next big refactor 16731 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16732 soname_spec='$libname${shared_ext}.$major' 16733 shlibpath_var=LD_LIBRARY_PATH 16734 fi 16735 ;; 16736 16737sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16738 version_type=freebsd-elf 16739 need_lib_prefix=no 16740 need_version=no 16741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16742 soname_spec='${libname}${release}${shared_ext}$major' 16743 shlibpath_var=LD_LIBRARY_PATH 16744 shlibpath_overrides_runpath=yes 16745 hardcode_into_libs=yes 16746 if test "$with_gnu_ld" = yes; then 16747 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16748 else 16749 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16750 case $host_os in 16751 sco3.2v5*) 16752 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16753 ;; 16754 esac 16755 fi 16756 sys_lib_dlsearch_path_spec='/usr/lib' 16757 ;; 16758 16759tpf*) 16760 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 16761 version_type=linux # correct to gnu/linux during the next big refactor 16762 need_lib_prefix=no 16763 need_version=no 16764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16765 shlibpath_var=LD_LIBRARY_PATH 16766 shlibpath_overrides_runpath=no 16767 hardcode_into_libs=yes 16768 ;; 16769 16770uts4*) 16771 version_type=linux # correct to gnu/linux during the next big refactor 16772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16773 soname_spec='${libname}${release}${shared_ext}$major' 16774 shlibpath_var=LD_LIBRARY_PATH 16775 ;; 16776 16777*) 16778 dynamic_linker=no 16779 ;; 16780esac 16781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 16782$as_echo "$dynamic_linker" >&6; } 16783test "$dynamic_linker" = no && can_build_shared=no 16784 16785variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16786if test "$GCC" = yes; then 16787 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16788fi 16789 16790if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 16791 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 16792fi 16793if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 16794 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 16795fi 16796 16797 16798 16799 16800 16801 16802 16803 16804 16805 16806 16807 16808 16809 16810 16811 16812 16813 16814 16815 16816 16817 16818 16819 16820 16821 16822 16823 16824 16825 16826 16827 16828 16829 16830 16831 16832 16833 16834 16835 16836 16837 16838 16839 16840 16841 16842 16843 16844 16845 16846 16847 16848 16849 16850 16851 16852 16853 16854 16855 16856 16857 16858 16859 16860 16861 16862 16863 16864 16865 16866 16867 16868 16869 16870 16871 16872 16873 16874 16875 16876 16877 16878 16879 16880 16881 16882 16883 16884 16885 16886 16887 16888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 16889$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 16890hardcode_action= 16891if test -n "$hardcode_libdir_flag_spec" || 16892 test -n "$runpath_var" || 16893 test "X$hardcode_automatic" = "Xyes" ; then 16894 16895 # We can hardcode non-existent directories. 16896 if test "$hardcode_direct" != no && 16897 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16898 # have to relink, otherwise we might link with an installed library 16899 # when we should be linking with a yet-to-be-installed one 16900 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 16901 test "$hardcode_minus_L" != no; then 16902 # Linking always hardcodes the temporary library directory. 16903 hardcode_action=relink 16904 else 16905 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16906 hardcode_action=immediate 16907 fi 16908else 16909 # We cannot hardcode anything, or else we can only hardcode existing 16910 # directories. 16911 hardcode_action=unsupported 16912fi 16913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 16914$as_echo "$hardcode_action" >&6; } 16915 16916if test "$hardcode_action" = relink || 16917 test "$inherit_rpath" = yes; then 16918 # Fast installation is not supported 16919 enable_fast_install=no 16920elif test "$shlibpath_overrides_runpath" = yes || 16921 test "$enable_shared" = no; then 16922 # Fast installation is not necessary 16923 enable_fast_install=needless 16924fi 16925 16926 16927 16928 16929 16930 16931 if test "x$enable_dlopen" != xyes; then 16932 enable_dlopen=unknown 16933 enable_dlopen_self=unknown 16934 enable_dlopen_self_static=unknown 16935else 16936 lt_cv_dlopen=no 16937 lt_cv_dlopen_libs= 16938 16939 case $host_os in 16940 beos*) 16941 lt_cv_dlopen="load_add_on" 16942 lt_cv_dlopen_libs= 16943 lt_cv_dlopen_self=yes 16944 ;; 16945 16946 mingw* | pw32* | cegcc*) 16947 lt_cv_dlopen="LoadLibrary" 16948 lt_cv_dlopen_libs= 16949 ;; 16950 16951 cygwin*) 16952 lt_cv_dlopen="dlopen" 16953 lt_cv_dlopen_libs= 16954 ;; 16955 16956 darwin*) 16957 # if libdl is installed we need to link against it 16958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 16959$as_echo_n "checking for dlopen in -ldl... " >&6; } 16960if ${ac_cv_lib_dl_dlopen+:} false; then : 16961 $as_echo_n "(cached) " >&6 16962else 16963 ac_check_lib_save_LIBS=$LIBS 16964LIBS="-ldl $LIBS" 16965cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16966/* end confdefs.h. */ 16967 16968/* Override any GCC internal prototype to avoid an error. 16969 Use char because int might match the return type of a GCC 16970 builtin and then its argument prototype would still apply. */ 16971#ifdef __cplusplus 16972extern "C" 16973#endif 16974char dlopen (); 16975int 16976main () 16977{ 16978return dlopen (); 16979 ; 16980 return 0; 16981} 16982_ACEOF 16983if ac_fn_c_try_link "$LINENO"; then : 16984 ac_cv_lib_dl_dlopen=yes 16985else 16986 ac_cv_lib_dl_dlopen=no 16987fi 16988rm -f core conftest.err conftest.$ac_objext \ 16989 conftest$ac_exeext conftest.$ac_ext 16990LIBS=$ac_check_lib_save_LIBS 16991fi 16992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 16993$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 16994if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 16995 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 16996else 16997 16998 lt_cv_dlopen="dyld" 16999 lt_cv_dlopen_libs= 17000 lt_cv_dlopen_self=yes 17001 17002fi 17003 17004 ;; 17005 17006 *) 17007 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 17008if test "x$ac_cv_func_shl_load" = xyes; then : 17009 lt_cv_dlopen="shl_load" 17010else 17011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 17012$as_echo_n "checking for shl_load in -ldld... " >&6; } 17013if ${ac_cv_lib_dld_shl_load+:} false; then : 17014 $as_echo_n "(cached) " >&6 17015else 17016 ac_check_lib_save_LIBS=$LIBS 17017LIBS="-ldld $LIBS" 17018cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17019/* end confdefs.h. */ 17020 17021/* Override any GCC internal prototype to avoid an error. 17022 Use char because int might match the return type of a GCC 17023 builtin and then its argument prototype would still apply. */ 17024#ifdef __cplusplus 17025extern "C" 17026#endif 17027char shl_load (); 17028int 17029main () 17030{ 17031return shl_load (); 17032 ; 17033 return 0; 17034} 17035_ACEOF 17036if ac_fn_c_try_link "$LINENO"; then : 17037 ac_cv_lib_dld_shl_load=yes 17038else 17039 ac_cv_lib_dld_shl_load=no 17040fi 17041rm -f core conftest.err conftest.$ac_objext \ 17042 conftest$ac_exeext conftest.$ac_ext 17043LIBS=$ac_check_lib_save_LIBS 17044fi 17045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 17046$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 17047if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 17048 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 17049else 17050 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 17051if test "x$ac_cv_func_dlopen" = xyes; then : 17052 lt_cv_dlopen="dlopen" 17053else 17054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 17055$as_echo_n "checking for dlopen in -ldl... " >&6; } 17056if ${ac_cv_lib_dl_dlopen+:} false; then : 17057 $as_echo_n "(cached) " >&6 17058else 17059 ac_check_lib_save_LIBS=$LIBS 17060LIBS="-ldl $LIBS" 17061cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17062/* end confdefs.h. */ 17063 17064/* Override any GCC internal prototype to avoid an error. 17065 Use char because int might match the return type of a GCC 17066 builtin and then its argument prototype would still apply. */ 17067#ifdef __cplusplus 17068extern "C" 17069#endif 17070char dlopen (); 17071int 17072main () 17073{ 17074return dlopen (); 17075 ; 17076 return 0; 17077} 17078_ACEOF 17079if ac_fn_c_try_link "$LINENO"; then : 17080 ac_cv_lib_dl_dlopen=yes 17081else 17082 ac_cv_lib_dl_dlopen=no 17083fi 17084rm -f core conftest.err conftest.$ac_objext \ 17085 conftest$ac_exeext conftest.$ac_ext 17086LIBS=$ac_check_lib_save_LIBS 17087fi 17088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 17089$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 17090if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 17091 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 17092else 17093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 17094$as_echo_n "checking for dlopen in -lsvld... " >&6; } 17095if ${ac_cv_lib_svld_dlopen+:} false; then : 17096 $as_echo_n "(cached) " >&6 17097else 17098 ac_check_lib_save_LIBS=$LIBS 17099LIBS="-lsvld $LIBS" 17100cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17101/* end confdefs.h. */ 17102 17103/* Override any GCC internal prototype to avoid an error. 17104 Use char because int might match the return type of a GCC 17105 builtin and then its argument prototype would still apply. */ 17106#ifdef __cplusplus 17107extern "C" 17108#endif 17109char dlopen (); 17110int 17111main () 17112{ 17113return dlopen (); 17114 ; 17115 return 0; 17116} 17117_ACEOF 17118if ac_fn_c_try_link "$LINENO"; then : 17119 ac_cv_lib_svld_dlopen=yes 17120else 17121 ac_cv_lib_svld_dlopen=no 17122fi 17123rm -f core conftest.err conftest.$ac_objext \ 17124 conftest$ac_exeext conftest.$ac_ext 17125LIBS=$ac_check_lib_save_LIBS 17126fi 17127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 17128$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 17129if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 17130 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 17131else 17132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 17133$as_echo_n "checking for dld_link in -ldld... " >&6; } 17134if ${ac_cv_lib_dld_dld_link+:} false; then : 17135 $as_echo_n "(cached) " >&6 17136else 17137 ac_check_lib_save_LIBS=$LIBS 17138LIBS="-ldld $LIBS" 17139cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17140/* end confdefs.h. */ 17141 17142/* Override any GCC internal prototype to avoid an error. 17143 Use char because int might match the return type of a GCC 17144 builtin and then its argument prototype would still apply. */ 17145#ifdef __cplusplus 17146extern "C" 17147#endif 17148char dld_link (); 17149int 17150main () 17151{ 17152return dld_link (); 17153 ; 17154 return 0; 17155} 17156_ACEOF 17157if ac_fn_c_try_link "$LINENO"; then : 17158 ac_cv_lib_dld_dld_link=yes 17159else 17160 ac_cv_lib_dld_dld_link=no 17161fi 17162rm -f core conftest.err conftest.$ac_objext \ 17163 conftest$ac_exeext conftest.$ac_ext 17164LIBS=$ac_check_lib_save_LIBS 17165fi 17166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 17167$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 17168if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 17169 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 17170fi 17171 17172 17173fi 17174 17175 17176fi 17177 17178 17179fi 17180 17181 17182fi 17183 17184 17185fi 17186 17187 ;; 17188 esac 17189 17190 if test "x$lt_cv_dlopen" != xno; then 17191 enable_dlopen=yes 17192 else 17193 enable_dlopen=no 17194 fi 17195 17196 case $lt_cv_dlopen in 17197 dlopen) 17198 save_CPPFLAGS="$CPPFLAGS" 17199 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 17200 17201 save_LDFLAGS="$LDFLAGS" 17202 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 17203 17204 save_LIBS="$LIBS" 17205 LIBS="$lt_cv_dlopen_libs $LIBS" 17206 17207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 17208$as_echo_n "checking whether a program can dlopen itself... " >&6; } 17209if ${lt_cv_dlopen_self+:} false; then : 17210 $as_echo_n "(cached) " >&6 17211else 17212 if test "$cross_compiling" = yes; then : 17213 lt_cv_dlopen_self=cross 17214else 17215 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 17216 lt_status=$lt_dlunknown 17217 cat > conftest.$ac_ext <<_LT_EOF 17218#line $LINENO "configure" 17219#include "confdefs.h" 17220 17221#if HAVE_DLFCN_H 17222#include <dlfcn.h> 17223#endif 17224 17225#include <stdio.h> 17226 17227#ifdef RTLD_GLOBAL 17228# define LT_DLGLOBAL RTLD_GLOBAL 17229#else 17230# ifdef DL_GLOBAL 17231# define LT_DLGLOBAL DL_GLOBAL 17232# else 17233# define LT_DLGLOBAL 0 17234# endif 17235#endif 17236 17237/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 17238 find out it does not work in some platform. */ 17239#ifndef LT_DLLAZY_OR_NOW 17240# ifdef RTLD_LAZY 17241# define LT_DLLAZY_OR_NOW RTLD_LAZY 17242# else 17243# ifdef DL_LAZY 17244# define LT_DLLAZY_OR_NOW DL_LAZY 17245# else 17246# ifdef RTLD_NOW 17247# define LT_DLLAZY_OR_NOW RTLD_NOW 17248# else 17249# ifdef DL_NOW 17250# define LT_DLLAZY_OR_NOW DL_NOW 17251# else 17252# define LT_DLLAZY_OR_NOW 0 17253# endif 17254# endif 17255# endif 17256# endif 17257#endif 17258 17259/* When -fvisbility=hidden is used, assume the code has been annotated 17260 correspondingly for the symbols needed. */ 17261#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 17262int fnord () __attribute__((visibility("default"))); 17263#endif 17264 17265int fnord () { return 42; } 17266int main () 17267{ 17268 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 17269 int status = $lt_dlunknown; 17270 17271 if (self) 17272 { 17273 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 17274 else 17275 { 17276 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 17277 else puts (dlerror ()); 17278 } 17279 /* dlclose (self); */ 17280 } 17281 else 17282 puts (dlerror ()); 17283 17284 return status; 17285} 17286_LT_EOF 17287 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 17288 (eval $ac_link) 2>&5 17289 ac_status=$? 17290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17291 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 17292 (./conftest; exit; ) >&5 2>/dev/null 17293 lt_status=$? 17294 case x$lt_status in 17295 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 17296 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 17297 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 17298 esac 17299 else : 17300 # compilation failed 17301 lt_cv_dlopen_self=no 17302 fi 17303fi 17304rm -fr conftest* 17305 17306 17307fi 17308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 17309$as_echo "$lt_cv_dlopen_self" >&6; } 17310 17311 if test "x$lt_cv_dlopen_self" = xyes; then 17312 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 17313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 17314$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 17315if ${lt_cv_dlopen_self_static+:} false; then : 17316 $as_echo_n "(cached) " >&6 17317else 17318 if test "$cross_compiling" = yes; then : 17319 lt_cv_dlopen_self_static=cross 17320else 17321 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 17322 lt_status=$lt_dlunknown 17323 cat > conftest.$ac_ext <<_LT_EOF 17324#line $LINENO "configure" 17325#include "confdefs.h" 17326 17327#if HAVE_DLFCN_H 17328#include <dlfcn.h> 17329#endif 17330 17331#include <stdio.h> 17332 17333#ifdef RTLD_GLOBAL 17334# define LT_DLGLOBAL RTLD_GLOBAL 17335#else 17336# ifdef DL_GLOBAL 17337# define LT_DLGLOBAL DL_GLOBAL 17338# else 17339# define LT_DLGLOBAL 0 17340# endif 17341#endif 17342 17343/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 17344 find out it does not work in some platform. */ 17345#ifndef LT_DLLAZY_OR_NOW 17346# ifdef RTLD_LAZY 17347# define LT_DLLAZY_OR_NOW RTLD_LAZY 17348# else 17349# ifdef DL_LAZY 17350# define LT_DLLAZY_OR_NOW DL_LAZY 17351# else 17352# ifdef RTLD_NOW 17353# define LT_DLLAZY_OR_NOW RTLD_NOW 17354# else 17355# ifdef DL_NOW 17356# define LT_DLLAZY_OR_NOW DL_NOW 17357# else 17358# define LT_DLLAZY_OR_NOW 0 17359# endif 17360# endif 17361# endif 17362# endif 17363#endif 17364 17365/* When -fvisbility=hidden is used, assume the code has been annotated 17366 correspondingly for the symbols needed. */ 17367#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 17368int fnord () __attribute__((visibility("default"))); 17369#endif 17370 17371int fnord () { return 42; } 17372int main () 17373{ 17374 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 17375 int status = $lt_dlunknown; 17376 17377 if (self) 17378 { 17379 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 17380 else 17381 { 17382 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 17383 else puts (dlerror ()); 17384 } 17385 /* dlclose (self); */ 17386 } 17387 else 17388 puts (dlerror ()); 17389 17390 return status; 17391} 17392_LT_EOF 17393 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 17394 (eval $ac_link) 2>&5 17395 ac_status=$? 17396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17397 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 17398 (./conftest; exit; ) >&5 2>/dev/null 17399 lt_status=$? 17400 case x$lt_status in 17401 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 17402 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 17403 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 17404 esac 17405 else : 17406 # compilation failed 17407 lt_cv_dlopen_self_static=no 17408 fi 17409fi 17410rm -fr conftest* 17411 17412 17413fi 17414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 17415$as_echo "$lt_cv_dlopen_self_static" >&6; } 17416 fi 17417 17418 CPPFLAGS="$save_CPPFLAGS" 17419 LDFLAGS="$save_LDFLAGS" 17420 LIBS="$save_LIBS" 17421 ;; 17422 esac 17423 17424 case $lt_cv_dlopen_self in 17425 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 17426 *) enable_dlopen_self=unknown ;; 17427 esac 17428 17429 case $lt_cv_dlopen_self_static in 17430 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 17431 *) enable_dlopen_self_static=unknown ;; 17432 esac 17433fi 17434 17435 17436 17437 17438 17439 17440 17441 17442 17443 17444 17445 17446 17447 17448 17449 17450 17451striplib= 17452old_striplib= 17453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 17454$as_echo_n "checking whether stripping libraries is possible... " >&6; } 17455if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 17456 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 17457 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 17458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17459$as_echo "yes" >&6; } 17460else 17461# FIXME - insert some real tests, host_os isn't really good enough 17462 case $host_os in 17463 darwin*) 17464 if test -n "$STRIP" ; then 17465 striplib="$STRIP -x" 17466 old_striplib="$STRIP -S" 17467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17468$as_echo "yes" >&6; } 17469 else 17470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17471$as_echo "no" >&6; } 17472 fi 17473 ;; 17474 *) 17475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17476$as_echo "no" >&6; } 17477 ;; 17478 esac 17479fi 17480 17481 17482 17483 17484 17485 17486 17487 17488 17489 17490 17491 17492 # Report which library types will actually be built 17493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 17494$as_echo_n "checking if libtool supports shared libraries... " >&6; } 17495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 17496$as_echo "$can_build_shared" >&6; } 17497 17498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 17499$as_echo_n "checking whether to build shared libraries... " >&6; } 17500 test "$can_build_shared" = "no" && enable_shared=no 17501 17502 # On AIX, shared libraries and static libraries use the same namespace, and 17503 # are all built from PIC. 17504 case $host_os in 17505 aix3*) 17506 test "$enable_shared" = yes && enable_static=no 17507 if test -n "$RANLIB"; then 17508 archive_cmds="$archive_cmds~\$RANLIB \$lib" 17509 postinstall_cmds='$RANLIB $lib' 17510 fi 17511 ;; 17512 17513 aix[4-9]*) 17514 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 17515 test "$enable_shared" = yes && enable_static=no 17516 fi 17517 ;; 17518 esac 17519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 17520$as_echo "$enable_shared" >&6; } 17521 17522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 17523$as_echo_n "checking whether to build static libraries... " >&6; } 17524 # Make sure either enable_shared or enable_static is yes. 17525 test "$enable_shared" = yes || enable_static=yes 17526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 17527$as_echo "$enable_static" >&6; } 17528 17529 17530 17531 17532fi 17533ac_ext=c 17534ac_cpp='$CPP $CPPFLAGS' 17535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17537ac_compiler_gnu=$ac_cv_c_compiler_gnu 17538 17539CC="$lt_save_CC" 17540 17541 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 17542 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 17543 (test "X$CXX" != "Xg++"))) ; then 17544 ac_ext=cpp 17545ac_cpp='$CXXCPP $CPPFLAGS' 17546ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17547ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17548ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 17550$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 17551if test -z "$CXXCPP"; then 17552 if ${ac_cv_prog_CXXCPP+:} false; then : 17553 $as_echo_n "(cached) " >&6 17554else 17555 # Double quotes because CXXCPP needs to be expanded 17556 for CXXCPP in "$CXX -E" "/lib/cpp" 17557 do 17558 ac_preproc_ok=false 17559for ac_cxx_preproc_warn_flag in '' yes 17560do 17561 # Use a header file that comes with gcc, so configuring glibc 17562 # with a fresh cross-compiler works. 17563 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17564 # <limits.h> exists even on freestanding compilers. 17565 # On the NeXT, cc -E runs the code through the compiler's parser, 17566 # not just through cpp. "Syntax error" is here to catch this case. 17567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17568/* end confdefs.h. */ 17569#ifdef __STDC__ 17570# include <limits.h> 17571#else 17572# include <assert.h> 17573#endif 17574 Syntax error 17575_ACEOF 17576if ac_fn_cxx_try_cpp "$LINENO"; then : 17577 17578else 17579 # Broken: fails on valid input. 17580continue 17581fi 17582rm -f conftest.err conftest.i conftest.$ac_ext 17583 17584 # OK, works on sane cases. Now check whether nonexistent headers 17585 # can be detected and how. 17586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17587/* end confdefs.h. */ 17588#include <ac_nonexistent.h> 17589_ACEOF 17590if ac_fn_cxx_try_cpp "$LINENO"; then : 17591 # Broken: success on invalid input. 17592continue 17593else 17594 # Passes both tests. 17595ac_preproc_ok=: 17596break 17597fi 17598rm -f conftest.err conftest.i conftest.$ac_ext 17599 17600done 17601# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 17602rm -f conftest.i conftest.err conftest.$ac_ext 17603if $ac_preproc_ok; then : 17604 break 17605fi 17606 17607 done 17608 ac_cv_prog_CXXCPP=$CXXCPP 17609 17610fi 17611 CXXCPP=$ac_cv_prog_CXXCPP 17612else 17613 ac_cv_prog_CXXCPP=$CXXCPP 17614fi 17615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 17616$as_echo "$CXXCPP" >&6; } 17617ac_preproc_ok=false 17618for ac_cxx_preproc_warn_flag in '' yes 17619do 17620 # Use a header file that comes with gcc, so configuring glibc 17621 # with a fresh cross-compiler works. 17622 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17623 # <limits.h> exists even on freestanding compilers. 17624 # On the NeXT, cc -E runs the code through the compiler's parser, 17625 # not just through cpp. "Syntax error" is here to catch this case. 17626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17627/* end confdefs.h. */ 17628#ifdef __STDC__ 17629# include <limits.h> 17630#else 17631# include <assert.h> 17632#endif 17633 Syntax error 17634_ACEOF 17635if ac_fn_cxx_try_cpp "$LINENO"; then : 17636 17637else 17638 # Broken: fails on valid input. 17639continue 17640fi 17641rm -f conftest.err conftest.i conftest.$ac_ext 17642 17643 # OK, works on sane cases. Now check whether nonexistent headers 17644 # can be detected and how. 17645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17646/* end confdefs.h. */ 17647#include <ac_nonexistent.h> 17648_ACEOF 17649if ac_fn_cxx_try_cpp "$LINENO"; then : 17650 # Broken: success on invalid input. 17651continue 17652else 17653 # Passes both tests. 17654ac_preproc_ok=: 17655break 17656fi 17657rm -f conftest.err conftest.i conftest.$ac_ext 17658 17659done 17660# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 17661rm -f conftest.i conftest.err conftest.$ac_ext 17662if $ac_preproc_ok; then : 17663 17664else 17665 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17666$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17667as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 17668See \`config.log' for more details" "$LINENO" 5; } 17669fi 17670 17671ac_ext=c 17672ac_cpp='$CPP $CPPFLAGS' 17673ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17674ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17675ac_compiler_gnu=$ac_cv_c_compiler_gnu 17676 17677else 17678 _lt_caught_CXX_error=yes 17679fi 17680 17681ac_ext=cpp 17682ac_cpp='$CXXCPP $CPPFLAGS' 17683ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17684ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17685ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17686 17687archive_cmds_need_lc_CXX=no 17688allow_undefined_flag_CXX= 17689always_export_symbols_CXX=no 17690archive_expsym_cmds_CXX= 17691compiler_needs_object_CXX=no 17692export_dynamic_flag_spec_CXX= 17693hardcode_direct_CXX=no 17694hardcode_direct_absolute_CXX=no 17695hardcode_libdir_flag_spec_CXX= 17696hardcode_libdir_separator_CXX= 17697hardcode_minus_L_CXX=no 17698hardcode_shlibpath_var_CXX=unsupported 17699hardcode_automatic_CXX=no 17700inherit_rpath_CXX=no 17701module_cmds_CXX= 17702module_expsym_cmds_CXX= 17703link_all_deplibs_CXX=unknown 17704old_archive_cmds_CXX=$old_archive_cmds 17705reload_flag_CXX=$reload_flag 17706reload_cmds_CXX=$reload_cmds 17707no_undefined_flag_CXX= 17708whole_archive_flag_spec_CXX= 17709enable_shared_with_static_runtimes_CXX=no 17710 17711# Source file extension for C++ test sources. 17712ac_ext=cpp 17713 17714# Object file extension for compiled C++ test sources. 17715objext=o 17716objext_CXX=$objext 17717 17718# No sense in running all these tests if we already determined that 17719# the CXX compiler isn't working. Some variables (like enable_shared) 17720# are currently assumed to apply to all compilers on this platform, 17721# and will be corrupted by setting them based on a non-working compiler. 17722if test "$_lt_caught_CXX_error" != yes; then 17723 # Code to be used in simple compile tests 17724 lt_simple_compile_test_code="int some_variable = 0;" 17725 17726 # Code to be used in simple link tests 17727 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 17728 17729 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 17730 17731 17732 17733 17734 17735 17736# If no C compiler was specified, use CC. 17737LTCC=${LTCC-"$CC"} 17738 17739# If no C compiler flags were specified, use CFLAGS. 17740LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 17741 17742# Allow CC to be a program name with arguments. 17743compiler=$CC 17744 17745 17746 # save warnings/boilerplate of simple test code 17747 ac_outfile=conftest.$ac_objext 17748echo "$lt_simple_compile_test_code" >conftest.$ac_ext 17749eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 17750_lt_compiler_boilerplate=`cat conftest.err` 17751$RM conftest* 17752 17753 ac_outfile=conftest.$ac_objext 17754echo "$lt_simple_link_test_code" >conftest.$ac_ext 17755eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 17756_lt_linker_boilerplate=`cat conftest.err` 17757$RM -r conftest* 17758 17759 17760 # Allow CC to be a program name with arguments. 17761 lt_save_CC=$CC 17762 lt_save_CFLAGS=$CFLAGS 17763 lt_save_LD=$LD 17764 lt_save_GCC=$GCC 17765 GCC=$GXX 17766 lt_save_with_gnu_ld=$with_gnu_ld 17767 lt_save_path_LD=$lt_cv_path_LD 17768 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 17769 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 17770 else 17771 $as_unset lt_cv_prog_gnu_ld 17772 fi 17773 if test -n "${lt_cv_path_LDCXX+set}"; then 17774 lt_cv_path_LD=$lt_cv_path_LDCXX 17775 else 17776 $as_unset lt_cv_path_LD 17777 fi 17778 test -z "${LDCXX+set}" || LD=$LDCXX 17779 CC=${CXX-"c++"} 17780 CFLAGS=$CXXFLAGS 17781 compiler=$CC 17782 compiler_CXX=$CC 17783 for cc_temp in $compiler""; do 17784 case $cc_temp in 17785 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17786 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17787 \-*) ;; 17788 *) break;; 17789 esac 17790done 17791cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 17792 17793 17794 if test -n "$compiler"; then 17795 # We don't want -fno-exception when compiling C++ code, so set the 17796 # no_builtin_flag separately 17797 if test "$GXX" = yes; then 17798 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 17799 else 17800 lt_prog_compiler_no_builtin_flag_CXX= 17801 fi 17802 17803 if test "$GXX" = yes; then 17804 # Set up default GNU C++ configuration 17805 17806 17807 17808# Check whether --with-gnu-ld was given. 17809if test "${with_gnu_ld+set}" = set; then : 17810 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 17811else 17812 with_gnu_ld=no 17813fi 17814 17815ac_prog=ld 17816if test "$GCC" = yes; then 17817 # Check if gcc -print-prog-name=ld gives a path. 17818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 17819$as_echo_n "checking for ld used by $CC... " >&6; } 17820 case $host in 17821 *-*-mingw*) 17822 # gcc leaves a trailing carriage return which upsets mingw 17823 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 17824 *) 17825 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 17826 esac 17827 case $ac_prog in 17828 # Accept absolute paths. 17829 [\\/]* | ?:[\\/]*) 17830 re_direlt='/[^/][^/]*/\.\./' 17831 # Canonicalize the pathname of ld 17832 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 17833 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 17834 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 17835 done 17836 test -z "$LD" && LD="$ac_prog" 17837 ;; 17838 "") 17839 # If it fails, then pretend we aren't using GCC. 17840 ac_prog=ld 17841 ;; 17842 *) 17843 # If it is relative, then search for the first ld in PATH. 17844 with_gnu_ld=unknown 17845 ;; 17846 esac 17847elif test "$with_gnu_ld" = yes; then 17848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 17849$as_echo_n "checking for GNU ld... " >&6; } 17850else 17851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 17852$as_echo_n "checking for non-GNU ld... " >&6; } 17853fi 17854if ${lt_cv_path_LD+:} false; then : 17855 $as_echo_n "(cached) " >&6 17856else 17857 if test -z "$LD"; then 17858 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 17859 for ac_dir in $PATH; do 17860 IFS="$lt_save_ifs" 17861 test -z "$ac_dir" && ac_dir=. 17862 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 17863 lt_cv_path_LD="$ac_dir/$ac_prog" 17864 # Check to see if the program is GNU ld. I'd rather use --version, 17865 # but apparently some variants of GNU ld only accept -v. 17866 # Break only if it was the GNU/non-GNU ld that we prefer. 17867 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 17868 *GNU* | *'with BFD'*) 17869 test "$with_gnu_ld" != no && break 17870 ;; 17871 *) 17872 test "$with_gnu_ld" != yes && break 17873 ;; 17874 esac 17875 fi 17876 done 17877 IFS="$lt_save_ifs" 17878else 17879 lt_cv_path_LD="$LD" # Let the user override the test with a path. 17880fi 17881fi 17882 17883LD="$lt_cv_path_LD" 17884if test -n "$LD"; then 17885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 17886$as_echo "$LD" >&6; } 17887else 17888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17889$as_echo "no" >&6; } 17890fi 17891test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 17892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 17893$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 17894if ${lt_cv_prog_gnu_ld+:} false; then : 17895 $as_echo_n "(cached) " >&6 17896else 17897 # I'd rather use --version here, but apparently some GNU lds only accept -v. 17898case `$LD -v 2>&1 </dev/null` in 17899*GNU* | *'with BFD'*) 17900 lt_cv_prog_gnu_ld=yes 17901 ;; 17902*) 17903 lt_cv_prog_gnu_ld=no 17904 ;; 17905esac 17906fi 17907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 17908$as_echo "$lt_cv_prog_gnu_ld" >&6; } 17909with_gnu_ld=$lt_cv_prog_gnu_ld 17910 17911 17912 17913 17914 17915 17916 17917 # Check if GNU C++ uses GNU ld as the underlying linker, since the 17918 # archiving commands below assume that GNU ld is being used. 17919 if test "$with_gnu_ld" = yes; then 17920 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 17921 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17922 17923 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 17924 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 17925 17926 # If archive_cmds runs LD, not CC, wlarc should be empty 17927 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 17928 # investigate it a little bit more. (MM) 17929 wlarc='${wl}' 17930 17931 # ancient GNU ld didn't support --whole-archive et. al. 17932 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 17933 $GREP 'no-whole-archive' > /dev/null; then 17934 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 17935 else 17936 whole_archive_flag_spec_CXX= 17937 fi 17938 else 17939 with_gnu_ld=no 17940 wlarc= 17941 17942 # A generic and very simple default shared library creation 17943 # command for GNU C++ for the case where it uses the native 17944 # linker, instead of GNU ld. If possible, this setting should 17945 # overridden to take advantage of the native linker features on 17946 # the platform it is being used on. 17947 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 17948 fi 17949 17950 # Commands to make compiler produce verbose output that lists 17951 # what "hidden" libraries, object files and flags are used when 17952 # linking a shared library. 17953 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 17954 17955 else 17956 GXX=no 17957 with_gnu_ld=no 17958 wlarc= 17959 fi 17960 17961 # PORTME: fill in a description of your system's C++ link characteristics 17962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17963$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 17964 ld_shlibs_CXX=yes 17965 case $host_os in 17966 aix3*) 17967 # FIXME: insert proper C++ library support 17968 ld_shlibs_CXX=no 17969 ;; 17970 aix[4-9]*) 17971 if test "$host_cpu" = ia64; then 17972 # On IA64, the linker does run time linking by default, so we don't 17973 # have to do anything special. 17974 aix_use_runtimelinking=no 17975 exp_sym_flag='-Bexport' 17976 no_entry_flag="" 17977 else 17978 aix_use_runtimelinking=no 17979 17980 # Test if we are trying to use run time linking or normal 17981 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17982 # need to do runtime linking. 17983 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 17984 for ld_flag in $LDFLAGS; do 17985 case $ld_flag in 17986 *-brtl*) 17987 aix_use_runtimelinking=yes 17988 break 17989 ;; 17990 esac 17991 done 17992 ;; 17993 esac 17994 17995 exp_sym_flag='-bexport' 17996 no_entry_flag='-bnoentry' 17997 fi 17998 17999 # When large executables or shared objects are built, AIX ld can 18000 # have problems creating the table of contents. If linking a library 18001 # or program results in "error TOC overflow" add -mminimal-toc to 18002 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 18003 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 18004 18005 archive_cmds_CXX='' 18006 hardcode_direct_CXX=yes 18007 hardcode_direct_absolute_CXX=yes 18008 hardcode_libdir_separator_CXX=':' 18009 link_all_deplibs_CXX=yes 18010 file_list_spec_CXX='${wl}-f,' 18011 18012 if test "$GXX" = yes; then 18013 case $host_os in aix4.[012]|aix4.[012].*) 18014 # We only want to do this on AIX 4.2 and lower, the check 18015 # below for broken collect2 doesn't work under 4.3+ 18016 collect2name=`${CC} -print-prog-name=collect2` 18017 if test -f "$collect2name" && 18018 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 18019 then 18020 # We have reworked collect2 18021 : 18022 else 18023 # We have old collect2 18024 hardcode_direct_CXX=unsupported 18025 # It fails to find uninstalled libraries when the uninstalled 18026 # path is not listed in the libpath. Setting hardcode_minus_L 18027 # to unsupported forces relinking 18028 hardcode_minus_L_CXX=yes 18029 hardcode_libdir_flag_spec_CXX='-L$libdir' 18030 hardcode_libdir_separator_CXX= 18031 fi 18032 esac 18033 shared_flag='-shared' 18034 if test "$aix_use_runtimelinking" = yes; then 18035 shared_flag="$shared_flag "'${wl}-G' 18036 fi 18037 else 18038 # not using gcc 18039 if test "$host_cpu" = ia64; then 18040 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 18041 # chokes on -Wl,-G. The following line is correct: 18042 shared_flag='-G' 18043 else 18044 if test "$aix_use_runtimelinking" = yes; then 18045 shared_flag='${wl}-G' 18046 else 18047 shared_flag='${wl}-bM:SRE' 18048 fi 18049 fi 18050 fi 18051 18052 export_dynamic_flag_spec_CXX='${wl}-bexpall' 18053 # It seems that -bexpall does not export symbols beginning with 18054 # underscore (_), so it is better to generate a list of symbols to 18055 # export. 18056 always_export_symbols_CXX=yes 18057 if test "$aix_use_runtimelinking" = yes; then 18058 # Warning - without using the other runtime loading flags (-brtl), 18059 # -berok will link without error, but may produce a broken library. 18060 allow_undefined_flag_CXX='-berok' 18061 # Determine the default libpath from the value encoded in an empty 18062 # executable. 18063 if test "${lt_cv_aix_libpath+set}" = set; then 18064 aix_libpath=$lt_cv_aix_libpath 18065else 18066 if ${lt_cv_aix_libpath__CXX+:} false; then : 18067 $as_echo_n "(cached) " >&6 18068else 18069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18070/* end confdefs.h. */ 18071 18072int 18073main () 18074{ 18075 18076 ; 18077 return 0; 18078} 18079_ACEOF 18080if ac_fn_cxx_try_link "$LINENO"; then : 18081 18082 lt_aix_libpath_sed=' 18083 /Import File Strings/,/^$/ { 18084 /^0/ { 18085 s/^0 *\([^ ]*\) *$/\1/ 18086 p 18087 } 18088 }' 18089 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 18090 # Check for a 64-bit object if we didn't find anything. 18091 if test -z "$lt_cv_aix_libpath__CXX"; then 18092 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 18093 fi 18094fi 18095rm -f core conftest.err conftest.$ac_objext \ 18096 conftest$ac_exeext conftest.$ac_ext 18097 if test -z "$lt_cv_aix_libpath__CXX"; then 18098 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 18099 fi 18100 18101fi 18102 18103 aix_libpath=$lt_cv_aix_libpath__CXX 18104fi 18105 18106 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 18107 18108 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 18109 else 18110 if test "$host_cpu" = ia64; then 18111 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 18112 allow_undefined_flag_CXX="-z nodefs" 18113 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 18114 else 18115 # Determine the default libpath from the value encoded in an 18116 # empty executable. 18117 if test "${lt_cv_aix_libpath+set}" = set; then 18118 aix_libpath=$lt_cv_aix_libpath 18119else 18120 if ${lt_cv_aix_libpath__CXX+:} false; then : 18121 $as_echo_n "(cached) " >&6 18122else 18123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18124/* end confdefs.h. */ 18125 18126int 18127main () 18128{ 18129 18130 ; 18131 return 0; 18132} 18133_ACEOF 18134if ac_fn_cxx_try_link "$LINENO"; then : 18135 18136 lt_aix_libpath_sed=' 18137 /Import File Strings/,/^$/ { 18138 /^0/ { 18139 s/^0 *\([^ ]*\) *$/\1/ 18140 p 18141 } 18142 }' 18143 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 18144 # Check for a 64-bit object if we didn't find anything. 18145 if test -z "$lt_cv_aix_libpath__CXX"; then 18146 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 18147 fi 18148fi 18149rm -f core conftest.err conftest.$ac_objext \ 18150 conftest$ac_exeext conftest.$ac_ext 18151 if test -z "$lt_cv_aix_libpath__CXX"; then 18152 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 18153 fi 18154 18155fi 18156 18157 aix_libpath=$lt_cv_aix_libpath__CXX 18158fi 18159 18160 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 18161 # Warning - without using the other run time loading flags, 18162 # -berok will link without error, but may produce a broken library. 18163 no_undefined_flag_CXX=' ${wl}-bernotok' 18164 allow_undefined_flag_CXX=' ${wl}-berok' 18165 if test "$with_gnu_ld" = yes; then 18166 # We only use this code for GNU lds that support --whole-archive. 18167 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 18168 else 18169 # Exported symbols can be pulled into shared objects from archives 18170 whole_archive_flag_spec_CXX='$convenience' 18171 fi 18172 archive_cmds_need_lc_CXX=yes 18173 # This is similar to how AIX traditionally builds its shared 18174 # libraries. 18175 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 18176 fi 18177 fi 18178 ;; 18179 18180 beos*) 18181 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 18182 allow_undefined_flag_CXX=unsupported 18183 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 18184 # support --undefined. This deserves some investigation. FIXME 18185 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18186 else 18187 ld_shlibs_CXX=no 18188 fi 18189 ;; 18190 18191 chorus*) 18192 case $cc_basename in 18193 *) 18194 # FIXME: insert proper C++ library support 18195 ld_shlibs_CXX=no 18196 ;; 18197 esac 18198 ;; 18199 18200 cygwin* | mingw* | pw32* | cegcc*) 18201 case $GXX,$cc_basename in 18202 ,cl* | no,cl*) 18203 # Native MSVC 18204 # hardcode_libdir_flag_spec is actually meaningless, as there is 18205 # no search path for DLLs. 18206 hardcode_libdir_flag_spec_CXX=' ' 18207 allow_undefined_flag_CXX=unsupported 18208 always_export_symbols_CXX=yes 18209 file_list_spec_CXX='@' 18210 # Tell ltmain to make .lib files, not .a files. 18211 libext=lib 18212 # Tell ltmain to make .dll files, not .so files. 18213 shrext_cmds=".dll" 18214 # FIXME: Setting linknames here is a bad hack. 18215 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 18216 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 18217 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 18218 else 18219 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 18220 fi~ 18221 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 18222 linknames=' 18223 # The linker will not automatically build a static lib if we build a DLL. 18224 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 18225 enable_shared_with_static_runtimes_CXX=yes 18226 # Don't use ranlib 18227 old_postinstall_cmds_CXX='chmod 644 $oldlib' 18228 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 18229 lt_tool_outputfile="@TOOL_OUTPUT@"~ 18230 case $lt_outputfile in 18231 *.exe|*.EXE) ;; 18232 *) 18233 lt_outputfile="$lt_outputfile.exe" 18234 lt_tool_outputfile="$lt_tool_outputfile.exe" 18235 ;; 18236 esac~ 18237 func_to_tool_file "$lt_outputfile"~ 18238 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 18239 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 18240 $RM "$lt_outputfile.manifest"; 18241 fi' 18242 ;; 18243 *) 18244 # g++ 18245 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 18246 # as there is no search path for DLLs. 18247 hardcode_libdir_flag_spec_CXX='-L$libdir' 18248 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' 18249 allow_undefined_flag_CXX=unsupported 18250 always_export_symbols_CXX=no 18251 enable_shared_with_static_runtimes_CXX=yes 18252 18253 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 18254 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 18255 # If the export-symbols file already is a .def file (1st line 18256 # is EXPORTS), use it as is; otherwise, prepend... 18257 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 18258 cp $export_symbols $output_objdir/$soname.def; 18259 else 18260 echo EXPORTS > $output_objdir/$soname.def; 18261 cat $export_symbols >> $output_objdir/$soname.def; 18262 fi~ 18263 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 18264 else 18265 ld_shlibs_CXX=no 18266 fi 18267 ;; 18268 esac 18269 ;; 18270 darwin* | rhapsody*) 18271 18272 18273 archive_cmds_need_lc_CXX=no 18274 hardcode_direct_CXX=no 18275 hardcode_automatic_CXX=yes 18276 hardcode_shlibpath_var_CXX=unsupported 18277 if test "$lt_cv_ld_force_load" = "yes"; then 18278 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 18279 18280 else 18281 whole_archive_flag_spec_CXX='' 18282 fi 18283 link_all_deplibs_CXX=yes 18284 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 18285 case $cc_basename in 18286 ifort*) _lt_dar_can_shared=yes ;; 18287 *) _lt_dar_can_shared=$GCC ;; 18288 esac 18289 if test "$_lt_dar_can_shared" = "yes"; then 18290 output_verbose_link_cmd=func_echo_all 18291 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 18292 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 18293 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 18294 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 18295 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 18296 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" 18297 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" 18298 fi 18299 18300 else 18301 ld_shlibs_CXX=no 18302 fi 18303 18304 ;; 18305 18306 dgux*) 18307 case $cc_basename in 18308 ec++*) 18309 # FIXME: insert proper C++ library support 18310 ld_shlibs_CXX=no 18311 ;; 18312 ghcx*) 18313 # Green Hills C++ Compiler 18314 # FIXME: insert proper C++ library support 18315 ld_shlibs_CXX=no 18316 ;; 18317 *) 18318 # FIXME: insert proper C++ library support 18319 ld_shlibs_CXX=no 18320 ;; 18321 esac 18322 ;; 18323 18324 freebsd2.*) 18325 # C++ shared libraries reported to be fairly broken before 18326 # switch to ELF 18327 ld_shlibs_CXX=no 18328 ;; 18329 18330 freebsd-elf*) 18331 archive_cmds_need_lc_CXX=no 18332 ;; 18333 18334 freebsd* | dragonfly*) 18335 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 18336 # conventions 18337 ld_shlibs_CXX=yes 18338 ;; 18339 18340 gnu*) 18341 ;; 18342 18343 haiku*) 18344 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18345 link_all_deplibs_CXX=yes 18346 ;; 18347 18348 hpux9*) 18349 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 18350 hardcode_libdir_separator_CXX=: 18351 export_dynamic_flag_spec_CXX='${wl}-E' 18352 hardcode_direct_CXX=yes 18353 hardcode_minus_L_CXX=yes # Not in the search PATH, 18354 # but as the default 18355 # location of the library. 18356 18357 case $cc_basename in 18358 CC*) 18359 # FIXME: insert proper C++ library support 18360 ld_shlibs_CXX=no 18361 ;; 18362 aCC*) 18363 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 18364 # Commands to make compiler produce verbose output that lists 18365 # what "hidden" libraries, object files and flags are used when 18366 # linking a shared library. 18367 # 18368 # There doesn't appear to be a way to prevent this compiler from 18369 # explicitly linking system object files so we need to strip them 18370 # from the output so that they don't get included in the library 18371 # dependencies. 18372 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 18373 ;; 18374 *) 18375 if test "$GXX" = yes; then 18376 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 18377 else 18378 # FIXME: insert proper C++ library support 18379 ld_shlibs_CXX=no 18380 fi 18381 ;; 18382 esac 18383 ;; 18384 18385 hpux10*|hpux11*) 18386 if test $with_gnu_ld = no; then 18387 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 18388 hardcode_libdir_separator_CXX=: 18389 18390 case $host_cpu in 18391 hppa*64*|ia64*) 18392 ;; 18393 *) 18394 export_dynamic_flag_spec_CXX='${wl}-E' 18395 ;; 18396 esac 18397 fi 18398 case $host_cpu in 18399 hppa*64*|ia64*) 18400 hardcode_direct_CXX=no 18401 hardcode_shlibpath_var_CXX=no 18402 ;; 18403 *) 18404 hardcode_direct_CXX=yes 18405 hardcode_direct_absolute_CXX=yes 18406 hardcode_minus_L_CXX=yes # Not in the search PATH, 18407 # but as the default 18408 # location of the library. 18409 ;; 18410 esac 18411 18412 case $cc_basename in 18413 CC*) 18414 # FIXME: insert proper C++ library support 18415 ld_shlibs_CXX=no 18416 ;; 18417 aCC*) 18418 case $host_cpu in 18419 hppa*64*) 18420 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 18421 ;; 18422 ia64*) 18423 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 18424 ;; 18425 *) 18426 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 18427 ;; 18428 esac 18429 # Commands to make compiler produce verbose output that lists 18430 # what "hidden" libraries, object files and flags are used when 18431 # linking a shared library. 18432 # 18433 # There doesn't appear to be a way to prevent this compiler from 18434 # explicitly linking system object files so we need to strip them 18435 # from the output so that they don't get included in the library 18436 # dependencies. 18437 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 18438 ;; 18439 *) 18440 if test "$GXX" = yes; then 18441 if test $with_gnu_ld = no; then 18442 case $host_cpu in 18443 hppa*64*) 18444 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 18445 ;; 18446 ia64*) 18447 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 18448 ;; 18449 *) 18450 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 18451 ;; 18452 esac 18453 fi 18454 else 18455 # FIXME: insert proper C++ library support 18456 ld_shlibs_CXX=no 18457 fi 18458 ;; 18459 esac 18460 ;; 18461 18462 interix[3-9]*) 18463 hardcode_direct_CXX=no 18464 hardcode_shlibpath_var_CXX=no 18465 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 18466 export_dynamic_flag_spec_CXX='${wl}-E' 18467 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 18468 # Instead, shared libraries are loaded at an image base (0x10000000 by 18469 # default) and relocated if they conflict, which is a slow very memory 18470 # consuming and fragmenting process. To avoid this, we pick a random, 18471 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 18472 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 18473 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 18474 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 18475 ;; 18476 irix5* | irix6*) 18477 case $cc_basename in 18478 CC*) 18479 # SGI C++ 18480 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 18481 18482 # Archives containing C++ object files must be created using 18483 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 18484 # necessary to make sure instantiated templates are included 18485 # in the archive. 18486 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 18487 ;; 18488 *) 18489 if test "$GXX" = yes; then 18490 if test "$with_gnu_ld" = no; then 18491 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 18492 else 18493 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' 18494 fi 18495 fi 18496 link_all_deplibs_CXX=yes 18497 ;; 18498 esac 18499 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 18500 hardcode_libdir_separator_CXX=: 18501 inherit_rpath_CXX=yes 18502 ;; 18503 18504 linux* | k*bsd*-gnu | kopensolaris*-gnu) 18505 case $cc_basename in 18506 KCC*) 18507 # Kuck and Associates, Inc. (KAI) C++ Compiler 18508 18509 # KCC will only create a shared library if the output file 18510 # ends with ".so" (or ".sl" for HP-UX), so rename the library 18511 # to its proper name (with version) after linking. 18512 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 18513 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' 18514 # Commands to make compiler produce verbose output that lists 18515 # what "hidden" libraries, object files and flags are used when 18516 # linking a shared library. 18517 # 18518 # There doesn't appear to be a way to prevent this compiler from 18519 # explicitly linking system object files so we need to strip them 18520 # from the output so that they don't get included in the library 18521 # dependencies. 18522 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 18523 18524 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 18525 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 18526 18527 # Archives containing C++ object files must be created using 18528 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 18529 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 18530 ;; 18531 icpc* | ecpc* ) 18532 # Intel C++ 18533 with_gnu_ld=yes 18534 # version 8.0 and above of icpc choke on multiply defined symbols 18535 # if we add $predep_objects and $postdep_objects, however 7.1 and 18536 # earlier do not add the objects themselves. 18537 case `$CC -V 2>&1` in 18538 *"Version 7."*) 18539 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 18540 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 18541 ;; 18542 *) # Version 8.0 or newer 18543 tmp_idyn= 18544 case $host_cpu in 18545 ia64*) tmp_idyn=' -i_dynamic';; 18546 esac 18547 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18548 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 18549 ;; 18550 esac 18551 archive_cmds_need_lc_CXX=no 18552 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 18553 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 18554 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 18555 ;; 18556 pgCC* | pgcpp*) 18557 # Portland Group C++ compiler 18558 case `$CC -V` in 18559 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 18560 prelink_cmds_CXX='tpldir=Template.dir~ 18561 rm -rf $tpldir~ 18562 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 18563 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 18564 old_archive_cmds_CXX='tpldir=Template.dir~ 18565 rm -rf $tpldir~ 18566 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 18567 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 18568 $RANLIB $oldlib' 18569 archive_cmds_CXX='tpldir=Template.dir~ 18570 rm -rf $tpldir~ 18571 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 18572 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 18573 archive_expsym_cmds_CXX='tpldir=Template.dir~ 18574 rm -rf $tpldir~ 18575 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 18576 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 18577 ;; 18578 *) # Version 6 and above use weak symbols 18579 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 18580 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 18581 ;; 18582 esac 18583 18584 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 18585 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 18586 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 18587 ;; 18588 cxx*) 18589 # Compaq C++ 18590 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 18591 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' 18592 18593 runpath_var=LD_RUN_PATH 18594 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 18595 hardcode_libdir_separator_CXX=: 18596 18597 # Commands to make compiler produce verbose output that lists 18598 # what "hidden" libraries, object files and flags are used when 18599 # linking a shared library. 18600 # 18601 # There doesn't appear to be a way to prevent this compiler from 18602 # explicitly linking system object files so we need to strip them 18603 # from the output so that they don't get included in the library 18604 # dependencies. 18605 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' 18606 ;; 18607 xl* | mpixl* | bgxl*) 18608 # IBM XL 8.0 on PPC, with GNU ld 18609 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 18610 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 18611 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18612 if test "x$supports_anon_versioning" = xyes; then 18613 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 18614 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 18615 echo "local: *; };" >> $output_objdir/$libname.ver~ 18616 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 18617 fi 18618 ;; 18619 *) 18620 case `$CC -V 2>&1 | sed 5q` in 18621 *Sun\ C*) 18622 # Sun C++ 5.9 18623 no_undefined_flag_CXX=' -zdefs' 18624 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 18625 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 18626 hardcode_libdir_flag_spec_CXX='-R$libdir' 18627 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 18628 compiler_needs_object_CXX=yes 18629 18630 # Not sure whether something based on 18631 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 18632 # would be better. 18633 output_verbose_link_cmd='func_echo_all' 18634 18635 # Archives containing C++ object files must be created using 18636 # "CC -xar", where "CC" is the Sun C++ compiler. This is 18637 # necessary to make sure instantiated templates are included 18638 # in the archive. 18639 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 18640 ;; 18641 esac 18642 ;; 18643 esac 18644 ;; 18645 18646 lynxos*) 18647 # FIXME: insert proper C++ library support 18648 ld_shlibs_CXX=no 18649 ;; 18650 18651 m88k*) 18652 # FIXME: insert proper C++ library support 18653 ld_shlibs_CXX=no 18654 ;; 18655 18656 mvs*) 18657 case $cc_basename in 18658 cxx*) 18659 # FIXME: insert proper C++ library support 18660 ld_shlibs_CXX=no 18661 ;; 18662 *) 18663 # FIXME: insert proper C++ library support 18664 ld_shlibs_CXX=no 18665 ;; 18666 esac 18667 ;; 18668 18669 netbsd*) 18670 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 18671 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 18672 wlarc= 18673 hardcode_libdir_flag_spec_CXX='-R$libdir' 18674 hardcode_direct_CXX=yes 18675 hardcode_shlibpath_var_CXX=no 18676 fi 18677 # Workaround some broken pre-1.5 toolchains 18678 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 18679 ;; 18680 18681 *nto* | *qnx*) 18682 ld_shlibs_CXX=yes 18683 ;; 18684 18685 openbsd2*) 18686 # C++ shared libraries are fairly broken 18687 ld_shlibs_CXX=no 18688 ;; 18689 18690 openbsd*) 18691 if test -f /usr/libexec/ld.so; then 18692 hardcode_direct_CXX=yes 18693 hardcode_shlibpath_var_CXX=no 18694 hardcode_direct_absolute_CXX=yes 18695 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 18696 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 18697 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18698 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 18699 export_dynamic_flag_spec_CXX='${wl}-E' 18700 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 18701 fi 18702 output_verbose_link_cmd=func_echo_all 18703 else 18704 ld_shlibs_CXX=no 18705 fi 18706 ;; 18707 18708 osf3* | osf4* | osf5*) 18709 case $cc_basename in 18710 KCC*) 18711 # Kuck and Associates, Inc. (KAI) C++ Compiler 18712 18713 # KCC will only create a shared library if the output file 18714 # ends with ".so" (or ".sl" for HP-UX), so rename the library 18715 # to its proper name (with version) after linking. 18716 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 18717 18718 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 18719 hardcode_libdir_separator_CXX=: 18720 18721 # Archives containing C++ object files must be created using 18722 # the KAI C++ compiler. 18723 case $host in 18724 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 18725 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 18726 esac 18727 ;; 18728 RCC*) 18729 # Rational C++ 2.4.1 18730 # FIXME: insert proper C++ library support 18731 ld_shlibs_CXX=no 18732 ;; 18733 cxx*) 18734 case $host in 18735 osf3*) 18736 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 18737 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 18738 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 18739 ;; 18740 *) 18741 allow_undefined_flag_CXX=' -expect_unresolved \*' 18742 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 18743 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 18744 echo "-hidden">> $lib.exp~ 18745 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~ 18746 $RM $lib.exp' 18747 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 18748 ;; 18749 esac 18750 18751 hardcode_libdir_separator_CXX=: 18752 18753 # Commands to make compiler produce verbose output that lists 18754 # what "hidden" libraries, object files and flags are used when 18755 # linking a shared library. 18756 # 18757 # There doesn't appear to be a way to prevent this compiler from 18758 # explicitly linking system object files so we need to strip them 18759 # from the output so that they don't get included in the library 18760 # dependencies. 18761 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 18762 ;; 18763 *) 18764 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 18765 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 18766 case $host in 18767 osf3*) 18768 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 18769 ;; 18770 *) 18771 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 18772 ;; 18773 esac 18774 18775 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 18776 hardcode_libdir_separator_CXX=: 18777 18778 # Commands to make compiler produce verbose output that lists 18779 # what "hidden" libraries, object files and flags are used when 18780 # linking a shared library. 18781 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 18782 18783 else 18784 # FIXME: insert proper C++ library support 18785 ld_shlibs_CXX=no 18786 fi 18787 ;; 18788 esac 18789 ;; 18790 18791 psos*) 18792 # FIXME: insert proper C++ library support 18793 ld_shlibs_CXX=no 18794 ;; 18795 18796 sunos4*) 18797 case $cc_basename in 18798 CC*) 18799 # Sun C++ 4.x 18800 # FIXME: insert proper C++ library support 18801 ld_shlibs_CXX=no 18802 ;; 18803 lcc*) 18804 # Lucid 18805 # FIXME: insert proper C++ library support 18806 ld_shlibs_CXX=no 18807 ;; 18808 *) 18809 # FIXME: insert proper C++ library support 18810 ld_shlibs_CXX=no 18811 ;; 18812 esac 18813 ;; 18814 18815 solaris*) 18816 case $cc_basename in 18817 CC* | sunCC*) 18818 # Sun C++ 4.2, 5.x and Centerline C++ 18819 archive_cmds_need_lc_CXX=yes 18820 no_undefined_flag_CXX=' -zdefs' 18821 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 18822 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 18823 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 18824 18825 hardcode_libdir_flag_spec_CXX='-R$libdir' 18826 hardcode_shlibpath_var_CXX=no 18827 case $host_os in 18828 solaris2.[0-5] | solaris2.[0-5].*) ;; 18829 *) 18830 # The compiler driver will combine and reorder linker options, 18831 # but understands `-z linker_flag'. 18832 # Supported since Solaris 2.6 (maybe 2.5.1?) 18833 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 18834 ;; 18835 esac 18836 link_all_deplibs_CXX=yes 18837 18838 output_verbose_link_cmd='func_echo_all' 18839 18840 # Archives containing C++ object files must be created using 18841 # "CC -xar", where "CC" is the Sun C++ compiler. This is 18842 # necessary to make sure instantiated templates are included 18843 # in the archive. 18844 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 18845 ;; 18846 gcx*) 18847 # Green Hills C++ Compiler 18848 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 18849 18850 # The C++ compiler must be used to create the archive. 18851 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 18852 ;; 18853 *) 18854 # GNU C++ compiler with Solaris linker 18855 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 18856 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 18857 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 18858 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 18859 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 18860 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 18861 18862 # Commands to make compiler produce verbose output that lists 18863 # what "hidden" libraries, object files and flags are used when 18864 # linking a shared library. 18865 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 18866 else 18867 # g++ 2.7 appears to require `-G' NOT `-shared' on this 18868 # platform. 18869 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 18870 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 18871 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 18872 18873 # Commands to make compiler produce verbose output that lists 18874 # what "hidden" libraries, object files and flags are used when 18875 # linking a shared library. 18876 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 18877 fi 18878 18879 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 18880 case $host_os in 18881 solaris2.[0-5] | solaris2.[0-5].*) ;; 18882 *) 18883 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 18884 ;; 18885 esac 18886 fi 18887 ;; 18888 esac 18889 ;; 18890 18891 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 18892 no_undefined_flag_CXX='${wl}-z,text' 18893 archive_cmds_need_lc_CXX=no 18894 hardcode_shlibpath_var_CXX=no 18895 runpath_var='LD_RUN_PATH' 18896 18897 case $cc_basename in 18898 CC*) 18899 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18900 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18901 ;; 18902 *) 18903 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18904 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18905 ;; 18906 esac 18907 ;; 18908 18909 sysv5* | sco3.2v5* | sco5v6*) 18910 # Note: We can NOT use -z defs as we might desire, because we do not 18911 # link with -lc, and that would cause any symbols used from libc to 18912 # always be unresolved, which means just about no library would 18913 # ever link correctly. If we're not using GNU ld we use -z text 18914 # though, which does catch some bad symbols but isn't as heavy-handed 18915 # as -z defs. 18916 no_undefined_flag_CXX='${wl}-z,text' 18917 allow_undefined_flag_CXX='${wl}-z,nodefs' 18918 archive_cmds_need_lc_CXX=no 18919 hardcode_shlibpath_var_CXX=no 18920 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 18921 hardcode_libdir_separator_CXX=':' 18922 link_all_deplibs_CXX=yes 18923 export_dynamic_flag_spec_CXX='${wl}-Bexport' 18924 runpath_var='LD_RUN_PATH' 18925 18926 case $cc_basename in 18927 CC*) 18928 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18929 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18930 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 18931 '"$old_archive_cmds_CXX" 18932 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 18933 '"$reload_cmds_CXX" 18934 ;; 18935 *) 18936 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18937 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18938 ;; 18939 esac 18940 ;; 18941 18942 tandem*) 18943 case $cc_basename in 18944 NCC*) 18945 # NonStop-UX NCC 3.20 18946 # FIXME: insert proper C++ library support 18947 ld_shlibs_CXX=no 18948 ;; 18949 *) 18950 # FIXME: insert proper C++ library support 18951 ld_shlibs_CXX=no 18952 ;; 18953 esac 18954 ;; 18955 18956 vxworks*) 18957 # FIXME: insert proper C++ library support 18958 ld_shlibs_CXX=no 18959 ;; 18960 18961 *) 18962 # FIXME: insert proper C++ library support 18963 ld_shlibs_CXX=no 18964 ;; 18965 esac 18966 18967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 18968$as_echo "$ld_shlibs_CXX" >&6; } 18969 test "$ld_shlibs_CXX" = no && can_build_shared=no 18970 18971 GCC_CXX="$GXX" 18972 LD_CXX="$LD" 18973 18974 ## CAVEAT EMPTOR: 18975 ## There is no encapsulation within the following macros, do not change 18976 ## the running order or otherwise move them around unless you know exactly 18977 ## what you are doing... 18978 # Dependencies to place before and after the object being linked: 18979predep_objects_CXX= 18980postdep_objects_CXX= 18981predeps_CXX= 18982postdeps_CXX= 18983compiler_lib_search_path_CXX= 18984 18985cat > conftest.$ac_ext <<_LT_EOF 18986class Foo 18987{ 18988public: 18989 Foo (void) { a = 0; } 18990private: 18991 int a; 18992}; 18993_LT_EOF 18994 18995 18996_lt_libdeps_save_CFLAGS=$CFLAGS 18997case "$CC $CFLAGS " in #( 18998*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 18999*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 19000*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 19001esac 19002 19003if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 19004 (eval $ac_compile) 2>&5 19005 ac_status=$? 19006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19007 test $ac_status = 0; }; then 19008 # Parse the compiler output and extract the necessary 19009 # objects, libraries and library flags. 19010 19011 # Sentinel used to keep track of whether or not we are before 19012 # the conftest object file. 19013 pre_test_object_deps_done=no 19014 19015 for p in `eval "$output_verbose_link_cmd"`; do 19016 case ${prev}${p} in 19017 19018 -L* | -R* | -l*) 19019 # Some compilers place space between "-{L,R}" and the path. 19020 # Remove the space. 19021 if test $p = "-L" || 19022 test $p = "-R"; then 19023 prev=$p 19024 continue 19025 fi 19026 19027 # Expand the sysroot to ease extracting the directories later. 19028 if test -z "$prev"; then 19029 case $p in 19030 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 19031 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 19032 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 19033 esac 19034 fi 19035 case $p in 19036 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 19037 esac 19038 if test "$pre_test_object_deps_done" = no; then 19039 case ${prev} in 19040 -L | -R) 19041 # Internal compiler library paths should come after those 19042 # provided the user. The postdeps already come after the 19043 # user supplied libs so there is no need to process them. 19044 if test -z "$compiler_lib_search_path_CXX"; then 19045 compiler_lib_search_path_CXX="${prev}${p}" 19046 else 19047 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 19048 fi 19049 ;; 19050 # The "-l" case would never come before the object being 19051 # linked, so don't bother handling this case. 19052 esac 19053 else 19054 if test -z "$postdeps_CXX"; then 19055 postdeps_CXX="${prev}${p}" 19056 else 19057 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 19058 fi 19059 fi 19060 prev= 19061 ;; 19062 19063 *.lto.$objext) ;; # Ignore GCC LTO objects 19064 *.$objext) 19065 # This assumes that the test object file only shows up 19066 # once in the compiler output. 19067 if test "$p" = "conftest.$objext"; then 19068 pre_test_object_deps_done=yes 19069 continue 19070 fi 19071 19072 if test "$pre_test_object_deps_done" = no; then 19073 if test -z "$predep_objects_CXX"; then 19074 predep_objects_CXX="$p" 19075 else 19076 predep_objects_CXX="$predep_objects_CXX $p" 19077 fi 19078 else 19079 if test -z "$postdep_objects_CXX"; then 19080 postdep_objects_CXX="$p" 19081 else 19082 postdep_objects_CXX="$postdep_objects_CXX $p" 19083 fi 19084 fi 19085 ;; 19086 19087 *) ;; # Ignore the rest. 19088 19089 esac 19090 done 19091 19092 # Clean up. 19093 rm -f a.out a.exe 19094else 19095 echo "libtool.m4: error: problem compiling CXX test program" 19096fi 19097 19098$RM -f confest.$objext 19099CFLAGS=$_lt_libdeps_save_CFLAGS 19100 19101# PORTME: override above test on systems where it is broken 19102case $host_os in 19103interix[3-9]*) 19104 # Interix 3.5 installs completely hosed .la files for C++, so rather than 19105 # hack all around it, let's just trust "g++" to DTRT. 19106 predep_objects_CXX= 19107 postdep_objects_CXX= 19108 postdeps_CXX= 19109 ;; 19110 19111linux*) 19112 case `$CC -V 2>&1 | sed 5q` in 19113 *Sun\ C*) 19114 # Sun C++ 5.9 19115 19116 # The more standards-conforming stlport4 library is 19117 # incompatible with the Cstd library. Avoid specifying 19118 # it if it's in CXXFLAGS. Ignore libCrun as 19119 # -library=stlport4 depends on it. 19120 case " $CXX $CXXFLAGS " in 19121 *" -library=stlport4 "*) 19122 solaris_use_stlport4=yes 19123 ;; 19124 esac 19125 19126 if test "$solaris_use_stlport4" != yes; then 19127 postdeps_CXX='-library=Cstd -library=Crun' 19128 fi 19129 ;; 19130 esac 19131 ;; 19132 19133solaris*) 19134 case $cc_basename in 19135 CC* | sunCC*) 19136 # The more standards-conforming stlport4 library is 19137 # incompatible with the Cstd library. Avoid specifying 19138 # it if it's in CXXFLAGS. Ignore libCrun as 19139 # -library=stlport4 depends on it. 19140 case " $CXX $CXXFLAGS " in 19141 *" -library=stlport4 "*) 19142 solaris_use_stlport4=yes 19143 ;; 19144 esac 19145 19146 # Adding this requires a known-good setup of shared libraries for 19147 # Sun compiler versions before 5.6, else PIC objects from an old 19148 # archive will be linked into the output, leading to subtle bugs. 19149 if test "$solaris_use_stlport4" != yes; then 19150 postdeps_CXX='-library=Cstd -library=Crun' 19151 fi 19152 ;; 19153 esac 19154 ;; 19155esac 19156 19157 19158case " $postdeps_CXX " in 19159*" -lc "*) archive_cmds_need_lc_CXX=no ;; 19160esac 19161 compiler_lib_search_dirs_CXX= 19162if test -n "${compiler_lib_search_path_CXX}"; then 19163 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 19164fi 19165 19166 19167 19168 19169 19170 19171 19172 19173 19174 19175 19176 19177 19178 19179 19180 19181 19182 19183 19184 19185 19186 19187 19188 19189 19190 19191 19192 19193 19194 19195 19196 lt_prog_compiler_wl_CXX= 19197lt_prog_compiler_pic_CXX= 19198lt_prog_compiler_static_CXX= 19199 19200 19201 # C++ specific cases for pic, static, wl, etc. 19202 if test "$GXX" = yes; then 19203 lt_prog_compiler_wl_CXX='-Wl,' 19204 lt_prog_compiler_static_CXX='-static' 19205 19206 case $host_os in 19207 aix*) 19208 # All AIX code is PIC. 19209 if test "$host_cpu" = ia64; then 19210 # AIX 5 now supports IA64 processor 19211 lt_prog_compiler_static_CXX='-Bstatic' 19212 fi 19213 ;; 19214 19215 amigaos*) 19216 case $host_cpu in 19217 powerpc) 19218 # see comment about AmigaOS4 .so support 19219 lt_prog_compiler_pic_CXX='-fPIC' 19220 ;; 19221 m68k) 19222 # FIXME: we need at least 68020 code to build shared libraries, but 19223 # adding the `-m68020' flag to GCC prevents building anything better, 19224 # like `-m68040'. 19225 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 19226 ;; 19227 esac 19228 ;; 19229 19230 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 19231 # PIC is the default for these OSes. 19232 ;; 19233 mingw* | cygwin* | os2* | pw32* | cegcc*) 19234 # This hack is so that the source file can tell whether it is being 19235 # built for inclusion in a dll (and should export symbols for example). 19236 # Although the cygwin gcc ignores -fPIC, still need this for old-style 19237 # (--disable-auto-import) libraries 19238 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 19239 ;; 19240 darwin* | rhapsody*) 19241 # PIC is the default on this platform 19242 # Common symbols not allowed in MH_DYLIB files 19243 lt_prog_compiler_pic_CXX='-fno-common' 19244 ;; 19245 *djgpp*) 19246 # DJGPP does not support shared libraries at all 19247 lt_prog_compiler_pic_CXX= 19248 ;; 19249 haiku*) 19250 # PIC is the default for Haiku. 19251 # The "-static" flag exists, but is broken. 19252 lt_prog_compiler_static_CXX= 19253 ;; 19254 interix[3-9]*) 19255 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 19256 # Instead, we relocate shared libraries at runtime. 19257 ;; 19258 sysv4*MP*) 19259 if test -d /usr/nec; then 19260 lt_prog_compiler_pic_CXX=-Kconform_pic 19261 fi 19262 ;; 19263 hpux*) 19264 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 19265 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 19266 # sets the default TLS model and affects inlining. 19267 case $host_cpu in 19268 hppa*64*) 19269 ;; 19270 *) 19271 lt_prog_compiler_pic_CXX='-fPIC' 19272 ;; 19273 esac 19274 ;; 19275 *qnx* | *nto*) 19276 # QNX uses GNU C++, but need to define -shared option too, otherwise 19277 # it will coredump. 19278 lt_prog_compiler_pic_CXX='-fPIC -shared' 19279 ;; 19280 *) 19281 lt_prog_compiler_pic_CXX='-fPIC' 19282 ;; 19283 esac 19284 else 19285 case $host_os in 19286 aix[4-9]*) 19287 # All AIX code is PIC. 19288 if test "$host_cpu" = ia64; then 19289 # AIX 5 now supports IA64 processor 19290 lt_prog_compiler_static_CXX='-Bstatic' 19291 else 19292 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 19293 fi 19294 ;; 19295 chorus*) 19296 case $cc_basename in 19297 cxch68*) 19298 # Green Hills C++ Compiler 19299 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 19300 ;; 19301 esac 19302 ;; 19303 mingw* | cygwin* | os2* | pw32* | cegcc*) 19304 # This hack is so that the source file can tell whether it is being 19305 # built for inclusion in a dll (and should export symbols for example). 19306 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 19307 ;; 19308 dgux*) 19309 case $cc_basename in 19310 ec++*) 19311 lt_prog_compiler_pic_CXX='-KPIC' 19312 ;; 19313 ghcx*) 19314 # Green Hills C++ Compiler 19315 lt_prog_compiler_pic_CXX='-pic' 19316 ;; 19317 *) 19318 ;; 19319 esac 19320 ;; 19321 freebsd* | dragonfly*) 19322 # FreeBSD uses GNU C++ 19323 ;; 19324 hpux9* | hpux10* | hpux11*) 19325 case $cc_basename in 19326 CC*) 19327 lt_prog_compiler_wl_CXX='-Wl,' 19328 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 19329 if test "$host_cpu" != ia64; then 19330 lt_prog_compiler_pic_CXX='+Z' 19331 fi 19332 ;; 19333 aCC*) 19334 lt_prog_compiler_wl_CXX='-Wl,' 19335 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 19336 case $host_cpu in 19337 hppa*64*|ia64*) 19338 # +Z the default 19339 ;; 19340 *) 19341 lt_prog_compiler_pic_CXX='+Z' 19342 ;; 19343 esac 19344 ;; 19345 *) 19346 ;; 19347 esac 19348 ;; 19349 interix*) 19350 # This is c89, which is MS Visual C++ (no shared libs) 19351 # Anyone wants to do a port? 19352 ;; 19353 irix5* | irix6* | nonstopux*) 19354 case $cc_basename in 19355 CC*) 19356 lt_prog_compiler_wl_CXX='-Wl,' 19357 lt_prog_compiler_static_CXX='-non_shared' 19358 # CC pic flag -KPIC is the default. 19359 ;; 19360 *) 19361 ;; 19362 esac 19363 ;; 19364 linux* | k*bsd*-gnu | kopensolaris*-gnu) 19365 case $cc_basename in 19366 KCC*) 19367 # KAI C++ Compiler 19368 lt_prog_compiler_wl_CXX='--backend -Wl,' 19369 lt_prog_compiler_pic_CXX='-fPIC' 19370 ;; 19371 ecpc* ) 19372 # old Intel C++ for x86_64 which still supported -KPIC. 19373 lt_prog_compiler_wl_CXX='-Wl,' 19374 lt_prog_compiler_pic_CXX='-KPIC' 19375 lt_prog_compiler_static_CXX='-static' 19376 ;; 19377 icpc* ) 19378 # Intel C++, used to be incompatible with GCC. 19379 # ICC 10 doesn't accept -KPIC any more. 19380 lt_prog_compiler_wl_CXX='-Wl,' 19381 lt_prog_compiler_pic_CXX='-fPIC' 19382 lt_prog_compiler_static_CXX='-static' 19383 ;; 19384 pgCC* | pgcpp*) 19385 # Portland Group C++ compiler 19386 lt_prog_compiler_wl_CXX='-Wl,' 19387 lt_prog_compiler_pic_CXX='-fpic' 19388 lt_prog_compiler_static_CXX='-Bstatic' 19389 ;; 19390 cxx*) 19391 # Compaq C++ 19392 # Make sure the PIC flag is empty. It appears that all Alpha 19393 # Linux and Compaq Tru64 Unix objects are PIC. 19394 lt_prog_compiler_pic_CXX= 19395 lt_prog_compiler_static_CXX='-non_shared' 19396 ;; 19397 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 19398 # IBM XL 8.0, 9.0 on PPC and BlueGene 19399 lt_prog_compiler_wl_CXX='-Wl,' 19400 lt_prog_compiler_pic_CXX='-qpic' 19401 lt_prog_compiler_static_CXX='-qstaticlink' 19402 ;; 19403 *) 19404 case `$CC -V 2>&1 | sed 5q` in 19405 *Sun\ C*) 19406 # Sun C++ 5.9 19407 lt_prog_compiler_pic_CXX='-KPIC' 19408 lt_prog_compiler_static_CXX='-Bstatic' 19409 lt_prog_compiler_wl_CXX='-Qoption ld ' 19410 ;; 19411 esac 19412 ;; 19413 esac 19414 ;; 19415 lynxos*) 19416 ;; 19417 m88k*) 19418 ;; 19419 mvs*) 19420 case $cc_basename in 19421 cxx*) 19422 lt_prog_compiler_pic_CXX='-W c,exportall' 19423 ;; 19424 *) 19425 ;; 19426 esac 19427 ;; 19428 netbsd*) 19429 ;; 19430 *qnx* | *nto*) 19431 # QNX uses GNU C++, but need to define -shared option too, otherwise 19432 # it will coredump. 19433 lt_prog_compiler_pic_CXX='-fPIC -shared' 19434 ;; 19435 osf3* | osf4* | osf5*) 19436 case $cc_basename in 19437 KCC*) 19438 lt_prog_compiler_wl_CXX='--backend -Wl,' 19439 ;; 19440 RCC*) 19441 # Rational C++ 2.4.1 19442 lt_prog_compiler_pic_CXX='-pic' 19443 ;; 19444 cxx*) 19445 # Digital/Compaq C++ 19446 lt_prog_compiler_wl_CXX='-Wl,' 19447 # Make sure the PIC flag is empty. It appears that all Alpha 19448 # Linux and Compaq Tru64 Unix objects are PIC. 19449 lt_prog_compiler_pic_CXX= 19450 lt_prog_compiler_static_CXX='-non_shared' 19451 ;; 19452 *) 19453 ;; 19454 esac 19455 ;; 19456 psos*) 19457 ;; 19458 solaris*) 19459 case $cc_basename in 19460 CC* | sunCC*) 19461 # Sun C++ 4.2, 5.x and Centerline C++ 19462 lt_prog_compiler_pic_CXX='-KPIC' 19463 lt_prog_compiler_static_CXX='-Bstatic' 19464 lt_prog_compiler_wl_CXX='-Qoption ld ' 19465 ;; 19466 gcx*) 19467 # Green Hills C++ Compiler 19468 lt_prog_compiler_pic_CXX='-PIC' 19469 ;; 19470 *) 19471 ;; 19472 esac 19473 ;; 19474 sunos4*) 19475 case $cc_basename in 19476 CC*) 19477 # Sun C++ 4.x 19478 lt_prog_compiler_pic_CXX='-pic' 19479 lt_prog_compiler_static_CXX='-Bstatic' 19480 ;; 19481 lcc*) 19482 # Lucid 19483 lt_prog_compiler_pic_CXX='-pic' 19484 ;; 19485 *) 19486 ;; 19487 esac 19488 ;; 19489 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 19490 case $cc_basename in 19491 CC*) 19492 lt_prog_compiler_wl_CXX='-Wl,' 19493 lt_prog_compiler_pic_CXX='-KPIC' 19494 lt_prog_compiler_static_CXX='-Bstatic' 19495 ;; 19496 esac 19497 ;; 19498 tandem*) 19499 case $cc_basename in 19500 NCC*) 19501 # NonStop-UX NCC 3.20 19502 lt_prog_compiler_pic_CXX='-KPIC' 19503 ;; 19504 *) 19505 ;; 19506 esac 19507 ;; 19508 vxworks*) 19509 ;; 19510 *) 19511 lt_prog_compiler_can_build_shared_CXX=no 19512 ;; 19513 esac 19514 fi 19515 19516case $host_os in 19517 # For platforms which do not support PIC, -DPIC is meaningless: 19518 *djgpp*) 19519 lt_prog_compiler_pic_CXX= 19520 ;; 19521 *) 19522 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 19523 ;; 19524esac 19525 19526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 19527$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 19528if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 19529 $as_echo_n "(cached) " >&6 19530else 19531 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 19532fi 19533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 19534$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 19535lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 19536 19537# 19538# Check to make sure the PIC flag actually works. 19539# 19540if test -n "$lt_prog_compiler_pic_CXX"; then 19541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 19542$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 19543if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 19544 $as_echo_n "(cached) " >&6 19545else 19546 lt_cv_prog_compiler_pic_works_CXX=no 19547 ac_outfile=conftest.$ac_objext 19548 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 19549 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 19550 # Insert the option either (1) after the last *FLAGS variable, or 19551 # (2) before a word containing "conftest.", or (3) at the end. 19552 # Note that $ac_compile itself does not contain backslashes and begins 19553 # with a dollar sign (not a hyphen), so the echo should work correctly. 19554 # The option is referenced via a variable to avoid confusing sed. 19555 lt_compile=`echo "$ac_compile" | $SED \ 19556 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 19557 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 19558 -e 's:$: $lt_compiler_flag:'` 19559 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 19560 (eval "$lt_compile" 2>conftest.err) 19561 ac_status=$? 19562 cat conftest.err >&5 19563 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19564 if (exit $ac_status) && test -s "$ac_outfile"; then 19565 # The compiler can only warn and ignore the option if not recognized 19566 # So say no if there are warnings other than the usual output. 19567 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 19568 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 19569 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 19570 lt_cv_prog_compiler_pic_works_CXX=yes 19571 fi 19572 fi 19573 $RM conftest* 19574 19575fi 19576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 19577$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 19578 19579if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 19580 case $lt_prog_compiler_pic_CXX in 19581 "" | " "*) ;; 19582 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 19583 esac 19584else 19585 lt_prog_compiler_pic_CXX= 19586 lt_prog_compiler_can_build_shared_CXX=no 19587fi 19588 19589fi 19590 19591 19592 19593 19594 19595# 19596# Check to make sure the static flag actually works. 19597# 19598wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 19599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 19600$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 19601if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 19602 $as_echo_n "(cached) " >&6 19603else 19604 lt_cv_prog_compiler_static_works_CXX=no 19605 save_LDFLAGS="$LDFLAGS" 19606 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 19607 echo "$lt_simple_link_test_code" > conftest.$ac_ext 19608 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 19609 # The linker can only warn and ignore the option if not recognized 19610 # So say no if there are warnings 19611 if test -s conftest.err; then 19612 # Append any errors to the config.log. 19613 cat conftest.err 1>&5 19614 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 19615 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 19616 if diff conftest.exp conftest.er2 >/dev/null; then 19617 lt_cv_prog_compiler_static_works_CXX=yes 19618 fi 19619 else 19620 lt_cv_prog_compiler_static_works_CXX=yes 19621 fi 19622 fi 19623 $RM -r conftest* 19624 LDFLAGS="$save_LDFLAGS" 19625 19626fi 19627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 19628$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 19629 19630if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 19631 : 19632else 19633 lt_prog_compiler_static_CXX= 19634fi 19635 19636 19637 19638 19639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 19640$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 19641if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 19642 $as_echo_n "(cached) " >&6 19643else 19644 lt_cv_prog_compiler_c_o_CXX=no 19645 $RM -r conftest 2>/dev/null 19646 mkdir conftest 19647 cd conftest 19648 mkdir out 19649 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 19650 19651 lt_compiler_flag="-o out/conftest2.$ac_objext" 19652 # Insert the option either (1) after the last *FLAGS variable, or 19653 # (2) before a word containing "conftest.", or (3) at the end. 19654 # Note that $ac_compile itself does not contain backslashes and begins 19655 # with a dollar sign (not a hyphen), so the echo should work correctly. 19656 lt_compile=`echo "$ac_compile" | $SED \ 19657 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 19658 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 19659 -e 's:$: $lt_compiler_flag:'` 19660 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 19661 (eval "$lt_compile" 2>out/conftest.err) 19662 ac_status=$? 19663 cat out/conftest.err >&5 19664 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19665 if (exit $ac_status) && test -s out/conftest2.$ac_objext 19666 then 19667 # The compiler can only warn and ignore the option if not recognized 19668 # So say no if there are warnings 19669 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 19670 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 19671 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 19672 lt_cv_prog_compiler_c_o_CXX=yes 19673 fi 19674 fi 19675 chmod u+w . 2>&5 19676 $RM conftest* 19677 # SGI C++ compiler will create directory out/ii_files/ for 19678 # template instantiation 19679 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 19680 $RM out/* && rmdir out 19681 cd .. 19682 $RM -r conftest 19683 $RM conftest* 19684 19685fi 19686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 19687$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 19688 19689 19690 19691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 19692$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 19693if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 19694 $as_echo_n "(cached) " >&6 19695else 19696 lt_cv_prog_compiler_c_o_CXX=no 19697 $RM -r conftest 2>/dev/null 19698 mkdir conftest 19699 cd conftest 19700 mkdir out 19701 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 19702 19703 lt_compiler_flag="-o out/conftest2.$ac_objext" 19704 # Insert the option either (1) after the last *FLAGS variable, or 19705 # (2) before a word containing "conftest.", or (3) at the end. 19706 # Note that $ac_compile itself does not contain backslashes and begins 19707 # with a dollar sign (not a hyphen), so the echo should work correctly. 19708 lt_compile=`echo "$ac_compile" | $SED \ 19709 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 19710 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 19711 -e 's:$: $lt_compiler_flag:'` 19712 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 19713 (eval "$lt_compile" 2>out/conftest.err) 19714 ac_status=$? 19715 cat out/conftest.err >&5 19716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19717 if (exit $ac_status) && test -s out/conftest2.$ac_objext 19718 then 19719 # The compiler can only warn and ignore the option if not recognized 19720 # So say no if there are warnings 19721 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 19722 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 19723 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 19724 lt_cv_prog_compiler_c_o_CXX=yes 19725 fi 19726 fi 19727 chmod u+w . 2>&5 19728 $RM conftest* 19729 # SGI C++ compiler will create directory out/ii_files/ for 19730 # template instantiation 19731 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 19732 $RM out/* && rmdir out 19733 cd .. 19734 $RM -r conftest 19735 $RM conftest* 19736 19737fi 19738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 19739$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 19740 19741 19742 19743 19744hard_links="nottested" 19745if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 19746 # do not overwrite the value of need_locks provided by the user 19747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 19748$as_echo_n "checking if we can lock with hard links... " >&6; } 19749 hard_links=yes 19750 $RM conftest* 19751 ln conftest.a conftest.b 2>/dev/null && hard_links=no 19752 touch conftest.a 19753 ln conftest.a conftest.b 2>&5 || hard_links=no 19754 ln conftest.a conftest.b 2>/dev/null && hard_links=no 19755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 19756$as_echo "$hard_links" >&6; } 19757 if test "$hard_links" = no; then 19758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 19759$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 19760 need_locks=warn 19761 fi 19762else 19763 need_locks=no 19764fi 19765 19766 19767 19768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 19769$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 19770 19771 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 19772 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 19773 case $host_os in 19774 aix[4-9]*) 19775 # If we're using GNU nm, then we don't want the "-C" option. 19776 # -C means demangle to AIX nm, but means don't demangle with GNU nm 19777 # Also, AIX nm treats weak defined symbols like other global defined 19778 # symbols, whereas GNU nm marks them as "W". 19779 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 19780 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 19781 else 19782 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 19783 fi 19784 ;; 19785 pw32*) 19786 export_symbols_cmds_CXX="$ltdll_cmds" 19787 ;; 19788 cygwin* | mingw* | cegcc*) 19789 case $cc_basename in 19790 cl*) 19791 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 19792 ;; 19793 *) 19794 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 19795 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 19796 ;; 19797 esac 19798 ;; 19799 *) 19800 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 19801 ;; 19802 esac 19803 19804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 19805$as_echo "$ld_shlibs_CXX" >&6; } 19806test "$ld_shlibs_CXX" = no && can_build_shared=no 19807 19808with_gnu_ld_CXX=$with_gnu_ld 19809 19810 19811 19812 19813 19814 19815# 19816# Do we need to explicitly link libc? 19817# 19818case "x$archive_cmds_need_lc_CXX" in 19819x|xyes) 19820 # Assume -lc should be added 19821 archive_cmds_need_lc_CXX=yes 19822 19823 if test "$enable_shared" = yes && test "$GCC" = yes; then 19824 case $archive_cmds_CXX in 19825 *'~'*) 19826 # FIXME: we may have to deal with multi-command sequences. 19827 ;; 19828 '$CC '*) 19829 # Test whether the compiler implicitly links with -lc since on some 19830 # systems, -lgcc has to come before -lc. If gcc already passes -lc 19831 # to ld, don't add -lc before -lgcc. 19832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 19833$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 19834if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 19835 $as_echo_n "(cached) " >&6 19836else 19837 $RM conftest* 19838 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 19839 19840 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 19841 (eval $ac_compile) 2>&5 19842 ac_status=$? 19843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19844 test $ac_status = 0; } 2>conftest.err; then 19845 soname=conftest 19846 lib=conftest 19847 libobjs=conftest.$ac_objext 19848 deplibs= 19849 wl=$lt_prog_compiler_wl_CXX 19850 pic_flag=$lt_prog_compiler_pic_CXX 19851 compiler_flags=-v 19852 linker_flags=-v 19853 verstring= 19854 output_objdir=. 19855 libname=conftest 19856 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 19857 allow_undefined_flag_CXX= 19858 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 19859 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 19860 ac_status=$? 19861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19862 test $ac_status = 0; } 19863 then 19864 lt_cv_archive_cmds_need_lc_CXX=no 19865 else 19866 lt_cv_archive_cmds_need_lc_CXX=yes 19867 fi 19868 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 19869 else 19870 cat conftest.err 1>&5 19871 fi 19872 $RM conftest* 19873 19874fi 19875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 19876$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 19877 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 19878 ;; 19879 esac 19880 fi 19881 ;; 19882esac 19883 19884 19885 19886 19887 19888 19889 19890 19891 19892 19893 19894 19895 19896 19897 19898 19899 19900 19901 19902 19903 19904 19905 19906 19907 19908 19909 19910 19911 19912 19913 19914 19915 19916 19917 19918 19919 19920 19921 19922 19923 19924 19925 19926 19927 19928 19929 19930 19931 19932 19933 19934 19935 19936 19937 19938 19939 19940 19941 19942 19943 19944 19945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 19946$as_echo_n "checking dynamic linker characteristics... " >&6; } 19947 19948library_names_spec= 19949libname_spec='lib$name' 19950soname_spec= 19951shrext_cmds=".so" 19952postinstall_cmds= 19953postuninstall_cmds= 19954finish_cmds= 19955finish_eval= 19956shlibpath_var= 19957shlibpath_overrides_runpath=unknown 19958version_type=none 19959dynamic_linker="$host_os ld.so" 19960sys_lib_dlsearch_path_spec="/lib /usr/lib" 19961need_lib_prefix=unknown 19962hardcode_into_libs=no 19963 19964# when you set need_version to no, make sure it does not cause -set_version 19965# flags to be left without arguments 19966need_version=unknown 19967 19968case $host_os in 19969aix3*) 19970 version_type=linux # correct to gnu/linux during the next big refactor 19971 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 19972 shlibpath_var=LIBPATH 19973 19974 # AIX 3 has no versioning support, so we append a major version to the name. 19975 soname_spec='${libname}${release}${shared_ext}$major' 19976 ;; 19977 19978aix[4-9]*) 19979 version_type=linux # correct to gnu/linux during the next big refactor 19980 need_lib_prefix=no 19981 need_version=no 19982 hardcode_into_libs=yes 19983 if test "$host_cpu" = ia64; then 19984 # AIX 5 supports IA64 19985 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 19986 shlibpath_var=LD_LIBRARY_PATH 19987 else 19988 # With GCC up to 2.95.x, collect2 would create an import file 19989 # for dependence libraries. The import file would start with 19990 # the line `#! .'. This would cause the generated library to 19991 # depend on `.', always an invalid library. This was fixed in 19992 # development snapshots of GCC prior to 3.0. 19993 case $host_os in 19994 aix4 | aix4.[01] | aix4.[01].*) 19995 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 19996 echo ' yes ' 19997 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 19998 : 19999 else 20000 can_build_shared=no 20001 fi 20002 ;; 20003 esac 20004 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 20005 # soname into executable. Probably we can add versioning support to 20006 # collect2, so additional links can be useful in future. 20007 if test "$aix_use_runtimelinking" = yes; then 20008 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 20009 # instead of lib<name>.a to let people know that these are not 20010 # typical AIX shared libraries. 20011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20012 else 20013 # We preserve .a as extension for shared libraries through AIX4.2 20014 # and later when we are not doing run time linking. 20015 library_names_spec='${libname}${release}.a $libname.a' 20016 soname_spec='${libname}${release}${shared_ext}$major' 20017 fi 20018 shlibpath_var=LIBPATH 20019 fi 20020 ;; 20021 20022amigaos*) 20023 case $host_cpu in 20024 powerpc) 20025 # Since July 2007 AmigaOS4 officially supports .so libraries. 20026 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 20027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20028 ;; 20029 m68k) 20030 library_names_spec='$libname.ixlibrary $libname.a' 20031 # Create ${libname}_ixlibrary.a entries in /sys/libs. 20032 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 20033 ;; 20034 esac 20035 ;; 20036 20037beos*) 20038 library_names_spec='${libname}${shared_ext}' 20039 dynamic_linker="$host_os ld.so" 20040 shlibpath_var=LIBRARY_PATH 20041 ;; 20042 20043bsdi[45]*) 20044 version_type=linux # correct to gnu/linux during the next big refactor 20045 need_version=no 20046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20047 soname_spec='${libname}${release}${shared_ext}$major' 20048 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 20049 shlibpath_var=LD_LIBRARY_PATH 20050 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 20051 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 20052 # the default ld.so.conf also contains /usr/contrib/lib and 20053 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 20054 # libtool to hard-code these into programs 20055 ;; 20056 20057cygwin* | mingw* | pw32* | cegcc*) 20058 version_type=windows 20059 shrext_cmds=".dll" 20060 need_version=no 20061 need_lib_prefix=no 20062 20063 case $GCC,$cc_basename in 20064 yes,*) 20065 # gcc 20066 library_names_spec='$libname.dll.a' 20067 # DLL is installed to $(libdir)/../bin by postinstall_cmds 20068 postinstall_cmds='base_file=`basename \${file}`~ 20069 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 20070 dldir=$destdir/`dirname \$dlpath`~ 20071 test -d \$dldir || mkdir -p \$dldir~ 20072 $install_prog $dir/$dlname \$dldir/$dlname~ 20073 chmod a+x \$dldir/$dlname~ 20074 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 20075 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 20076 fi' 20077 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 20078 dlpath=$dir/\$dldll~ 20079 $RM \$dlpath' 20080 shlibpath_overrides_runpath=yes 20081 20082 case $host_os in 20083 cygwin*) 20084 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 20085 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 20086 20087 ;; 20088 mingw* | cegcc*) 20089 # MinGW DLLs use traditional 'lib' prefix 20090 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 20091 ;; 20092 pw32*) 20093 # pw32 DLLs use 'pw' prefix rather than 'lib' 20094 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 20095 ;; 20096 esac 20097 dynamic_linker='Win32 ld.exe' 20098 ;; 20099 20100 *,cl*) 20101 # Native MSVC 20102 libname_spec='$name' 20103 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 20104 library_names_spec='${libname}.dll.lib' 20105 20106 case $build_os in 20107 mingw*) 20108 sys_lib_search_path_spec= 20109 lt_save_ifs=$IFS 20110 IFS=';' 20111 for lt_path in $LIB 20112 do 20113 IFS=$lt_save_ifs 20114 # Let DOS variable expansion print the short 8.3 style file name. 20115 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 20116 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 20117 done 20118 IFS=$lt_save_ifs 20119 # Convert to MSYS style. 20120 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 20121 ;; 20122 cygwin*) 20123 # Convert to unix form, then to dos form, then back to unix form 20124 # but this time dos style (no spaces!) so that the unix form looks 20125 # like /cygdrive/c/PROGRA~1:/cygdr... 20126 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 20127 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 20128 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 20129 ;; 20130 *) 20131 sys_lib_search_path_spec="$LIB" 20132 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 20133 # It is most probably a Windows format PATH. 20134 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 20135 else 20136 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 20137 fi 20138 # FIXME: find the short name or the path components, as spaces are 20139 # common. (e.g. "Program Files" -> "PROGRA~1") 20140 ;; 20141 esac 20142 20143 # DLL is installed to $(libdir)/../bin by postinstall_cmds 20144 postinstall_cmds='base_file=`basename \${file}`~ 20145 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 20146 dldir=$destdir/`dirname \$dlpath`~ 20147 test -d \$dldir || mkdir -p \$dldir~ 20148 $install_prog $dir/$dlname \$dldir/$dlname' 20149 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 20150 dlpath=$dir/\$dldll~ 20151 $RM \$dlpath' 20152 shlibpath_overrides_runpath=yes 20153 dynamic_linker='Win32 link.exe' 20154 ;; 20155 20156 *) 20157 # Assume MSVC wrapper 20158 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 20159 dynamic_linker='Win32 ld.exe' 20160 ;; 20161 esac 20162 # FIXME: first we should search . and the directory the executable is in 20163 shlibpath_var=PATH 20164 ;; 20165 20166darwin* | rhapsody*) 20167 dynamic_linker="$host_os dyld" 20168 version_type=darwin 20169 need_lib_prefix=no 20170 need_version=no 20171 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 20172 soname_spec='${libname}${release}${major}$shared_ext' 20173 shlibpath_overrides_runpath=yes 20174 shlibpath_var=DYLD_LIBRARY_PATH 20175 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 20176 20177 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 20178 ;; 20179 20180dgux*) 20181 version_type=linux # correct to gnu/linux during the next big refactor 20182 need_lib_prefix=no 20183 need_version=no 20184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 20185 soname_spec='${libname}${release}${shared_ext}$major' 20186 shlibpath_var=LD_LIBRARY_PATH 20187 ;; 20188 20189freebsd* | dragonfly*) 20190 # DragonFly does not have aout. When/if they implement a new 20191 # versioning mechanism, adjust this. 20192 if test -x /usr/bin/objformat; then 20193 objformat=`/usr/bin/objformat` 20194 else 20195 case $host_os in 20196 freebsd[23].*) objformat=aout ;; 20197 *) objformat=elf ;; 20198 esac 20199 fi 20200 version_type=freebsd-$objformat 20201 case $version_type in 20202 freebsd-elf*) 20203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 20204 need_version=no 20205 need_lib_prefix=no 20206 ;; 20207 freebsd-*) 20208 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 20209 need_version=yes 20210 ;; 20211 esac 20212 shlibpath_var=LD_LIBRARY_PATH 20213 case $host_os in 20214 freebsd2.*) 20215 shlibpath_overrides_runpath=yes 20216 ;; 20217 freebsd3.[01]* | freebsdelf3.[01]*) 20218 shlibpath_overrides_runpath=yes 20219 hardcode_into_libs=yes 20220 ;; 20221 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 20222 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 20223 shlibpath_overrides_runpath=no 20224 hardcode_into_libs=yes 20225 ;; 20226 *) # from 4.6 on, and DragonFly 20227 shlibpath_overrides_runpath=yes 20228 hardcode_into_libs=yes 20229 ;; 20230 esac 20231 ;; 20232 20233gnu*) 20234 version_type=linux # correct to gnu/linux during the next big refactor 20235 need_lib_prefix=no 20236 need_version=no 20237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 20238 soname_spec='${libname}${release}${shared_ext}$major' 20239 shlibpath_var=LD_LIBRARY_PATH 20240 shlibpath_overrides_runpath=no 20241 hardcode_into_libs=yes 20242 ;; 20243 20244haiku*) 20245 version_type=linux # correct to gnu/linux during the next big refactor 20246 need_lib_prefix=no 20247 need_version=no 20248 dynamic_linker="$host_os runtime_loader" 20249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 20250 soname_spec='${libname}${release}${shared_ext}$major' 20251 shlibpath_var=LIBRARY_PATH 20252 shlibpath_overrides_runpath=yes 20253 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 20254 hardcode_into_libs=yes 20255 ;; 20256 20257hpux9* | hpux10* | hpux11*) 20258 # Give a soname corresponding to the major version so that dld.sl refuses to 20259 # link against other versions. 20260 version_type=sunos 20261 need_lib_prefix=no 20262 need_version=no 20263 case $host_cpu in 20264 ia64*) 20265 shrext_cmds='.so' 20266 hardcode_into_libs=yes 20267 dynamic_linker="$host_os dld.so" 20268 shlibpath_var=LD_LIBRARY_PATH 20269 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 20270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20271 soname_spec='${libname}${release}${shared_ext}$major' 20272 if test "X$HPUX_IA64_MODE" = X32; then 20273 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 20274 else 20275 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 20276 fi 20277 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 20278 ;; 20279 hppa*64*) 20280 shrext_cmds='.sl' 20281 hardcode_into_libs=yes 20282 dynamic_linker="$host_os dld.sl" 20283 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 20284 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 20285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20286 soname_spec='${libname}${release}${shared_ext}$major' 20287 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 20288 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 20289 ;; 20290 *) 20291 shrext_cmds='.sl' 20292 dynamic_linker="$host_os dld.sl" 20293 shlibpath_var=SHLIB_PATH 20294 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 20295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20296 soname_spec='${libname}${release}${shared_ext}$major' 20297 ;; 20298 esac 20299 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 20300 postinstall_cmds='chmod 555 $lib' 20301 # or fails outright, so override atomically: 20302 install_override_mode=555 20303 ;; 20304 20305interix[3-9]*) 20306 version_type=linux # correct to gnu/linux during the next big refactor 20307 need_lib_prefix=no 20308 need_version=no 20309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 20310 soname_spec='${libname}${release}${shared_ext}$major' 20311 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 20312 shlibpath_var=LD_LIBRARY_PATH 20313 shlibpath_overrides_runpath=no 20314 hardcode_into_libs=yes 20315 ;; 20316 20317irix5* | irix6* | nonstopux*) 20318 case $host_os in 20319 nonstopux*) version_type=nonstopux ;; 20320 *) 20321 if test "$lt_cv_prog_gnu_ld" = yes; then 20322 version_type=linux # correct to gnu/linux during the next big refactor 20323 else 20324 version_type=irix 20325 fi ;; 20326 esac 20327 need_lib_prefix=no 20328 need_version=no 20329 soname_spec='${libname}${release}${shared_ext}$major' 20330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 20331 case $host_os in 20332 irix5* | nonstopux*) 20333 libsuff= shlibsuff= 20334 ;; 20335 *) 20336 case $LD in # libtool.m4 will add one of these switches to LD 20337 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 20338 libsuff= shlibsuff= libmagic=32-bit;; 20339 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 20340 libsuff=32 shlibsuff=N32 libmagic=N32;; 20341 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 20342 libsuff=64 shlibsuff=64 libmagic=64-bit;; 20343 *) libsuff= shlibsuff= libmagic=never-match;; 20344 esac 20345 ;; 20346 esac 20347 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 20348 shlibpath_overrides_runpath=no 20349 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 20350 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 20351 hardcode_into_libs=yes 20352 ;; 20353 20354# No shared lib support for Linux oldld, aout, or coff. 20355linux*oldld* | linux*aout* | linux*coff*) 20356 dynamic_linker=no 20357 ;; 20358 20359# This must be glibc/ELF. 20360linux* | k*bsd*-gnu | kopensolaris*-gnu) 20361 version_type=linux # correct to gnu/linux during the next big refactor 20362 need_lib_prefix=no 20363 need_version=no 20364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20365 soname_spec='${libname}${release}${shared_ext}$major' 20366 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 20367 shlibpath_var=LD_LIBRARY_PATH 20368 shlibpath_overrides_runpath=no 20369 20370 # Some binutils ld are patched to set DT_RUNPATH 20371 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 20372 $as_echo_n "(cached) " >&6 20373else 20374 lt_cv_shlibpath_overrides_runpath=no 20375 save_LDFLAGS=$LDFLAGS 20376 save_libdir=$libdir 20377 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 20378 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 20379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20380/* end confdefs.h. */ 20381 20382int 20383main () 20384{ 20385 20386 ; 20387 return 0; 20388} 20389_ACEOF 20390if ac_fn_cxx_try_link "$LINENO"; then : 20391 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 20392 lt_cv_shlibpath_overrides_runpath=yes 20393fi 20394fi 20395rm -f core conftest.err conftest.$ac_objext \ 20396 conftest$ac_exeext conftest.$ac_ext 20397 LDFLAGS=$save_LDFLAGS 20398 libdir=$save_libdir 20399 20400fi 20401 20402 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 20403 20404 # This implies no fast_install, which is unacceptable. 20405 # Some rework will be needed to allow for fast_install 20406 # before this can be enabled. 20407 hardcode_into_libs=yes 20408 20409 # Add ABI-specific directories to the system library path. 20410 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 20411 20412 # Append ld.so.conf contents to the search path 20413 if test -f /etc/ld.so.conf; then 20414 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 20415 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 20416 20417 fi 20418 20419 # We used to test for /lib/ld.so.1 and disable shared libraries on 20420 # powerpc, because MkLinux only supported shared libraries with the 20421 # GNU dynamic linker. Since this was broken with cross compilers, 20422 # most powerpc-linux boxes support dynamic linking these days and 20423 # people can always --disable-shared, the test was removed, and we 20424 # assume the GNU/Linux dynamic linker is in use. 20425 dynamic_linker='GNU/Linux ld.so' 20426 ;; 20427 20428netbsd*) 20429 version_type=sunos 20430 need_lib_prefix=no 20431 need_version=no 20432 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 20433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 20434 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 20435 dynamic_linker='NetBSD (a.out) ld.so' 20436 else 20437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 20438 soname_spec='${libname}${release}${shared_ext}$major' 20439 dynamic_linker='NetBSD ld.elf_so' 20440 fi 20441 shlibpath_var=LD_LIBRARY_PATH 20442 shlibpath_overrides_runpath=yes 20443 hardcode_into_libs=yes 20444 ;; 20445 20446newsos6) 20447 version_type=linux # correct to gnu/linux during the next big refactor 20448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20449 shlibpath_var=LD_LIBRARY_PATH 20450 shlibpath_overrides_runpath=yes 20451 ;; 20452 20453*nto* | *qnx*) 20454 version_type=qnx 20455 need_lib_prefix=no 20456 need_version=no 20457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20458 soname_spec='${libname}${release}${shared_ext}$major' 20459 shlibpath_var=LD_LIBRARY_PATH 20460 shlibpath_overrides_runpath=no 20461 hardcode_into_libs=yes 20462 dynamic_linker='ldqnx.so' 20463 ;; 20464 20465openbsd*) 20466 version_type=sunos 20467 sys_lib_dlsearch_path_spec="/usr/lib" 20468 need_lib_prefix=no 20469 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 20470 case $host_os in 20471 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 20472 *) need_version=no ;; 20473 esac 20474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 20475 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 20476 shlibpath_var=LD_LIBRARY_PATH 20477 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 20478 case $host_os in 20479 openbsd2.[89] | openbsd2.[89].*) 20480 shlibpath_overrides_runpath=no 20481 ;; 20482 *) 20483 shlibpath_overrides_runpath=yes 20484 ;; 20485 esac 20486 else 20487 shlibpath_overrides_runpath=yes 20488 fi 20489 ;; 20490 20491os2*) 20492 libname_spec='$name' 20493 shrext_cmds=".dll" 20494 need_lib_prefix=no 20495 library_names_spec='$libname${shared_ext} $libname.a' 20496 dynamic_linker='OS/2 ld.exe' 20497 shlibpath_var=LIBPATH 20498 ;; 20499 20500osf3* | osf4* | osf5*) 20501 version_type=osf 20502 need_lib_prefix=no 20503 need_version=no 20504 soname_spec='${libname}${release}${shared_ext}$major' 20505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20506 shlibpath_var=LD_LIBRARY_PATH 20507 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 20508 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 20509 ;; 20510 20511rdos*) 20512 dynamic_linker=no 20513 ;; 20514 20515solaris*) 20516 version_type=linux # correct to gnu/linux during the next big refactor 20517 need_lib_prefix=no 20518 need_version=no 20519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20520 soname_spec='${libname}${release}${shared_ext}$major' 20521 shlibpath_var=LD_LIBRARY_PATH 20522 shlibpath_overrides_runpath=yes 20523 hardcode_into_libs=yes 20524 # ldd complains unless libraries are executable 20525 postinstall_cmds='chmod +x $lib' 20526 ;; 20527 20528sunos4*) 20529 version_type=sunos 20530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 20531 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 20532 shlibpath_var=LD_LIBRARY_PATH 20533 shlibpath_overrides_runpath=yes 20534 if test "$with_gnu_ld" = yes; then 20535 need_lib_prefix=no 20536 fi 20537 need_version=yes 20538 ;; 20539 20540sysv4 | sysv4.3*) 20541 version_type=linux # correct to gnu/linux during the next big refactor 20542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20543 soname_spec='${libname}${release}${shared_ext}$major' 20544 shlibpath_var=LD_LIBRARY_PATH 20545 case $host_vendor in 20546 sni) 20547 shlibpath_overrides_runpath=no 20548 need_lib_prefix=no 20549 runpath_var=LD_RUN_PATH 20550 ;; 20551 siemens) 20552 need_lib_prefix=no 20553 ;; 20554 motorola) 20555 need_lib_prefix=no 20556 need_version=no 20557 shlibpath_overrides_runpath=no 20558 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 20559 ;; 20560 esac 20561 ;; 20562 20563sysv4*MP*) 20564 if test -d /usr/nec ;then 20565 version_type=linux # correct to gnu/linux during the next big refactor 20566 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 20567 soname_spec='$libname${shared_ext}.$major' 20568 shlibpath_var=LD_LIBRARY_PATH 20569 fi 20570 ;; 20571 20572sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 20573 version_type=freebsd-elf 20574 need_lib_prefix=no 20575 need_version=no 20576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 20577 soname_spec='${libname}${release}${shared_ext}$major' 20578 shlibpath_var=LD_LIBRARY_PATH 20579 shlibpath_overrides_runpath=yes 20580 hardcode_into_libs=yes 20581 if test "$with_gnu_ld" = yes; then 20582 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 20583 else 20584 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 20585 case $host_os in 20586 sco3.2v5*) 20587 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 20588 ;; 20589 esac 20590 fi 20591 sys_lib_dlsearch_path_spec='/usr/lib' 20592 ;; 20593 20594tpf*) 20595 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 20596 version_type=linux # correct to gnu/linux during the next big refactor 20597 need_lib_prefix=no 20598 need_version=no 20599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20600 shlibpath_var=LD_LIBRARY_PATH 20601 shlibpath_overrides_runpath=no 20602 hardcode_into_libs=yes 20603 ;; 20604 20605uts4*) 20606 version_type=linux # correct to gnu/linux during the next big refactor 20607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20608 soname_spec='${libname}${release}${shared_ext}$major' 20609 shlibpath_var=LD_LIBRARY_PATH 20610 ;; 20611 20612*) 20613 dynamic_linker=no 20614 ;; 20615esac 20616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 20617$as_echo "$dynamic_linker" >&6; } 20618test "$dynamic_linker" = no && can_build_shared=no 20619 20620variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 20621if test "$GCC" = yes; then 20622 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 20623fi 20624 20625if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 20626 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 20627fi 20628if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 20629 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 20630fi 20631 20632 20633 20634 20635 20636 20637 20638 20639 20640 20641 20642 20643 20644 20645 20646 20647 20648 20649 20650 20651 20652 20653 20654 20655 20656 20657 20658 20659 20660 20661 20662 20663 20664 20665 20666 20667 20668 20669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 20670$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 20671hardcode_action_CXX= 20672if test -n "$hardcode_libdir_flag_spec_CXX" || 20673 test -n "$runpath_var_CXX" || 20674 test "X$hardcode_automatic_CXX" = "Xyes" ; then 20675 20676 # We can hardcode non-existent directories. 20677 if test "$hardcode_direct_CXX" != no && 20678 # If the only mechanism to avoid hardcoding is shlibpath_var, we 20679 # have to relink, otherwise we might link with an installed library 20680 # when we should be linking with a yet-to-be-installed one 20681 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 20682 test "$hardcode_minus_L_CXX" != no; then 20683 # Linking always hardcodes the temporary library directory. 20684 hardcode_action_CXX=relink 20685 else 20686 # We can link without hardcoding, and we can hardcode nonexisting dirs. 20687 hardcode_action_CXX=immediate 20688 fi 20689else 20690 # We cannot hardcode anything, or else we can only hardcode existing 20691 # directories. 20692 hardcode_action_CXX=unsupported 20693fi 20694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 20695$as_echo "$hardcode_action_CXX" >&6; } 20696 20697if test "$hardcode_action_CXX" = relink || 20698 test "$inherit_rpath_CXX" = yes; then 20699 # Fast installation is not supported 20700 enable_fast_install=no 20701elif test "$shlibpath_overrides_runpath" = yes || 20702 test "$enable_shared" = no; then 20703 # Fast installation is not necessary 20704 enable_fast_install=needless 20705fi 20706 20707 20708 20709 20710 20711 20712 20713 fi # test -n "$compiler" 20714 20715 CC=$lt_save_CC 20716 CFLAGS=$lt_save_CFLAGS 20717 LDCXX=$LD 20718 LD=$lt_save_LD 20719 GCC=$lt_save_GCC 20720 with_gnu_ld=$lt_save_with_gnu_ld 20721 lt_cv_path_LDCXX=$lt_cv_path_LD 20722 lt_cv_path_LD=$lt_save_path_LD 20723 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 20724 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 20725fi # test "$_lt_caught_CXX_error" != yes 20726 20727ac_ext=c 20728ac_cpp='$CPP $CPPFLAGS' 20729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20731ac_compiler_gnu=$ac_cv_c_compiler_gnu 20732 20733 20734 20735 20736 20737 20738 20739 20740 20741 20742 20743 20744 20745 20746 20747 ac_config_commands="$ac_config_commands libtool" 20748 20749 20750 20751 20752# Only expand once: 20753 20754 20755 20756 20757 20758# Check to see if building shared libraries 20759libtool_build_shared_libs='no' 20760if test "$enable_shared" = 'yes'; then 20761 libtool_build_shared_libs='yes' 20762fi 20763 20764# Check to see if building static libraries 20765libtool_build_static_libs='no' 20766if test "$enable_static" = 'yes'; then 20767 libtool_build_static_libs='yes' 20768fi 20769 20770 if test "${libtool_build_shared_libs}" = 'yes'; then 20771 WITH_SHARED_LIBS_TRUE= 20772 WITH_SHARED_LIBS_FALSE='#' 20773else 20774 WITH_SHARED_LIBS_TRUE='#' 20775 WITH_SHARED_LIBS_FALSE= 20776fi 20777 20778# 20779# Enable support for building loadable modules 20780# 20781build_modules='no' 20782 20783# Check whether --with-modules was given. 20784if test "${with_modules+set}" = set; then : 20785 withval=$with_modules; with_modules=$withval 20786else 20787 with_modules='no' 20788fi 20789 20790 20791# Only allow building loadable modules if we are building shared libraries 20792if test "$with_modules" != 'no' ; then 20793 if test "$libtool_build_shared_libs" = 'no'; then 20794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Modules may only be built if building shared libraries is enabled." >&5 20795$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;} 20796 build_modules='no' 20797 else 20798 build_modules='yes' 20799 fi 20800fi 20801if test "$build_modules" != 'no' ; then 20802 20803$as_echo "#define BUILD_MODULES 1" >>confdefs.h 20804 20805 MAGICK_FEATURES="$MAGICK_FEATURES Modules" 20806fi 20807 if test "$build_modules" != 'no'; then 20808 WITH_MODULES_TRUE= 20809 WITH_MODULES_FALSE='#' 20810else 20811 WITH_MODULES_TRUE='#' 20812 WITH_MODULES_FALSE= 20813fi 20814 20815 20816# Enable build using delegate libraries built in subdirectories rather than installed 20817# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib) 20818# Check whether --enable-delegate-build was given. 20819if test "${enable_delegate_build+set}" = set; then : 20820 enableval=$enable_delegate_build; enable_delegate_build=$enableval 20821else 20822 enable_delegate_build='no' 20823fi 20824 20825 20826# Check whether --enable-deprecated was given. 20827if test "${enable_deprecated+set}" = set; then : 20828 enableval=$enable_deprecated; enable_deprecated=$enableval 20829else 20830 enable_deprecated='no' 20831fi 20832 20833 20834if test "$enable_deprecated" = 'yes'; then 20835 20836$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h 20837 20838else 20839 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated " 20840fi 20841 20842# Build a version of ImageMagick which operates uninstalled. 20843# Used to build distributions located via MAGICK_HOME / executable path 20844# Check whether --enable-installed was given. 20845if test "${enable_installed+set}" = set; then : 20846 enableval=$enable_installed; enable_installed=$enableval 20847else 20848 enable_installed='yes' 20849fi 20850 20851 20852if test "$enable_installed" = 'yes'; then 20853 20854$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h 20855 20856else 20857 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed " 20858fi 20859 20860# Permit enciphering and deciphering image pixels. 20861# Check whether --enable-cipher was given. 20862if test "${enable_cipher+set}" = set; then : 20863 enableval=$enable_cipher; enable_cipher=$enableval 20864else 20865 enable_cipher='yes' 20866fi 20867 20868 20869if test "$enable_cipher" = 'yes'; then 20870 20871$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h 20872 20873fi 20874 20875# Build a zero-configuration version of ImageMagick. 20876# Check whether --enable-zero-configuration was given. 20877if test "${enable_zero_configuration+set}" = set; then : 20878 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval 20879else 20880 enable_zero_configuration='no' 20881fi 20882 20883 20884if test "$enable_zero_configuration" = 'yes'; then 20885 20886$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h 20887 20888 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES" 20889fi 20890 20891# Build a high dynamic range version of ImageMagick. 20892# Check whether --enable-hdri was given. 20893if test "${enable_hdri+set}" = set; then : 20894 enableval=$enable_hdri; enable_hdri=$enableval 20895else 20896 enable_hdri='yes' 20897fi 20898 20899 20900MAGICK_HDRI="" 20901if test "$enable_hdri" = 'yes'; then 20902 MAGICK_HDRI="HDRI" 20903 magick_hdri_enable='1'; 20904 MAGICK_FEATURES="HDRI $MAGICK_FEATURES" 20905else 20906 magick_hdri_enable='0' 20907fi 20908 20909cat >>confdefs.h <<_ACEOF 20910#define HDRI_ENABLE_OBSOLETE_IN_H $magick_hdri_enable 20911_ACEOF 20912 20913MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable" 20914CFLAGS="$CFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable" 20915CPPFLAGS="$CPPFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable" 20916 20917# Build a version of ImageMagick with assert statements. 20918# Check whether --enable-assert was given. 20919if test "${enable_assert+set}" = set; then : 20920 enableval=$enable_assert; enable_assert=$enableval 20921else 20922 enable_assert='yes' 20923fi 20924 20925 20926if test "$enable_assert" = 'no'; then 20927 20928$as_echo "#define NDEBUG 1" >>confdefs.h 20929 20930fi 20931 20932# Don't emit "rebuild rules" for configure, Makefile.ins, etc. 20933 20934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 20935$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 20936 # Check whether --enable-maintainer-mode was given. 20937if test "${enable_maintainer_mode+set}" = set; then : 20938 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 20939else 20940 USE_MAINTAINER_MODE=no 20941fi 20942 20943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 20944$as_echo "$USE_MAINTAINER_MODE" >&6; } 20945 if test $USE_MAINTAINER_MODE = yes; then 20946 MAINTAINER_MODE_TRUE= 20947 MAINTAINER_MODE_FALSE='#' 20948else 20949 MAINTAINER_MODE_TRUE='#' 20950 MAINTAINER_MODE_FALSE= 20951fi 20952 20953 MAINT=$MAINTAINER_MODE_TRUE 20954 20955 20956 20957# Enable ccmalloc memory debugging support 20958# Check whether --enable-ccmalloc was given. 20959if test "${enable_ccmalloc+set}" = set; then : 20960 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval 20961else 20962 enable_ccmalloc='no' 20963fi 20964 20965 20966# Enable Electric Fence memory debugging support 20967# Check whether --enable-efence was given. 20968if test "${enable_efence+set}" = set; then : 20969 enableval=$enable_efence; enable_efence=$enableval 20970else 20971 enable_efence='no' 20972fi 20973 20974 20975# Enable prof-based profiling support 20976# Check whether --enable-prof was given. 20977if test "${enable_prof+set}" = set; then : 20978 enableval=$enable_prof; enable_prof=$enableval 20979else 20980 enable_prof='no' 20981fi 20982 20983 20984# Enable gprof-based profiling support 20985# Check whether --enable-gprof was given. 20986if test "${enable_gprof+set}" = set; then : 20987 enableval=$enable_gprof; enable_gprof=$enableval 20988else 20989 enable_gprof='no' 20990fi 20991 20992 20993# Enable gcov-based profiling support 20994# Check whether --enable-gcov was given. 20995if test "${enable_gcov+set}" = set; then : 20996 enableval=$enable_gcov; enable_gcov=$enableval 20997else 20998 enable_gcov='no' 20999fi 21000 21001 21002enable_profiling='no' 21003if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then 21004 enable_profiling='yes' 21005 if test "$libtool_build_shared_libs" = 'yes'; then 21006 echo "Warning: Can not profile code using shared libraries" 21007 fi 21008fi 21009 21010# Magick API method prefix 21011 21012# Check whether --with-method-prefix was given. 21013if test "${with_method_prefix+set}" = set; then : 21014 withval=$with_method_prefix; with_method_prefix=$withval 21015else 21016 with_method_prefix='no' 21017fi 21018 21019 21020if test "$with_method_prefix" != 'no'; then 21021 21022cat >>confdefs.h <<_ACEOF 21023#define NAMESPACE_PREFIX $with_method_prefix 21024_ACEOF 21025 21026 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix " 21027fi 21028 21029# Enable legacy support (default no) 21030# Check whether --enable-legacy-support was given. 21031if test "${enable_legacy_support+set}" = set; then : 21032 enableval=$enable_legacy_support; with_legacy_support=$enableval 21033else 21034 with_legacy_support='no' 21035fi 21036 21037 if test "$with_legacy_support" != 'no'; then 21038 LEGACY_SUPPORT_TRUE= 21039 LEGACY_SUPPORT_FALSE='#' 21040else 21041 LEGACY_SUPPORT_TRUE='#' 21042 LEGACY_SUPPORT_FALSE= 21043fi 21044 21045 21046# Number of bits in a Quantum 21047 21048# Check whether --with-quantum-depth was given. 21049if test "${with_quantum_depth+set}" = set; then : 21050 withval=$with_quantum_depth; with_quantum_depth=$withval 21051else 21052 with_quantum_depth=16 21053fi 21054 21055 21056if test "$with_quantum_depth" != '8'; then 21057 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth " 21058fi 21059 21060case "${with_quantum_depth}" in 21061 8 ) ;; 21062 16 ) ;; 21063 32 ) ;; 21064 64 ) ;; 21065 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;; 21066esac 21067QUANTUM_DEPTH="$with_quantum_depth" 21068 21069cat >>confdefs.h <<_ACEOF 21070#define QUANTUM_DEPTH_OBSOLETE_IN_H $QUANTUM_DEPTH 21071_ACEOF 21072 21073MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH" 21074CFLAGS="$CFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH" 21075CPPFLAGS="$CPPFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH" 21076 21077# define a lib suffix for abi purpose 21078MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}" 21079if test "$enable_hdri" = 'yes'; then 21080 MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}" 21081fi 21082 21083 21084# Set pixel cache threshold 21085 21086# Check whether --with-cache was given. 21087if test "${with_cache+set}" = set; then : 21088 withval=$with_cache; with_cache=$withval 21089else 21090 with_cache='' 21091fi 21092 21093 21094if test "$with_cache" != ''; then 21095 21096cat >>confdefs.h <<_ACEOF 21097#define PixelCacheThreshold $with_cache 21098_ACEOF 21099 21100 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache " 21101fi 21102 21103# Disable/Enable support for full delegate paths 21104 21105# Check whether --with-frozenpaths was given. 21106if test "${with_frozenpaths+set}" = set; then : 21107 withval=$with_frozenpaths; with_frozenpaths=$withval 21108else 21109 with_frozenpaths='no' 21110fi 21111 21112 21113# Enable build/install of Magick++ 21114 21115# Check whether --with-magick-plus-plus was given. 21116if test "${with_magick_plus_plus+set}" = set; then : 21117 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval 21118else 21119 with_magick_plus_plus='yes' 21120fi 21121 21122 21123# Encode the this name into the shared library. 21124 21125# Check whether --with-package-release-name was given. 21126if test "${with_package_release_name+set}" = set; then : 21127 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval" 21128fi 21129 21130 21131 21132# Disable build/install of PerlMagick. 21133 21134# Check whether --with-perl was given. 21135if test "${with_perl+set}" = set; then : 21136 withval=$with_perl; with_perl=$withval 21137else 21138 with_perl='no' 21139fi 21140 21141 21142# Options to pass when configuring PerlMagick 21143 21144# Check whether --with-perl-options was given. 21145if test "${with_perl_options+set}" = set; then : 21146 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval 21147fi 21148 21149 21150 21151# Enable umem, object-caching memory allocation library. 21152 21153# Check whether --with-umem was given. 21154if test "${with_umem+set}" = set; then : 21155 withval=$with_umem; with_umem=$withval 21156else 21157 with_umem='no' 21158fi 21159 21160if test "$with_umem" != 'yes' ; then 21161 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem " 21162fi 21163 21164# 21165# Specify path to shared libstdc++ if not in normal location 21166# 21167 21168# Check whether --with-libstdc was given. 21169if test "${with_libstdc+set}" = set; then : 21170 withval=$with_libstdc; with_libstdc=$withval 21171else 21172 with_libstdc='' 21173fi 21174 21175 21176if test "$with_libstdc" != ''; then 21177 if test -d "$with_libstdc"; then 21178 LIBSTDCLDFLAGS="-L$with_libstdc" 21179 fi 21180fi 21181 21182 21183# Does gcc required -traditional? 21184if test $ac_cv_c_compiler_gnu = yes; then 21185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 21186$as_echo_n "checking whether $CC needs -traditional... " >&6; } 21187if ${ac_cv_prog_gcc_traditional+:} false; then : 21188 $as_echo_n "(cached) " >&6 21189else 21190 ac_pattern="Autoconf.*'x'" 21191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21192/* end confdefs.h. */ 21193#include <sgtty.h> 21194Autoconf TIOCGETP 21195_ACEOF 21196if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21197 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 21198 ac_cv_prog_gcc_traditional=yes 21199else 21200 ac_cv_prog_gcc_traditional=no 21201fi 21202rm -f conftest* 21203 21204 21205 if test $ac_cv_prog_gcc_traditional = no; then 21206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21207/* end confdefs.h. */ 21208#include <termio.h> 21209Autoconf TCGETA 21210_ACEOF 21211if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21212 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 21213 ac_cv_prog_gcc_traditional=yes 21214fi 21215rm -f conftest* 21216 21217 fi 21218fi 21219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 21220$as_echo "$ac_cv_prog_gcc_traditional" >&6; } 21221 if test $ac_cv_prog_gcc_traditional = yes; then 21222 CC="$CC -traditional" 21223 fi 21224fi 21225 21226 21227######## 21228# 21229# Set defines required to build DLLs and modules using MinGW 21230# 21231######## 21232# These options are set for multi-thread DLL module build 21233# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_ 21234# module: _DLL 21235# executable/Magick++: _DLL _MAGICKMOD_ 21236MODULE_EXTRA_CPPFLAGS='' 21237LIBRARY_EXTRA_CPPFLAGS='' 21238if test "${native_win32_build}" = 'yes'; then 21239 if test "${libtool_build_shared_libs}" = 'yes'; then 21240 CPPFLAGS="$CPPFLAGS -D_DLL" 21241 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL" 21242 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL" 21243 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_" 21244 if test "$build_modules" = 'yes'; then 21245 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_" 21246 else 21247 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_" 21248 fi 21249 else 21250 CPPFLAGS="$CPPFLAGS -D_LIB" 21251 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB" 21252 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB" 21253 fi 21254 if test "$with_threads" = 'yes'; then 21255 CPPFLAGS="$CPPFLAGS -D_MT" 21256 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT" 21257 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT" 21258 fi 21259fi 21260 21261 21262 21263# Check standard headers 21264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 21265$as_echo_n "checking for ANSI C header files... " >&6; } 21266if ${ac_cv_header_stdc+:} false; then : 21267 $as_echo_n "(cached) " >&6 21268else 21269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21270/* end confdefs.h. */ 21271#include <stdlib.h> 21272#include <stdarg.h> 21273#include <string.h> 21274#include <float.h> 21275 21276int 21277main () 21278{ 21279 21280 ; 21281 return 0; 21282} 21283_ACEOF 21284if ac_fn_c_try_compile "$LINENO"; then : 21285 ac_cv_header_stdc=yes 21286else 21287 ac_cv_header_stdc=no 21288fi 21289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21290 21291if test $ac_cv_header_stdc = yes; then 21292 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 21293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21294/* end confdefs.h. */ 21295#include <string.h> 21296 21297_ACEOF 21298if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21299 $EGREP "memchr" >/dev/null 2>&1; then : 21300 21301else 21302 ac_cv_header_stdc=no 21303fi 21304rm -f conftest* 21305 21306fi 21307 21308if test $ac_cv_header_stdc = yes; then 21309 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 21310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21311/* end confdefs.h. */ 21312#include <stdlib.h> 21313 21314_ACEOF 21315if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21316 $EGREP "free" >/dev/null 2>&1; then : 21317 21318else 21319 ac_cv_header_stdc=no 21320fi 21321rm -f conftest* 21322 21323fi 21324 21325if test $ac_cv_header_stdc = yes; then 21326 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 21327 if test "$cross_compiling" = yes; then : 21328 : 21329else 21330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21331/* end confdefs.h. */ 21332#include <ctype.h> 21333#include <stdlib.h> 21334#if ((' ' & 0x0FF) == 0x020) 21335# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 21336# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 21337#else 21338# define ISLOWER(c) \ 21339 (('a' <= (c) && (c) <= 'i') \ 21340 || ('j' <= (c) && (c) <= 'r') \ 21341 || ('s' <= (c) && (c) <= 'z')) 21342# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 21343#endif 21344 21345#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 21346int 21347main () 21348{ 21349 int i; 21350 for (i = 0; i < 256; i++) 21351 if (XOR (islower (i), ISLOWER (i)) 21352 || toupper (i) != TOUPPER (i)) 21353 return 2; 21354 return 0; 21355} 21356_ACEOF 21357if ac_fn_c_try_run "$LINENO"; then : 21358 21359else 21360 ac_cv_header_stdc=no 21361fi 21362rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21363 conftest.$ac_objext conftest.beam conftest.$ac_ext 21364fi 21365 21366fi 21367fi 21368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 21369$as_echo "$ac_cv_header_stdc" >&6; } 21370if test $ac_cv_header_stdc = yes; then 21371 21372$as_echo "#define STDC_HEADERS 1" >>confdefs.h 21373 21374fi 21375 21376if ! test x"$ac_cv_header_stdc" = x"yes"; then 21377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure has detected that you do not have the ANSI standard C 21378 header files. Compilation cannot proceed. Please install the ANSI C 21379 headers and rerun this script." >&5 21380$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C 21381 header files. Compilation cannot proceed. Please install the ANSI C 21382 headers and rerun this script." >&2;}; 21383fi 21384 21385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5 21386$as_echo_n "checking whether to enable assertions... " >&6; } 21387 # Check whether --enable-assert was given. 21388if test "${enable_assert+set}" = set; then : 21389 enableval=$enable_assert; ac_enable_assert=$enableval 21390 if test "x$enableval" = xno; then : 21391 21392$as_echo "#define NDEBUG 1" >>confdefs.h 21393 21394elif test "x$enableval" != xyes; then : 21395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5 21396$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;} 21397 ac_enable_assert=yes 21398fi 21399else 21400 ac_enable_assert=yes 21401fi 21402 21403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5 21404$as_echo "$ac_enable_assert" >&6; } 21405 21406ac_header_dirent=no 21407for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 21408 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 21409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 21410$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 21411if eval \${$as_ac_Header+:} false; then : 21412 $as_echo_n "(cached) " >&6 21413else 21414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21415/* end confdefs.h. */ 21416#include <sys/types.h> 21417#include <$ac_hdr> 21418 21419int 21420main () 21421{ 21422if ((DIR *) 0) 21423return 0; 21424 ; 21425 return 0; 21426} 21427_ACEOF 21428if ac_fn_c_try_compile "$LINENO"; then : 21429 eval "$as_ac_Header=yes" 21430else 21431 eval "$as_ac_Header=no" 21432fi 21433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21434fi 21435eval ac_res=\$$as_ac_Header 21436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 21437$as_echo "$ac_res" >&6; } 21438if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 21439 cat >>confdefs.h <<_ACEOF 21440#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 21441_ACEOF 21442 21443ac_header_dirent=$ac_hdr; break 21444fi 21445 21446done 21447# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 21448if test $ac_header_dirent = dirent.h; then 21449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 21450$as_echo_n "checking for library containing opendir... " >&6; } 21451if ${ac_cv_search_opendir+:} false; then : 21452 $as_echo_n "(cached) " >&6 21453else 21454 ac_func_search_save_LIBS=$LIBS 21455cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21456/* end confdefs.h. */ 21457 21458/* Override any GCC internal prototype to avoid an error. 21459 Use char because int might match the return type of a GCC 21460 builtin and then its argument prototype would still apply. */ 21461#ifdef __cplusplus 21462extern "C" 21463#endif 21464char opendir (); 21465int 21466main () 21467{ 21468return opendir (); 21469 ; 21470 return 0; 21471} 21472_ACEOF 21473for ac_lib in '' dir; do 21474 if test -z "$ac_lib"; then 21475 ac_res="none required" 21476 else 21477 ac_res=-l$ac_lib 21478 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21479 fi 21480 if ac_fn_c_try_link "$LINENO"; then : 21481 ac_cv_search_opendir=$ac_res 21482fi 21483rm -f core conftest.err conftest.$ac_objext \ 21484 conftest$ac_exeext 21485 if ${ac_cv_search_opendir+:} false; then : 21486 break 21487fi 21488done 21489if ${ac_cv_search_opendir+:} false; then : 21490 21491else 21492 ac_cv_search_opendir=no 21493fi 21494rm conftest.$ac_ext 21495LIBS=$ac_func_search_save_LIBS 21496fi 21497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 21498$as_echo "$ac_cv_search_opendir" >&6; } 21499ac_res=$ac_cv_search_opendir 21500if test "$ac_res" != no; then : 21501 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21502 21503fi 21504 21505else 21506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 21507$as_echo_n "checking for library containing opendir... " >&6; } 21508if ${ac_cv_search_opendir+:} false; then : 21509 $as_echo_n "(cached) " >&6 21510else 21511 ac_func_search_save_LIBS=$LIBS 21512cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21513/* end confdefs.h. */ 21514 21515/* Override any GCC internal prototype to avoid an error. 21516 Use char because int might match the return type of a GCC 21517 builtin and then its argument prototype would still apply. */ 21518#ifdef __cplusplus 21519extern "C" 21520#endif 21521char opendir (); 21522int 21523main () 21524{ 21525return opendir (); 21526 ; 21527 return 0; 21528} 21529_ACEOF 21530for ac_lib in '' x; do 21531 if test -z "$ac_lib"; then 21532 ac_res="none required" 21533 else 21534 ac_res=-l$ac_lib 21535 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21536 fi 21537 if ac_fn_c_try_link "$LINENO"; then : 21538 ac_cv_search_opendir=$ac_res 21539fi 21540rm -f core conftest.err conftest.$ac_objext \ 21541 conftest$ac_exeext 21542 if ${ac_cv_search_opendir+:} false; then : 21543 break 21544fi 21545done 21546if ${ac_cv_search_opendir+:} false; then : 21547 21548else 21549 ac_cv_search_opendir=no 21550fi 21551rm conftest.$ac_ext 21552LIBS=$ac_func_search_save_LIBS 21553fi 21554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 21555$as_echo "$ac_cv_search_opendir" >&6; } 21556ac_res=$ac_cv_search_opendir 21557if test "$ac_res" != no; then : 21558 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21559 21560fi 21561 21562fi 21563 21564 21565# Check additional headers 21566for ac_header in arm/limits.h arpa/inet.h complex.h errno.h fcntl.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h netinet/in.h OS.h process.h sun_prefetch.h stdarg.h sys/ipc.h sys/mman.h sys/resource.h sys/socket.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/wait.h wchar.h xlocale.h 21567do : 21568 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 21569ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 21570if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 21571 cat >>confdefs.h <<_ACEOF 21572#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 21573_ACEOF 21574 21575fi 21576 21577done 21578 21579 21580######## 21581# 21582# Checks for typedefs, structures, and compiler characteristics. 21583# 21584######## 21585 21586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 21587$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } 21588if ${ac_cv_header_stdbool_h+:} false; then : 21589 $as_echo_n "(cached) " >&6 21590else 21591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21592/* end confdefs.h. */ 21593 21594 #include <stdbool.h> 21595 #ifndef bool 21596 "error: bool is not defined" 21597 #endif 21598 #ifndef false 21599 "error: false is not defined" 21600 #endif 21601 #if false 21602 "error: false is not 0" 21603 #endif 21604 #ifndef true 21605 "error: true is not defined" 21606 #endif 21607 #if true != 1 21608 "error: true is not 1" 21609 #endif 21610 #ifndef __bool_true_false_are_defined 21611 "error: __bool_true_false_are_defined is not defined" 21612 #endif 21613 21614 struct s { _Bool s: 1; _Bool t; } s; 21615 21616 char a[true == 1 ? 1 : -1]; 21617 char b[false == 0 ? 1 : -1]; 21618 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 21619 char d[(bool) 0.5 == true ? 1 : -1]; 21620 /* See body of main program for 'e'. */ 21621 char f[(_Bool) 0.0 == false ? 1 : -1]; 21622 char g[true]; 21623 char h[sizeof (_Bool)]; 21624 char i[sizeof s.t]; 21625 enum { j = false, k = true, l = false * true, m = true * 256 }; 21626 /* The following fails for 21627 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 21628 _Bool n[m]; 21629 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 21630 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 21631 /* Catch a bug in an HP-UX C compiler. See 21632 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 21633 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html 21634 */ 21635 _Bool q = true; 21636 _Bool *pq = &q; 21637 21638int 21639main () 21640{ 21641 21642 bool e = &s; 21643 *pq |= q; 21644 *pq |= ! q; 21645 /* Refer to every declared value, to avoid compiler optimizations. */ 21646 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 21647 + !m + !n + !o + !p + !q + !pq); 21648 21649 ; 21650 return 0; 21651} 21652_ACEOF 21653if ac_fn_c_try_compile "$LINENO"; then : 21654 ac_cv_header_stdbool_h=yes 21655else 21656 ac_cv_header_stdbool_h=no 21657fi 21658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21659fi 21660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 21661$as_echo "$ac_cv_header_stdbool_h" >&6; } 21662 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" 21663if test "x$ac_cv_type__Bool" = xyes; then : 21664 21665cat >>confdefs.h <<_ACEOF 21666#define HAVE__BOOL 1 21667_ACEOF 21668 21669 21670fi 21671 21672 21673if test $ac_cv_header_stdbool_h = yes; then 21674 21675$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h 21676 21677fi 21678 21679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 21680$as_echo_n "checking for working volatile... " >&6; } 21681if ${ac_cv_c_volatile+:} false; then : 21682 $as_echo_n "(cached) " >&6 21683else 21684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21685/* end confdefs.h. */ 21686 21687int 21688main () 21689{ 21690 21691volatile int x; 21692int * volatile y = (int *) 0; 21693return !x && !y; 21694 ; 21695 return 0; 21696} 21697_ACEOF 21698if ac_fn_c_try_compile "$LINENO"; then : 21699 ac_cv_c_volatile=yes 21700else 21701 ac_cv_c_volatile=no 21702fi 21703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21704fi 21705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 21706$as_echo "$ac_cv_c_volatile" >&6; } 21707if test $ac_cv_c_volatile = no; then 21708 21709$as_echo "#define volatile /**/" >>confdefs.h 21710 21711fi 21712 21713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5 21714$as_echo_n "checking for preprocessor stringizing operator... " >&6; } 21715if ${ac_cv_c_stringize+:} false; then : 21716 $as_echo_n "(cached) " >&6 21717else 21718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21719/* end confdefs.h. */ 21720#define x(y) #y 21721 21722char *s = x(teststring); 21723_ACEOF 21724if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21725 $EGREP "#teststring" >/dev/null 2>&1; then : 21726 ac_cv_c_stringize=no 21727else 21728 ac_cv_c_stringize=yes 21729fi 21730rm -f conftest* 21731 21732fi 21733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5 21734$as_echo "$ac_cv_c_stringize" >&6; } 21735if test $ac_cv_c_stringize = yes; then 21736 21737$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h 21738 21739fi 21740 21741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5 21742$as_echo_n "checking whether stat file-mode macros are broken... " >&6; } 21743if ${ac_cv_header_stat_broken+:} false; then : 21744 $as_echo_n "(cached) " >&6 21745else 21746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21747/* end confdefs.h. */ 21748#include <sys/types.h> 21749#include <sys/stat.h> 21750 21751#if defined S_ISBLK && defined S_IFDIR 21752extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; 21753#endif 21754 21755#if defined S_ISBLK && defined S_IFCHR 21756extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; 21757#endif 21758 21759#if defined S_ISLNK && defined S_IFREG 21760extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; 21761#endif 21762 21763#if defined S_ISSOCK && defined S_IFREG 21764extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; 21765#endif 21766 21767_ACEOF 21768if ac_fn_c_try_compile "$LINENO"; then : 21769 ac_cv_header_stat_broken=no 21770else 21771 ac_cv_header_stat_broken=yes 21772fi 21773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21774fi 21775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5 21776$as_echo "$ac_cv_header_stat_broken" >&6; } 21777if test $ac_cv_header_stat_broken = yes; then 21778 21779$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h 21780 21781fi 21782 21783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 21784$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 21785if ${ac_cv_header_time+:} false; then : 21786 $as_echo_n "(cached) " >&6 21787else 21788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21789/* end confdefs.h. */ 21790#include <sys/types.h> 21791#include <sys/time.h> 21792#include <time.h> 21793 21794int 21795main () 21796{ 21797if ((struct tm *) 0) 21798return 0; 21799 ; 21800 return 0; 21801} 21802_ACEOF 21803if ac_fn_c_try_compile "$LINENO"; then : 21804 ac_cv_header_time=yes 21805else 21806 ac_cv_header_time=no 21807fi 21808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21809fi 21810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 21811$as_echo "$ac_cv_header_time" >&6; } 21812if test $ac_cv_header_time = yes; then 21813 21814$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 21815 21816fi 21817 21818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 21819$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 21820if ${ac_cv_struct_tm+:} false; then : 21821 $as_echo_n "(cached) " >&6 21822else 21823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21824/* end confdefs.h. */ 21825#include <sys/types.h> 21826#include <time.h> 21827 21828int 21829main () 21830{ 21831struct tm tm; 21832 int *p = &tm.tm_sec; 21833 return !p; 21834 ; 21835 return 0; 21836} 21837_ACEOF 21838if ac_fn_c_try_compile "$LINENO"; then : 21839 ac_cv_struct_tm=time.h 21840else 21841 ac_cv_struct_tm=sys/time.h 21842fi 21843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21844fi 21845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 21846$as_echo "$ac_cv_struct_tm" >&6; } 21847if test $ac_cv_struct_tm = sys/time.h; then 21848 21849$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 21850 21851fi 21852 21853ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> 21854#include <$ac_cv_struct_tm> 21855 21856" 21857if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : 21858 21859cat >>confdefs.h <<_ACEOF 21860#define HAVE_STRUCT_TM_TM_ZONE 1 21861_ACEOF 21862 21863 21864fi 21865 21866if test "$ac_cv_member_struct_tm_tm_zone" = yes; then 21867 21868$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h 21869 21870else 21871 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> 21872" 21873if test "x$ac_cv_have_decl_tzname" = xyes; then : 21874 ac_have_decl=1 21875else 21876 ac_have_decl=0 21877fi 21878 21879cat >>confdefs.h <<_ACEOF 21880#define HAVE_DECL_TZNAME $ac_have_decl 21881_ACEOF 21882 21883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 21884$as_echo_n "checking for tzname... " >&6; } 21885if ${ac_cv_var_tzname+:} false; then : 21886 $as_echo_n "(cached) " >&6 21887else 21888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21889/* end confdefs.h. */ 21890#include <time.h> 21891#if !HAVE_DECL_TZNAME 21892extern char *tzname[]; 21893#endif 21894 21895int 21896main () 21897{ 21898return tzname[0][0]; 21899 ; 21900 return 0; 21901} 21902_ACEOF 21903if ac_fn_c_try_link "$LINENO"; then : 21904 ac_cv_var_tzname=yes 21905else 21906 ac_cv_var_tzname=no 21907fi 21908rm -f core conftest.err conftest.$ac_objext \ 21909 conftest$ac_exeext conftest.$ac_ext 21910fi 21911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 21912$as_echo "$ac_cv_var_tzname" >&6; } 21913 if test $ac_cv_var_tzname = yes; then 21914 21915$as_echo "#define HAVE_TZNAME 1" >>confdefs.h 21916 21917 fi 21918fi 21919 21920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5 21921$as_echo_n "checking whether #! works in shell scripts... " >&6; } 21922if ${ac_cv_sys_interpreter+:} false; then : 21923 $as_echo_n "(cached) " >&6 21924else 21925 echo '#! /bin/cat 21926exit 69 21927' >conftest 21928chmod u+x conftest 21929(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1) 21930if test $? -ne 69; then 21931 ac_cv_sys_interpreter=yes 21932else 21933 ac_cv_sys_interpreter=no 21934fi 21935rm -f conftest 21936fi 21937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5 21938$as_echo "$ac_cv_sys_interpreter" >&6; } 21939interpval=$ac_cv_sys_interpreter 21940 21941 21942# 21943# Checks for language qualifiers and semantics. 21944# 21945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 21946$as_echo_n "checking whether char is unsigned... " >&6; } 21947if ${ac_cv_c_char_unsigned+:} false; then : 21948 $as_echo_n "(cached) " >&6 21949else 21950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21951/* end confdefs.h. */ 21952$ac_includes_default 21953int 21954main () 21955{ 21956static int test_array [1 - 2 * !(((char) -1) < 0)]; 21957test_array [0] = 0; 21958return test_array [0]; 21959 21960 ; 21961 return 0; 21962} 21963_ACEOF 21964if ac_fn_c_try_compile "$LINENO"; then : 21965 ac_cv_c_char_unsigned=no 21966else 21967 ac_cv_c_char_unsigned=yes 21968fi 21969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21970fi 21971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 21972$as_echo "$ac_cv_c_char_unsigned" >&6; } 21973if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then 21974 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h 21975 21976fi 21977 21978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 21979$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 21980if ${ac_cv_c_const+:} false; then : 21981 $as_echo_n "(cached) " >&6 21982else 21983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21984/* end confdefs.h. */ 21985 21986int 21987main () 21988{ 21989 21990#ifndef __cplusplus 21991 /* Ultrix mips cc rejects this sort of thing. */ 21992 typedef int charset[2]; 21993 const charset cs = { 0, 0 }; 21994 /* SunOS 4.1.1 cc rejects this. */ 21995 char const *const *pcpcc; 21996 char **ppc; 21997 /* NEC SVR4.0.2 mips cc rejects this. */ 21998 struct point {int x, y;}; 21999 static struct point const zero = {0,0}; 22000 /* AIX XL C 1.02.0.0 rejects this. 22001 It does not let you subtract one const X* pointer from another in 22002 an arm of an if-expression whose if-part is not a constant 22003 expression */ 22004 const char *g = "string"; 22005 pcpcc = &g + (g ? g-g : 0); 22006 /* HPUX 7.0 cc rejects these. */ 22007 ++pcpcc; 22008 ppc = (char**) pcpcc; 22009 pcpcc = (char const *const *) ppc; 22010 { /* SCO 3.2v4 cc rejects this sort of thing. */ 22011 char tx; 22012 char *t = &tx; 22013 char const *s = 0 ? (char *) 0 : (char const *) 0; 22014 22015 *t++ = 0; 22016 if (s) return 0; 22017 } 22018 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 22019 int x[] = {25, 17}; 22020 const int *foo = &x[0]; 22021 ++foo; 22022 } 22023 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 22024 typedef const int *iptr; 22025 iptr p = 0; 22026 ++p; 22027 } 22028 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 22029 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 22030 struct s { int j; const int *ap[3]; } bx; 22031 struct s *b = &bx; b->j = 5; 22032 } 22033 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 22034 const int foo = 10; 22035 if (!foo) return 0; 22036 } 22037 return !cs[0] && !zero.x; 22038#endif 22039 22040 ; 22041 return 0; 22042} 22043_ACEOF 22044if ac_fn_c_try_compile "$LINENO"; then : 22045 ac_cv_c_const=yes 22046else 22047 ac_cv_c_const=no 22048fi 22049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22050fi 22051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 22052$as_echo "$ac_cv_c_const" >&6; } 22053if test $ac_cv_c_const = no; then 22054 22055$as_echo "#define const /**/" >>confdefs.h 22056 22057fi 22058 22059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 22060$as_echo_n "checking for inline... " >&6; } 22061if ${ac_cv_c_inline+:} false; then : 22062 $as_echo_n "(cached) " >&6 22063else 22064 ac_cv_c_inline=no 22065for ac_kw in inline __inline__ __inline; do 22066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22067/* end confdefs.h. */ 22068#ifndef __cplusplus 22069typedef int foo_t; 22070static $ac_kw foo_t static_foo () {return 0; } 22071$ac_kw foo_t foo () {return 0; } 22072#endif 22073 22074_ACEOF 22075if ac_fn_c_try_compile "$LINENO"; then : 22076 ac_cv_c_inline=$ac_kw 22077fi 22078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22079 test "$ac_cv_c_inline" != no && break 22080done 22081 22082fi 22083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 22084$as_echo "$ac_cv_c_inline" >&6; } 22085 22086case $ac_cv_c_inline in 22087 inline | yes) ;; 22088 *) 22089 case $ac_cv_c_inline in 22090 no) ac_val=;; 22091 *) ac_val=$ac_cv_c_inline;; 22092 esac 22093 cat >>confdefs.h <<_ACEOF 22094#ifndef __cplusplus 22095#define inline $ac_val 22096#endif 22097_ACEOF 22098 ;; 22099esac 22100 22101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 22102$as_echo_n "checking for C/C++ restrict keyword... " >&6; } 22103if ${ac_cv_c_restrict+:} false; then : 22104 $as_echo_n "(cached) " >&6 22105else 22106 ac_cv_c_restrict=no 22107 # The order here caters to the fact that C++ does not require restrict. 22108 for ac_kw in __restrict __restrict__ _Restrict restrict; do 22109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22110/* end confdefs.h. */ 22111typedef int * int_ptr; 22112 int foo (int_ptr $ac_kw ip) { 22113 return ip[0]; 22114 } 22115int 22116main () 22117{ 22118int s[1]; 22119 int * $ac_kw t = s; 22120 t[0] = 0; 22121 return foo(t) 22122 ; 22123 return 0; 22124} 22125_ACEOF 22126if ac_fn_c_try_compile "$LINENO"; then : 22127 ac_cv_c_restrict=$ac_kw 22128fi 22129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22130 test "$ac_cv_c_restrict" != no && break 22131 done 22132 22133fi 22134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 22135$as_echo "$ac_cv_c_restrict" >&6; } 22136 22137 case $ac_cv_c_restrict in 22138 restrict) ;; 22139 no) $as_echo "#define restrict /**/" >>confdefs.h 22140 ;; 22141 *) cat >>confdefs.h <<_ACEOF 22142#define restrict $ac_cv_c_restrict 22143_ACEOF 22144 ;; 22145 esac 22146 22147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 22148$as_echo_n "checking for working volatile... " >&6; } 22149if ${ac_cv_c_volatile+:} false; then : 22150 $as_echo_n "(cached) " >&6 22151else 22152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22153/* end confdefs.h. */ 22154 22155int 22156main () 22157{ 22158 22159volatile int x; 22160int * volatile y = (int *) 0; 22161return !x && !y; 22162 ; 22163 return 0; 22164} 22165_ACEOF 22166if ac_fn_c_try_compile "$LINENO"; then : 22167 ac_cv_c_volatile=yes 22168else 22169 ac_cv_c_volatile=no 22170fi 22171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22172fi 22173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 22174$as_echo "$ac_cv_c_volatile" >&6; } 22175if test $ac_cv_c_volatile = no; then 22176 22177$as_echo "#define volatile /**/" >>confdefs.h 22178 22179fi 22180 22181 22182# If words are stored with the most significant byte first (like 22183# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'. 22184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 22185$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 22186if ${ac_cv_c_bigendian+:} false; then : 22187 $as_echo_n "(cached) " >&6 22188else 22189 ac_cv_c_bigendian=unknown 22190 # See if we're dealing with a universal compiler. 22191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22192/* end confdefs.h. */ 22193#ifndef __APPLE_CC__ 22194 not a universal capable compiler 22195 #endif 22196 typedef int dummy; 22197 22198_ACEOF 22199if ac_fn_c_try_compile "$LINENO"; then : 22200 22201 # Check for potential -arch flags. It is not universal unless 22202 # there are at least two -arch flags with different values. 22203 ac_arch= 22204 ac_prev= 22205 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 22206 if test -n "$ac_prev"; then 22207 case $ac_word in 22208 i?86 | x86_64 | ppc | ppc64) 22209 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 22210 ac_arch=$ac_word 22211 else 22212 ac_cv_c_bigendian=universal 22213 break 22214 fi 22215 ;; 22216 esac 22217 ac_prev= 22218 elif test "x$ac_word" = "x-arch"; then 22219 ac_prev=arch 22220 fi 22221 done 22222fi 22223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22224 if test $ac_cv_c_bigendian = unknown; then 22225 # See if sys/param.h defines the BYTE_ORDER macro. 22226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22227/* end confdefs.h. */ 22228#include <sys/types.h> 22229 #include <sys/param.h> 22230 22231int 22232main () 22233{ 22234#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 22235 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 22236 && LITTLE_ENDIAN) 22237 bogus endian macros 22238 #endif 22239 22240 ; 22241 return 0; 22242} 22243_ACEOF 22244if ac_fn_c_try_compile "$LINENO"; then : 22245 # It does; now see whether it defined to BIG_ENDIAN or not. 22246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22247/* end confdefs.h. */ 22248#include <sys/types.h> 22249 #include <sys/param.h> 22250 22251int 22252main () 22253{ 22254#if BYTE_ORDER != BIG_ENDIAN 22255 not big endian 22256 #endif 22257 22258 ; 22259 return 0; 22260} 22261_ACEOF 22262if ac_fn_c_try_compile "$LINENO"; then : 22263 ac_cv_c_bigendian=yes 22264else 22265 ac_cv_c_bigendian=no 22266fi 22267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22268fi 22269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22270 fi 22271 if test $ac_cv_c_bigendian = unknown; then 22272 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 22273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22274/* end confdefs.h. */ 22275#include <limits.h> 22276 22277int 22278main () 22279{ 22280#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 22281 bogus endian macros 22282 #endif 22283 22284 ; 22285 return 0; 22286} 22287_ACEOF 22288if ac_fn_c_try_compile "$LINENO"; then : 22289 # It does; now see whether it defined to _BIG_ENDIAN or not. 22290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22291/* end confdefs.h. */ 22292#include <limits.h> 22293 22294int 22295main () 22296{ 22297#ifndef _BIG_ENDIAN 22298 not big endian 22299 #endif 22300 22301 ; 22302 return 0; 22303} 22304_ACEOF 22305if ac_fn_c_try_compile "$LINENO"; then : 22306 ac_cv_c_bigendian=yes 22307else 22308 ac_cv_c_bigendian=no 22309fi 22310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22311fi 22312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22313 fi 22314 if test $ac_cv_c_bigendian = unknown; then 22315 # Compile a test program. 22316 if test "$cross_compiling" = yes; then : 22317 # Try to guess by grepping values from an object file. 22318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22319/* end confdefs.h. */ 22320short int ascii_mm[] = 22321 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 22322 short int ascii_ii[] = 22323 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 22324 int use_ascii (int i) { 22325 return ascii_mm[i] + ascii_ii[i]; 22326 } 22327 short int ebcdic_ii[] = 22328 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 22329 short int ebcdic_mm[] = 22330 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 22331 int use_ebcdic (int i) { 22332 return ebcdic_mm[i] + ebcdic_ii[i]; 22333 } 22334 extern int foo; 22335 22336int 22337main () 22338{ 22339return use_ascii (foo) == use_ebcdic (foo); 22340 ; 22341 return 0; 22342} 22343_ACEOF 22344if ac_fn_c_try_compile "$LINENO"; then : 22345 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 22346 ac_cv_c_bigendian=yes 22347 fi 22348 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 22349 if test "$ac_cv_c_bigendian" = unknown; then 22350 ac_cv_c_bigendian=no 22351 else 22352 # finding both strings is unlikely to happen, but who knows? 22353 ac_cv_c_bigendian=unknown 22354 fi 22355 fi 22356fi 22357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22358else 22359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22360/* end confdefs.h. */ 22361$ac_includes_default 22362int 22363main () 22364{ 22365 22366 /* Are we little or big endian? From Harbison&Steele. */ 22367 union 22368 { 22369 long int l; 22370 char c[sizeof (long int)]; 22371 } u; 22372 u.l = 1; 22373 return u.c[sizeof (long int) - 1] == 1; 22374 22375 ; 22376 return 0; 22377} 22378_ACEOF 22379if ac_fn_c_try_run "$LINENO"; then : 22380 ac_cv_c_bigendian=no 22381else 22382 ac_cv_c_bigendian=yes 22383fi 22384rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 22385 conftest.$ac_objext conftest.beam conftest.$ac_ext 22386fi 22387 22388 fi 22389fi 22390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 22391$as_echo "$ac_cv_c_bigendian" >&6; } 22392 case $ac_cv_c_bigendian in #( 22393 yes) 22394 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 22395;; #( 22396 no) 22397 ;; #( 22398 universal) 22399 22400$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 22401 22402 ;; #( 22403 *) 22404 as_fn_error $? "unknown endianness 22405 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 22406 esac 22407 22408 22409# Define to a suitable type, if standard headers do not define it. 22410ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t" 22411case $ac_cv_c_int8_t in #( 22412 no|yes) ;; #( 22413 *) 22414 22415cat >>confdefs.h <<_ACEOF 22416#define int8_t $ac_cv_c_int8_t 22417_ACEOF 22418;; 22419esac 22420 22421ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" 22422case $ac_cv_c_int16_t in #( 22423 no|yes) ;; #( 22424 *) 22425 22426cat >>confdefs.h <<_ACEOF 22427#define int16_t $ac_cv_c_int16_t 22428_ACEOF 22429;; 22430esac 22431 22432ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" 22433case $ac_cv_c_int32_t in #( 22434 no|yes) ;; #( 22435 *) 22436 22437cat >>confdefs.h <<_ACEOF 22438#define int32_t $ac_cv_c_int32_t 22439_ACEOF 22440;; 22441esac 22442 22443ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" 22444case $ac_cv_c_int64_t in #( 22445 no|yes) ;; #( 22446 *) 22447 22448cat >>confdefs.h <<_ACEOF 22449#define int64_t $ac_cv_c_int64_t 22450_ACEOF 22451;; 22452esac 22453 22454 22455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 22456$as_echo_n "checking for unsigned long long int... " >&6; } 22457if ${ac_cv_type_unsigned_long_long_int+:} false; then : 22458 $as_echo_n "(cached) " >&6 22459else 22460 ac_cv_type_unsigned_long_long_int=yes 22461 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 22462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22463/* end confdefs.h. */ 22464 22465 /* For now, do not test the preprocessor; as of 2007 there are too many 22466 implementations with broken preprocessors. Perhaps this can 22467 be revisited in 2012. In the meantime, code should not expect 22468 #if to work with literals wider than 32 bits. */ 22469 /* Test literals. */ 22470 long long int ll = 9223372036854775807ll; 22471 long long int nll = -9223372036854775807LL; 22472 unsigned long long int ull = 18446744073709551615ULL; 22473 /* Test constant expressions. */ 22474 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 22475 ? 1 : -1)]; 22476 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 22477 ? 1 : -1)]; 22478 int i = 63; 22479int 22480main () 22481{ 22482/* Test availability of runtime routines for shift and division. */ 22483 long long int llmax = 9223372036854775807ll; 22484 unsigned long long int ullmax = 18446744073709551615ull; 22485 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 22486 | (llmax / ll) | (llmax % ll) 22487 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 22488 | (ullmax / ull) | (ullmax % ull)); 22489 ; 22490 return 0; 22491} 22492 22493_ACEOF 22494if ac_fn_c_try_link "$LINENO"; then : 22495 22496else 22497 ac_cv_type_unsigned_long_long_int=no 22498fi 22499rm -f core conftest.err conftest.$ac_objext \ 22500 conftest$ac_exeext conftest.$ac_ext 22501 fi 22502fi 22503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 22504$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } 22505 if test $ac_cv_type_unsigned_long_long_int = yes; then 22506 22507$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h 22508 22509 fi 22510 22511 22512 22513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 22514$as_echo_n "checking for long long int... " >&6; } 22515if ${ac_cv_type_long_long_int+:} false; then : 22516 $as_echo_n "(cached) " >&6 22517else 22518 ac_cv_type_long_long_int=yes 22519 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 22520 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int 22521 if test $ac_cv_type_long_long_int = yes; then 22522 if test "$cross_compiling" = yes; then : 22523 : 22524else 22525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22526/* end confdefs.h. */ 22527#include <limits.h> 22528 #ifndef LLONG_MAX 22529 # define HALF \ 22530 (1LL << (sizeof (long long int) * CHAR_BIT - 2)) 22531 # define LLONG_MAX (HALF - 1 + HALF) 22532 #endif 22533int 22534main () 22535{ 22536long long int n = 1; 22537 int i; 22538 for (i = 0; ; i++) 22539 { 22540 long long int m = n << i; 22541 if (m >> i != n) 22542 return 1; 22543 if (LLONG_MAX / 2 < m) 22544 break; 22545 } 22546 return 0; 22547 ; 22548 return 0; 22549} 22550_ACEOF 22551if ac_fn_c_try_run "$LINENO"; then : 22552 22553else 22554 ac_cv_type_long_long_int=no 22555fi 22556rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 22557 conftest.$ac_objext conftest.beam conftest.$ac_ext 22558fi 22559 22560 fi 22561 fi 22562fi 22563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 22564$as_echo "$ac_cv_type_long_long_int" >&6; } 22565 if test $ac_cv_type_long_long_int = yes; then 22566 22567$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h 22568 22569 fi 22570 22571 22572 22573 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default" 22574if test "x$ac_cv_type_intmax_t" = xyes; then : 22575 22576$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h 22577 22578else 22579 test $ac_cv_type_long_long_int = yes \ 22580 && ac_type='long long int' \ 22581 || ac_type='long int' 22582 22583cat >>confdefs.h <<_ACEOF 22584#define intmax_t $ac_type 22585_ACEOF 22586 22587fi 22588 22589 22590 22591 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" 22592if test "x$ac_cv_type_intptr_t" = xyes; then : 22593 22594$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h 22595 22596else 22597 for ac_type in 'int' 'long int' 'long long int'; do 22598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22599/* end confdefs.h. */ 22600$ac_includes_default 22601int 22602main () 22603{ 22604static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 22605test_array [0] = 0; 22606return test_array [0]; 22607 22608 ; 22609 return 0; 22610} 22611_ACEOF 22612if ac_fn_c_try_compile "$LINENO"; then : 22613 22614cat >>confdefs.h <<_ACEOF 22615#define intptr_t $ac_type 22616_ACEOF 22617 22618 ac_type= 22619fi 22620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22621 test -z "$ac_type" && break 22622 done 22623fi 22624 22625 22626 22627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5 22628$as_echo_n "checking for long double... " >&6; } 22629if ${ac_cv_type_long_double+:} false; then : 22630 $as_echo_n "(cached) " >&6 22631else 22632 if test "$GCC" = yes; then 22633 ac_cv_type_long_double=yes 22634 else 22635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22636/* end confdefs.h. */ 22637/* The Stardent Vistra knows sizeof (long double), but does 22638 not support it. */ 22639 long double foo = 0.0L; 22640int 22641main () 22642{ 22643static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */ 22644 sizeof (double) <= sizeof (long double))]; 22645test_array [0] = 0; 22646return test_array [0]; 22647 22648 ; 22649 return 0; 22650} 22651_ACEOF 22652if ac_fn_c_try_compile "$LINENO"; then : 22653 ac_cv_type_long_double=yes 22654else 22655 ac_cv_type_long_double=no 22656fi 22657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22658 fi 22659fi 22660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5 22661$as_echo "$ac_cv_type_long_double" >&6; } 22662 if test $ac_cv_type_long_double = yes; then 22663 22664$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h 22665 22666 fi 22667 22668 22669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5 22670$as_echo_n "checking for long double with more range or precision than double... " >&6; } 22671if ${ac_cv_type_long_double_wider+:} false; then : 22672 $as_echo_n "(cached) " >&6 22673else 22674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22675/* end confdefs.h. */ 22676#include <float.h> 22677 long double const a[] = 22678 { 22679 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON, 22680 LDBL_MIN, LDBL_MAX, LDBL_EPSILON 22681 }; 22682 long double 22683 f (long double x) 22684 { 22685 return ((x + (unsigned long int) 10) * (-1 / x) + a[0] 22686 + (x ? f (x) : 'c')); 22687 } 22688 22689int 22690main () 22691{ 22692static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP) 22693 + (DBL_MANT_DIG < LDBL_MANT_DIG) 22694 - (LDBL_MAX_EXP < DBL_MAX_EXP) 22695 - (LDBL_MANT_DIG < DBL_MANT_DIG))) 22696 && (int) LDBL_EPSILON == 0 22697 )]; 22698test_array [0] = 0; 22699return test_array [0]; 22700 22701 ; 22702 return 0; 22703} 22704_ACEOF 22705if ac_fn_c_try_compile "$LINENO"; then : 22706 ac_cv_type_long_double_wider=yes 22707else 22708 ac_cv_type_long_double_wider=no 22709fi 22710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22711fi 22712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5 22713$as_echo "$ac_cv_type_long_double_wider" >&6; } 22714 if test $ac_cv_type_long_double_wider = yes; then 22715 22716$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h 22717 22718 fi 22719 22720 22721 22722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 22723$as_echo_n "checking for long long int... " >&6; } 22724if ${ac_cv_type_long_long_int+:} false; then : 22725 $as_echo_n "(cached) " >&6 22726else 22727 ac_cv_type_long_long_int=yes 22728 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 22729 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int 22730 if test $ac_cv_type_long_long_int = yes; then 22731 if test "$cross_compiling" = yes; then : 22732 : 22733else 22734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22735/* end confdefs.h. */ 22736#include <limits.h> 22737 #ifndef LLONG_MAX 22738 # define HALF \ 22739 (1LL << (sizeof (long long int) * CHAR_BIT - 2)) 22740 # define LLONG_MAX (HALF - 1 + HALF) 22741 #endif 22742int 22743main () 22744{ 22745long long int n = 1; 22746 int i; 22747 for (i = 0; ; i++) 22748 { 22749 long long int m = n << i; 22750 if (m >> i != n) 22751 return 1; 22752 if (LLONG_MAX / 2 < m) 22753 break; 22754 } 22755 return 0; 22756 ; 22757 return 0; 22758} 22759_ACEOF 22760if ac_fn_c_try_run "$LINENO"; then : 22761 22762else 22763 ac_cv_type_long_long_int=no 22764fi 22765rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 22766 conftest.$ac_objext conftest.beam conftest.$ac_ext 22767fi 22768 22769 fi 22770 fi 22771fi 22772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 22773$as_echo "$ac_cv_type_long_long_int" >&6; } 22774 if test $ac_cv_type_long_long_int = yes; then 22775 22776$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h 22777 22778 fi 22779 22780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5 22781$as_echo_n "checking for mbstate_t... " >&6; } 22782if ${ac_cv_type_mbstate_t+:} false; then : 22783 $as_echo_n "(cached) " >&6 22784else 22785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22786/* end confdefs.h. */ 22787$ac_includes_default 22788# include <wchar.h> 22789int 22790main () 22791{ 22792mbstate_t x; return sizeof x; 22793 ; 22794 return 0; 22795} 22796_ACEOF 22797if ac_fn_c_try_compile "$LINENO"; then : 22798 ac_cv_type_mbstate_t=yes 22799else 22800 ac_cv_type_mbstate_t=no 22801fi 22802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22803fi 22804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5 22805$as_echo "$ac_cv_type_mbstate_t" >&6; } 22806 if test $ac_cv_type_mbstate_t = yes; then 22807 22808$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h 22809 22810 else 22811 22812$as_echo "#define mbstate_t int" >>confdefs.h 22813 22814 fi 22815ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 22816if test "x$ac_cv_type_mode_t" = xyes; then : 22817 22818else 22819 22820cat >>confdefs.h <<_ACEOF 22821#define mode_t int 22822_ACEOF 22823 22824fi 22825 22826ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 22827if test "x$ac_cv_type_off_t" = xyes; then : 22828 22829else 22830 22831cat >>confdefs.h <<_ACEOF 22832#define off_t long int 22833_ACEOF 22834 22835fi 22836 22837ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 22838if test "x$ac_cv_type_pid_t" = xyes; then : 22839 22840else 22841 22842cat >>confdefs.h <<_ACEOF 22843#define pid_t int 22844_ACEOF 22845 22846fi 22847 22848ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 22849if test "x$ac_cv_type_size_t" = xyes; then : 22850 22851else 22852 22853cat >>confdefs.h <<_ACEOF 22854#define size_t unsigned int 22855_ACEOF 22856 22857fi 22858 22859ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 22860if test "x$ac_cv_type_ssize_t" = xyes; then : 22861 22862else 22863 22864cat >>confdefs.h <<_ACEOF 22865#define ssize_t int 22866_ACEOF 22867 22868fi 22869 22870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 22871$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 22872if ${ac_cv_type_uid_t+:} false; then : 22873 $as_echo_n "(cached) " >&6 22874else 22875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22876/* end confdefs.h. */ 22877#include <sys/types.h> 22878 22879_ACEOF 22880if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 22881 $EGREP "uid_t" >/dev/null 2>&1; then : 22882 ac_cv_type_uid_t=yes 22883else 22884 ac_cv_type_uid_t=no 22885fi 22886rm -f conftest* 22887 22888fi 22889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 22890$as_echo "$ac_cv_type_uid_t" >&6; } 22891if test $ac_cv_type_uid_t = no; then 22892 22893$as_echo "#define uid_t int" >>confdefs.h 22894 22895 22896$as_echo "#define gid_t int" >>confdefs.h 22897 22898fi 22899 22900ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" 22901case $ac_cv_c_uint8_t in #( 22902 no|yes) ;; #( 22903 *) 22904 22905$as_echo "#define _UINT8_T 1" >>confdefs.h 22906 22907 22908cat >>confdefs.h <<_ACEOF 22909#define uint8_t $ac_cv_c_uint8_t 22910_ACEOF 22911;; 22912 esac 22913 22914ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" 22915case $ac_cv_c_uint16_t in #( 22916 no|yes) ;; #( 22917 *) 22918 22919 22920cat >>confdefs.h <<_ACEOF 22921#define uint16_t $ac_cv_c_uint16_t 22922_ACEOF 22923;; 22924 esac 22925 22926ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" 22927case $ac_cv_c_uint32_t in #( 22928 no|yes) ;; #( 22929 *) 22930 22931$as_echo "#define _UINT32_T 1" >>confdefs.h 22932 22933 22934cat >>confdefs.h <<_ACEOF 22935#define uint32_t $ac_cv_c_uint32_t 22936_ACEOF 22937;; 22938 esac 22939 22940ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" 22941case $ac_cv_c_uint64_t in #( 22942 no|yes) ;; #( 22943 *) 22944 22945$as_echo "#define _UINT64_T 1" >>confdefs.h 22946 22947 22948cat >>confdefs.h <<_ACEOF 22949#define uint64_t $ac_cv_c_uint64_t 22950_ACEOF 22951;; 22952 esac 22953 22954 22955 22956 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default" 22957if test "x$ac_cv_type_uintmax_t" = xyes; then : 22958 22959$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h 22960 22961else 22962 test $ac_cv_type_unsigned_long_long_int = yes \ 22963 && ac_type='unsigned long long int' \ 22964 || ac_type='unsigned long int' 22965 22966cat >>confdefs.h <<_ACEOF 22967#define uintmax_t $ac_type 22968_ACEOF 22969 22970fi 22971 22972 22973 22974 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 22975if test "x$ac_cv_type_uintptr_t" = xyes; then : 22976 22977$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h 22978 22979else 22980 for ac_type in 'unsigned int' 'unsigned long int' \ 22981 'unsigned long long int'; do 22982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22983/* end confdefs.h. */ 22984$ac_includes_default 22985int 22986main () 22987{ 22988static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 22989test_array [0] = 0; 22990return test_array [0]; 22991 22992 ; 22993 return 0; 22994} 22995_ACEOF 22996if ac_fn_c_try_compile "$LINENO"; then : 22997 22998cat >>confdefs.h <<_ACEOF 22999#define uintptr_t $ac_type 23000_ACEOF 23001 23002 ac_type= 23003fi 23004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23005 test -z "$ac_type" && break 23006 done 23007fi 23008 23009 23010 23011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 23012$as_echo_n "checking for unsigned long long int... " >&6; } 23013if ${ac_cv_type_unsigned_long_long_int+:} false; then : 23014 $as_echo_n "(cached) " >&6 23015else 23016 ac_cv_type_unsigned_long_long_int=yes 23017 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 23018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23019/* end confdefs.h. */ 23020 23021 /* For now, do not test the preprocessor; as of 2007 there are too many 23022 implementations with broken preprocessors. Perhaps this can 23023 be revisited in 2012. In the meantime, code should not expect 23024 #if to work with literals wider than 32 bits. */ 23025 /* Test literals. */ 23026 long long int ll = 9223372036854775807ll; 23027 long long int nll = -9223372036854775807LL; 23028 unsigned long long int ull = 18446744073709551615ULL; 23029 /* Test constant expressions. */ 23030 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 23031 ? 1 : -1)]; 23032 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 23033 ? 1 : -1)]; 23034 int i = 63; 23035int 23036main () 23037{ 23038/* Test availability of runtime routines for shift and division. */ 23039 long long int llmax = 9223372036854775807ll; 23040 unsigned long long int ullmax = 18446744073709551615ull; 23041 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 23042 | (llmax / ll) | (llmax % ll) 23043 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 23044 | (ullmax / ull) | (ullmax % ull)); 23045 ; 23046 return 0; 23047} 23048 23049_ACEOF 23050if ac_fn_c_try_link "$LINENO"; then : 23051 23052else 23053 ac_cv_type_unsigned_long_long_int=no 23054fi 23055rm -f core conftest.err conftest.$ac_objext \ 23056 conftest$ac_exeext conftest.$ac_ext 23057 fi 23058fi 23059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 23060$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } 23061 if test $ac_cv_type_unsigned_long_long_int = yes; then 23062 23063$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h 23064 23065 fi 23066 23067 23068# Float_t and double_t are intended to be the the most efficient type. 23069ac_fn_c_check_type "$LINENO" "float_t" "ac_cv_type_float_t" "#include <math.h> 23070" 23071if test "x$ac_cv_type_float_t" = xyes; then : 23072 23073cat >>confdefs.h <<_ACEOF 23074#define HAVE_FLOAT_T 1 23075_ACEOF 23076 23077 23078fi 23079 23080ac_fn_c_check_type "$LINENO" "double_t" "ac_cv_type_double_t" "#include <math.h> 23081" 23082if test "x$ac_cv_type_double_t" = xyes; then : 23083 23084cat >>confdefs.h <<_ACEOF 23085#define HAVE_DOUBLE_T 1 23086_ACEOF 23087 23088 23089fi 23090 23091# The cast to long int works around a bug in the HP C Compiler 23092# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23093# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23094# This bug is HP SR number 8606223364. 23095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5 23096$as_echo_n "checking size of float_t... " >&6; } 23097if ${ac_cv_sizeof_float_t+:} false; then : 23098 $as_echo_n "(cached) " >&6 23099else 23100 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t" "#include <math.h> 23101"; then : 23102 23103else 23104 if test "$ac_cv_type_float_t" = yes; then 23105 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23106$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23107as_fn_error 77 "cannot compute sizeof (float_t) 23108See \`config.log' for more details" "$LINENO" 5; } 23109 else 23110 ac_cv_sizeof_float_t=0 23111 fi 23112fi 23113 23114fi 23115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5 23116$as_echo "$ac_cv_sizeof_float_t" >&6; } 23117 23118 23119 23120cat >>confdefs.h <<_ACEOF 23121#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t 23122_ACEOF 23123 23124 23125# The cast to long int works around a bug in the HP C Compiler 23126# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23127# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23128# This bug is HP SR number 8606223364. 23129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5 23130$as_echo_n "checking size of double_t... " >&6; } 23131if ${ac_cv_sizeof_double_t+:} false; then : 23132 $as_echo_n "(cached) " >&6 23133else 23134 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t" "#include <math.h> 23135"; then : 23136 23137else 23138 if test "$ac_cv_type_double_t" = yes; then 23139 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23140$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23141as_fn_error 77 "cannot compute sizeof (double_t) 23142See \`config.log' for more details" "$LINENO" 5; } 23143 else 23144 ac_cv_sizeof_double_t=0 23145 fi 23146fi 23147 23148fi 23149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5 23150$as_echo "$ac_cv_sizeof_double_t" >&6; } 23151 23152 23153 23154cat >>confdefs.h <<_ACEOF 23155#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t 23156_ACEOF 23157 23158 23159 23160# Get size of float, double and long double for comparaison. 23161# The cast to long int works around a bug in the HP C Compiler 23162# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23163# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23164# This bug is HP SR number 8606223364. 23165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 23166$as_echo_n "checking size of float... " >&6; } 23167if ${ac_cv_sizeof_float+:} false; then : 23168 $as_echo_n "(cached) " >&6 23169else 23170 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then : 23171 23172else 23173 if test "$ac_cv_type_float" = yes; then 23174 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23175$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23176as_fn_error 77 "cannot compute sizeof (float) 23177See \`config.log' for more details" "$LINENO" 5; } 23178 else 23179 ac_cv_sizeof_float=0 23180 fi 23181fi 23182 23183fi 23184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 23185$as_echo "$ac_cv_sizeof_float" >&6; } 23186 23187 23188 23189cat >>confdefs.h <<_ACEOF 23190#define SIZEOF_FLOAT $ac_cv_sizeof_float 23191_ACEOF 23192 23193 23194# The cast to long int works around a bug in the HP C Compiler 23195# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23196# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23197# This bug is HP SR number 8606223364. 23198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 23199$as_echo_n "checking size of double... " >&6; } 23200if ${ac_cv_sizeof_double+:} false; then : 23201 $as_echo_n "(cached) " >&6 23202else 23203 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then : 23204 23205else 23206 if test "$ac_cv_type_double" = yes; then 23207 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23208$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23209as_fn_error 77 "cannot compute sizeof (double) 23210See \`config.log' for more details" "$LINENO" 5; } 23211 else 23212 ac_cv_sizeof_double=0 23213 fi 23214fi 23215 23216fi 23217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 23218$as_echo "$ac_cv_sizeof_double" >&6; } 23219 23220 23221 23222cat >>confdefs.h <<_ACEOF 23223#define SIZEOF_DOUBLE $ac_cv_sizeof_double 23224_ACEOF 23225 23226 23227# The cast to long int works around a bug in the HP C Compiler 23228# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23229# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23230# This bug is HP SR number 8606223364. 23231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5 23232$as_echo_n "checking size of long double... " >&6; } 23233if ${ac_cv_sizeof_long_double+:} false; then : 23234 $as_echo_n "(cached) " >&6 23235else 23236 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then : 23237 23238else 23239 if test "$ac_cv_type_long_double" = yes; then 23240 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23241$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23242as_fn_error 77 "cannot compute sizeof (long double) 23243See \`config.log' for more details" "$LINENO" 5; } 23244 else 23245 ac_cv_sizeof_long_double=0 23246 fi 23247fi 23248 23249fi 23250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5 23251$as_echo "$ac_cv_sizeof_long_double" >&6; } 23252 23253 23254 23255cat >>confdefs.h <<_ACEOF 23256#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double 23257_ACEOF 23258 23259 23260 23261# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT 23262# The cast to long int works around a bug in the HP C Compiler 23263# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23264# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23265# This bug is HP SR number 8606223364. 23266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5 23267$as_echo_n "checking size of signed short... " >&6; } 23268if ${ac_cv_sizeof_signed_short+:} false; then : 23269 $as_echo_n "(cached) " >&6 23270else 23271 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short" "$ac_includes_default"; then : 23272 23273else 23274 if test "$ac_cv_type_signed_short" = yes; then 23275 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23276$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23277as_fn_error 77 "cannot compute sizeof (signed short) 23278See \`config.log' for more details" "$LINENO" 5; } 23279 else 23280 ac_cv_sizeof_signed_short=0 23281 fi 23282fi 23283 23284fi 23285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5 23286$as_echo "$ac_cv_sizeof_signed_short" >&6; } 23287 23288 23289 23290cat >>confdefs.h <<_ACEOF 23291#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short 23292_ACEOF 23293 23294 23295 23296# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT 23297# The cast to long int works around a bug in the HP C Compiler 23298# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23299# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23300# This bug is HP SR number 8606223364. 23301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5 23302$as_echo_n "checking size of unsigned short... " >&6; } 23303if ${ac_cv_sizeof_unsigned_short+:} false; then : 23304 $as_echo_n "(cached) " >&6 23305else 23306 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then : 23307 23308else 23309 if test "$ac_cv_type_unsigned_short" = yes; then 23310 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23311$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23312as_fn_error 77 "cannot compute sizeof (unsigned short) 23313See \`config.log' for more details" "$LINENO" 5; } 23314 else 23315 ac_cv_sizeof_unsigned_short=0 23316 fi 23317fi 23318 23319fi 23320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5 23321$as_echo "$ac_cv_sizeof_unsigned_short" >&6; } 23322 23323 23324 23325cat >>confdefs.h <<_ACEOF 23326#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short 23327_ACEOF 23328 23329 23330 23331# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT 23332# The cast to long int works around a bug in the HP C Compiler 23333# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23334# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23335# This bug is HP SR number 8606223364. 23336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5 23337$as_echo_n "checking size of signed int... " >&6; } 23338if ${ac_cv_sizeof_signed_int+:} false; then : 23339 $as_echo_n "(cached) " >&6 23340else 23341 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int" "$ac_includes_default"; then : 23342 23343else 23344 if test "$ac_cv_type_signed_int" = yes; then 23345 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23346$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23347as_fn_error 77 "cannot compute sizeof (signed int) 23348See \`config.log' for more details" "$LINENO" 5; } 23349 else 23350 ac_cv_sizeof_signed_int=0 23351 fi 23352fi 23353 23354fi 23355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5 23356$as_echo "$ac_cv_sizeof_signed_int" >&6; } 23357 23358 23359 23360cat >>confdefs.h <<_ACEOF 23361#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int 23362_ACEOF 23363 23364 23365 23366# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT 23367# The cast to long int works around a bug in the HP C Compiler 23368# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23369# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23370# This bug is HP SR number 8606223364. 23371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5 23372$as_echo_n "checking size of unsigned int... " >&6; } 23373if ${ac_cv_sizeof_unsigned_int+:} false; then : 23374 $as_echo_n "(cached) " >&6 23375else 23376 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then : 23377 23378else 23379 if test "$ac_cv_type_unsigned_int" = yes; then 23380 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23381$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23382as_fn_error 77 "cannot compute sizeof (unsigned int) 23383See \`config.log' for more details" "$LINENO" 5; } 23384 else 23385 ac_cv_sizeof_unsigned_int=0 23386 fi 23387fi 23388 23389fi 23390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5 23391$as_echo "$ac_cv_sizeof_unsigned_int" >&6; } 23392 23393 23394 23395cat >>confdefs.h <<_ACEOF 23396#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int 23397_ACEOF 23398 23399 23400 23401# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG 23402# The cast to long int works around a bug in the HP C Compiler 23403# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23404# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23405# This bug is HP SR number 8606223364. 23406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5 23407$as_echo_n "checking size of signed long... " >&6; } 23408if ${ac_cv_sizeof_signed_long+:} false; then : 23409 $as_echo_n "(cached) " >&6 23410else 23411 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long" "$ac_includes_default"; then : 23412 23413else 23414 if test "$ac_cv_type_signed_long" = yes; then 23415 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23416$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23417as_fn_error 77 "cannot compute sizeof (signed long) 23418See \`config.log' for more details" "$LINENO" 5; } 23419 else 23420 ac_cv_sizeof_signed_long=0 23421 fi 23422fi 23423 23424fi 23425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5 23426$as_echo "$ac_cv_sizeof_signed_long" >&6; } 23427 23428 23429 23430cat >>confdefs.h <<_ACEOF 23431#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long 23432_ACEOF 23433 23434 23435 23436# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG 23437# The cast to long int works around a bug in the HP C Compiler 23438# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23439# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23440# This bug is HP SR number 8606223364. 23441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 23442$as_echo_n "checking size of unsigned long... " >&6; } 23443if ${ac_cv_sizeof_unsigned_long+:} false; then : 23444 $as_echo_n "(cached) " >&6 23445else 23446 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then : 23447 23448else 23449 if test "$ac_cv_type_unsigned_long" = yes; then 23450 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23451$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23452as_fn_error 77 "cannot compute sizeof (unsigned long) 23453See \`config.log' for more details" "$LINENO" 5; } 23454 else 23455 ac_cv_sizeof_unsigned_long=0 23456 fi 23457fi 23458 23459fi 23460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5 23461$as_echo "$ac_cv_sizeof_unsigned_long" >&6; } 23462 23463 23464 23465cat >>confdefs.h <<_ACEOF 23466#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long 23467_ACEOF 23468 23469 23470 23471# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If 23472# 'signed long long' is not supported then the value defined is zero. 23473# The cast to long int works around a bug in the HP C Compiler 23474# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23475# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23476# This bug is HP SR number 8606223364. 23477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5 23478$as_echo_n "checking size of signed long long... " >&6; } 23479if ${ac_cv_sizeof_signed_long_long+:} false; then : 23480 $as_echo_n "(cached) " >&6 23481else 23482 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long" "$ac_includes_default"; then : 23483 23484else 23485 if test "$ac_cv_type_signed_long_long" = yes; then 23486 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23487$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23488as_fn_error 77 "cannot compute sizeof (signed long long) 23489See \`config.log' for more details" "$LINENO" 5; } 23490 else 23491 ac_cv_sizeof_signed_long_long=0 23492 fi 23493fi 23494 23495fi 23496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5 23497$as_echo "$ac_cv_sizeof_signed_long_long" >&6; } 23498 23499 23500 23501cat >>confdefs.h <<_ACEOF 23502#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long 23503_ACEOF 23504 23505 23506 23507# Obtain size of a 'unsigned long long' and define as 23508# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not 23509# supported then the value defined is zero. 23510# The cast to long int works around a bug in the HP C Compiler 23511# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23512# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23513# This bug is HP SR number 8606223364. 23514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5 23515$as_echo_n "checking size of unsigned long long... " >&6; } 23516if ${ac_cv_sizeof_unsigned_long_long+:} false; then : 23517 $as_echo_n "(cached) " >&6 23518else 23519 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then : 23520 23521else 23522 if test "$ac_cv_type_unsigned_long_long" = yes; then 23523 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23524$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23525as_fn_error 77 "cannot compute sizeof (unsigned long long) 23526See \`config.log' for more details" "$LINENO" 5; } 23527 else 23528 ac_cv_sizeof_unsigned_long_long=0 23529 fi 23530fi 23531 23532fi 23533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5 23534$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; } 23535 23536 23537 23538cat >>confdefs.h <<_ACEOF 23539#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long 23540_ACEOF 23541 23542 23543 23544# Obtain size of off_t and define as SIZEOF_OFF_T 23545# The cast to long int works around a bug in the HP C Compiler 23546# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23547# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23548# This bug is HP SR number 8606223364. 23549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 23550$as_echo_n "checking size of off_t... " >&6; } 23551if ${ac_cv_sizeof_off_t+:} false; then : 23552 $as_echo_n "(cached) " >&6 23553else 23554 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : 23555 23556else 23557 if test "$ac_cv_type_off_t" = yes; then 23558 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23559$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23560as_fn_error 77 "cannot compute sizeof (off_t) 23561See \`config.log' for more details" "$LINENO" 5; } 23562 else 23563 ac_cv_sizeof_off_t=0 23564 fi 23565fi 23566 23567fi 23568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 23569$as_echo "$ac_cv_sizeof_off_t" >&6; } 23570 23571 23572 23573cat >>confdefs.h <<_ACEOF 23574#define SIZEOF_OFF_T $ac_cv_sizeof_off_t 23575_ACEOF 23576 23577 23578 23579# Obtain size of size_t and define as SIZEOF_SIZE_T 23580# The cast to long int works around a bug in the HP C Compiler 23581# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23582# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23583# This bug is HP SR number 8606223364. 23584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 23585$as_echo_n "checking size of size_t... " >&6; } 23586if ${ac_cv_sizeof_size_t+:} false; then : 23587 $as_echo_n "(cached) " >&6 23588else 23589 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : 23590 23591else 23592 if test "$ac_cv_type_size_t" = yes; then 23593 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23594$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23595as_fn_error 77 "cannot compute sizeof (size_t) 23596See \`config.log' for more details" "$LINENO" 5; } 23597 else 23598 ac_cv_sizeof_size_t=0 23599 fi 23600fi 23601 23602fi 23603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 23604$as_echo "$ac_cv_sizeof_size_t" >&6; } 23605 23606 23607 23608cat >>confdefs.h <<_ACEOF 23609#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t 23610_ACEOF 23611 23612 23613 23614# Obtain size of ssize_t and define as SIZEOF_SSIZE_T 23615# The cast to long int works around a bug in the HP C Compiler 23616# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23617# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23618# This bug is HP SR number 8606223364. 23619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5 23620$as_echo_n "checking size of ssize_t... " >&6; } 23621if ${ac_cv_sizeof_ssize_t+:} false; then : 23622 $as_echo_n "(cached) " >&6 23623else 23624 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then : 23625 23626else 23627 if test "$ac_cv_type_ssize_t" = yes; then 23628 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23629$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23630as_fn_error 77 "cannot compute sizeof (ssize_t) 23631See \`config.log' for more details" "$LINENO" 5; } 23632 else 23633 ac_cv_sizeof_ssize_t=0 23634 fi 23635fi 23636 23637fi 23638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5 23639$as_echo "$ac_cv_sizeof_ssize_t" >&6; } 23640 23641 23642 23643cat >>confdefs.h <<_ACEOF 23644#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t 23645_ACEOF 23646 23647 23648 23649# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP 23650# The cast to long int works around a bug in the HP C Compiler 23651# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23652# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23653# This bug is HP SR number 8606223364. 23654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5 23655$as_echo_n "checking size of unsigned int*... " >&6; } 23656if ${ac_cv_sizeof_unsigned_intp+:} false; then : 23657 $as_echo_n "(cached) " >&6 23658else 23659 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int*))" "ac_cv_sizeof_unsigned_intp" "$ac_includes_default"; then : 23660 23661else 23662 if test "$ac_cv_type_unsigned_intp" = yes; then 23663 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23664$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23665as_fn_error 77 "cannot compute sizeof (unsigned int*) 23666See \`config.log' for more details" "$LINENO" 5; } 23667 else 23668 ac_cv_sizeof_unsigned_intp=0 23669 fi 23670fi 23671 23672fi 23673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5 23674$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; } 23675 23676 23677 23678cat >>confdefs.h <<_ACEOF 23679#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp 23680_ACEOF 23681 23682 23683 23684# 23685# Compute sized types for current CPU and compiler options. 23686# 23687 23688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5 23689$as_echo_n "checking for signed 8-bit type... " >&6; } 23690INT8_T='signed char' 23691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5 23692$as_echo "$INT8_T" >&6; } 23693 23694 23695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5 23696$as_echo_n "checking for unsigned 8-bit type... " >&6; } 23697UINT8_T='unsigned char' 23698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5 23699$as_echo "$UINT8_T" >&6; } 23700 23701 23702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5 23703$as_echo_n "checking for signed 16-bit type... " >&6; } 23704INT16_T='signed short' 23705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5 23706$as_echo "$INT16_T" >&6; } 23707 23708 23709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5 23710$as_echo_n "checking for unsigned 16-bit type... " >&6; } 23711UINT16_T='unsigned short' 23712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5 23713$as_echo "$UINT16_T" >&6; } 23714 23715 23716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5 23717$as_echo_n "checking for signed 32-bit type... " >&6; } 23718INT32_T='none' 23719INT32_F='none' 23720if test $ac_cv_sizeof_signed_int -eq 4; then 23721 INT32_T='signed int' 23722 INT32_F='""' 23723elif test $ac_cv_sizeof_signed_long -eq 4; then 23724 INT32_T='signed long' 23725 INT32_F='"l"' 23726fi 23727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5 23728$as_echo "$INT32_T" >&6; } 23729 23730 23731 23732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5 23733$as_echo_n "checking for unsigned 32-bit type... " >&6; } 23734UINT32_T='none' 23735UINT32_F='none' 23736if test $ac_cv_sizeof_unsigned_int -eq 4; then 23737 UINT32_T='unsigned int' 23738 UINT32_F='""' 23739elif test $ac_cv_sizeof_unsigned_long -eq 4; then 23740 UINT32_T='unsigned long' 23741 UINT32_F='"l"' 23742fi 23743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5 23744$as_echo "$UINT32_T" >&6; } 23745 23746 23747 23748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5 23749$as_echo_n "checking for signed 64-bit type... " >&6; } 23750INT64_T='none' 23751INT64_F='none' 23752if test $ac_cv_sizeof_signed_long -eq 8; then 23753 INT64_T='signed long' 23754 INT64_F='"l"' 23755elif test $ac_cv_sizeof_signed_long_long -eq 8; then 23756 INT64_T='signed long long' 23757 INT64_F='"ll"' 23758fi 23759case "${host_os}" in 23760 mingw* ) 23761 INT64_F='"I64"' 23762 ;; 23763esac 23764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5 23765$as_echo "$INT64_T" >&6; } 23766 23767 23768 23769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5 23770$as_echo_n "checking for unsigned 64-bit type... " >&6; } 23771UINT64_T='none' 23772UINT64_F='none' 23773if test $ac_cv_sizeof_unsigned_long -eq 8; then 23774 UINT64_T='unsigned long' 23775 UINT64_F='"l"' 23776elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then 23777 UINT64_T='unsigned long long' 23778 UINT64_F='"ll"' 23779fi 23780case "${host_os}" in 23781 mingw* ) 23782 UINT64_F='"I64"' 23783 ;; 23784esac 23785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5 23786$as_echo "$UINT64_T" >&6; } 23787 23788 23789 23790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5 23791$as_echo_n "checking for unsigned maximum type... " >&6; } 23792UINTMAX_T='none' 23793UINTMAX_F='none' 23794if test "$UINT64_T" != 'none'; then 23795 UINTMAX_T=$UINT64_T 23796 UINTMAX_F=$UINT64_F 23797elif test "$UINT32_T" != 'none'; then 23798 UINTMAX_T=$UINT32_T 23799 UINTMAX_F=$UINT32_F 23800fi 23801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5 23802$as_echo "$UINTMAX_T" >&6; } 23803 23804 23805 23806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5 23807$as_echo_n "checking for pointer difference type... " >&6; } 23808UINTPTR_T='none' 23809UINTPTR_F='none' 23810if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then 23811 UINTPTR_T='unsigned long' 23812 UINTPTR_F='"l"' 23813elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then 23814 UINTPTR_T='unsigned long long' 23815 UINTPTR_F='"ll"' 23816fi 23817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5 23818$as_echo "$UINTPTR_T" >&6; } 23819 23820 23821 23822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5 23823$as_echo_n "checking whether our compiler supports __func__... " >&6; } 23824cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23825/* end confdefs.h. */ 23826 23827int 23828main () 23829{ 23830{ const char *func = __func__; return(func != 0 ? 0 : 1); } 23831 ; 23832 return 0; 23833} 23834_ACEOF 23835if ac_fn_c_try_compile "$LINENO"; then : 23836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23837$as_echo "yes" >&6; } 23838else 23839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23840$as_echo "no" >&6; } 23841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5 23842$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; } 23843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23844/* end confdefs.h. */ 23845 23846int 23847main () 23848{ 23849{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); } 23850 ; 23851 return 0; 23852} 23853_ACEOF 23854if ac_fn_c_try_compile "$LINENO"; then : 23855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23856$as_echo "yes" >&6; } 23857 23858$as_echo "#define __func__ __FUNCTION__" >>confdefs.h 23859 23860else 23861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23862$as_echo "no" >&6; } 23863 23864$as_echo "#define __func__ __FILE__" >>confdefs.h 23865 23866fi 23867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23868fi 23869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23870 23871######## 23872# 23873# Check for functions 23874# 23875######## 23876for ac_header in stdlib.h unistd.h 23877do : 23878 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 23879ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 23880if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 23881 cat >>confdefs.h <<_ACEOF 23882#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 23883_ACEOF 23884 23885fi 23886 23887done 23888 23889for ac_func in getpagesize 23890do : 23891 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 23892if test "x$ac_cv_func_getpagesize" = xyes; then : 23893 cat >>confdefs.h <<_ACEOF 23894#define HAVE_GETPAGESIZE 1 23895_ACEOF 23896 23897fi 23898done 23899 23900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5 23901$as_echo_n "checking for working mmap file i/o... " >&6; } 23902if ${magick_cv_func_mmap_fileio+:} false; then : 23903 $as_echo_n "(cached) " >&6 23904else 23905 if test "$cross_compiling" = yes; then : 23906 magick_cv_func_mmap_fileio=no 23907else 23908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23909/* end confdefs.h. */ 23910$ac_includes_default 23911/* malloc might have been renamed as rpl_malloc. */ 23912#undef malloc 23913 23914/* 23915 This test is derived from GNU Autoconf's similar macro. 23916 The purpose of this test is to verify that files may be memory 23917 mapped, and that memory mapping and file I/O are coherent. 23918 23919 The test creates a test file, memory maps the file, updates 23920 the file using the memory map, and then reads the file using 23921 file I/O to verify that the file contains the updates. 23922*/ 23923 23924#include <fcntl.h> 23925#include <sys/mman.h> 23926 23927#if !STDC_HEADERS && !HAVE_STDLIB_H 23928char *malloc (); 23929#endif 23930 23931/* This mess was copied from the GNU getpagesize.h. */ 23932#if !HAVE_GETPAGESIZE 23933/* Assume that all systems that can run configure have sys/param.h. */ 23934# if !HAVE_SYS_PARAM_H 23935# define HAVE_SYS_PARAM_H 1 23936# endif 23937 23938# ifdef _SC_PAGESIZE 23939# define getpagesize() sysconf(_SC_PAGESIZE) 23940# else /* no _SC_PAGESIZE */ 23941# if HAVE_SYS_PARAM_H 23942# include <sys/param.h> 23943# ifdef EXEC_PAGESIZE 23944# define getpagesize() EXEC_PAGESIZE 23945# else /* no EXEC_PAGESIZE */ 23946# ifdef NBPG 23947# define getpagesize() NBPG * CLSIZE 23948# ifndef CLSIZE 23949# define CLSIZE 1 23950# endif /* no CLSIZE */ 23951# else /* no NBPG */ 23952# ifdef NBPC 23953# define getpagesize() NBPC 23954# else /* no NBPC */ 23955# ifdef PAGESIZE 23956# define getpagesize() PAGESIZE 23957# endif /* PAGESIZE */ 23958# endif /* no NBPC */ 23959# endif /* no NBPG */ 23960# endif /* no EXEC_PAGESIZE */ 23961# else /* no HAVE_SYS_PARAM_H */ 23962# define getpagesize() 8192 /* punt totally */ 23963# endif /* no HAVE_SYS_PARAM_H */ 23964# endif /* no _SC_PAGESIZE */ 23965 23966#endif /* no HAVE_GETPAGESIZE */ 23967 23968int 23969main () 23970{ 23971 char *data, *data2, *data3; 23972 int i, pagesize; 23973 int fd; 23974 23975 pagesize = getpagesize (); 23976 23977 /* First, make a file with some known garbage in it. */ 23978 data = (char *) malloc (pagesize); 23979 if (!data) 23980 exit (1); 23981 for (i = 0; i < pagesize; ++i) 23982 *(data + i) = rand (); 23983 umask (0); 23984 fd = creat ("conftest.mmap", 0600); 23985 if (fd < 0) 23986 exit (1); 23987 if (write (fd, data, pagesize) != pagesize) 23988 exit (1); 23989 close (fd); 23990 23991 /* Mmap the file as read/write/shared and verify that we see the 23992 same garbage. */ 23993 fd = open ("conftest.mmap", O_RDWR); 23994 if (fd < 0) 23995 exit (1); 23996 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L); 23997 if (data2 == 0) 23998 exit (1); 23999 for (i = 0; i < pagesize; ++i) 24000 if (*(data + i) != *(data2 + i)) 24001 exit (1); 24002 24003 /* Finally, make sure that changes to the mapped area 24004 percolate back to the file as seen by read(). */ 24005 for (i = 0; i < pagesize; ++i) 24006 *(data2 + i) = *(data2 + i) + 1; 24007 data3 = (char *) malloc (pagesize); 24008 if (!data3) 24009 exit (1); 24010 if (read (fd, data3, pagesize) != pagesize) 24011 exit (1); 24012 for (i = 0; i < pagesize; ++i) 24013 if (*(data2 + i) != *(data3 + i)) 24014 exit (1); 24015 close (fd); 24016 exit (0); 24017} 24018_ACEOF 24019if ac_fn_c_try_run "$LINENO"; then : 24020 magick_cv_func_mmap_fileio=yes 24021else 24022 magick_cv_func_mmap_fileio=no 24023fi 24024rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24025 conftest.$ac_objext conftest.beam conftest.$ac_ext 24026fi 24027 24028fi 24029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5 24030$as_echo "$magick_cv_func_mmap_fileio" >&6; } 24031if test $magick_cv_func_mmap_fileio = yes; then 24032 24033$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h 24034 24035fi 24036rm -f conftest.mmap 24037 24038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5 24039$as_echo_n "checking whether closedir returns void... " >&6; } 24040if ${ac_cv_func_closedir_void+:} false; then : 24041 $as_echo_n "(cached) " >&6 24042else 24043 if test "$cross_compiling" = yes; then : 24044 ac_cv_func_closedir_void=yes 24045else 24046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24047/* end confdefs.h. */ 24048$ac_includes_default 24049#include <$ac_header_dirent> 24050#ifndef __cplusplus 24051int closedir (); 24052#endif 24053 24054int 24055main () 24056{ 24057return closedir (opendir (".")) != 0; 24058 ; 24059 return 0; 24060} 24061_ACEOF 24062if ac_fn_c_try_run "$LINENO"; then : 24063 ac_cv_func_closedir_void=no 24064else 24065 ac_cv_func_closedir_void=yes 24066fi 24067rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24068 conftest.$ac_objext conftest.beam conftest.$ac_ext 24069fi 24070 24071fi 24072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5 24073$as_echo "$ac_cv_func_closedir_void" >&6; } 24074if test $ac_cv_func_closedir_void = yes; then 24075 24076$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h 24077 24078fi 24079 24080 24081 24082 24083 for ac_header in $ac_header_list 24084do : 24085 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 24086ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 24087" 24088if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 24089 cat >>confdefs.h <<_ACEOF 24090#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 24091_ACEOF 24092 24093fi 24094 24095done 24096 24097 24098 24099 24100 24101 24102 24103 24104for ac_func in getpagesize 24105do : 24106 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 24107if test "x$ac_cv_func_getpagesize" = xyes; then : 24108 cat >>confdefs.h <<_ACEOF 24109#define HAVE_GETPAGESIZE 1 24110_ACEOF 24111 24112fi 24113done 24114 24115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 24116$as_echo_n "checking for working mmap... " >&6; } 24117if ${ac_cv_func_mmap_fixed_mapped+:} false; then : 24118 $as_echo_n "(cached) " >&6 24119else 24120 if test "$cross_compiling" = yes; then : 24121 ac_cv_func_mmap_fixed_mapped=no 24122else 24123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24124/* end confdefs.h. */ 24125$ac_includes_default 24126/* malloc might have been renamed as rpl_malloc. */ 24127#undef malloc 24128 24129/* Thanks to Mike Haertel and Jim Avera for this test. 24130 Here is a matrix of mmap possibilities: 24131 mmap private not fixed 24132 mmap private fixed at somewhere currently unmapped 24133 mmap private fixed at somewhere already mapped 24134 mmap shared not fixed 24135 mmap shared fixed at somewhere currently unmapped 24136 mmap shared fixed at somewhere already mapped 24137 For private mappings, we should verify that changes cannot be read() 24138 back from the file, nor mmap's back from the file at a different 24139 address. (There have been systems where private was not correctly 24140 implemented like the infamous i386 svr4.0, and systems where the 24141 VM page cache was not coherent with the file system buffer cache 24142 like early versions of FreeBSD and possibly contemporary NetBSD.) 24143 For shared mappings, we should conversely verify that changes get 24144 propagated back to all the places they're supposed to be. 24145 24146 Grep wants private fixed already mapped. 24147 The main things grep needs to know about mmap are: 24148 * does it exist and is it safe to write into the mmap'd area 24149 * how to use it (BSD variants) */ 24150 24151#include <fcntl.h> 24152#include <sys/mman.h> 24153 24154#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 24155char *malloc (); 24156#endif 24157 24158/* This mess was copied from the GNU getpagesize.h. */ 24159#ifndef HAVE_GETPAGESIZE 24160# ifdef _SC_PAGESIZE 24161# define getpagesize() sysconf(_SC_PAGESIZE) 24162# else /* no _SC_PAGESIZE */ 24163# ifdef HAVE_SYS_PARAM_H 24164# include <sys/param.h> 24165# ifdef EXEC_PAGESIZE 24166# define getpagesize() EXEC_PAGESIZE 24167# else /* no EXEC_PAGESIZE */ 24168# ifdef NBPG 24169# define getpagesize() NBPG * CLSIZE 24170# ifndef CLSIZE 24171# define CLSIZE 1 24172# endif /* no CLSIZE */ 24173# else /* no NBPG */ 24174# ifdef NBPC 24175# define getpagesize() NBPC 24176# else /* no NBPC */ 24177# ifdef PAGESIZE 24178# define getpagesize() PAGESIZE 24179# endif /* PAGESIZE */ 24180# endif /* no NBPC */ 24181# endif /* no NBPG */ 24182# endif /* no EXEC_PAGESIZE */ 24183# else /* no HAVE_SYS_PARAM_H */ 24184# define getpagesize() 8192 /* punt totally */ 24185# endif /* no HAVE_SYS_PARAM_H */ 24186# endif /* no _SC_PAGESIZE */ 24187 24188#endif /* no HAVE_GETPAGESIZE */ 24189 24190int 24191main () 24192{ 24193 char *data, *data2, *data3; 24194 const char *cdata2; 24195 int i, pagesize; 24196 int fd, fd2; 24197 24198 pagesize = getpagesize (); 24199 24200 /* First, make a file with some known garbage in it. */ 24201 data = (char *) malloc (pagesize); 24202 if (!data) 24203 return 1; 24204 for (i = 0; i < pagesize; ++i) 24205 *(data + i) = rand (); 24206 umask (0); 24207 fd = creat ("conftest.mmap", 0600); 24208 if (fd < 0) 24209 return 2; 24210 if (write (fd, data, pagesize) != pagesize) 24211 return 3; 24212 close (fd); 24213 24214 /* Next, check that the tail of a page is zero-filled. File must have 24215 non-zero length, otherwise we risk SIGBUS for entire page. */ 24216 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 24217 if (fd2 < 0) 24218 return 4; 24219 cdata2 = ""; 24220 if (write (fd2, cdata2, 1) != 1) 24221 return 5; 24222 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 24223 if (data2 == MAP_FAILED) 24224 return 6; 24225 for (i = 0; i < pagesize; ++i) 24226 if (*(data2 + i)) 24227 return 7; 24228 close (fd2); 24229 if (munmap (data2, pagesize)) 24230 return 8; 24231 24232 /* Next, try to mmap the file at a fixed address which already has 24233 something else allocated at it. If we can, also make sure that 24234 we see the same garbage. */ 24235 fd = open ("conftest.mmap", O_RDWR); 24236 if (fd < 0) 24237 return 9; 24238 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 24239 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 24240 return 10; 24241 for (i = 0; i < pagesize; ++i) 24242 if (*(data + i) != *(data2 + i)) 24243 return 11; 24244 24245 /* Finally, make sure that changes to the mapped area do not 24246 percolate back to the file as seen by read(). (This is a bug on 24247 some variants of i386 svr4.0.) */ 24248 for (i = 0; i < pagesize; ++i) 24249 *(data2 + i) = *(data2 + i) + 1; 24250 data3 = (char *) malloc (pagesize); 24251 if (!data3) 24252 return 12; 24253 if (read (fd, data3, pagesize) != pagesize) 24254 return 13; 24255 for (i = 0; i < pagesize; ++i) 24256 if (*(data + i) != *(data3 + i)) 24257 return 14; 24258 close (fd); 24259 return 0; 24260} 24261_ACEOF 24262if ac_fn_c_try_run "$LINENO"; then : 24263 ac_cv_func_mmap_fixed_mapped=yes 24264else 24265 ac_cv_func_mmap_fixed_mapped=no 24266fi 24267rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24268 conftest.$ac_objext conftest.beam conftest.$ac_ext 24269fi 24270 24271fi 24272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 24273$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 24274if test $ac_cv_func_mmap_fixed_mapped = yes; then 24275 24276$as_echo "#define HAVE_MMAP 1" >>confdefs.h 24277 24278fi 24279rm -f conftest.mmap conftest.txt 24280 24281for ac_header in vfork.h 24282do : 24283 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 24284if test "x$ac_cv_header_vfork_h" = xyes; then : 24285 cat >>confdefs.h <<_ACEOF 24286#define HAVE_VFORK_H 1 24287_ACEOF 24288 24289fi 24290 24291done 24292 24293for ac_func in fork vfork 24294do : 24295 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 24296ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 24297if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 24298 cat >>confdefs.h <<_ACEOF 24299#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 24300_ACEOF 24301 24302fi 24303done 24304 24305if test "x$ac_cv_func_fork" = xyes; then 24306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 24307$as_echo_n "checking for working fork... " >&6; } 24308if ${ac_cv_func_fork_works+:} false; then : 24309 $as_echo_n "(cached) " >&6 24310else 24311 if test "$cross_compiling" = yes; then : 24312 ac_cv_func_fork_works=cross 24313else 24314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24315/* end confdefs.h. */ 24316$ac_includes_default 24317int 24318main () 24319{ 24320 24321 /* By Ruediger Kuhlmann. */ 24322 return fork () < 0; 24323 24324 ; 24325 return 0; 24326} 24327_ACEOF 24328if ac_fn_c_try_run "$LINENO"; then : 24329 ac_cv_func_fork_works=yes 24330else 24331 ac_cv_func_fork_works=no 24332fi 24333rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24334 conftest.$ac_objext conftest.beam conftest.$ac_ext 24335fi 24336 24337fi 24338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 24339$as_echo "$ac_cv_func_fork_works" >&6; } 24340 24341else 24342 ac_cv_func_fork_works=$ac_cv_func_fork 24343fi 24344if test "x$ac_cv_func_fork_works" = xcross; then 24345 case $host in 24346 *-*-amigaos* | *-*-msdosdjgpp*) 24347 # Override, as these systems have only a dummy fork() stub 24348 ac_cv_func_fork_works=no 24349 ;; 24350 *) 24351 ac_cv_func_fork_works=yes 24352 ;; 24353 esac 24354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 24355$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 24356fi 24357ac_cv_func_vfork_works=$ac_cv_func_vfork 24358if test "x$ac_cv_func_vfork" = xyes; then 24359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 24360$as_echo_n "checking for working vfork... " >&6; } 24361if ${ac_cv_func_vfork_works+:} false; then : 24362 $as_echo_n "(cached) " >&6 24363else 24364 if test "$cross_compiling" = yes; then : 24365 ac_cv_func_vfork_works=cross 24366else 24367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24368/* end confdefs.h. */ 24369/* Thanks to Paul Eggert for this test. */ 24370$ac_includes_default 24371#include <sys/wait.h> 24372#ifdef HAVE_VFORK_H 24373# include <vfork.h> 24374#endif 24375/* On some sparc systems, changes by the child to local and incoming 24376 argument registers are propagated back to the parent. The compiler 24377 is told about this with #include <vfork.h>, but some compilers 24378 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 24379 static variable whose address is put into a register that is 24380 clobbered by the vfork. */ 24381static void 24382#ifdef __cplusplus 24383sparc_address_test (int arg) 24384# else 24385sparc_address_test (arg) int arg; 24386#endif 24387{ 24388 static pid_t child; 24389 if (!child) { 24390 child = vfork (); 24391 if (child < 0) { 24392 perror ("vfork"); 24393 _exit(2); 24394 } 24395 if (!child) { 24396 arg = getpid(); 24397 write(-1, "", 0); 24398 _exit (arg); 24399 } 24400 } 24401} 24402 24403int 24404main () 24405{ 24406 pid_t parent = getpid (); 24407 pid_t child; 24408 24409 sparc_address_test (0); 24410 24411 child = vfork (); 24412 24413 if (child == 0) { 24414 /* Here is another test for sparc vfork register problems. This 24415 test uses lots of local variables, at least as many local 24416 variables as main has allocated so far including compiler 24417 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 24418 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 24419 reuse the register of parent for one of the local variables, 24420 since it will think that parent can't possibly be used any more 24421 in this routine. Assigning to the local variable will thus 24422 munge parent in the parent process. */ 24423 pid_t 24424 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 24425 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 24426 /* Convince the compiler that p..p7 are live; otherwise, it might 24427 use the same hardware register for all 8 local variables. */ 24428 if (p != p1 || p != p2 || p != p3 || p != p4 24429 || p != p5 || p != p6 || p != p7) 24430 _exit(1); 24431 24432 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 24433 from child file descriptors. If the child closes a descriptor 24434 before it execs or exits, this munges the parent's descriptor 24435 as well. Test for this by closing stdout in the child. */ 24436 _exit(close(fileno(stdout)) != 0); 24437 } else { 24438 int status; 24439 struct stat st; 24440 24441 while (wait(&status) != child) 24442 ; 24443 return ( 24444 /* Was there some problem with vforking? */ 24445 child < 0 24446 24447 /* Did the child fail? (This shouldn't happen.) */ 24448 || status 24449 24450 /* Did the vfork/compiler bug occur? */ 24451 || parent != getpid() 24452 24453 /* Did the file descriptor bug occur? */ 24454 || fstat(fileno(stdout), &st) != 0 24455 ); 24456 } 24457} 24458_ACEOF 24459if ac_fn_c_try_run "$LINENO"; then : 24460 ac_cv_func_vfork_works=yes 24461else 24462 ac_cv_func_vfork_works=no 24463fi 24464rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24465 conftest.$ac_objext conftest.beam conftest.$ac_ext 24466fi 24467 24468fi 24469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 24470$as_echo "$ac_cv_func_vfork_works" >&6; } 24471 24472fi; 24473if test "x$ac_cv_func_fork_works" = xcross; then 24474 ac_cv_func_vfork_works=$ac_cv_func_vfork 24475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 24476$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 24477fi 24478 24479if test "x$ac_cv_func_vfork_works" = xyes; then 24480 24481$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 24482 24483else 24484 24485$as_echo "#define vfork fork" >>confdefs.h 24486 24487fi 24488if test "x$ac_cv_func_fork_works" = xyes; then 24489 24490$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 24491 24492fi 24493 24494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 24495$as_echo_n "checking for working memcmp... " >&6; } 24496if ${ac_cv_func_memcmp_working+:} false; then : 24497 $as_echo_n "(cached) " >&6 24498else 24499 if test "$cross_compiling" = yes; then : 24500 ac_cv_func_memcmp_working=no 24501else 24502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24503/* end confdefs.h. */ 24504$ac_includes_default 24505int 24506main () 24507{ 24508 24509 /* Some versions of memcmp are not 8-bit clean. */ 24510 char c0 = '\100', c1 = '\200', c2 = '\201'; 24511 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) 24512 return 1; 24513 24514 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes 24515 or more and with at least one buffer not starting on a 4-byte boundary. 24516 William Lewis provided this test program. */ 24517 { 24518 char foo[21]; 24519 char bar[21]; 24520 int i; 24521 for (i = 0; i < 4; i++) 24522 { 24523 char *a = foo + i; 24524 char *b = bar + i; 24525 strcpy (a, "--------01111111"); 24526 strcpy (b, "--------10000000"); 24527 if (memcmp (a, b, 16) >= 0) 24528 return 1; 24529 } 24530 return 0; 24531 } 24532 24533 ; 24534 return 0; 24535} 24536_ACEOF 24537if ac_fn_c_try_run "$LINENO"; then : 24538 ac_cv_func_memcmp_working=yes 24539else 24540 ac_cv_func_memcmp_working=no 24541fi 24542rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24543 conftest.$ac_objext conftest.beam conftest.$ac_ext 24544fi 24545 24546fi 24547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 24548$as_echo "$ac_cv_func_memcmp_working" >&6; } 24549test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in 24550 *" memcmp.$ac_objext "* ) ;; 24551 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 24552 ;; 24553esac 24554 24555 24556for ac_header in sys/select.h sys/socket.h 24557do : 24558 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 24559ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 24560if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 24561 cat >>confdefs.h <<_ACEOF 24562#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 24563_ACEOF 24564 24565fi 24566 24567done 24568 24569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5 24570$as_echo_n "checking types of arguments for select... " >&6; } 24571if ${ac_cv_func_select_args+:} false; then : 24572 $as_echo_n "(cached) " >&6 24573else 24574 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do 24575 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do 24576 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do 24577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24578/* end confdefs.h. */ 24579$ac_includes_default 24580#ifdef HAVE_SYS_SELECT_H 24581# include <sys/select.h> 24582#endif 24583#ifdef HAVE_SYS_SOCKET_H 24584# include <sys/socket.h> 24585#endif 24586 24587int 24588main () 24589{ 24590extern int select ($ac_arg1, 24591 $ac_arg234, $ac_arg234, $ac_arg234, 24592 $ac_arg5); 24593 ; 24594 return 0; 24595} 24596_ACEOF 24597if ac_fn_c_try_compile "$LINENO"; then : 24598 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 24599fi 24600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24601 done 24602 done 24603done 24604# Provide a safe default value. 24605: "${ac_cv_func_select_args=int,int *,struct timeval *}" 24606 24607fi 24608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5 24609$as_echo "$ac_cv_func_select_args" >&6; } 24610ac_save_IFS=$IFS; IFS=',' 24611set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` 24612IFS=$ac_save_IFS 24613shift 24614 24615cat >>confdefs.h <<_ACEOF 24616#define SELECT_TYPE_ARG1 $1 24617_ACEOF 24618 24619 24620cat >>confdefs.h <<_ACEOF 24621#define SELECT_TYPE_ARG234 ($2) 24622_ACEOF 24623 24624 24625cat >>confdefs.h <<_ACEOF 24626#define SELECT_TYPE_ARG5 ($3) 24627_ACEOF 24628 24629rm -f conftest* 24630 24631if ${ac_cv_func_setvbuf_reversed+:} false; then : 24632 $as_echo_n "(cached) " >&6 24633else 24634 ac_cv_func_setvbuf_reversed=no 24635fi 24636 24637 24638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 24639$as_echo_n "checking return type of signal handlers... " >&6; } 24640if ${ac_cv_type_signal+:} false; then : 24641 $as_echo_n "(cached) " >&6 24642else 24643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24644/* end confdefs.h. */ 24645#include <sys/types.h> 24646#include <signal.h> 24647 24648int 24649main () 24650{ 24651return *(signal (0, 0)) (0) == 1; 24652 ; 24653 return 0; 24654} 24655_ACEOF 24656if ac_fn_c_try_compile "$LINENO"; then : 24657 ac_cv_type_signal=int 24658else 24659 ac_cv_type_signal=void 24660fi 24661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24662fi 24663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 24664$as_echo "$ac_cv_type_signal" >&6; } 24665 24666cat >>confdefs.h <<_ACEOF 24667#define RETSIGTYPE $ac_cv_type_signal 24668_ACEOF 24669 24670 24671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5 24672$as_echo_n "checking for working strtod... " >&6; } 24673if ${ac_cv_func_strtod+:} false; then : 24674 $as_echo_n "(cached) " >&6 24675else 24676 if test "$cross_compiling" = yes; then : 24677 ac_cv_func_strtod=no 24678else 24679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24680/* end confdefs.h. */ 24681 24682$ac_includes_default 24683#ifndef strtod 24684double strtod (); 24685#endif 24686int 24687main() 24688{ 24689 { 24690 /* Some versions of Linux strtod mis-parse strings with leading '+'. */ 24691 char *string = " +69"; 24692 char *term; 24693 double value; 24694 value = strtod (string, &term); 24695 if (value != 69 || term != (string + 4)) 24696 return 1; 24697 } 24698 24699 { 24700 /* Under Solaris 2.4, strtod returns the wrong value for the 24701 terminating character under some conditions. */ 24702 char *string = "NaN"; 24703 char *term; 24704 strtod (string, &term); 24705 if (term != string && *(term - 1) == 0) 24706 return 1; 24707 } 24708 return 0; 24709} 24710 24711_ACEOF 24712if ac_fn_c_try_run "$LINENO"; then : 24713 ac_cv_func_strtod=yes 24714else 24715 ac_cv_func_strtod=no 24716fi 24717rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24718 conftest.$ac_objext conftest.beam conftest.$ac_ext 24719fi 24720 24721fi 24722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5 24723$as_echo "$ac_cv_func_strtod" >&6; } 24724if test $ac_cv_func_strtod = no; then 24725 case " $LIBOBJS " in 24726 *" strtod.$ac_objext "* ) ;; 24727 *) LIBOBJS="$LIBOBJS strtod.$ac_objext" 24728 ;; 24729esac 24730 24731ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow" 24732if test "x$ac_cv_func_pow" = xyes; then : 24733 24734fi 24735 24736if test $ac_cv_func_pow = no; then 24737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 24738$as_echo_n "checking for pow in -lm... " >&6; } 24739if ${ac_cv_lib_m_pow+:} false; then : 24740 $as_echo_n "(cached) " >&6 24741else 24742 ac_check_lib_save_LIBS=$LIBS 24743LIBS="-lm $LIBS" 24744cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24745/* end confdefs.h. */ 24746 24747/* Override any GCC internal prototype to avoid an error. 24748 Use char because int might match the return type of a GCC 24749 builtin and then its argument prototype would still apply. */ 24750#ifdef __cplusplus 24751extern "C" 24752#endif 24753char pow (); 24754int 24755main () 24756{ 24757return pow (); 24758 ; 24759 return 0; 24760} 24761_ACEOF 24762if ac_fn_c_try_link "$LINENO"; then : 24763 ac_cv_lib_m_pow=yes 24764else 24765 ac_cv_lib_m_pow=no 24766fi 24767rm -f core conftest.err conftest.$ac_objext \ 24768 conftest$ac_exeext conftest.$ac_ext 24769LIBS=$ac_check_lib_save_LIBS 24770fi 24771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 24772$as_echo "$ac_cv_lib_m_pow" >&6; } 24773if test "x$ac_cv_lib_m_pow" = xyes; then : 24774 POW_LIB=-lm 24775else 24776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5 24777$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} 24778fi 24779 24780fi 24781 24782fi 24783 24784ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" 24785if test "x$ac_cv_have_decl_strerror_r" = xyes; then : 24786 ac_have_decl=1 24787else 24788 ac_have_decl=0 24789fi 24790 24791cat >>confdefs.h <<_ACEOF 24792#define HAVE_DECL_STRERROR_R $ac_have_decl 24793_ACEOF 24794 24795for ac_func in strerror_r 24796do : 24797 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r" 24798if test "x$ac_cv_func_strerror_r" = xyes; then : 24799 cat >>confdefs.h <<_ACEOF 24800#define HAVE_STRERROR_R 1 24801_ACEOF 24802 24803fi 24804done 24805 24806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5 24807$as_echo_n "checking whether strerror_r returns char *... " >&6; } 24808if ${ac_cv_func_strerror_r_char_p+:} false; then : 24809 $as_echo_n "(cached) " >&6 24810else 24811 24812 ac_cv_func_strerror_r_char_p=no 24813 if test $ac_cv_have_decl_strerror_r = yes; then 24814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24815/* end confdefs.h. */ 24816$ac_includes_default 24817int 24818main () 24819{ 24820 24821 char buf[100]; 24822 char x = *strerror_r (0, buf, sizeof buf); 24823 char *p = strerror_r (0, buf, sizeof buf); 24824 return !p || x; 24825 24826 ; 24827 return 0; 24828} 24829_ACEOF 24830if ac_fn_c_try_compile "$LINENO"; then : 24831 ac_cv_func_strerror_r_char_p=yes 24832fi 24833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24834 else 24835 # strerror_r is not declared. Choose between 24836 # systems that have relatively inaccessible declarations for the 24837 # function. BeOS and DEC UNIX 4.0 fall in this category, but the 24838 # former has a strerror_r that returns char*, while the latter 24839 # has a strerror_r that returns `int'. 24840 # This test should segfault on the DEC system. 24841 if test "$cross_compiling" = yes; then : 24842 : 24843else 24844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24845/* end confdefs.h. */ 24846$ac_includes_default 24847 extern char *strerror_r (); 24848int 24849main () 24850{ 24851char buf[100]; 24852 char x = *strerror_r (0, buf, sizeof buf); 24853 return ! isalpha (x); 24854 ; 24855 return 0; 24856} 24857_ACEOF 24858if ac_fn_c_try_run "$LINENO"; then : 24859 ac_cv_func_strerror_r_char_p=yes 24860fi 24861rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24862 conftest.$ac_objext conftest.beam conftest.$ac_ext 24863fi 24864 24865 fi 24866 24867fi 24868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5 24869$as_echo "$ac_cv_func_strerror_r_char_p" >&6; } 24870if test $ac_cv_func_strerror_r_char_p = yes; then 24871 24872$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h 24873 24874fi 24875 24876for ac_func in vprintf 24877do : 24878 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" 24879if test "x$ac_cv_func_vprintf" = xyes; then : 24880 cat >>confdefs.h <<_ACEOF 24881#define HAVE_VPRINTF 1 24882_ACEOF 24883 24884ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" 24885if test "x$ac_cv_func__doprnt" = xyes; then : 24886 24887$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h 24888 24889fi 24890 24891fi 24892done 24893 24894 24895 24896# 24897# Find math library 24898# 24899MATH_LIBS='' 24900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5 24901$as_echo_n "checking for sqrt in -lm... " >&6; } 24902if ${ac_cv_lib_m_sqrt+:} false; then : 24903 $as_echo_n "(cached) " >&6 24904else 24905 ac_check_lib_save_LIBS=$LIBS 24906LIBS="-lm $LIBS" 24907cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24908/* end confdefs.h. */ 24909 24910/* Override any GCC internal prototype to avoid an error. 24911 Use char because int might match the return type of a GCC 24912 builtin and then its argument prototype would still apply. */ 24913#ifdef __cplusplus 24914extern "C" 24915#endif 24916char sqrt (); 24917int 24918main () 24919{ 24920return sqrt (); 24921 ; 24922 return 0; 24923} 24924_ACEOF 24925if ac_fn_c_try_link "$LINENO"; then : 24926 ac_cv_lib_m_sqrt=yes 24927else 24928 ac_cv_lib_m_sqrt=no 24929fi 24930rm -f core conftest.err conftest.$ac_objext \ 24931 conftest$ac_exeext conftest.$ac_ext 24932LIBS=$ac_check_lib_save_LIBS 24933fi 24934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5 24935$as_echo "$ac_cv_lib_m_sqrt" >&6; } 24936if test "x$ac_cv_lib_m_sqrt" = xyes; then : 24937 MATH_LIBS="-lm" 24938fi 24939 24940LIBS="$MATH_LIBS $LIBS" 24941 24942 24943# 24944# Find socket library 24945# 24946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 24947$as_echo_n "checking for library containing gethostbyname... " >&6; } 24948if ${ac_cv_search_gethostbyname+:} false; then : 24949 $as_echo_n "(cached) " >&6 24950else 24951 ac_func_search_save_LIBS=$LIBS 24952cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24953/* end confdefs.h. */ 24954 24955/* Override any GCC internal prototype to avoid an error. 24956 Use char because int might match the return type of a GCC 24957 builtin and then its argument prototype would still apply. */ 24958#ifdef __cplusplus 24959extern "C" 24960#endif 24961char gethostbyname (); 24962int 24963main () 24964{ 24965return gethostbyname (); 24966 ; 24967 return 0; 24968} 24969_ACEOF 24970for ac_lib in '' resolv nsl; do 24971 if test -z "$ac_lib"; then 24972 ac_res="none required" 24973 else 24974 ac_res=-l$ac_lib 24975 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 24976 fi 24977 if ac_fn_c_try_link "$LINENO"; then : 24978 ac_cv_search_gethostbyname=$ac_res 24979fi 24980rm -f core conftest.err conftest.$ac_objext \ 24981 conftest$ac_exeext 24982 if ${ac_cv_search_gethostbyname+:} false; then : 24983 break 24984fi 24985done 24986if ${ac_cv_search_gethostbyname+:} false; then : 24987 24988else 24989 ac_cv_search_gethostbyname=no 24990fi 24991rm conftest.$ac_ext 24992LIBS=$ac_func_search_save_LIBS 24993fi 24994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 24995$as_echo "$ac_cv_search_gethostbyname" >&6; } 24996ac_res=$ac_cv_search_gethostbyname 24997if test "$ac_res" != no; then : 24998 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 24999 25000fi 25001 25002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 25003$as_echo_n "checking for library containing socket... " >&6; } 25004if ${ac_cv_search_socket+:} false; then : 25005 $as_echo_n "(cached) " >&6 25006else 25007 ac_func_search_save_LIBS=$LIBS 25008cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25009/* end confdefs.h. */ 25010 25011/* Override any GCC internal prototype to avoid an error. 25012 Use char because int might match the return type of a GCC 25013 builtin and then its argument prototype would still apply. */ 25014#ifdef __cplusplus 25015extern "C" 25016#endif 25017char socket (); 25018int 25019main () 25020{ 25021return socket (); 25022 ; 25023 return 0; 25024} 25025_ACEOF 25026for ac_lib in '' socket; do 25027 if test -z "$ac_lib"; then 25028 ac_res="none required" 25029 else 25030 ac_res=-l$ac_lib 25031 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 25032 fi 25033 if ac_fn_c_try_link "$LINENO"; then : 25034 ac_cv_search_socket=$ac_res 25035fi 25036rm -f core conftest.err conftest.$ac_objext \ 25037 conftest$ac_exeext 25038 if ${ac_cv_search_socket+:} false; then : 25039 break 25040fi 25041done 25042if ${ac_cv_search_socket+:} false; then : 25043 25044else 25045 ac_cv_search_socket=no 25046fi 25047rm conftest.$ac_ext 25048LIBS=$ac_func_search_save_LIBS 25049fi 25050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 25051$as_echo "$ac_cv_search_socket" >&6; } 25052ac_res=$ac_cv_search_socket 25053if test "$ac_res" != no; then : 25054 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 25055 25056 25057$as_echo "#define HAVE_SOCKET 1" >>confdefs.h 25058 25059 MAGICK_FEATURES="DPC $MAGICK_FEATURES" 25060 25061fi 25062 25063 25064for ac_func in acosh _aligned_malloc asinh atanh atoll atexit cabs carg cimag creal clock ctime_r directio _exit execvp fchmod floor fork ftime ftruncate getc_unlocked getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r isnan j0 j1 lltostr localtime_r lstat memmove memset mkstemp munmap nanosleep newlocale _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign posix_spawnp pow pread pwrite qsort_r raise rand_r readlink readdir_r realpath select seekdir setlocale socket sqrt setvbuf stat strchr strrchr strcspn strdup strpbrk strspn strstr strtod strtod_l strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr uselocale usleep utime vfprintf vfprintf_l vsprintf vsnprintf vsnprintf_l waitpid _wfopen _wstat 25065do : 25066 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 25067ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 25068if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 25069 cat >>confdefs.h <<_ACEOF 25070#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 25071_ACEOF 25072 25073fi 25074done 25075 25076 25077# 25078# Check for clock_gettime(). 25079# 25080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 25081$as_echo_n "checking for library containing clock_gettime... " >&6; } 25082if ${ac_cv_search_clock_gettime+:} false; then : 25083 $as_echo_n "(cached) " >&6 25084else 25085 ac_func_search_save_LIBS=$LIBS 25086cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25087/* end confdefs.h. */ 25088 25089/* Override any GCC internal prototype to avoid an error. 25090 Use char because int might match the return type of a GCC 25091 builtin and then its argument prototype would still apply. */ 25092#ifdef __cplusplus 25093extern "C" 25094#endif 25095char clock_gettime (); 25096int 25097main () 25098{ 25099return clock_gettime (); 25100 ; 25101 return 0; 25102} 25103_ACEOF 25104for ac_lib in '' rt; do 25105 if test -z "$ac_lib"; then 25106 ac_res="none required" 25107 else 25108 ac_res=-l$ac_lib 25109 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 25110 fi 25111 if ac_fn_c_try_link "$LINENO"; then : 25112 ac_cv_search_clock_gettime=$ac_res 25113fi 25114rm -f core conftest.err conftest.$ac_objext \ 25115 conftest$ac_exeext 25116 if ${ac_cv_search_clock_gettime+:} false; then : 25117 break 25118fi 25119done 25120if ${ac_cv_search_clock_gettime+:} false; then : 25121 25122else 25123 ac_cv_search_clock_gettime=no 25124fi 25125rm conftest.$ac_ext 25126LIBS=$ac_func_search_save_LIBS 25127fi 25128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 25129$as_echo "$ac_cv_search_clock_gettime" >&6; } 25130ac_res=$ac_cv_search_clock_gettime 25131if test "$ac_res" != no; then : 25132 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 25133 25134 25135$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h 25136 25137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5 25138$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; } 25139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25140/* end confdefs.h. */ 25141 25142 #include <time.h> 25143int 25144main () 25145{ 25146clockid_t clockType = CLOCK_REALTIME; 25147 ; 25148 return 0; 25149} 25150_ACEOF 25151if ac_fn_c_try_compile "$LINENO"; then : 25152 25153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25154$as_echo "yes" >&6; } 25155 25156$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h 25157 25158 25159else 25160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25161$as_echo "no" >&6; } 25162 25163fi 25164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25165 25166else 25167 25168 for ac_func in gettimeofday ftime 25169do : 25170 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 25171ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 25172if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 25173 cat >>confdefs.h <<_ACEOF 25174#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 25175_ACEOF 25176 break 25177fi 25178done 25179 25180 25181 25182fi 25183 25184 25185######## 25186# 25187# Check for function prototypes 25188# 25189######## 25190 25191ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" " 25192#include <unistd.h> 25193" 25194if test "x$ac_cv_have_decl_pread" = xyes; then : 25195 ac_have_decl=1 25196else 25197 ac_have_decl=0 25198fi 25199 25200cat >>confdefs.h <<_ACEOF 25201#define HAVE_DECL_PREAD $ac_have_decl 25202_ACEOF 25203ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" " 25204#include <unistd.h> 25205" 25206if test "x$ac_cv_have_decl_pwrite" = xyes; then : 25207 ac_have_decl=1 25208else 25209 ac_have_decl=0 25210fi 25211 25212cat >>confdefs.h <<_ACEOF 25213#define HAVE_DECL_PWRITE $ac_have_decl 25214_ACEOF 25215 25216 25217ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" " 25218#include <strings.h> 25219" 25220if test "x$ac_cv_have_decl_strlcpy" = xyes; then : 25221 ac_have_decl=1 25222else 25223 ac_have_decl=0 25224fi 25225 25226cat >>confdefs.h <<_ACEOF 25227#define HAVE_DECL_STRLCPY $ac_have_decl 25228_ACEOF 25229 25230 25231ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" " 25232#include <stdio.h> 25233#include <stdarg.h> 25234" 25235if test "x$ac_cv_have_decl_vsnprintf" = xyes; then : 25236 ac_have_decl=1 25237else 25238 ac_have_decl=0 25239fi 25240 25241cat >>confdefs.h <<_ACEOF 25242#define HAVE_DECL_VSNPRINTF $ac_have_decl 25243_ACEOF 25244 25245 25246######## 25247# 25248# C++ Support Tests (For Magick++) 25249# 25250######## 25251have_magick_plus_plus='no' 25252if test "$with_magick_plus_plus" = 'yes'; then 25253 OLIBS="$LIBS" 25254 LIBS='' 25255 ac_ext=cpp 25256ac_cpp='$CXXCPP $CPPFLAGS' 25257ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 25258ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 25259ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 25260 25261 25262 # Full set of headers used... 25263 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception 25264 # functional iomanip iosfwd iostream iterator list string strstream utility 25265 ac_ext=cpp 25266ac_cpp='$CXXCPP $CPPFLAGS' 25267ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 25268ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 25269ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 25270 25271 ac_ext=cpp 25272ac_cpp='$CXXCPP $CPPFLAGS' 25273ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 25274ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 25275ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 25276if test -z "$CXX"; then 25277 if test -n "$CCC"; then 25278 CXX=$CCC 25279 else 25280 if test -n "$ac_tool_prefix"; then 25281 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 25282 do 25283 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 25284set dummy $ac_tool_prefix$ac_prog; ac_word=$2 25285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25286$as_echo_n "checking for $ac_word... " >&6; } 25287if ${ac_cv_prog_CXX+:} false; then : 25288 $as_echo_n "(cached) " >&6 25289else 25290 if test -n "$CXX"; then 25291 ac_cv_prog_CXX="$CXX" # Let the user override the test. 25292else 25293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25294for as_dir in $PATH 25295do 25296 IFS=$as_save_IFS 25297 test -z "$as_dir" && as_dir=. 25298 for ac_exec_ext in '' $ac_executable_extensions; do 25299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25300 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 25301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25302 break 2 25303 fi 25304done 25305 done 25306IFS=$as_save_IFS 25307 25308fi 25309fi 25310CXX=$ac_cv_prog_CXX 25311if test -n "$CXX"; then 25312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 25313$as_echo "$CXX" >&6; } 25314else 25315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25316$as_echo "no" >&6; } 25317fi 25318 25319 25320 test -n "$CXX" && break 25321 done 25322fi 25323if test -z "$CXX"; then 25324 ac_ct_CXX=$CXX 25325 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 25326do 25327 # Extract the first word of "$ac_prog", so it can be a program name with args. 25328set dummy $ac_prog; ac_word=$2 25329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25330$as_echo_n "checking for $ac_word... " >&6; } 25331if ${ac_cv_prog_ac_ct_CXX+:} false; then : 25332 $as_echo_n "(cached) " >&6 25333else 25334 if test -n "$ac_ct_CXX"; then 25335 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 25336else 25337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25338for as_dir in $PATH 25339do 25340 IFS=$as_save_IFS 25341 test -z "$as_dir" && as_dir=. 25342 for ac_exec_ext in '' $ac_executable_extensions; do 25343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25344 ac_cv_prog_ac_ct_CXX="$ac_prog" 25345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25346 break 2 25347 fi 25348done 25349 done 25350IFS=$as_save_IFS 25351 25352fi 25353fi 25354ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 25355if test -n "$ac_ct_CXX"; then 25356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 25357$as_echo "$ac_ct_CXX" >&6; } 25358else 25359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25360$as_echo "no" >&6; } 25361fi 25362 25363 25364 test -n "$ac_ct_CXX" && break 25365done 25366 25367 if test "x$ac_ct_CXX" = x; then 25368 CXX="g++" 25369 else 25370 case $cross_compiling:$ac_tool_warned in 25371yes:) 25372{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 25373$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 25374ac_tool_warned=yes ;; 25375esac 25376 CXX=$ac_ct_CXX 25377 fi 25378fi 25379 25380 fi 25381fi 25382# Provide some information about the compiler. 25383$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 25384set X $ac_compile 25385ac_compiler=$2 25386for ac_option in --version -v -V -qversion; do 25387 { { ac_try="$ac_compiler $ac_option >&5" 25388case "(($ac_try" in 25389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25390 *) ac_try_echo=$ac_try;; 25391esac 25392eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 25393$as_echo "$ac_try_echo"; } >&5 25394 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 25395 ac_status=$? 25396 if test -s conftest.err; then 25397 sed '10a\ 25398... rest of stderr output deleted ... 25399 10q' conftest.err >conftest.er1 25400 cat conftest.er1 >&5 25401 fi 25402 rm -f conftest.er1 conftest.err 25403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25404 test $ac_status = 0; } 25405done 25406 25407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 25408$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 25409if ${ac_cv_cxx_compiler_gnu+:} false; then : 25410 $as_echo_n "(cached) " >&6 25411else 25412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25413/* end confdefs.h. */ 25414 25415int 25416main () 25417{ 25418#ifndef __GNUC__ 25419 choke me 25420#endif 25421 25422 ; 25423 return 0; 25424} 25425_ACEOF 25426if ac_fn_cxx_try_compile "$LINENO"; then : 25427 ac_compiler_gnu=yes 25428else 25429 ac_compiler_gnu=no 25430fi 25431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25432ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 25433 25434fi 25435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 25436$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 25437if test $ac_compiler_gnu = yes; then 25438 GXX=yes 25439else 25440 GXX= 25441fi 25442ac_test_CXXFLAGS=${CXXFLAGS+set} 25443ac_save_CXXFLAGS=$CXXFLAGS 25444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 25445$as_echo_n "checking whether $CXX accepts -g... " >&6; } 25446if ${ac_cv_prog_cxx_g+:} false; then : 25447 $as_echo_n "(cached) " >&6 25448else 25449 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 25450 ac_cxx_werror_flag=yes 25451 ac_cv_prog_cxx_g=no 25452 CXXFLAGS="-g" 25453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25454/* end confdefs.h. */ 25455 25456int 25457main () 25458{ 25459 25460 ; 25461 return 0; 25462} 25463_ACEOF 25464if ac_fn_cxx_try_compile "$LINENO"; then : 25465 ac_cv_prog_cxx_g=yes 25466else 25467 CXXFLAGS="" 25468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25469/* end confdefs.h. */ 25470 25471int 25472main () 25473{ 25474 25475 ; 25476 return 0; 25477} 25478_ACEOF 25479if ac_fn_cxx_try_compile "$LINENO"; then : 25480 25481else 25482 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 25483 CXXFLAGS="-g" 25484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25485/* end confdefs.h. */ 25486 25487int 25488main () 25489{ 25490 25491 ; 25492 return 0; 25493} 25494_ACEOF 25495if ac_fn_cxx_try_compile "$LINENO"; then : 25496 ac_cv_prog_cxx_g=yes 25497fi 25498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25499fi 25500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25501fi 25502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25503 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 25504fi 25505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 25506$as_echo "$ac_cv_prog_cxx_g" >&6; } 25507if test "$ac_test_CXXFLAGS" = set; then 25508 CXXFLAGS=$ac_save_CXXFLAGS 25509elif test $ac_cv_prog_cxx_g = yes; then 25510 if test "$GXX" = yes; then 25511 CXXFLAGS="-g -O2" 25512 else 25513 CXXFLAGS="-g" 25514 fi 25515else 25516 if test "$GXX" = yes; then 25517 CXXFLAGS="-O2" 25518 else 25519 CXXFLAGS= 25520 fi 25521fi 25522ac_ext=cpp 25523ac_cpp='$CXXCPP $CPPFLAGS' 25524ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 25525ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 25526ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 25527 25528depcc="$CXX" am_compiler_list= 25529 25530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 25531$as_echo_n "checking dependency style of $depcc... " >&6; } 25532if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 25533 $as_echo_n "(cached) " >&6 25534else 25535 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 25536 # We make a subdir and do the tests there. Otherwise we can end up 25537 # making bogus files that we don't know about and never remove. For 25538 # instance it was reported that on HP-UX the gcc test will end up 25539 # making a dummy file named 'D' -- because '-MD' means "put the output 25540 # in D". 25541 rm -rf conftest.dir 25542 mkdir conftest.dir 25543 # Copy depcomp to subdir because otherwise we won't find it if we're 25544 # using a relative directory. 25545 cp "$am_depcomp" conftest.dir 25546 cd conftest.dir 25547 # We will build objects and dependencies in a subdirectory because 25548 # it helps to detect inapplicable dependency modes. For instance 25549 # both Tru64's cc and ICC support -MD to output dependencies as a 25550 # side effect of compilation, but ICC will put the dependencies in 25551 # the current directory while Tru64 will put them in the object 25552 # directory. 25553 mkdir sub 25554 25555 am_cv_CXX_dependencies_compiler_type=none 25556 if test "$am_compiler_list" = ""; then 25557 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 25558 fi 25559 am__universal=false 25560 case " $depcc " in #( 25561 *\ -arch\ *\ -arch\ *) am__universal=true ;; 25562 esac 25563 25564 for depmode in $am_compiler_list; do 25565 # Setup a source with many dependencies, because some compilers 25566 # like to wrap large dependency lists on column 80 (with \), and 25567 # we should not choose a depcomp mode which is confused by this. 25568 # 25569 # We need to recreate these files for each test, as the compiler may 25570 # overwrite some of them when testing with obscure command lines. 25571 # This happens at least with the AIX C compiler. 25572 : > sub/conftest.c 25573 for i in 1 2 3 4 5 6; do 25574 echo '#include "conftst'$i'.h"' >> sub/conftest.c 25575 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 25576 # Solaris 10 /bin/sh. 25577 echo '/* dummy */' > sub/conftst$i.h 25578 done 25579 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 25580 25581 # We check with '-c' and '-o' for the sake of the "dashmstdout" 25582 # mode. It turns out that the SunPro C++ compiler does not properly 25583 # handle '-M -o', and we need to detect this. Also, some Intel 25584 # versions had trouble with output in subdirs. 25585 am__obj=sub/conftest.${OBJEXT-o} 25586 am__minus_obj="-o $am__obj" 25587 case $depmode in 25588 gcc) 25589 # This depmode causes a compiler race in universal mode. 25590 test "$am__universal" = false || continue 25591 ;; 25592 nosideeffect) 25593 # After this tag, mechanisms are not by side-effect, so they'll 25594 # only be used when explicitly requested. 25595 if test "x$enable_dependency_tracking" = xyes; then 25596 continue 25597 else 25598 break 25599 fi 25600 ;; 25601 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 25602 # This compiler won't grok '-c -o', but also, the minuso test has 25603 # not run yet. These depmodes are late enough in the game, and 25604 # so weak that their functioning should not be impacted. 25605 am__obj=conftest.${OBJEXT-o} 25606 am__minus_obj= 25607 ;; 25608 none) break ;; 25609 esac 25610 if depmode=$depmode \ 25611 source=sub/conftest.c object=$am__obj \ 25612 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 25613 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 25614 >/dev/null 2>conftest.err && 25615 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 25616 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 25617 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 25618 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 25619 # icc doesn't choke on unknown options, it will just issue warnings 25620 # or remarks (even with -Werror). So we grep stderr for any message 25621 # that says an option was ignored or not supported. 25622 # When given -MP, icc 7.0 and 7.1 complain thusly: 25623 # icc: Command line warning: ignoring option '-M'; no argument required 25624 # The diagnosis changed in icc 8.0: 25625 # icc: Command line remark: option '-MP' not supported 25626 if (grep 'ignoring option' conftest.err || 25627 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 25628 am_cv_CXX_dependencies_compiler_type=$depmode 25629 break 25630 fi 25631 fi 25632 done 25633 25634 cd .. 25635 rm -rf conftest.dir 25636else 25637 am_cv_CXX_dependencies_compiler_type=none 25638fi 25639 25640fi 25641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 25642$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 25643CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 25644 25645 if 25646 test "x$enable_dependency_tracking" != xno \ 25647 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 25648 am__fastdepCXX_TRUE= 25649 am__fastdepCXX_FALSE='#' 25650else 25651 am__fastdepCXX_TRUE='#' 25652 am__fastdepCXX_FALSE= 25653fi 25654 25655 25656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5 25657$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; } 25658if ${ax_cv_cxx_bool+:} false; then : 25659 $as_echo_n "(cached) " >&6 25660else 25661 25662 ac_ext=cpp 25663ac_cpp='$CXXCPP $CPPFLAGS' 25664ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 25665ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 25666ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 25667 25668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25669/* end confdefs.h. */ 25670 25671int f(int x){return 1;} 25672int f(char x){return 1;} 25673int f(bool x){return 1;} 25674 25675int 25676main () 25677{ 25678bool b = true; return f(b); 25679 ; 25680 return 0; 25681} 25682_ACEOF 25683if ac_fn_cxx_try_compile "$LINENO"; then : 25684 ax_cv_cxx_bool=yes 25685else 25686 ax_cv_cxx_bool=no 25687fi 25688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25689 ac_ext=cpp 25690ac_cpp='$CXXCPP $CPPFLAGS' 25691ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 25692ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 25693ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 25694 25695 25696fi 25697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5 25698$as_echo "$ax_cv_cxx_bool" >&6; } 25699if test "$ax_cv_cxx_bool" = yes; then 25700 25701$as_echo "#define HAVE_BOOL /**/" >>confdefs.h 25702 25703fi 25704 25705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5 25706$as_echo_n "checking whether the compiler implements namespaces... " >&6; } 25707if ${ax_cv_cxx_namespaces+:} false; then : 25708 $as_echo_n "(cached) " >&6 25709else 25710 25711 ac_ext=cpp 25712ac_cpp='$CXXCPP $CPPFLAGS' 25713ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 25714ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 25715ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 25716 25717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25718/* end confdefs.h. */ 25719namespace Outer { namespace Inner { int i = 0; }} 25720int 25721main () 25722{ 25723using namespace Outer::Inner; return i; 25724 ; 25725 return 0; 25726} 25727_ACEOF 25728if ac_fn_cxx_try_compile "$LINENO"; then : 25729 ax_cv_cxx_namespaces=yes 25730else 25731 ax_cv_cxx_namespaces=no 25732fi 25733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25734 ac_ext=cpp 25735ac_cpp='$CXXCPP $CPPFLAGS' 25736ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 25737ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 25738ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 25739 25740 25741fi 25742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5 25743$as_echo "$ax_cv_cxx_namespaces" >&6; } 25744if test "$ax_cv_cxx_namespaces" = yes; then 25745 25746$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h 25747 25748fi 25749 25750 25751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5 25752$as_echo_n "checking if g++ supports namespace std... " >&6; } 25753if ${ax_cv_cxx_have_std_namespace+:} false; then : 25754 $as_echo_n "(cached) " >&6 25755else 25756 25757 ac_ext=cpp 25758ac_cpp='$CXXCPP $CPPFLAGS' 25759ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 25760ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 25761ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 25762 25763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25764/* end confdefs.h. */ 25765#include <iostream> 25766 std::istream& is = std::cin; 25767int 25768main () 25769{ 25770 25771 ; 25772 return 0; 25773} 25774_ACEOF 25775if ac_fn_cxx_try_compile "$LINENO"; then : 25776 ax_cv_cxx_have_std_namespace=yes 25777else 25778 ax_cv_cxx_have_std_namespace=no 25779fi 25780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25781 ac_ext=cpp 25782ac_cpp='$CXXCPP $CPPFLAGS' 25783ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 25784ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 25785ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 25786 25787 25788fi 25789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5 25790$as_echo "$ax_cv_cxx_have_std_namespace" >&6; } 25791 if test "$ax_cv_cxx_have_std_namespace" = yes; then 25792 25793$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h 25794 25795 fi 25796 25797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5 25798$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; } 25799if ${ac_cv_cxx_have_std_libs+:} false; then : 25800 $as_echo_n "(cached) " >&6 25801else 25802 25803 25804 ac_ext=cpp 25805ac_cpp='$CXXCPP $CPPFLAGS' 25806ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 25807ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 25808ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 25809 25810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25811/* end confdefs.h. */ 25812#include <iostream> 25813#include <map> 25814#include <iomanip> 25815#include <cmath> 25816#ifdef HAVE_NAMESPACES 25817using namespace std; 25818#endif 25819int 25820main () 25821{ 25822return 0; 25823 ; 25824 return 0; 25825} 25826_ACEOF 25827if ac_fn_cxx_try_compile "$LINENO"; then : 25828 ac_cv_cxx_have_std_libs=yes 25829else 25830 ac_cv_cxx_have_std_libs=no 25831fi 25832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25833 ac_ext=cpp 25834ac_cpp='$CXXCPP $CPPFLAGS' 25835ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 25836ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 25837ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 25838 25839 25840fi 25841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5 25842$as_echo "$ac_cv_cxx_have_std_libs" >&6; } 25843if test "$ac_cv_cxx_have_std_libs" = yes; then 25844 25845$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h 25846 25847fi 25848 25849 25850 OPENMP_CXXFLAGS= 25851 # Check whether --enable-openmp was given. 25852if test "${enable_openmp+set}" = set; then : 25853 enableval=$enable_openmp; 25854fi 25855 25856 if test "$enable_openmp" != no; then 25857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5 25858$as_echo_n "checking for $CXX option to support OpenMP... " >&6; } 25859if ${ac_cv_prog_cxx_openmp+:} false; then : 25860 $as_echo_n "(cached) " >&6 25861else 25862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25863/* end confdefs.h. */ 25864 25865#ifndef _OPENMP 25866 choke me 25867#endif 25868#include <omp.h> 25869int main () { return omp_get_num_threads (); } 25870 25871_ACEOF 25872if ac_fn_cxx_try_link "$LINENO"; then : 25873 ac_cv_prog_cxx_openmp='none needed' 25874else 25875 ac_cv_prog_cxx_openmp='unsupported' 25876 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \ 25877 -Popenmp --openmp; do 25878 ac_save_CXXFLAGS=$CXXFLAGS 25879 CXXFLAGS="$CXXFLAGS $ac_option" 25880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25881/* end confdefs.h. */ 25882 25883#ifndef _OPENMP 25884 choke me 25885#endif 25886#include <omp.h> 25887int main () { return omp_get_num_threads (); } 25888 25889_ACEOF 25890if ac_fn_cxx_try_link "$LINENO"; then : 25891 ac_cv_prog_cxx_openmp=$ac_option 25892fi 25893rm -f core conftest.err conftest.$ac_objext \ 25894 conftest$ac_exeext conftest.$ac_ext 25895 CXXFLAGS=$ac_save_CXXFLAGS 25896 if test "$ac_cv_prog_cxx_openmp" != unsupported; then 25897 break 25898 fi 25899 done 25900fi 25901rm -f core conftest.err conftest.$ac_objext \ 25902 conftest$ac_exeext conftest.$ac_ext 25903fi 25904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5 25905$as_echo "$ac_cv_prog_cxx_openmp" >&6; } 25906 case $ac_cv_prog_cxx_openmp in #( 25907 "none needed" | unsupported) 25908 ;; #( 25909 *) 25910 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;; 25911 esac 25912 fi 25913 25914 25915 ac_ext=c 25916ac_cpp='$CPP $CPPFLAGS' 25917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 25918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 25919ac_compiler_gnu=$ac_cv_c_compiler_gnu 25920 25921 25922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5 25923$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; } 25924 if \ 25925 test $ax_cv_cxx_bool = 'yes' && \ 25926 test $ax_cv_cxx_namespaces = 'yes' && \ 25927 test $ac_cv_cxx_have_std_libs = 'yes' && \ 25928 test $ax_cv_cxx_have_std_namespace = 'yes'; then 25929 have_magick_plus_plus='yes' 25930 else 25931 have_magick_plus_plus='no (failed tests)' 25932 fi 25933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5 25934$as_echo "$have_magick_plus_plus" >&6; } 25935 LIBS="$OLIBS" 25936fi 25937 if test "$have_magick_plus_plus" = 'yes'; then 25938 WITH_MAGICK_PLUS_PLUS_TRUE= 25939 WITH_MAGICK_PLUS_PLUS_FALSE='#' 25940else 25941 WITH_MAGICK_PLUS_PLUS_TRUE='#' 25942 WITH_MAGICK_PLUS_PLUS_FALSE= 25943fi 25944 25945 25946# Only check for delegate libraries in subdirectories if requested. 25947if test "$enable_delegate_build" != 'no'; then 25948 # Check for delegate sub-directories and add -I & -L options as required. 25949 # This presumes that delegates are installed as detailed in the ImageMagick 25950 # README. If delegates are installed in a standard location where the 25951 # compiler will automatically find them then these options should not be 25952 # required. 25953 25954 # 25955 # Most delegates have includes in the same directory as the library, but not all... 25956 # 25957 # Includes 25958 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include lzma magick png tiff/libtiff ttf/include wand webp wmf/include xml/include zlib; do 25959 if test -d "$builddir/$dir"; then 25960 CPPFLAGS="$CPPFLAGS -I$builddir/$dir" 25961 else 25962 if test -d "$srcdirfull/$dir"; then 25963 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir" 25964 fi 25965 fi 25966 done 25967 25968 # Libraries 25969 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src lzma magick png tiff/libtiff ttf/objs wand webp wmf/src xml zlib; do 25970 if test -d "$builddir/$dir/.libs"; then 25971 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs" 25972 else 25973 if test -d "$srcdirfull/$dir/.libs"; then 25974 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs" 25975 fi 25976 fi 25977 if test -d "$builddir/$dir"; then 25978 LDFLAGS="$LDFLAGS -L$builddir/$dir" 25979 else 25980 if test -d "$srcdirfull/$dir"; then 25981 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir" 25982 fi 25983 fi 25984 done 25985fi 25986 25987# Assume that delegate headers reside under same directory as ImageMagick 25988# installation prefix. 25989MAGICK_CPPFLAGS="-I$INCLUDE_DIR/${PACKAGE_NAME}-$MAGICK_MAJOR_VERSION.MAGICK_MINOR_VERSION $MAGICK_CPPFLAGS" 25990 25991# 25992# Find the X11 RGB database 25993# 25994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5 25995$as_echo_n "checking for X11 configure files... " >&6; } 25996if ${im_cv_x_configure+:} false; then : 25997 $as_echo_n "(cached) " >&6 25998else 25999 # Look for the header file in a standard set of common directories. 26000# Check X11 before X11Rn because it is often a symlink to the current release. 26001 for ac_dir in \ 26002 /lib/usr/lib/X11 \ 26003 /usr/X11/lib \ 26004 /usr/X11R4/lib \ 26005 /usr/X11R5/lib \ 26006 /usr/X11R6/lib \ 26007 /usr/X11R7/lib \ 26008 /usr/X386/lib \ 26009 /usr/XFree86/lib/X11 \ 26010 /usr/athena/lib \ 26011 /usr/lib \ 26012 /usr/lib/X11 \ 26013 /usr/lib/X11R4 \ 26014 /usr/lib/X11R5 \ 26015 /usr/lib/X11R6 \ 26016 /usr/lib/X11R7 \ 26017 /usr/local/X11/lib \ 26018 /usr/local/X11R4/lib \ 26019 /usr/local/X11R5/lib \ 26020 /usr/local/X11R6/lib \ 26021 /usr/local/lib \ 26022 /usr/local/lib/X11 \ 26023 /usr/local/lib/X11R4 \ 26024 /usr/local/lib/X11R5 \ 26025 /usr/local/lib/X11R6 \ 26026 /usr/local/lib/X11R7 \ 26027 /usr/local/x11r5/lib \ 26028 /usr/lpp/Xamples/lib \ 26029 /usr/openwin/lib \ 26030 /usr/openwin/share/lib \ 26031 /usr/unsupported/lib \ 26032 /usr/x386/lib \ 26033 ; do 26034 if test -f "$ac_dir/X11/rgb.txt"; then 26035 im_cv_x_configure="$ac_dir/X11/" 26036 break 26037 elif test -f "$ac_dir/rgb.txt"; then 26038 im_cv_x_configure="$ac_dir/" 26039 break 26040 fi 26041 26042 done 26043fi 26044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5 26045$as_echo "$im_cv_x_configure" >&6; } 26046X11_CONFIGURE_PATH="$im_cv_x_configure" 26047case "${build_os}" in 26048 mingw* ) 26049 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1` 26050 ;; 26051esac 26052 26053cat >>confdefs.h <<_ACEOF 26054#define X11_CONFIGURE_PATH "$X11ConfigurePath" 26055_ACEOF 26056 26057 26058# 26059# Find OpenMP library 26060# 26061GOMP_LIBS='' 26062if test "$enable_openmp" != 'no'; then 26063 if test "${GCC}" = "yes"; then 26064 # Open64 (passes for GCC but uses different OpenMP implementation) 26065 if test "x$GOMP_LIBS" = x ; then 26066 if $CC --version 2>&1 | grep Open64 > /dev/null ; then 26067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5 26068$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; } 26069if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then : 26070 $as_echo_n "(cached) " >&6 26071else 26072 ac_check_lib_save_LIBS=$LIBS 26073LIBS="-lopenmp $LIBS" 26074cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26075/* end confdefs.h. */ 26076 26077/* Override any GCC internal prototype to avoid an error. 26078 Use char because int might match the return type of a GCC 26079 builtin and then its argument prototype would still apply. */ 26080#ifdef __cplusplus 26081extern "C" 26082#endif 26083char omp_get_num_procs (); 26084int 26085main () 26086{ 26087return omp_get_num_procs (); 26088 ; 26089 return 0; 26090} 26091_ACEOF 26092if ac_fn_c_try_link "$LINENO"; then : 26093 ac_cv_lib_openmp_omp_get_num_procs=yes 26094else 26095 ac_cv_lib_openmp_omp_get_num_procs=no 26096fi 26097rm -f core conftest.err conftest.$ac_objext \ 26098 conftest$ac_exeext conftest.$ac_ext 26099LIBS=$ac_check_lib_save_LIBS 26100fi 26101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5 26102$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; } 26103if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then : 26104 GOMP_LIBS="-lopenmp" 26105fi 26106 26107 fi 26108 fi 26109 # GCC 26110 if test "x$GOMP_LIBS" = x ; then 26111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5 26112$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; } 26113if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then : 26114 $as_echo_n "(cached) " >&6 26115else 26116 ac_check_lib_save_LIBS=$LIBS 26117LIBS="-lgomp $LIBS" 26118cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26119/* end confdefs.h. */ 26120 26121/* Override any GCC internal prototype to avoid an error. 26122 Use char because int might match the return type of a GCC 26123 builtin and then its argument prototype would still apply. */ 26124#ifdef __cplusplus 26125extern "C" 26126#endif 26127char GOMP_parallel_start (); 26128int 26129main () 26130{ 26131return GOMP_parallel_start (); 26132 ; 26133 return 0; 26134} 26135_ACEOF 26136if ac_fn_c_try_link "$LINENO"; then : 26137 ac_cv_lib_gomp_GOMP_parallel_start=yes 26138else 26139 ac_cv_lib_gomp_GOMP_parallel_start=no 26140fi 26141rm -f core conftest.err conftest.$ac_objext \ 26142 conftest$ac_exeext conftest.$ac_ext 26143LIBS=$ac_check_lib_save_LIBS 26144fi 26145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5 26146$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; } 26147if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then : 26148 GOMP_LIBS="-lgomp" 26149fi 26150 26151 fi 26152 else 26153 # Sun CC 26154 if test "x$GOMP_LIBS" = x ; then 26155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5 26156$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; } 26157if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then : 26158 $as_echo_n "(cached) " >&6 26159else 26160 ac_check_lib_save_LIBS=$LIBS 26161LIBS="-lmtsk $LIBS" 26162cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26163/* end confdefs.h. */ 26164 26165/* Override any GCC internal prototype to avoid an error. 26166 Use char because int might match the return type of a GCC 26167 builtin and then its argument prototype would still apply. */ 26168#ifdef __cplusplus 26169extern "C" 26170#endif 26171char sunw_mp_register_warn (); 26172int 26173main () 26174{ 26175return sunw_mp_register_warn (); 26176 ; 26177 return 0; 26178} 26179_ACEOF 26180if ac_fn_c_try_link "$LINENO"; then : 26181 ac_cv_lib_mtsk_sunw_mp_register_warn=yes 26182else 26183 ac_cv_lib_mtsk_sunw_mp_register_warn=no 26184fi 26185rm -f core conftest.err conftest.$ac_objext \ 26186 conftest$ac_exeext conftest.$ac_ext 26187LIBS=$ac_check_lib_save_LIBS 26188fi 26189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5 26190$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; } 26191if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then : 26192 GOMP_LIBS="-lmtsk" 26193fi 26194 26195 fi 26196 # AIX xlc 26197 if test "x$GOMP_LIBS" = x ; then 26198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5 26199$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; } 26200if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then : 26201 $as_echo_n "(cached) " >&6 26202else 26203 ac_check_lib_save_LIBS=$LIBS 26204LIBS="-lxlsmp $LIBS" 26205cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26206/* end confdefs.h. */ 26207 26208/* Override any GCC internal prototype to avoid an error. 26209 Use char because int might match the return type of a GCC 26210 builtin and then its argument prototype would still apply. */ 26211#ifdef __cplusplus 26212extern "C" 26213#endif 26214char _xlsmpFlush (); 26215int 26216main () 26217{ 26218return _xlsmpFlush (); 26219 ; 26220 return 0; 26221} 26222_ACEOF 26223if ac_fn_c_try_link "$LINENO"; then : 26224 ac_cv_lib_xlsmp__xlsmpFlush=yes 26225else 26226 ac_cv_lib_xlsmp__xlsmpFlush=no 26227fi 26228rm -f core conftest.err conftest.$ac_objext \ 26229 conftest$ac_exeext conftest.$ac_ext 26230LIBS=$ac_check_lib_save_LIBS 26231fi 26232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5 26233$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; } 26234if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then : 26235 GOMP_LIBS="-lxlsmp" 26236fi 26237 26238 fi 26239 # SGI IRIX 6.5 MIPSpro C/C++ 26240 if test "x$GOMP_LIBS" = x ; then 26241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5 26242$as_echo_n "checking for mp_destroy in -lmp... " >&6; } 26243if ${ac_cv_lib_mp_mp_destroy+:} false; then : 26244 $as_echo_n "(cached) " >&6 26245else 26246 ac_check_lib_save_LIBS=$LIBS 26247LIBS="-lmp $LIBS" 26248cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26249/* end confdefs.h. */ 26250 26251/* Override any GCC internal prototype to avoid an error. 26252 Use char because int might match the return type of a GCC 26253 builtin and then its argument prototype would still apply. */ 26254#ifdef __cplusplus 26255extern "C" 26256#endif 26257char mp_destroy (); 26258int 26259main () 26260{ 26261return mp_destroy (); 26262 ; 26263 return 0; 26264} 26265_ACEOF 26266if ac_fn_c_try_link "$LINENO"; then : 26267 ac_cv_lib_mp_mp_destroy=yes 26268else 26269 ac_cv_lib_mp_mp_destroy=no 26270fi 26271rm -f core conftest.err conftest.$ac_objext \ 26272 conftest$ac_exeext conftest.$ac_ext 26273LIBS=$ac_check_lib_save_LIBS 26274fi 26275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5 26276$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; } 26277if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then : 26278 GOMP_LIBS="-lmp" 26279fi 26280 26281 fi 26282 fi 26283 LIBS="$GOMP_LIBS $LIBS" 26284fi 26285 26286 26287# 26288# Find Posix threads library 26289# 26290THREAD_LIBS='' 26291if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then 26292 26293 if test "x$PTHREAD_LIBS" = "x"; then 26294 case "${host_cpu}-${host_os}" in 26295 *-freebsd*) 26296 26297 26298 26299ac_ext=c 26300ac_cpp='$CPP $CPPFLAGS' 26301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 26302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 26303ac_compiler_gnu=$ac_cv_c_compiler_gnu 26304 26305magick_pthread_lib_ok=no 26306 26307LIB=-lc_r 26308save_LIBS="$LIBS" 26309LIBS="$LIBS $LIB" 26310 26311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5 26312$as_echo_n "checking for the pthreads library $LIB... " >&6; } 26313cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26314/* end confdefs.h. */ 26315#include <pthread.h> 26316int 26317main () 26318{ 26319 pthread_t th; 26320 pthread_join(th, 0); 26321 pthread_attr_init(0); 26322 pthread_cleanup_push(0, 0); 26323 pthread_create(0,0,0,0); 26324 pthread_cleanup_pop(0); 26325 ; 26326 return 0; 26327} 26328_ACEOF 26329if ac_fn_c_try_link "$LINENO"; then : 26330 magick_pthread_lib_ok=yes 26331fi 26332rm -f core conftest.err conftest.$ac_objext \ 26333 conftest$ac_exeext conftest.$ac_ext 26334 26335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5 26336$as_echo "${magick_pthread_lib_ok}" >&6; } 26337if test "$magick_pthread_lib_ok" = yes 26338then 26339 PTHREAD_LIBS=-lc_r 26340 : 26341else 26342 26343 : 26344fi 26345 26346LIBS="$save_LIBS" 26347 26348ac_ext=c 26349ac_cpp='$CPP $CPPFLAGS' 26350ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 26351ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 26352ac_compiler_gnu=$ac_cv_c_compiler_gnu 26353 26354 ;; 26355 esac 26356 fi 26357 26358 for lib in pthread pthreads; do 26359 if test "x$PTHREAD_LIBS" = "x"; then 26360 26361 26362 26363ac_ext=c 26364ac_cpp='$CPP $CPPFLAGS' 26365ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 26366ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 26367ac_compiler_gnu=$ac_cv_c_compiler_gnu 26368 26369magick_pthread_lib_ok=no 26370 26371LIB=-l$lib 26372save_LIBS="$LIBS" 26373LIBS="$LIBS $LIB" 26374 26375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5 26376$as_echo_n "checking for the pthreads library $LIB... " >&6; } 26377cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26378/* end confdefs.h. */ 26379#include <pthread.h> 26380int 26381main () 26382{ 26383 pthread_t th; 26384 pthread_join(th, 0); 26385 pthread_attr_init(0); 26386 pthread_cleanup_push(0, 0); 26387 pthread_create(0,0,0,0); 26388 pthread_cleanup_pop(0); 26389 ; 26390 return 0; 26391} 26392_ACEOF 26393if ac_fn_c_try_link "$LINENO"; then : 26394 magick_pthread_lib_ok=yes 26395fi 26396rm -f core conftest.err conftest.$ac_objext \ 26397 conftest$ac_exeext conftest.$ac_ext 26398 26399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5 26400$as_echo "${magick_pthread_lib_ok}" >&6; } 26401if test "$magick_pthread_lib_ok" = yes 26402then 26403 PTHREAD_LIBS=-l$lib 26404 : 26405else 26406 26407 : 26408fi 26409 26410LIBS="$save_LIBS" 26411 26412ac_ext=c 26413ac_cpp='$CPP $CPPFLAGS' 26414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 26415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 26416ac_compiler_gnu=$ac_cv_c_compiler_gnu 26417 26418 26419 fi 26420 done 26421 26422 THREAD_LIBS="$PTHREAD_LIBS" 26423 LIBS="$LIBS $THREAD_LIBS" 26424fi 26425 26426 26427# 26428# Check for umem. 26429# 26430have_umem='no' 26431UMEM_LIBS='' 26432if test "$with_umem" != 'no'; then 26433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5 26434$as_echo_n "checking for UMEM support ... " >&6; } 26435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 26436$as_echo "" >&6; } 26437 failed=0 26438 passed=0 26439 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default" 26440if test "x$ac_cv_header_umem_h" = xyes; then : 26441 passed=`expr $passed + 1` 26442else 26443 failed=`expr $failed + 1` 26444fi 26445 26446 26447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5 26448$as_echo_n "checking for umem_alloc in -lumem... " >&6; } 26449if ${ac_cv_lib_umem_umem_alloc+:} false; then : 26450 $as_echo_n "(cached) " >&6 26451else 26452 ac_check_lib_save_LIBS=$LIBS 26453LIBS="-lumem $LIBS" 26454cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26455/* end confdefs.h. */ 26456 26457/* Override any GCC internal prototype to avoid an error. 26458 Use char because int might match the return type of a GCC 26459 builtin and then its argument prototype would still apply. */ 26460#ifdef __cplusplus 26461extern "C" 26462#endif 26463char umem_alloc (); 26464int 26465main () 26466{ 26467return umem_alloc (); 26468 ; 26469 return 0; 26470} 26471_ACEOF 26472if ac_fn_c_try_link "$LINENO"; then : 26473 ac_cv_lib_umem_umem_alloc=yes 26474else 26475 ac_cv_lib_umem_umem_alloc=no 26476fi 26477rm -f core conftest.err conftest.$ac_objext \ 26478 conftest$ac_exeext conftest.$ac_ext 26479LIBS=$ac_check_lib_save_LIBS 26480fi 26481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5 26482$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; } 26483if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then : 26484 passed=`expr $passed + 1` 26485else 26486 failed=`expr $failed + 1` 26487fi 26488 26489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5 26490$as_echo_n "checking for umem_free in -lumem... " >&6; } 26491if ${ac_cv_lib_umem_umem_free+:} false; then : 26492 $as_echo_n "(cached) " >&6 26493else 26494 ac_check_lib_save_LIBS=$LIBS 26495LIBS="-lumem $LIBS" 26496cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26497/* end confdefs.h. */ 26498 26499/* Override any GCC internal prototype to avoid an error. 26500 Use char because int might match the return type of a GCC 26501 builtin and then its argument prototype would still apply. */ 26502#ifdef __cplusplus 26503extern "C" 26504#endif 26505char umem_free (); 26506int 26507main () 26508{ 26509return umem_free (); 26510 ; 26511 return 0; 26512} 26513_ACEOF 26514if ac_fn_c_try_link "$LINENO"; then : 26515 ac_cv_lib_umem_umem_free=yes 26516else 26517 ac_cv_lib_umem_umem_free=no 26518fi 26519rm -f core conftest.err conftest.$ac_objext \ 26520 conftest$ac_exeext conftest.$ac_ext 26521LIBS=$ac_check_lib_save_LIBS 26522fi 26523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5 26524$as_echo "$ac_cv_lib_umem_umem_free" >&6; } 26525if test "x$ac_cv_lib_umem_umem_free" = xyes; then : 26526 passed=`expr $passed + 1` 26527else 26528 failed=`expr $failed + 1` 26529fi 26530 26531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5 26532$as_echo_n "checking if umem memory allocation library is complete... " >&6; } 26533 if test $passed -gt 0; then 26534 if test $failed -gt 0; then 26535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 26536$as_echo "no -- some components failed test" >&6; } 26537 have_umem='no (failed tests)' 26538 else 26539 UMEM_LIBS='-lumem' 26540 LIBS="$UMEM_LIBS $LIBS" 26541 26542$as_echo "#define HasUMEM 1" >>confdefs.h 26543 26544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26545$as_echo "yes" >&6; } 26546 have_umem='yes' 26547 fi 26548 else 26549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26550$as_echo "no" >&6; } 26551 fi 26552fi 26553 if test "$have_umem" = 'yes'; then 26554 HasUMEM_TRUE= 26555 HasUMEM_FALSE='#' 26556else 26557 HasUMEM_TRUE='#' 26558 HasUMEM_FALSE= 26559fi 26560 26561 26562 26563# 26564# Add support for ccmalloc memory debugging library if requested 26565# 26566have_ccmalloc='no' 26567CCMALLOC_LIBS='' 26568if test "$enable_ccmalloc" = 'yes'; then 26569 # Extract the first word of "ccmalloc", so it can be a program name with args. 26570set dummy ccmalloc; ac_word=$2 26571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26572$as_echo_n "checking for $ac_word... " >&6; } 26573if ${ac_cv_path_CCMALLOCDelegate+:} false; then : 26574 $as_echo_n "(cached) " >&6 26575else 26576 case $CCMALLOCDelegate in 26577 [\\/]* | ?:[\\/]*) 26578 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path. 26579 ;; 26580 *) 26581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26582for as_dir in $PATH 26583do 26584 IFS=$as_save_IFS 26585 test -z "$as_dir" && as_dir=. 26586 for ac_exec_ext in '' $ac_executable_extensions; do 26587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26588 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext" 26589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26590 break 2 26591 fi 26592done 26593 done 26594IFS=$as_save_IFS 26595 26596 ;; 26597esac 26598fi 26599CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate 26600if test -n "$CCMALLOCDelegate"; then 26601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5 26602$as_echo "$CCMALLOCDelegate" >&6; } 26603else 26604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26605$as_echo "no" >&6; } 26606fi 26607 26608 26609 if test -n "$CCMALLOCDelegate"; then 26610 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'` 26611 OLIBS="$LIBS" 26612 # Assume that gcc is used with ccmalloc. 26613 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o" 26614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5 26615$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; } 26616if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then : 26617 $as_echo_n "(cached) " >&6 26618else 26619 ac_check_lib_save_LIBS=$LIBS 26620LIBS="-lccmalloc -ldl $LIBS" 26621cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26622/* end confdefs.h. */ 26623 26624/* Override any GCC internal prototype to avoid an error. 26625 Use char because int might match the return type of a GCC 26626 builtin and then its argument prototype would still apply. */ 26627#ifdef __cplusplus 26628extern "C" 26629#endif 26630char ccmalloc_malloc (); 26631int 26632main () 26633{ 26634return ccmalloc_malloc (); 26635 ; 26636 return 0; 26637} 26638_ACEOF 26639if ac_fn_c_try_link "$LINENO"; then : 26640 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes 26641else 26642 ac_cv_lib_ccmalloc_ccmalloc_malloc=no 26643fi 26644rm -f core conftest.err conftest.$ac_objext \ 26645 conftest$ac_exeext conftest.$ac_ext 26646LIBS=$ac_check_lib_save_LIBS 26647fi 26648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5 26649$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; } 26650if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then : 26651 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl" 26652fi 26653 26654 if test -n "$CCMALLOC_LIBS"; then 26655 LIBS="$OLIBS" 26656 LIBS="$LIBS $CCMALLOC_LIBS" 26657 have_ccmalloc='yes' 26658 else 26659 LIBS="$OLIBS" 26660 fi 26661 fi 26662fi 26663 26664# 26665# Add support for efence memory debugging library if requested 26666# 26667if test "$enable_efence" = 'yes'; then 26668 EFENCE_LIBS='-lefence' 26669 LIBS="$EFENCE_LIBS $LIBS" 26670fi 26671 26672 26673# 26674# Check for BZLIB 26675# 26676 26677 26678# Check whether --with-bzlib was given. 26679if test "${with_bzlib+set}" = set; then : 26680 withval=$with_bzlib; with_bzlib=$withval 26681else 26682 with_bzlib='yes' 26683fi 26684 26685 26686if test "$with_bzlib" != 'yes'; then 26687 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib " 26688fi 26689 26690have_bzlib='no' 26691if test "$with_bzlib" != 'no'; then 26692 BZLIB_LIBS='' 26693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 26694$as_echo "-------------------------------------------------------------" >&6; } 26695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5 26696$as_echo_n "checking for BZLIB... " >&6; } 26697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 26698$as_echo "" >&6; } 26699 failed=0 26700 passed=0 26701 found_libbz=0 26702 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default" 26703if test "x$ac_cv_header_bzlib_h" = xyes; then : 26704 passed=`expr $passed + 1` 26705else 26706 failed=`expr $failed + 1` 26707fi 26708 26709 26710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5 26711$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; } 26712if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then : 26713 $as_echo_n "(cached) " >&6 26714else 26715 ac_check_lib_save_LIBS=$LIBS 26716LIBS="-lbz2 $LIBS" 26717cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26718/* end confdefs.h. */ 26719 26720/* Override any GCC internal prototype to avoid an error. 26721 Use char because int might match the return type of a GCC 26722 builtin and then its argument prototype would still apply. */ 26723#ifdef __cplusplus 26724extern "C" 26725#endif 26726char BZ2_bzDecompress (); 26727int 26728main () 26729{ 26730return BZ2_bzDecompress (); 26731 ; 26732 return 0; 26733} 26734_ACEOF 26735if ac_fn_c_try_link "$LINENO"; then : 26736 ac_cv_lib_bz2_BZ2_bzDecompress=yes 26737else 26738 ac_cv_lib_bz2_BZ2_bzDecompress=no 26739fi 26740rm -f core conftest.err conftest.$ac_objext \ 26741 conftest$ac_exeext conftest.$ac_ext 26742LIBS=$ac_check_lib_save_LIBS 26743fi 26744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5 26745$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; } 26746if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then : 26747 found_libbz=`expr $found_libbz + 1` 26748fi 26749 26750 if test "$native_win32_build" = 'yes'; then 26751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5 26752$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; } 26753if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then : 26754 $as_echo_n "(cached) " >&6 26755else 26756 ac_check_lib_save_LIBS=$LIBS 26757LIBS="-lbz2 $LIBS" 26758cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26759/* end confdefs.h. */ 26760 26761/* Override any GCC internal prototype to avoid an error. 26762 Use char because int might match the return type of a GCC 26763 builtin and then its argument prototype would still apply. */ 26764#ifdef __cplusplus 26765extern "C" 26766#endif 26767char _imp__BZ2_decompress (); 26768int 26769main () 26770{ 26771return _imp__BZ2_decompress (); 26772 ; 26773 return 0; 26774} 26775_ACEOF 26776if ac_fn_c_try_link "$LINENO"; then : 26777 ac_cv_lib_bz2__imp__BZ2_decompress=yes 26778else 26779 ac_cv_lib_bz2__imp__BZ2_decompress=no 26780fi 26781rm -f core conftest.err conftest.$ac_objext \ 26782 conftest$ac_exeext conftest.$ac_ext 26783LIBS=$ac_check_lib_save_LIBS 26784fi 26785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5 26786$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; } 26787if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then : 26788 found_libbz=`expr $found_libbz + 1` 26789fi 26790 26791 fi 26792 if test $found_libbz -gt 0; then 26793 passed=`expr $passed + 1` 26794 else 26795 failed=`expr $failed + 1` 26796 fi 26797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5 26798$as_echo_n "checking if BZLIB package is complete... " >&6; } 26799 if test $passed -gt 0; then 26800 if test $failed -gt 0; then 26801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 26802$as_echo "no -- some components failed test" >&6; } 26803 have_bzlib='no (failed tests)' 26804 else 26805 BZLIB_LIBS='-lbz2' 26806 LIBS="$BZLIB_LIBS $LIBS" 26807 26808$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h 26809 26810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26811$as_echo "yes" >&6; } 26812 have_bzlib='yes' 26813 fi 26814 else 26815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26816$as_echo "no" >&6; } 26817 fi 26818fi 26819 if test "$have_bzlib" = 'yes'; then 26820 BZLIB_DELEGATE_TRUE= 26821 BZLIB_DELEGATE_FALSE='#' 26822else 26823 BZLIB_DELEGATE_TRUE='#' 26824 BZLIB_DELEGATE_FALSE= 26825fi 26826 26827 26828 26829# 26830# Find the X11 include and library directories. 26831# 26832IPC_LIBS='' 26833X11_LIBS='' 26834XEXT_LIBS='' 26835XT_LIBS='' 26836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 26837$as_echo_n "checking for X... " >&6; } 26838 26839 26840# Check whether --with-x was given. 26841if test "${with_x+set}" = set; then : 26842 withval=$with_x; 26843fi 26844 26845# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 26846if test "x$with_x" = xno; then 26847 # The user explicitly disabled X. 26848 have_x=disabled 26849else 26850 case $x_includes,$x_libraries in #( 26851 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 26852 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 26853 $as_echo_n "(cached) " >&6 26854else 26855 # One or both of the vars are not set, and there is no cached value. 26856ac_x_includes=no ac_x_libraries=no 26857rm -f -r conftest.dir 26858if mkdir conftest.dir; then 26859 cd conftest.dir 26860 cat >Imakefile <<'_ACEOF' 26861incroot: 26862 @echo incroot='${INCROOT}' 26863usrlibdir: 26864 @echo usrlibdir='${USRLIBDIR}' 26865libdir: 26866 @echo libdir='${LIBDIR}' 26867_ACEOF 26868 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 26869 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 26870 for ac_var in incroot usrlibdir libdir; do 26871 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 26872 done 26873 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 26874 for ac_extension in a so sl dylib la dll; do 26875 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 26876 test -f "$ac_im_libdir/libX11.$ac_extension"; then 26877 ac_im_usrlibdir=$ac_im_libdir; break 26878 fi 26879 done 26880 # Screen out bogus values from the imake configuration. They are 26881 # bogus both because they are the default anyway, and because 26882 # using them would break gcc on systems where it needs fixed includes. 26883 case $ac_im_incroot in 26884 /usr/include) ac_x_includes= ;; 26885 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 26886 esac 26887 case $ac_im_usrlibdir in 26888 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 26889 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 26890 esac 26891 fi 26892 cd .. 26893 rm -f -r conftest.dir 26894fi 26895 26896# Standard set of common directories for X headers. 26897# Check X11 before X11Rn because it is often a symlink to the current release. 26898ac_x_header_dirs=' 26899/usr/X11/include 26900/usr/X11R7/include 26901/usr/X11R6/include 26902/usr/X11R5/include 26903/usr/X11R4/include 26904 26905/usr/include/X11 26906/usr/include/X11R7 26907/usr/include/X11R6 26908/usr/include/X11R5 26909/usr/include/X11R4 26910 26911/usr/local/X11/include 26912/usr/local/X11R7/include 26913/usr/local/X11R6/include 26914/usr/local/X11R5/include 26915/usr/local/X11R4/include 26916 26917/usr/local/include/X11 26918/usr/local/include/X11R7 26919/usr/local/include/X11R6 26920/usr/local/include/X11R5 26921/usr/local/include/X11R4 26922 26923/usr/X386/include 26924/usr/x386/include 26925/usr/XFree86/include/X11 26926 26927/usr/include 26928/usr/local/include 26929/usr/unsupported/include 26930/usr/athena/include 26931/usr/local/x11r5/include 26932/usr/lpp/Xamples/include 26933 26934/usr/openwin/include 26935/usr/openwin/share/include' 26936 26937if test "$ac_x_includes" = no; then 26938 # Guess where to find include files, by looking for Xlib.h. 26939 # First, try using that file with no special directory specified. 26940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26941/* end confdefs.h. */ 26942#include <X11/Xlib.h> 26943_ACEOF 26944if ac_fn_c_try_cpp "$LINENO"; then : 26945 # We can compile using X headers with no special include directory. 26946ac_x_includes= 26947else 26948 for ac_dir in $ac_x_header_dirs; do 26949 if test -r "$ac_dir/X11/Xlib.h"; then 26950 ac_x_includes=$ac_dir 26951 break 26952 fi 26953done 26954fi 26955rm -f conftest.err conftest.i conftest.$ac_ext 26956fi # $ac_x_includes = no 26957 26958if test "$ac_x_libraries" = no; then 26959 # Check for the libraries. 26960 # See if we find them without any special options. 26961 # Don't add to $LIBS permanently. 26962 ac_save_LIBS=$LIBS 26963 LIBS="-lX11 $LIBS" 26964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26965/* end confdefs.h. */ 26966#include <X11/Xlib.h> 26967int 26968main () 26969{ 26970XrmInitialize () 26971 ; 26972 return 0; 26973} 26974_ACEOF 26975if ac_fn_c_try_link "$LINENO"; then : 26976 LIBS=$ac_save_LIBS 26977# We can link X programs with no special library path. 26978ac_x_libraries= 26979else 26980 LIBS=$ac_save_LIBS 26981for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 26982do 26983 # Don't even attempt the hair of trying to link an X program! 26984 for ac_extension in a so sl dylib la dll; do 26985 if test -r "$ac_dir/libX11.$ac_extension"; then 26986 ac_x_libraries=$ac_dir 26987 break 2 26988 fi 26989 done 26990done 26991fi 26992rm -f core conftest.err conftest.$ac_objext \ 26993 conftest$ac_exeext conftest.$ac_ext 26994fi # $ac_x_libraries = no 26995 26996case $ac_x_includes,$ac_x_libraries in #( 26997 no,* | *,no | *\'*) 26998 # Didn't find X, or a directory has "'" in its name. 26999 ac_cv_have_x="have_x=no";; #( 27000 *) 27001 # Record where we found X for the cache. 27002 ac_cv_have_x="have_x=yes\ 27003 ac_x_includes='$ac_x_includes'\ 27004 ac_x_libraries='$ac_x_libraries'" 27005esac 27006fi 27007;; #( 27008 *) have_x=yes;; 27009 esac 27010 eval "$ac_cv_have_x" 27011fi # $with_x != no 27012 27013if test "$have_x" != yes; then 27014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 27015$as_echo "$have_x" >&6; } 27016 no_x=yes 27017else 27018 # If each of the values was on the command line, it overrides each guess. 27019 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 27020 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 27021 # Update the cache value to reflect the command line values. 27022 ac_cv_have_x="have_x=yes\ 27023 ac_x_includes='$x_includes'\ 27024 ac_x_libraries='$x_libraries'" 27025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 27026$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 27027fi 27028 27029if test "$no_x" = yes; then 27030 # Not all programs may use this symbol, but it does not hurt to define it. 27031 27032$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 27033 27034 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 27035else 27036 if test -n "$x_includes"; then 27037 X_CFLAGS="$X_CFLAGS -I$x_includes" 27038 fi 27039 27040 # It would also be nice to do this for all -L options, not just this one. 27041 if test -n "$x_libraries"; then 27042 X_LIBS="$X_LIBS -L$x_libraries" 27043 # For Solaris; some versions of Sun CC require a space after -R and 27044 # others require no space. Words are not sufficient . . . . 27045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 27046$as_echo_n "checking whether -R must be followed by a space... " >&6; } 27047 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 27048 ac_xsave_c_werror_flag=$ac_c_werror_flag 27049 ac_c_werror_flag=yes 27050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27051/* end confdefs.h. */ 27052 27053int 27054main () 27055{ 27056 27057 ; 27058 return 0; 27059} 27060_ACEOF 27061if ac_fn_c_try_link "$LINENO"; then : 27062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27063$as_echo "no" >&6; } 27064 X_LIBS="$X_LIBS -R$x_libraries" 27065else 27066 LIBS="$ac_xsave_LIBS -R $x_libraries" 27067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27068/* end confdefs.h. */ 27069 27070int 27071main () 27072{ 27073 27074 ; 27075 return 0; 27076} 27077_ACEOF 27078if ac_fn_c_try_link "$LINENO"; then : 27079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27080$as_echo "yes" >&6; } 27081 X_LIBS="$X_LIBS -R $x_libraries" 27082else 27083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 27084$as_echo "neither works" >&6; } 27085fi 27086rm -f core conftest.err conftest.$ac_objext \ 27087 conftest$ac_exeext conftest.$ac_ext 27088fi 27089rm -f core conftest.err conftest.$ac_objext \ 27090 conftest$ac_exeext conftest.$ac_ext 27091 ac_c_werror_flag=$ac_xsave_c_werror_flag 27092 LIBS=$ac_xsave_LIBS 27093 fi 27094 27095 # Check for system-dependent libraries X programs must link with. 27096 # Do this before checking for the system-independent R6 libraries 27097 # (-lICE), since we may need -lsocket or whatever for X linking. 27098 27099 if test "$ISC" = yes; then 27100 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 27101 else 27102 # Martyn Johnson says this is needed for Ultrix, if the X 27103 # libraries were built with DECnet support. And Karl Berry says 27104 # the Alpha needs dnet_stub (dnet does not exist). 27105 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 27106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27107/* end confdefs.h. */ 27108 27109/* Override any GCC internal prototype to avoid an error. 27110 Use char because int might match the return type of a GCC 27111 builtin and then its argument prototype would still apply. */ 27112#ifdef __cplusplus 27113extern "C" 27114#endif 27115char XOpenDisplay (); 27116int 27117main () 27118{ 27119return XOpenDisplay (); 27120 ; 27121 return 0; 27122} 27123_ACEOF 27124if ac_fn_c_try_link "$LINENO"; then : 27125 27126else 27127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 27128$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 27129if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 27130 $as_echo_n "(cached) " >&6 27131else 27132 ac_check_lib_save_LIBS=$LIBS 27133LIBS="-ldnet $LIBS" 27134cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27135/* end confdefs.h. */ 27136 27137/* Override any GCC internal prototype to avoid an error. 27138 Use char because int might match the return type of a GCC 27139 builtin and then its argument prototype would still apply. */ 27140#ifdef __cplusplus 27141extern "C" 27142#endif 27143char dnet_ntoa (); 27144int 27145main () 27146{ 27147return dnet_ntoa (); 27148 ; 27149 return 0; 27150} 27151_ACEOF 27152if ac_fn_c_try_link "$LINENO"; then : 27153 ac_cv_lib_dnet_dnet_ntoa=yes 27154else 27155 ac_cv_lib_dnet_dnet_ntoa=no 27156fi 27157rm -f core conftest.err conftest.$ac_objext \ 27158 conftest$ac_exeext conftest.$ac_ext 27159LIBS=$ac_check_lib_save_LIBS 27160fi 27161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 27162$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 27163if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 27164 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 27165fi 27166 27167 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 27168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 27169$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 27170if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 27171 $as_echo_n "(cached) " >&6 27172else 27173 ac_check_lib_save_LIBS=$LIBS 27174LIBS="-ldnet_stub $LIBS" 27175cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27176/* end confdefs.h. */ 27177 27178/* Override any GCC internal prototype to avoid an error. 27179 Use char because int might match the return type of a GCC 27180 builtin and then its argument prototype would still apply. */ 27181#ifdef __cplusplus 27182extern "C" 27183#endif 27184char dnet_ntoa (); 27185int 27186main () 27187{ 27188return dnet_ntoa (); 27189 ; 27190 return 0; 27191} 27192_ACEOF 27193if ac_fn_c_try_link "$LINENO"; then : 27194 ac_cv_lib_dnet_stub_dnet_ntoa=yes 27195else 27196 ac_cv_lib_dnet_stub_dnet_ntoa=no 27197fi 27198rm -f core conftest.err conftest.$ac_objext \ 27199 conftest$ac_exeext conftest.$ac_ext 27200LIBS=$ac_check_lib_save_LIBS 27201fi 27202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 27203$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 27204if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 27205 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 27206fi 27207 27208 fi 27209fi 27210rm -f core conftest.err conftest.$ac_objext \ 27211 conftest$ac_exeext conftest.$ac_ext 27212 LIBS="$ac_xsave_LIBS" 27213 27214 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 27215 # to get the SysV transport functions. 27216 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 27217 # needs -lnsl. 27218 # The nsl library prevents programs from opening the X display 27219 # on Irix 5.2, according to T.E. Dickey. 27220 # The functions gethostbyname, getservbyname, and inet_addr are 27221 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 27222 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 27223if test "x$ac_cv_func_gethostbyname" = xyes; then : 27224 27225fi 27226 27227 if test $ac_cv_func_gethostbyname = no; then 27228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 27229$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 27230if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 27231 $as_echo_n "(cached) " >&6 27232else 27233 ac_check_lib_save_LIBS=$LIBS 27234LIBS="-lnsl $LIBS" 27235cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27236/* end confdefs.h. */ 27237 27238/* Override any GCC internal prototype to avoid an error. 27239 Use char because int might match the return type of a GCC 27240 builtin and then its argument prototype would still apply. */ 27241#ifdef __cplusplus 27242extern "C" 27243#endif 27244char gethostbyname (); 27245int 27246main () 27247{ 27248return gethostbyname (); 27249 ; 27250 return 0; 27251} 27252_ACEOF 27253if ac_fn_c_try_link "$LINENO"; then : 27254 ac_cv_lib_nsl_gethostbyname=yes 27255else 27256 ac_cv_lib_nsl_gethostbyname=no 27257fi 27258rm -f core conftest.err conftest.$ac_objext \ 27259 conftest$ac_exeext conftest.$ac_ext 27260LIBS=$ac_check_lib_save_LIBS 27261fi 27262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 27263$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 27264if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 27265 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 27266fi 27267 27268 if test $ac_cv_lib_nsl_gethostbyname = no; then 27269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 27270$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 27271if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 27272 $as_echo_n "(cached) " >&6 27273else 27274 ac_check_lib_save_LIBS=$LIBS 27275LIBS="-lbsd $LIBS" 27276cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27277/* end confdefs.h. */ 27278 27279/* Override any GCC internal prototype to avoid an error. 27280 Use char because int might match the return type of a GCC 27281 builtin and then its argument prototype would still apply. */ 27282#ifdef __cplusplus 27283extern "C" 27284#endif 27285char gethostbyname (); 27286int 27287main () 27288{ 27289return gethostbyname (); 27290 ; 27291 return 0; 27292} 27293_ACEOF 27294if ac_fn_c_try_link "$LINENO"; then : 27295 ac_cv_lib_bsd_gethostbyname=yes 27296else 27297 ac_cv_lib_bsd_gethostbyname=no 27298fi 27299rm -f core conftest.err conftest.$ac_objext \ 27300 conftest$ac_exeext conftest.$ac_ext 27301LIBS=$ac_check_lib_save_LIBS 27302fi 27303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 27304$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 27305if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 27306 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 27307fi 27308 27309 fi 27310 fi 27311 27312 # lieder@skyler.mavd.honeywell.com says without -lsocket, 27313 # socket/setsockopt and other routines are undefined under SCO ODT 27314 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 27315 # on later versions), says Simon Leinen: it contains gethostby* 27316 # variants that don't use the name server (or something). -lsocket 27317 # must be given before -lnsl if both are needed. We assume that 27318 # if connect needs -lnsl, so does gethostbyname. 27319 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 27320if test "x$ac_cv_func_connect" = xyes; then : 27321 27322fi 27323 27324 if test $ac_cv_func_connect = no; then 27325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 27326$as_echo_n "checking for connect in -lsocket... " >&6; } 27327if ${ac_cv_lib_socket_connect+:} false; then : 27328 $as_echo_n "(cached) " >&6 27329else 27330 ac_check_lib_save_LIBS=$LIBS 27331LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 27332cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27333/* end confdefs.h. */ 27334 27335/* Override any GCC internal prototype to avoid an error. 27336 Use char because int might match the return type of a GCC 27337 builtin and then its argument prototype would still apply. */ 27338#ifdef __cplusplus 27339extern "C" 27340#endif 27341char connect (); 27342int 27343main () 27344{ 27345return connect (); 27346 ; 27347 return 0; 27348} 27349_ACEOF 27350if ac_fn_c_try_link "$LINENO"; then : 27351 ac_cv_lib_socket_connect=yes 27352else 27353 ac_cv_lib_socket_connect=no 27354fi 27355rm -f core conftest.err conftest.$ac_objext \ 27356 conftest$ac_exeext conftest.$ac_ext 27357LIBS=$ac_check_lib_save_LIBS 27358fi 27359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 27360$as_echo "$ac_cv_lib_socket_connect" >&6; } 27361if test "x$ac_cv_lib_socket_connect" = xyes; then : 27362 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 27363fi 27364 27365 fi 27366 27367 # Guillermo Gomez says -lposix is necessary on A/UX. 27368 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" 27369if test "x$ac_cv_func_remove" = xyes; then : 27370 27371fi 27372 27373 if test $ac_cv_func_remove = no; then 27374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 27375$as_echo_n "checking for remove in -lposix... " >&6; } 27376if ${ac_cv_lib_posix_remove+:} false; then : 27377 $as_echo_n "(cached) " >&6 27378else 27379 ac_check_lib_save_LIBS=$LIBS 27380LIBS="-lposix $LIBS" 27381cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27382/* end confdefs.h. */ 27383 27384/* Override any GCC internal prototype to avoid an error. 27385 Use char because int might match the return type of a GCC 27386 builtin and then its argument prototype would still apply. */ 27387#ifdef __cplusplus 27388extern "C" 27389#endif 27390char remove (); 27391int 27392main () 27393{ 27394return remove (); 27395 ; 27396 return 0; 27397} 27398_ACEOF 27399if ac_fn_c_try_link "$LINENO"; then : 27400 ac_cv_lib_posix_remove=yes 27401else 27402 ac_cv_lib_posix_remove=no 27403fi 27404rm -f core conftest.err conftest.$ac_objext \ 27405 conftest$ac_exeext conftest.$ac_ext 27406LIBS=$ac_check_lib_save_LIBS 27407fi 27408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 27409$as_echo "$ac_cv_lib_posix_remove" >&6; } 27410if test "x$ac_cv_lib_posix_remove" = xyes; then : 27411 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 27412fi 27413 27414 fi 27415 27416 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 27417 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 27418if test "x$ac_cv_func_shmat" = xyes; then : 27419 27420fi 27421 27422 if test $ac_cv_func_shmat = no; then 27423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 27424$as_echo_n "checking for shmat in -lipc... " >&6; } 27425if ${ac_cv_lib_ipc_shmat+:} false; then : 27426 $as_echo_n "(cached) " >&6 27427else 27428 ac_check_lib_save_LIBS=$LIBS 27429LIBS="-lipc $LIBS" 27430cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27431/* end confdefs.h. */ 27432 27433/* Override any GCC internal prototype to avoid an error. 27434 Use char because int might match the return type of a GCC 27435 builtin and then its argument prototype would still apply. */ 27436#ifdef __cplusplus 27437extern "C" 27438#endif 27439char shmat (); 27440int 27441main () 27442{ 27443return shmat (); 27444 ; 27445 return 0; 27446} 27447_ACEOF 27448if ac_fn_c_try_link "$LINENO"; then : 27449 ac_cv_lib_ipc_shmat=yes 27450else 27451 ac_cv_lib_ipc_shmat=no 27452fi 27453rm -f core conftest.err conftest.$ac_objext \ 27454 conftest$ac_exeext conftest.$ac_ext 27455LIBS=$ac_check_lib_save_LIBS 27456fi 27457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 27458$as_echo "$ac_cv_lib_ipc_shmat" >&6; } 27459if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 27460 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 27461fi 27462 27463 fi 27464 fi 27465 27466 # Check for libraries that X11R6 Xt/Xaw programs need. 27467 ac_save_LDFLAGS=$LDFLAGS 27468 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 27469 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 27470 # check for ICE first), but we must link in the order -lSM -lICE or 27471 # we get undefined symbols. So assume we have SM if we have ICE. 27472 # These have to be linked with before -lX11, unlike the other 27473 # libraries we check for below, so use a different variable. 27474 # John Interrante, Karl Berry 27475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 27476$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 27477if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 27478 $as_echo_n "(cached) " >&6 27479else 27480 ac_check_lib_save_LIBS=$LIBS 27481LIBS="-lICE $X_EXTRA_LIBS $LIBS" 27482cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27483/* end confdefs.h. */ 27484 27485/* Override any GCC internal prototype to avoid an error. 27486 Use char because int might match the return type of a GCC 27487 builtin and then its argument prototype would still apply. */ 27488#ifdef __cplusplus 27489extern "C" 27490#endif 27491char IceConnectionNumber (); 27492int 27493main () 27494{ 27495return IceConnectionNumber (); 27496 ; 27497 return 0; 27498} 27499_ACEOF 27500if ac_fn_c_try_link "$LINENO"; then : 27501 ac_cv_lib_ICE_IceConnectionNumber=yes 27502else 27503 ac_cv_lib_ICE_IceConnectionNumber=no 27504fi 27505rm -f core conftest.err conftest.$ac_objext \ 27506 conftest$ac_exeext conftest.$ac_ext 27507LIBS=$ac_check_lib_save_LIBS 27508fi 27509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 27510$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 27511if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 27512 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 27513fi 27514 27515 LDFLAGS=$ac_save_LDFLAGS 27516 27517fi 27518 27519if test "$no_x" != 'yes'; then 27520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 27521$as_echo "-------------------------------------------------------------" >&6; } 27522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5 27523$as_echo_n "checking for X11... " >&6; } 27524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 27525$as_echo "" >&6; } 27526 LDFLAGS="$LDFLAGS $X_LIBS" 27527 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS" 27528 LIBS="$X11_LIBS $LIBS" 27529 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 27530 27531 27532$as_echo "#define X11_DELEGATE 1" >>confdefs.h 27533 27534 # 27535 # Check for X11 shared memory extension 27536 # 27537 # shmctl is required to support the shared memory extension 27538 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl" 27539if test "x$ac_cv_func_shmctl" = xyes; then : 27540 have_shmctl='yes' 27541fi 27542 27543 if test "$have_shmctl" != 'yes'; then 27544 PERSIST_LIBS=$LIBS 27545 LIBS="$LIBS -lcygipc" 27546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27547/* end confdefs.h. */ 27548 27549/* Override any GCC internal prototype to avoid an error. 27550 Use char because int might match the return type of a GCC 27551 builtin and then its argument prototype would still apply. */ 27552#ifdef __cplusplus 27553extern "C" 27554#endif 27555char shmctl (); 27556int 27557main () 27558{ 27559return shmctl (); 27560 ; 27561 return 0; 27562} 27563_ACEOF 27564if ac_fn_c_try_link "$LINENO"; then : 27565 have_shmctl='yes'; IPC_LIBS='-lcygipc' 27566fi 27567rm -f core conftest.err conftest.$ac_objext \ 27568 conftest$ac_exeext conftest.$ac_ext 27569 LIBS=$PERSIST_LIBS 27570 fi 27571 27572 if test "$have_shmctl" = 'yes'; then 27573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5 27574$as_echo_n "checking for XShmAttach in -lXext... " >&6; } 27575if ${ac_cv_lib_Xext_XShmAttach+:} false; then : 27576 $as_echo_n "(cached) " >&6 27577else 27578 ac_check_lib_save_LIBS=$LIBS 27579LIBS="-lXext $LIBS" 27580cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27581/* end confdefs.h. */ 27582 27583/* Override any GCC internal prototype to avoid an error. 27584 Use char because int might match the return type of a GCC 27585 builtin and then its argument prototype would still apply. */ 27586#ifdef __cplusplus 27587extern "C" 27588#endif 27589char XShmAttach (); 27590int 27591main () 27592{ 27593return XShmAttach (); 27594 ; 27595 return 0; 27596} 27597_ACEOF 27598if ac_fn_c_try_link "$LINENO"; then : 27599 ac_cv_lib_Xext_XShmAttach=yes 27600else 27601 ac_cv_lib_Xext_XShmAttach=no 27602fi 27603rm -f core conftest.err conftest.$ac_objext \ 27604 conftest$ac_exeext conftest.$ac_ext 27605LIBS=$ac_check_lib_save_LIBS 27606fi 27607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5 27608$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; } 27609if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then : 27610 XEXT_LIBS='-lXext' ; 27611$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h 27612 27613fi 27614 27615 fi 27616 27617 # 27618 # Check for X11 shape extension 27619 # 27620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5 27621$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; } 27622if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then : 27623 $as_echo_n "(cached) " >&6 27624else 27625 ac_check_lib_save_LIBS=$LIBS 27626LIBS="-lXext $LIBS" 27627cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27628/* end confdefs.h. */ 27629 27630/* Override any GCC internal prototype to avoid an error. 27631 Use char because int might match the return type of a GCC 27632 builtin and then its argument prototype would still apply. */ 27633#ifdef __cplusplus 27634extern "C" 27635#endif 27636char XShapeCombineMask (); 27637int 27638main () 27639{ 27640return XShapeCombineMask (); 27641 ; 27642 return 0; 27643} 27644_ACEOF 27645if ac_fn_c_try_link "$LINENO"; then : 27646 ac_cv_lib_Xext_XShapeCombineMask=yes 27647else 27648 ac_cv_lib_Xext_XShapeCombineMask=no 27649fi 27650rm -f core conftest.err conftest.$ac_objext \ 27651 conftest$ac_exeext conftest.$ac_ext 27652LIBS=$ac_check_lib_save_LIBS 27653fi 27654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5 27655$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; } 27656if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then : 27657 XEXT_LIBS='-lXext' ; 27658$as_echo "#define HAVE_SHAPE 1" >>confdefs.h 27659 27660fi 27661 27662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5 27663$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; } 27664if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then : 27665 $as_echo_n "(cached) " >&6 27666else 27667 ac_check_lib_save_LIBS=$LIBS 27668LIBS="-lXt $LIBS" 27669cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27670/* end confdefs.h. */ 27671 27672/* Override any GCC internal prototype to avoid an error. 27673 Use char because int might match the return type of a GCC 27674 builtin and then its argument prototype would still apply. */ 27675#ifdef __cplusplus 27676extern "C" 27677#endif 27678char XtSetEventDispatcher (); 27679int 27680main () 27681{ 27682return XtSetEventDispatcher (); 27683 ; 27684 return 0; 27685} 27686_ACEOF 27687if ac_fn_c_try_link "$LINENO"; then : 27688 ac_cv_lib_Xt_XtSetEventDispatcher=yes 27689else 27690 ac_cv_lib_Xt_XtSetEventDispatcher=no 27691fi 27692rm -f core conftest.err conftest.$ac_objext \ 27693 conftest$ac_exeext conftest.$ac_ext 27694LIBS=$ac_check_lib_save_LIBS 27695fi 27696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5 27697$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; } 27698if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then : 27699 XT_LIBS='-lXt' 27700fi 27701 27702 LIBS="$XEXT_LIBS $XT_LIBS $LIBS" 27703fi 27704if test "$no_x" != 'yes'; then 27705 have_x='yes' 27706else 27707 have_x='no' 27708fi 27709 if test "$have_x" = 'yes'; then 27710 X11_DELEGATE_TRUE= 27711 X11_DELEGATE_FALSE='#' 27712else 27713 X11_DELEGATE_TRUE='#' 27714 X11_DELEGATE_FALSE= 27715fi 27716 27717 27718 27719 27720 27721# 27722# Check for ZLIB 27723# 27724 27725# Check whether --with-zlib was given. 27726if test "${with_zlib+set}" = set; then : 27727 withval=$with_zlib; with_zlib=$withval 27728else 27729 with_zlib='yes' 27730fi 27731 27732 27733if test "$with_zlib" != 'yes'; then 27734 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib " 27735fi 27736 27737have_zlib='no' 27738ZLIB_LIBS='' 27739if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then 27740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 27741$as_echo "-------------------------------------------------------------" >&6; } 27742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5 27743$as_echo_n "checking for ZLIB... " >&6; } 27744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 27745$as_echo "" >&6; } 27746 ZLIB_LIBS='' 27747 failed=0 27748 passed=0 27749 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default" 27750if test "x$ac_cv_header_zconf_h" = xyes; then : 27751 passed=`expr $passed + 1` 27752else 27753 failed=`expr $failed + 1` 27754fi 27755 27756 27757 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 27758if test "x$ac_cv_header_zlib_h" = xyes; then : 27759 passed=`expr $passed + 1` 27760else 27761 failed=`expr $failed + 1` 27762fi 27763 27764 27765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5 27766$as_echo_n "checking for compress in -lz... " >&6; } 27767if ${ac_cv_lib_z_compress+:} false; then : 27768 $as_echo_n "(cached) " >&6 27769else 27770 ac_check_lib_save_LIBS=$LIBS 27771LIBS="-lz $LIBS" 27772cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27773/* end confdefs.h. */ 27774 27775/* Override any GCC internal prototype to avoid an error. 27776 Use char because int might match the return type of a GCC 27777 builtin and then its argument prototype would still apply. */ 27778#ifdef __cplusplus 27779extern "C" 27780#endif 27781char compress (); 27782int 27783main () 27784{ 27785return compress (); 27786 ; 27787 return 0; 27788} 27789_ACEOF 27790if ac_fn_c_try_link "$LINENO"; then : 27791 ac_cv_lib_z_compress=yes 27792else 27793 ac_cv_lib_z_compress=no 27794fi 27795rm -f core conftest.err conftest.$ac_objext \ 27796 conftest$ac_exeext conftest.$ac_ext 27797LIBS=$ac_check_lib_save_LIBS 27798fi 27799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5 27800$as_echo "$ac_cv_lib_z_compress" >&6; } 27801if test "x$ac_cv_lib_z_compress" = xyes; then : 27802 passed=`expr $passed + 1` 27803else 27804 failed=`expr $failed + 1` 27805fi 27806 27807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5 27808$as_echo_n "checking for uncompress in -lz... " >&6; } 27809if ${ac_cv_lib_z_uncompress+:} false; then : 27810 $as_echo_n "(cached) " >&6 27811else 27812 ac_check_lib_save_LIBS=$LIBS 27813LIBS="-lz $LIBS" 27814cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27815/* end confdefs.h. */ 27816 27817/* Override any GCC internal prototype to avoid an error. 27818 Use char because int might match the return type of a GCC 27819 builtin and then its argument prototype would still apply. */ 27820#ifdef __cplusplus 27821extern "C" 27822#endif 27823char uncompress (); 27824int 27825main () 27826{ 27827return uncompress (); 27828 ; 27829 return 0; 27830} 27831_ACEOF 27832if ac_fn_c_try_link "$LINENO"; then : 27833 ac_cv_lib_z_uncompress=yes 27834else 27835 ac_cv_lib_z_uncompress=no 27836fi 27837rm -f core conftest.err conftest.$ac_objext \ 27838 conftest$ac_exeext conftest.$ac_ext 27839LIBS=$ac_check_lib_save_LIBS 27840fi 27841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5 27842$as_echo "$ac_cv_lib_z_uncompress" >&6; } 27843if test "x$ac_cv_lib_z_uncompress" = xyes; then : 27844 passed=`expr $passed + 1` 27845else 27846 failed=`expr $failed + 1` 27847fi 27848 27849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5 27850$as_echo_n "checking for deflate in -lz... " >&6; } 27851if ${ac_cv_lib_z_deflate+:} false; then : 27852 $as_echo_n "(cached) " >&6 27853else 27854 ac_check_lib_save_LIBS=$LIBS 27855LIBS="-lz $LIBS" 27856cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27857/* end confdefs.h. */ 27858 27859/* Override any GCC internal prototype to avoid an error. 27860 Use char because int might match the return type of a GCC 27861 builtin and then its argument prototype would still apply. */ 27862#ifdef __cplusplus 27863extern "C" 27864#endif 27865char deflate (); 27866int 27867main () 27868{ 27869return deflate (); 27870 ; 27871 return 0; 27872} 27873_ACEOF 27874if ac_fn_c_try_link "$LINENO"; then : 27875 ac_cv_lib_z_deflate=yes 27876else 27877 ac_cv_lib_z_deflate=no 27878fi 27879rm -f core conftest.err conftest.$ac_objext \ 27880 conftest$ac_exeext conftest.$ac_ext 27881LIBS=$ac_check_lib_save_LIBS 27882fi 27883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5 27884$as_echo "$ac_cv_lib_z_deflate" >&6; } 27885if test "x$ac_cv_lib_z_deflate" = xyes; then : 27886 passed=`expr $passed + 1` 27887else 27888 failed=`expr $failed + 1` 27889fi 27890 27891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5 27892$as_echo_n "checking for inflate in -lz... " >&6; } 27893if ${ac_cv_lib_z_inflate+:} false; then : 27894 $as_echo_n "(cached) " >&6 27895else 27896 ac_check_lib_save_LIBS=$LIBS 27897LIBS="-lz $LIBS" 27898cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27899/* end confdefs.h. */ 27900 27901/* Override any GCC internal prototype to avoid an error. 27902 Use char because int might match the return type of a GCC 27903 builtin and then its argument prototype would still apply. */ 27904#ifdef __cplusplus 27905extern "C" 27906#endif 27907char inflate (); 27908int 27909main () 27910{ 27911return inflate (); 27912 ; 27913 return 0; 27914} 27915_ACEOF 27916if ac_fn_c_try_link "$LINENO"; then : 27917 ac_cv_lib_z_inflate=yes 27918else 27919 ac_cv_lib_z_inflate=no 27920fi 27921rm -f core conftest.err conftest.$ac_objext \ 27922 conftest$ac_exeext conftest.$ac_ext 27923LIBS=$ac_check_lib_save_LIBS 27924fi 27925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5 27926$as_echo "$ac_cv_lib_z_inflate" >&6; } 27927if test "x$ac_cv_lib_z_inflate" = xyes; then : 27928 passed=`expr $passed + 1` 27929else 27930 failed=`expr $failed + 1` 27931fi 27932 27933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5 27934$as_echo_n "checking for gzseek in -lz... " >&6; } 27935if ${ac_cv_lib_z_gzseek+:} false; then : 27936 $as_echo_n "(cached) " >&6 27937else 27938 ac_check_lib_save_LIBS=$LIBS 27939LIBS="-lz $LIBS" 27940cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27941/* end confdefs.h. */ 27942 27943/* Override any GCC internal prototype to avoid an error. 27944 Use char because int might match the return type of a GCC 27945 builtin and then its argument prototype would still apply. */ 27946#ifdef __cplusplus 27947extern "C" 27948#endif 27949char gzseek (); 27950int 27951main () 27952{ 27953return gzseek (); 27954 ; 27955 return 0; 27956} 27957_ACEOF 27958if ac_fn_c_try_link "$LINENO"; then : 27959 ac_cv_lib_z_gzseek=yes 27960else 27961 ac_cv_lib_z_gzseek=no 27962fi 27963rm -f core conftest.err conftest.$ac_objext \ 27964 conftest$ac_exeext conftest.$ac_ext 27965LIBS=$ac_check_lib_save_LIBS 27966fi 27967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5 27968$as_echo "$ac_cv_lib_z_gzseek" >&6; } 27969if test "x$ac_cv_lib_z_gzseek" = xyes; then : 27970 passed=`expr $passed + 1` 27971else 27972 failed=`expr $failed + 1` 27973fi 27974 27975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5 27976$as_echo_n "checking for gztell in -lz... " >&6; } 27977if ${ac_cv_lib_z_gztell+:} false; then : 27978 $as_echo_n "(cached) " >&6 27979else 27980 ac_check_lib_save_LIBS=$LIBS 27981LIBS="-lz $LIBS" 27982cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27983/* end confdefs.h. */ 27984 27985/* Override any GCC internal prototype to avoid an error. 27986 Use char because int might match the return type of a GCC 27987 builtin and then its argument prototype would still apply. */ 27988#ifdef __cplusplus 27989extern "C" 27990#endif 27991char gztell (); 27992int 27993main () 27994{ 27995return gztell (); 27996 ; 27997 return 0; 27998} 27999_ACEOF 28000if ac_fn_c_try_link "$LINENO"; then : 28001 ac_cv_lib_z_gztell=yes 28002else 28003 ac_cv_lib_z_gztell=no 28004fi 28005rm -f core conftest.err conftest.$ac_objext \ 28006 conftest$ac_exeext conftest.$ac_ext 28007LIBS=$ac_check_lib_save_LIBS 28008fi 28009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5 28010$as_echo "$ac_cv_lib_z_gztell" >&6; } 28011if test "x$ac_cv_lib_z_gztell" = xyes; then : 28012 passed=`expr $passed + 1` 28013else 28014 failed=`expr $failed + 1` 28015fi 28016 28017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5 28018$as_echo_n "checking if ZLIB package is complete... " >&6; } 28019 if test $passed -gt 0; then 28020 if test $failed -gt 0; then 28021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 28022$as_echo "no -- some components failed test" >&6; } 28023 have_zlib='no (failed tests)' 28024 else 28025 ZLIB_LIBS='-lz' 28026 LIBS="$ZLIB_LIBS $LIBS" 28027 28028$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h 28029 28030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28031$as_echo "yes" >&6; } 28032 have_zlib='yes' 28033 fi 28034 else 28035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28036$as_echo "no" >&6; } 28037 fi 28038fi 28039 if test "$have_zlib" = 'yes'; then 28040 ZLIB_DELEGATE_TRUE= 28041 ZLIB_DELEGATE_FALSE='#' 28042else 28043 ZLIB_DELEGATE_TRUE='#' 28044 ZLIB_DELEGATE_FALSE= 28045fi 28046 28047 28048 28049# whether modules are built or not. 28050with_ltdl='yes' 28051have_ltdl='no' 28052LTDL_LIBS='' 28053if test "$build_modules" != 'no' ; then 28054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 28055$as_echo "-------------------------------------------------------------" >&6; } 28056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5 28057$as_echo_n "checking for libltdl... " >&6; } 28058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 28059$as_echo "" >&6; } 28060 failed=0 28061 passed=0 28062 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default" 28063if test "x$ac_cv_header_ltdl_h" = xyes; then : 28064 passed=`expr $passed + 1` 28065else 28066 failed=`expr $failed + 1` 28067fi 28068 28069 28070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5 28071$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; } 28072if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then : 28073 $as_echo_n "(cached) " >&6 28074else 28075 ac_check_lib_save_LIBS=$LIBS 28076LIBS="-lltdl $LIBS" 28077cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28078/* end confdefs.h. */ 28079 28080/* Override any GCC internal prototype to avoid an error. 28081 Use char because int might match the return type of a GCC 28082 builtin and then its argument prototype would still apply. */ 28083#ifdef __cplusplus 28084extern "C" 28085#endif 28086char lt_dlinit (); 28087int 28088main () 28089{ 28090return lt_dlinit (); 28091 ; 28092 return 0; 28093} 28094_ACEOF 28095if ac_fn_c_try_link "$LINENO"; then : 28096 ac_cv_lib_ltdl_lt_dlinit=yes 28097else 28098 ac_cv_lib_ltdl_lt_dlinit=no 28099fi 28100rm -f core conftest.err conftest.$ac_objext \ 28101 conftest$ac_exeext conftest.$ac_ext 28102LIBS=$ac_check_lib_save_LIBS 28103fi 28104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5 28105$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; } 28106if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then : 28107 passed=`expr $passed + 1` 28108else 28109 failed=`expr $failed + 1` 28110fi 28111 28112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5 28113$as_echo_n "checking if libltdl package is complete... " >&6; } 28114 if test $passed -gt 0 ; then 28115 if test $failed -gt 0 ; then 28116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 28117$as_echo "no -- some components failed test" >&6; } 28118 have_ltdl='no (failed tests)' 28119 else 28120 LTDL_LIBS='-lltdl' 28121 LIBS="$LTDL_LIBS $LIBS" 28122 28123$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h 28124 28125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28126$as_echo "yes" >&6; } 28127 have_ltdl='yes' 28128 fi 28129 else 28130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28131$as_echo "no" >&6; } 28132 fi 28133 if test "$have_ltdl" != 'yes' ; then 28134 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28135$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 28136as_fn_error 1 "libltdl is required for modules build 28137See \`config.log' for more details" "$LINENO" 5; } 28138 fi 28139fi 28140 if test "$have_ltdl" != 'no'; then 28141 WITH_LTDL_TRUE= 28142 WITH_LTDL_FALSE='#' 28143else 28144 WITH_LTDL_TRUE='#' 28145 WITH_LTDL_FALSE= 28146fi 28147 28148 28149# 28150# If profiling, then check for -ldl and dlopen (required for Solaris & gcc) 28151# 28152LIB_DL='' 28153if test "$enable_profiling" = 'yes'; then 28154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 28155$as_echo_n "checking for dlopen in -ldl... " >&6; } 28156if ${ac_cv_lib_dl_dlopen+:} false; then : 28157 $as_echo_n "(cached) " >&6 28158else 28159 ac_check_lib_save_LIBS=$LIBS 28160LIBS="-ldl $LIBS" 28161cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28162/* end confdefs.h. */ 28163 28164/* Override any GCC internal prototype to avoid an error. 28165 Use char because int might match the return type of a GCC 28166 builtin and then its argument prototype would still apply. */ 28167#ifdef __cplusplus 28168extern "C" 28169#endif 28170char dlopen (); 28171int 28172main () 28173{ 28174return dlopen (); 28175 ; 28176 return 0; 28177} 28178_ACEOF 28179if ac_fn_c_try_link "$LINENO"; then : 28180 ac_cv_lib_dl_dlopen=yes 28181else 28182 ac_cv_lib_dl_dlopen=no 28183fi 28184rm -f core conftest.err conftest.$ac_objext \ 28185 conftest$ac_exeext conftest.$ac_ext 28186LIBS=$ac_check_lib_save_LIBS 28187fi 28188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 28189$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 28190if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 28191 LIB_DL='-ldl' 28192fi 28193 28194 LIBS="$LIB_DL $LIBS" 28195fi 28196 28197 28198 28199# 28200# Check for Autotrace delegate library. 28201# 28202 28203# Check whether --with-autotrace was given. 28204if test "${with_autotrace+set}" = set; then : 28205 withval=$with_autotrace; with_autotrace=$withval 28206else 28207 with_autotrace='no' 28208fi 28209 28210 28211if test "$with_autotrace" != 'yes'; then 28212 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace " 28213fi 28214 28215have_autotrace='no' 28216AUTOTRACE_CFLAGS="" 28217AUTOTRACE_LIBS="" 28218AUTOTRACE_PKG="" 28219if test "x$with_autotrace" = "xyes"; then 28220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 28221$as_echo "-------------------------------------------------------------" >&6; } 28222 28223pkg_failed=no 28224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5 28225$as_echo_n "checking for AUTOTRACE... " >&6; } 28226 28227if test -n "$AUTOTRACE_CFLAGS"; then 28228 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS" 28229 elif test -n "$PKG_CONFIG"; then 28230 if test -n "$PKG_CONFIG" && \ 28231 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5 28232 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5 28233 ac_status=$? 28234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28235 test $ac_status = 0; }; then 28236 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null` 28237else 28238 pkg_failed=yes 28239fi 28240 else 28241 pkg_failed=untried 28242fi 28243if test -n "$AUTOTRACE_LIBS"; then 28244 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS" 28245 elif test -n "$PKG_CONFIG"; then 28246 if test -n "$PKG_CONFIG" && \ 28247 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5 28248 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5 28249 ac_status=$? 28250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28251 test $ac_status = 0; }; then 28252 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null` 28253else 28254 pkg_failed=yes 28255fi 28256 else 28257 pkg_failed=untried 28258fi 28259 28260 28261 28262if test $pkg_failed = yes; then 28263 28264if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 28265 _pkg_short_errors_supported=yes 28266else 28267 _pkg_short_errors_supported=no 28268fi 28269 if test $_pkg_short_errors_supported = yes; then 28270 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1` 28271 else 28272 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1` 28273 fi 28274 # Put the nasty error message in config.log where it belongs 28275 echo "$AUTOTRACE_PKG_ERRORS" >&5 28276 28277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28278$as_echo "no" >&6; } 28279 have_autotrace=no 28280elif test $pkg_failed = untried; then 28281 have_autotrace=no 28282else 28283 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS 28284 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS 28285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28286$as_echo "yes" >&6; } 28287 have_autotrace=yes 28288fi 28289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 28290$as_echo "" >&6; } 28291fi 28292 28293if test "$have_autotrace" = 'yes'; then 28294 failed=0 28295 28296$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h 28297 28298 if test "$build_modules" = 'no'; then 28299 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS" 28300 fi 28301fi 28302 28303 if test "$have_autotrace" = 'yes'; then 28304 AUTOTRACE_DELEGATE_TRUE= 28305 AUTOTRACE_DELEGATE_FALSE='#' 28306else 28307 AUTOTRACE_DELEGATE_TRUE='#' 28308 AUTOTRACE_DELEGATE_FALSE= 28309fi 28310 28311 28312 28313 28314 28315# 28316# Check for Display Postscript delegate library. 28317# 28318 28319# Check whether --with-dps was given. 28320if test "${with_dps+set}" = set; then : 28321 withval=$with_dps; with_dps=$withval 28322else 28323 with_dps='yes' 28324fi 28325 28326 28327if test "$with_dps" != 'yes'; then 28328 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps " 28329fi 28330 28331have_dps='no' 28332DPS_LIBS='' 28333if test "$with_dps" != 'no' && test "$with_x" != 'no'; then 28334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 28335$as_echo "-------------------------------------------------------------" >&6; } 28336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5 28337$as_echo_n "checking for DPS... " >&6; } 28338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 28339$as_echo "" >&6; } 28340 failed=0 28341 passed=0 28342 PERSIST_CPPFLAGS="$CPPFLAGS" 28343 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11" 28344 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default" 28345if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then : 28346 passed=`expr $passed + 1` 28347else 28348 failed=`expr $failed + 1` 28349fi 28350 28351 28352 # DPS issues: 28353 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps. 28354 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build. 28355 # Adobe DPS (as delivered on Solaris) doesn't require -lXt. 28356 # ImageMagick itself doesn't use -lXt. 28357 have_libdps='no' 28358 LIBDPS_XT='' 28359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5 28360$as_echo_n "checking for DPSInitialize in -ldps... " >&6; } 28361if ${ac_cv_lib_dps_DPSInitialize+:} false; then : 28362 $as_echo_n "(cached) " >&6 28363else 28364 ac_check_lib_save_LIBS=$LIBS 28365LIBS="-ldps $LIBS" 28366cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28367/* end confdefs.h. */ 28368 28369/* Override any GCC internal prototype to avoid an error. 28370 Use char because int might match the return type of a GCC 28371 builtin and then its argument prototype would still apply. */ 28372#ifdef __cplusplus 28373extern "C" 28374#endif 28375char DPSInitialize (); 28376int 28377main () 28378{ 28379return DPSInitialize (); 28380 ; 28381 return 0; 28382} 28383_ACEOF 28384if ac_fn_c_try_link "$LINENO"; then : 28385 ac_cv_lib_dps_DPSInitialize=yes 28386else 28387 ac_cv_lib_dps_DPSInitialize=no 28388fi 28389rm -f core conftest.err conftest.$ac_objext \ 28390 conftest$ac_exeext conftest.$ac_ext 28391LIBS=$ac_check_lib_save_LIBS 28392fi 28393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5 28394$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; } 28395if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then : 28396 have_libdps='yes' 28397else 28398 have_libdps='no' 28399fi 28400 28401 if test "$have_libdps" != 'yes'; then 28402 # Unset cache variable so we can try again. 28403 unset ac_cv_lib_dps_DPSInitialize 28404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5 28405$as_echo_n "checking for DPSInitialize in -ldps... " >&6; } 28406if ${ac_cv_lib_dps_DPSInitialize+:} false; then : 28407 $as_echo_n "(cached) " >&6 28408else 28409 ac_check_lib_save_LIBS=$LIBS 28410LIBS="-ldps -lXt $LIBS" 28411cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28412/* end confdefs.h. */ 28413 28414/* Override any GCC internal prototype to avoid an error. 28415 Use char because int might match the return type of a GCC 28416 builtin and then its argument prototype would still apply. */ 28417#ifdef __cplusplus 28418extern "C" 28419#endif 28420char DPSInitialize (); 28421int 28422main () 28423{ 28424return DPSInitialize (); 28425 ; 28426 return 0; 28427} 28428_ACEOF 28429if ac_fn_c_try_link "$LINENO"; then : 28430 ac_cv_lib_dps_DPSInitialize=yes 28431else 28432 ac_cv_lib_dps_DPSInitialize=no 28433fi 28434rm -f core conftest.err conftest.$ac_objext \ 28435 conftest$ac_exeext conftest.$ac_ext 28436LIBS=$ac_check_lib_save_LIBS 28437fi 28438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5 28439$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; } 28440if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then : 28441 have_libdps='yes' 28442else 28443 have_libdps='no' 28444fi 28445 28446 if test "$have_libdps" = 'yes'; then 28447 LIBDPS_XT='-lXt' 28448 fi 28449 fi 28450 if test "$have_libdps" = 'yes'; then 28451 passed=`expr $passed + 1` 28452 else 28453 failed=`expr $failed + 1` 28454 fi 28455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5 28456$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; } 28457if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then : 28458 $as_echo_n "(cached) " >&6 28459else 28460 ac_check_lib_save_LIBS=$LIBS 28461LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS" 28462cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28463/* end confdefs.h. */ 28464 28465/* Override any GCC internal prototype to avoid an error. 28466 Use char because int might match the return type of a GCC 28467 builtin and then its argument prototype would still apply. */ 28468#ifdef __cplusplus 28469extern "C" 28470#endif 28471char XDPSPixelsPerPoint (); 28472int 28473main () 28474{ 28475return XDPSPixelsPerPoint (); 28476 ; 28477 return 0; 28478} 28479_ACEOF 28480if ac_fn_c_try_link "$LINENO"; then : 28481 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes 28482else 28483 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no 28484fi 28485rm -f core conftest.err conftest.$ac_objext \ 28486 conftest$ac_exeext conftest.$ac_ext 28487LIBS=$ac_check_lib_save_LIBS 28488fi 28489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5 28490$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; } 28491if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then : 28492 passed=`expr $passed + 1` 28493else 28494 failed=`expr $failed + 1` 28495fi 28496 28497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5 28498$as_echo_n "checking if DPS package is complete... " >&6; } 28499 if test $passed -gt 0; then 28500 if test $failed -gt 0; then 28501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 28502$as_echo "no -- some components failed test" >&6; } 28503 have_dps='no (failed tests)' 28504 CPPFLAGS="$PERSIST_CPPFLAGS" 28505 else 28506 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}" 28507 LIBS="$DPS_LIBS $LIBS" 28508 28509$as_echo "#define DPS_DELEGATE 1" >>confdefs.h 28510 28511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28512$as_echo "yes" >&6; } 28513 have_dps='yes' 28514 fi 28515 else 28516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28517$as_echo "no" >&6; } 28518 CPPFLAGS=$PERSIST_CPPFLAGS 28519 fi 28520fi 28521 if test "$have_dps" = 'yes'; then 28522 DPS_DELEGATE_TRUE= 28523 DPS_DELEGATE_FALSE='#' 28524else 28525 DPS_DELEGATE_TRUE='#' 28526 DPS_DELEGATE_FALSE= 28527fi 28528 28529 28530 28531 28532# 28533# Check for DJVU delegate library. 28534# 28535 28536# Check whether --with-djvu was given. 28537if test "${with_djvu+set}" = set; then : 28538 withval=$with_djvu; with_djvu=$withval 28539else 28540 with_djvu='yes' 28541fi 28542 28543 28544if test "$with_djvu" != 'yes'; then 28545 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu " 28546fi 28547 28548have_djvu='no' 28549DJVU_LIBS='' 28550if test "$with_djvu" != 'no'; then 28551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 28552$as_echo "-------------------------------------------------------------" >&6; } 28553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5 28554$as_echo_n "checking for DJVU... " >&6; } 28555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 28556$as_echo "" >&6; } 28557 failed=0 28558 passed=0 28559 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default" 28560if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then : 28561 passed=`expr $passed + 1` 28562else 28563 failed=`expr $failed + 1` 28564fi 28565 28566 28567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5 28568$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; } 28569if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then : 28570 $as_echo_n "(cached) " >&6 28571else 28572 ac_check_lib_save_LIBS=$LIBS 28573LIBS="-ldjvulibre $LIBS" 28574cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28575/* end confdefs.h. */ 28576 28577/* Override any GCC internal prototype to avoid an error. 28578 Use char because int might match the return type of a GCC 28579 builtin and then its argument prototype would still apply. */ 28580#ifdef __cplusplus 28581extern "C" 28582#endif 28583char ddjvu_context_create (); 28584int 28585main () 28586{ 28587return ddjvu_context_create (); 28588 ; 28589 return 0; 28590} 28591_ACEOF 28592if ac_fn_c_try_link "$LINENO"; then : 28593 ac_cv_lib_djvulibre_ddjvu_context_create=yes 28594else 28595 ac_cv_lib_djvulibre_ddjvu_context_create=no 28596fi 28597rm -f core conftest.err conftest.$ac_objext \ 28598 conftest$ac_exeext conftest.$ac_ext 28599LIBS=$ac_check_lib_save_LIBS 28600fi 28601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5 28602$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; } 28603if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then : 28604 passed=`expr $passed + 1` 28605else 28606 failed=`expr $failed + 1` 28607fi 28608 28609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5 28610$as_echo_n "checking if DJVU package is complete... " >&6; } 28611 if test $passed -gt 0; then 28612 if test $failed -gt 0; then 28613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 28614$as_echo "no -- some components failed test" >&6; } 28615 have_djvu='no (failed tests)' 28616 else 28617 DJVU_LIBS='-ldjvulibre' 28618 LIBS="$DJVU_LIBS $LIBS" 28619 28620$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h 28621 28622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28623$as_echo "yes" >&6; } 28624 have_djvu='yes' 28625 fi 28626 else 28627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28628$as_echo "no" >&6; } 28629 fi 28630fi 28631 if test "$have_djvu" = 'yes'; then 28632 DJVU_DELEGATE_TRUE= 28633 DJVU_DELEGATE_FALSE='#' 28634else 28635 DJVU_DELEGATE_TRUE='#' 28636 DJVU_DELEGATE_FALSE= 28637fi 28638 28639 28640 28641 28642# 28643# Set DejaVu font directory. 28644# 28645 28646# Check whether --with-dejavu-font-dir was given. 28647if test "${with_dejavu_font_dir+set}" = set; then : 28648 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval 28649else 28650 with_dejavu_font_dir='default' 28651fi 28652 28653 28654if test "$with_dejavu_font_dir" != 'default'; then 28655 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir " 28656fi 28657 28658 28659# 28660# Check for FFTW delegate library. 28661# 28662 28663# Check whether --with-fftw was given. 28664if test "${with_fftw+set}" = set; then : 28665 withval=$with_fftw; with_fftw=$withval 28666else 28667 with_fftw='yes' 28668fi 28669 28670 28671if test "$with_fftw" != 'yes'; then 28672 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw " 28673fi 28674 28675have_fftw='no' 28676FFTW_LIBS='' 28677if test "$with_fftw" != 'no'; then 28678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 28679$as_echo "-------------------------------------------------------------" >&6; } 28680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5 28681$as_echo_n "checking for FFTW... " >&6; } 28682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 28683$as_echo "" >&6; } 28684 failed=0 28685 passed=0 28686 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default" 28687if test "x$ac_cv_header_fftw3_h" = xyes; then : 28688 passed=`expr $passed + 1` 28689else 28690 failed=`expr $failed + 1` 28691fi 28692 28693 28694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5 28695$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; } 28696if ${ac_cv_lib_fftw3_fftw_execute+:} false; then : 28697 $as_echo_n "(cached) " >&6 28698else 28699 ac_check_lib_save_LIBS=$LIBS 28700LIBS="-lfftw3 $LIBS" 28701cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28702/* end confdefs.h. */ 28703 28704/* Override any GCC internal prototype to avoid an error. 28705 Use char because int might match the return type of a GCC 28706 builtin and then its argument prototype would still apply. */ 28707#ifdef __cplusplus 28708extern "C" 28709#endif 28710char fftw_execute (); 28711int 28712main () 28713{ 28714return fftw_execute (); 28715 ; 28716 return 0; 28717} 28718_ACEOF 28719if ac_fn_c_try_link "$LINENO"; then : 28720 ac_cv_lib_fftw3_fftw_execute=yes 28721else 28722 ac_cv_lib_fftw3_fftw_execute=no 28723fi 28724rm -f core conftest.err conftest.$ac_objext \ 28725 conftest$ac_exeext conftest.$ac_ext 28726LIBS=$ac_check_lib_save_LIBS 28727fi 28728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5 28729$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; } 28730if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then : 28731 passed=`expr $passed + 1` 28732else 28733 failed=`expr $failed + 1` 28734fi 28735 28736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5 28737$as_echo_n "checking if FFTW package is complete... " >&6; } 28738 if test $passed -gt 0; then 28739 if test $failed -gt 0; then 28740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 28741$as_echo "no -- some components failed test" >&6; } 28742 have_fftw='no (failed tests)' 28743 else 28744 FFTW_LIBS='-lfftw3' 28745 LIBS="$FFTW_LIBS $LIBS" 28746 28747$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h 28748 28749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28750$as_echo "yes" >&6; } 28751 have_fftw='yes' 28752 fi 28753 else 28754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28755$as_echo "no" >&6; } 28756 fi 28757fi 28758 if test "$have_fftw" = 'yes'; then 28759 FFTW_DELEGATE_TRUE= 28760 FFTW_DELEGATE_FALSE='#' 28761else 28762 FFTW_DELEGATE_TRUE='#' 28763 FFTW_DELEGATE_FALSE= 28764fi 28765 28766 28767 28768 28769# 28770# Check for FlashPIX delegate library. 28771# 28772 28773# Check whether --with-fpx was given. 28774if test "${with_fpx+set}" = set; then : 28775 withval=$with_fpx; with_fpx=$withval 28776else 28777 with_fpx='yes' 28778fi 28779 28780 28781if test "$with_fpx" != 'yes'; then 28782 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx " 28783fi 28784 28785have_fpx='no' 28786FPX_LIBS='' 28787if test "$with_fpx" != 'no'; then 28788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 28789$as_echo "-------------------------------------------------------------" >&6; } 28790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5 28791$as_echo_n "checking for FlashPIX... " >&6; } 28792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 28793$as_echo "" >&6; } 28794 failed=0 28795 passed=0 28796 ac_ext=cpp 28797ac_cpp='$CXXCPP $CPPFLAGS' 28798ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28799ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28800ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 28801 28802 28803ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default" 28804if test "x$ac_cv_header_fpxlib_h" = xyes; then : 28805 passed=`expr $passed + 1` 28806else 28807 failed=`expr $failed + 1` 28808fi 28809 28810 28811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5 28812$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; } 28813if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then : 28814 $as_echo_n "(cached) " >&6 28815else 28816 ac_check_lib_save_LIBS=$LIBS 28817LIBS="-lfpx $LIBS" 28818cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28819/* end confdefs.h. */ 28820 28821/* Override any GCC internal prototype to avoid an error. 28822 Use char because int might match the return type of a GCC 28823 builtin and then its argument prototype would still apply. */ 28824#ifdef __cplusplus 28825extern "C" 28826#endif 28827char FPX_OpenImageByFilename (); 28828int 28829main () 28830{ 28831return FPX_OpenImageByFilename (); 28832 ; 28833 return 0; 28834} 28835_ACEOF 28836if ac_fn_cxx_try_link "$LINENO"; then : 28837 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes 28838else 28839 ac_cv_lib_fpx_FPX_OpenImageByFilename=no 28840fi 28841rm -f core conftest.err conftest.$ac_objext \ 28842 conftest$ac_exeext conftest.$ac_ext 28843LIBS=$ac_check_lib_save_LIBS 28844fi 28845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5 28846$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; } 28847if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then : 28848 passed=`expr $passed + 1` 28849else 28850 failed=`expr $failed + 1` 28851fi 28852 28853 ac_ext=c 28854ac_cpp='$CPP $CPPFLAGS' 28855ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28856ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28857ac_compiler_gnu=$ac_cv_c_compiler_gnu 28858 28859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5 28860$as_echo_n "checking if FlashPIX package is complete... " >&6; } 28861 if test $passed -gt 0; then 28862 if test $failed -gt 0; then 28863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 28864$as_echo "no -- some components failed test" >&6; } 28865 have_fpx='no (failed tests)' 28866 else 28867 FPX_LIBS='-lfpx' 28868 28869$as_echo "#define FPX_DELEGATE 1" >>confdefs.h 28870 28871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28872$as_echo "yes" >&6; } 28873 have_fpx='yes' 28874 PERLMAINCC="$CXX" 28875 fi 28876 else 28877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28878$as_echo "no" >&6; } 28879 fi 28880fi 28881 if test "$have_fpx" = 'yes'; then 28882 FPX_DELEGATE_TRUE= 28883 FPX_DELEGATE_FALSE='#' 28884else 28885 FPX_DELEGATE_TRUE='#' 28886 FPX_DELEGATE_FALSE= 28887fi 28888 28889 28890 28891 28892# 28893# Check for fontconfig delegate library. 28894# 28895 28896# Check whether --with-fontconfig was given. 28897if test "${with_fontconfig+set}" = set; then : 28898 withval=$with_fontconfig; with_fontconfig=$withval 28899else 28900 with_fontconfig='yes' 28901fi 28902 28903 28904if test "$with_fontconfig" != 'yes'; then 28905 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig " 28906fi 28907 28908have_fontconfig='no' 28909FONTCONFIG_CFLAGS="" 28910FONTCONFIG_LIBS="" 28911FONTCONFIG_PKG="" 28912if test "x$with_fontconfig" = "xyes"; then 28913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 28914$as_echo "-------------------------------------------------------------" >&6; } 28915 28916pkg_failed=no 28917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5 28918$as_echo_n "checking for FONTCONFIG... " >&6; } 28919 28920if test -n "$FONTCONFIG_CFLAGS"; then 28921 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS" 28922 elif test -n "$PKG_CONFIG"; then 28923 if test -n "$PKG_CONFIG" && \ 28924 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5 28925 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5 28926 ac_status=$? 28927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28928 test $ac_status = 0; }; then 28929 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null` 28930else 28931 pkg_failed=yes 28932fi 28933 else 28934 pkg_failed=untried 28935fi 28936if test -n "$FONTCONFIG_LIBS"; then 28937 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS" 28938 elif test -n "$PKG_CONFIG"; then 28939 if test -n "$PKG_CONFIG" && \ 28940 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5 28941 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5 28942 ac_status=$? 28943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28944 test $ac_status = 0; }; then 28945 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null` 28946else 28947 pkg_failed=yes 28948fi 28949 else 28950 pkg_failed=untried 28951fi 28952 28953 28954 28955if test $pkg_failed = yes; then 28956 28957if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 28958 _pkg_short_errors_supported=yes 28959else 28960 _pkg_short_errors_supported=no 28961fi 28962 if test $_pkg_short_errors_supported = yes; then 28963 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1` 28964 else 28965 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1` 28966 fi 28967 # Put the nasty error message in config.log where it belongs 28968 echo "$FONTCONFIG_PKG_ERRORS" >&5 28969 28970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28971$as_echo "no" >&6; } 28972 have_fontconfig=no 28973elif test $pkg_failed = untried; then 28974 have_fontconfig=no 28975else 28976 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS 28977 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS 28978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28979$as_echo "yes" >&6; } 28980 have_fontconfig=yes 28981fi 28982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 28983$as_echo "" >&6; } 28984fi 28985 28986if test "$have_fontconfig" = 'yes'; then 28987 28988$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h 28989 28990 if test "$build_modules" = 'no'; then 28991 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS" 28992 fi 28993fi 28994 28995 if test "$have_fontconfig" = 'yes'; then 28996 FONTCONFIG_DELEGATE_TRUE= 28997 FONTCONFIG_DELEGATE_FALSE='#' 28998else 28999 FONTCONFIG_DELEGATE_TRUE='#' 29000 FONTCONFIG_DELEGATE_FALSE= 29001fi 29002 29003 29004 29005 29006 29007# 29008# Check for the Freetype delegate library. 29009# 29010 29011# Check whether --with-freetype was given. 29012if test "${with_freetype+set}" = set; then : 29013 withval=$with_freetype; with_freetype=$withval 29014else 29015 with_freetype='yes' 29016fi 29017 29018 29019if test "$with_freetype" != 'yes'; then 29020 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype " 29021fi 29022 29023have_freetype='no' 29024FREETYPE_CFLAGS="" 29025FREETYPE_LIBS="" 29026FREETYPE_PKG="" 29027if test "x$with_freetype" = "xyes"; then 29028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 29029$as_echo "-------------------------------------------------------------" >&6; } 29030 29031pkg_failed=no 29032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5 29033$as_echo_n "checking for FREETYPE... " >&6; } 29034 29035if test -n "$FREETYPE_CFLAGS"; then 29036 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS" 29037 elif test -n "$PKG_CONFIG"; then 29038 if test -n "$PKG_CONFIG" && \ 29039 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 29040 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 29041 ac_status=$? 29042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29043 test $ac_status = 0; }; then 29044 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null` 29045else 29046 pkg_failed=yes 29047fi 29048 else 29049 pkg_failed=untried 29050fi 29051if test -n "$FREETYPE_LIBS"; then 29052 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS" 29053 elif test -n "$PKG_CONFIG"; then 29054 if test -n "$PKG_CONFIG" && \ 29055 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 29056 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 29057 ac_status=$? 29058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29059 test $ac_status = 0; }; then 29060 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null` 29061else 29062 pkg_failed=yes 29063fi 29064 else 29065 pkg_failed=untried 29066fi 29067 29068 29069 29070if test $pkg_failed = yes; then 29071 29072if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 29073 _pkg_short_errors_supported=yes 29074else 29075 _pkg_short_errors_supported=no 29076fi 29077 if test $_pkg_short_errors_supported = yes; then 29078 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1` 29079 else 29080 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1` 29081 fi 29082 # Put the nasty error message in config.log where it belongs 29083 echo "$FREETYPE_PKG_ERRORS" >&5 29084 29085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29086$as_echo "no" >&6; } 29087 have_freetype=no 29088elif test $pkg_failed = untried; then 29089 have_freetype=no 29090else 29091 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS 29092 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS 29093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29094$as_echo "yes" >&6; } 29095 have_freetype=yes 29096fi 29097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 29098$as_echo "" >&6; } 29099fi 29100 29101if test "$have_freetype" = 'yes'; then 29102 29103$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h 29104 29105 CFLAGS="$FREETYPE_CFLAGS $CFLAGS" 29106fi 29107 29108 if test "$have_freetype" = 'yes'; then 29109 FREETYPE_DELEGATE_TRUE= 29110 FREETYPE_DELEGATE_FALSE='#' 29111else 29112 FREETYPE_DELEGATE_TRUE='#' 29113 FREETYPE_DELEGATE_FALSE= 29114fi 29115 29116 29117 29118 29119 29120# 29121# Check for Ghostscript library or framework. 29122# 29123# Test for iapi.h & test for gsapi_new_instance in -lgs 29124# or -framework Ghostscript 29125 29126 29127# Check whether --with-gslib was given. 29128if test "${with_gslib+set}" = set; then : 29129 withval=$with_gslib; with_gslib=$withval 29130else 29131 with_gslib='no' 29132fi 29133 29134 29135gslib_framework='no' 29136if test "$with_gslib" != 'yes'; then 29137 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib " 29138fi 29139 29140have_gslib='no' 29141GS_LIBS='' 29142if test "$with_gslib" != 'no'; then 29143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 29144$as_echo "-------------------------------------------------------------" >&6; } 29145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5 29146$as_echo_n "checking for Ghostscript... " >&6; } 29147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 29148$as_echo "" >&6; } 29149 framework=0 29150 failed=0 29151 passed=0 29152 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default" 29153if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then : 29154 passed=`expr $passed + 1` 29155else 29156 failed=`expr $failed + 1` 29157fi 29158 29159 29160 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default" 29161if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then : 29162 passed=`expr $passed + 1` 29163else 29164 failed=`expr $failed + 1` 29165fi 29166 29167 29168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5 29169$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; } 29170if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then : 29171 $as_echo_n "(cached) " >&6 29172else 29173 ac_check_framework_save_LIBS=$LIBS 29174LIBS="-framework Ghostscript $LIBS" 29175cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29176/* end confdefs.h. */ 29177 29178/* Override any GCC internal prototype to avoid an error. 29179 Use char because int might match the return type of a GCC 29180 builtin and then its argument prototype would still apply. */ 29181#ifdef __cplusplus 29182extern "C" 29183#endif 29184char gsapi_new_instance (); 29185int 29186main () 29187{ 29188return gsapi_new_instance (); 29189 ; 29190 return 0; 29191} 29192_ACEOF 29193if ac_fn_c_try_link "$LINENO"; then : 29194 ac_cv_framework_Ghostscript_gsapi_new_instance=yes 29195else 29196 ac_cv_framework_Ghostscript_gsapi_new_instance=no 29197fi 29198rm -f core conftest.err conftest.$ac_objext \ 29199 conftest$ac_exeext conftest.$ac_ext 29200LIBS=$ac_check_framework_save_LIBS 29201fi 29202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5 29203$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; } 29204if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then : 29205 framework=`expr $framework + 1` 29206else 29207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5 29208$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; } 29209if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then : 29210 $as_echo_n "(cached) " >&6 29211else 29212 ac_check_lib_save_LIBS=$LIBS 29213LIBS="-lgs $LIBS" 29214cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29215/* end confdefs.h. */ 29216 29217/* Override any GCC internal prototype to avoid an error. 29218 Use char because int might match the return type of a GCC 29219 builtin and then its argument prototype would still apply. */ 29220#ifdef __cplusplus 29221extern "C" 29222#endif 29223char gsapi_new_instance (); 29224int 29225main () 29226{ 29227return gsapi_new_instance (); 29228 ; 29229 return 0; 29230} 29231_ACEOF 29232if ac_fn_c_try_link "$LINENO"; then : 29233 ac_cv_lib_gs_gsapi_new_instance=yes 29234else 29235 ac_cv_lib_gs_gsapi_new_instance=no 29236fi 29237rm -f core conftest.err conftest.$ac_objext \ 29238 conftest$ac_exeext conftest.$ac_ext 29239LIBS=$ac_check_lib_save_LIBS 29240fi 29241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5 29242$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; } 29243if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then : 29244 passed=`expr $passed + 1` 29245else 29246 failed=`expr $failed + 1` 29247fi 29248 29249fi 29250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5 29251$as_echo_n "checking if Ghostscript package is complete... " >&6; } 29252 if test $passed -gt 0; then 29253 if test $failed -gt 0; then 29254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 29255$as_echo "no -- some components failed test" >&6; } 29256 have_gslib='no (failed tests)' 29257 else 29258 if test $framework -gt 0; then 29259 GS_LIBS='-framework Ghostscript' 29260 gslib_framework='yes' 29261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5 29262$as_echo "yes, using framework." >&6; } 29263 else 29264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5 29265$as_echo "yes, using library." >&6; } 29266 GS_LIBS='-lgs' 29267 fi 29268 LIBS="$GS_LIBS $LIBS" 29269 29270$as_echo "#define GS_DELEGATE 1" >>confdefs.h 29271 29272 have_gslib='yes' 29273 fi 29274 else 29275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29276$as_echo "no" >&6; } 29277 fi 29278fi 29279 if test "$have_gslib" = 'yes'; then 29280 GS_DELEGATE_TRUE= 29281 GS_DELEGATE_FALSE='#' 29282else 29283 GS_DELEGATE_TRUE='#' 29284 GS_DELEGATE_FALSE= 29285fi 29286 29287 29288 29289# Set default font search path 29290 29291# Check whether --with-fontpath was given. 29292if test "${with_fontpath+set}" = set; then : 29293 withval=$with_fontpath; with_fontpath=$withval 29294else 29295 with_fontpath='' 29296fi 29297 29298 29299if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then 29300 with_fontpath='' 29301else 29302 29303cat >>confdefs.h <<_ACEOF 29304#define MAGICK_FONT_PATH "$with_fontpath" 29305_ACEOF 29306 29307fi 29308if test "$with_fontpath=" != ''; then 29309 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath " 29310fi 29311 29312# Set Ghostscript font directory 29313 29314# Check whether --with-gs-font-dir was given. 29315if test "${with_gs_font_dir+set}" = set; then : 29316 withval=$with_gs_font_dir; with_gs_font_dir=$withval 29317else 29318 with_gs_font_dir='default' 29319fi 29320 29321 29322if test "$with_gs_font_dir" != 'default'; then 29323 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir " 29324fi 29325 29326 29327# 29328# Check for GVC delegate library. 29329# 29330 29331# Check whether --with-gvc was given. 29332if test "${with_gvc+set}" = set; then : 29333 withval=$with_gvc; with_gvc=$withval 29334else 29335 with_gvc='no' 29336fi 29337 29338 29339if test "$with_gvc" != 'yes'; then 29340 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc " 29341fi 29342 29343GVC_PKG="" 29344if test "x$with_gvc" = "xyes"; then 29345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 29346$as_echo "-------------------------------------------------------------" >&6; } 29347 29348pkg_failed=no 29349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5 29350$as_echo_n "checking for GVC... " >&6; } 29351 29352if test -n "$GVC_CFLAGS"; then 29353 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS" 29354 elif test -n "$PKG_CONFIG"; then 29355 if test -n "$PKG_CONFIG" && \ 29356 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5 29357 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5 29358 ac_status=$? 29359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29360 test $ac_status = 0; }; then 29361 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null` 29362else 29363 pkg_failed=yes 29364fi 29365 else 29366 pkg_failed=untried 29367fi 29368if test -n "$GVC_LIBS"; then 29369 pkg_cv_GVC_LIBS="$GVC_LIBS" 29370 elif test -n "$PKG_CONFIG"; then 29371 if test -n "$PKG_CONFIG" && \ 29372 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5 29373 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5 29374 ac_status=$? 29375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29376 test $ac_status = 0; }; then 29377 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null` 29378else 29379 pkg_failed=yes 29380fi 29381 else 29382 pkg_failed=untried 29383fi 29384 29385 29386 29387if test $pkg_failed = yes; then 29388 29389if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 29390 _pkg_short_errors_supported=yes 29391else 29392 _pkg_short_errors_supported=no 29393fi 29394 if test $_pkg_short_errors_supported = yes; then 29395 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1` 29396 else 29397 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1` 29398 fi 29399 # Put the nasty error message in config.log where it belongs 29400 echo "$GVC_PKG_ERRORS" >&5 29401 29402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29403$as_echo "no" >&6; } 29404 have_gvc=no 29405elif test $pkg_failed = untried; then 29406 have_gvc=no 29407else 29408 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS 29409 GVC_LIBS=$pkg_cv_GVC_LIBS 29410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29411$as_echo "yes" >&6; } 29412 have_gvc=yes 29413fi 29414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 29415$as_echo "" >&6; } 29416fi 29417 29418if test "$have_gvc" = 'yes'; then 29419 29420$as_echo "#define GVC_DELEGATE 1" >>confdefs.h 29421 29422 if test "$build_modules" = 'no'; then 29423 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS" 29424 fi 29425fi 29426 29427 if test "$have_gvc" = 'yes'; then 29428 GVC_DELEGATE_TRUE= 29429 GVC_DELEGATE_FALSE='#' 29430else 29431 GVC_DELEGATE_TRUE='#' 29432 GVC_DELEGATE_FALSE= 29433fi 29434 29435 29436 29437 29438 29439# 29440# Check for JBIG delegate library. 29441# 29442 29443 29444# Check whether --with-jbig was given. 29445if test "${with_jbig+set}" = set; then : 29446 withval=$with_jbig; with_jbig=$withval 29447else 29448 with_jbig='yes' 29449fi 29450 29451 29452have_jbig='no' 29453JBIG_LIBS='' 29454if test "$with_jbig" != 'no'; then 29455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 29456$as_echo "-------------------------------------------------------------" >&6; } 29457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5 29458$as_echo_n "checking for JBIG... " >&6; } 29459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 29460$as_echo "" >&6; } 29461 failed=0 29462 passed=0 29463 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default" 29464if test "x$ac_cv_header_jbig_h" = xyes; then : 29465 passed=`expr $passed + 1` 29466else 29467 failed=`expr $failed + 1` 29468fi 29469 29470 29471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5 29472$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; } 29473if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then : 29474 $as_echo_n "(cached) " >&6 29475else 29476 ac_check_lib_save_LIBS=$LIBS 29477LIBS="-ljbig $LIBS" 29478cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29479/* end confdefs.h. */ 29480 29481/* Override any GCC internal prototype to avoid an error. 29482 Use char because int might match the return type of a GCC 29483 builtin and then its argument prototype would still apply. */ 29484#ifdef __cplusplus 29485extern "C" 29486#endif 29487char jbg_dec_init (); 29488int 29489main () 29490{ 29491return jbg_dec_init (); 29492 ; 29493 return 0; 29494} 29495_ACEOF 29496if ac_fn_c_try_link "$LINENO"; then : 29497 ac_cv_lib_jbig_jbg_dec_init=yes 29498else 29499 ac_cv_lib_jbig_jbg_dec_init=no 29500fi 29501rm -f core conftest.err conftest.$ac_objext \ 29502 conftest$ac_exeext conftest.$ac_ext 29503LIBS=$ac_check_lib_save_LIBS 29504fi 29505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5 29506$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; } 29507if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then : 29508 passed=`expr $passed + 1` 29509else 29510 failed=`expr $failed + 1` 29511fi 29512 29513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5 29514$as_echo_n "checking if JBIG package is complete... " >&6; } 29515 if test $passed -gt 0; then 29516 if test $failed -gt 0; then 29517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 29518$as_echo "no -- some components failed test" >&6; } 29519 have_jbig='no (failed tests)' 29520 else 29521 JBIG_LIBS='-ljbig' 29522 LIBS="$JBIG_LIBS $LIBS" 29523 29524$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h 29525 29526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29527$as_echo "yes" >&6; } 29528 have_jbig='yes' 29529 fi 29530 else 29531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29532$as_echo "no" >&6; } 29533 fi 29534fi 29535 if test "$have_jbig" = 'yes'; then 29536 JBIG_DELEGATE_TRUE= 29537 JBIG_DELEGATE_FALSE='#' 29538else 29539 JBIG_DELEGATE_TRUE='#' 29540 JBIG_DELEGATE_FALSE= 29541fi 29542 29543 29544 29545 29546# 29547# Check for JPEG delegate library. 29548# 29549 29550# Check whether --with-jpeg was given. 29551if test "${with_jpeg+set}" = set; then : 29552 withval=$with_jpeg; with_jpeg=$withval 29553else 29554 with_jpeg='yes' 29555fi 29556 29557 29558if test "$with_jpeg" != 'yes'; then 29559 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg " 29560fi 29561 29562have_jpeg='no' 29563JPEG_LIBS='' 29564if test "$with_jpeg" != 'no'; then 29565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 29566$as_echo "-------------------------------------------------------------" >&6; } 29567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5 29568$as_echo_n "checking for JPEG... " >&6; } 29569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 29570$as_echo "" >&6; } 29571 failed=0 29572 passed=0 29573 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default" 29574if test "x$ac_cv_header_jconfig_h" = xyes; then : 29575 passed=`expr $passed + 1` 29576else 29577 failed=`expr $failed + 1` 29578fi 29579 29580 29581 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default" 29582if test "x$ac_cv_header_jerror_h" = xyes; then : 29583 passed=`expr $passed + 1` 29584else 29585 failed=`expr $failed + 1` 29586fi 29587 29588 29589 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default" 29590if test "x$ac_cv_header_jmorecfg_h" = xyes; then : 29591 passed=`expr $passed + 1` 29592else 29593 failed=`expr $failed + 1` 29594fi 29595 29596 29597 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" 29598if test "x$ac_cv_header_jpeglib_h" = xyes; then : 29599 passed=`expr $passed + 1` 29600else 29601 failed=`expr $failed + 1` 29602fi 29603 29604 29605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5 29606$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; } 29607if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then : 29608 $as_echo_n "(cached) " >&6 29609else 29610 ac_check_lib_save_LIBS=$LIBS 29611LIBS="-ljpeg $LIBS" 29612cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29613/* end confdefs.h. */ 29614 29615/* Override any GCC internal prototype to avoid an error. 29616 Use char because int might match the return type of a GCC 29617 builtin and then its argument prototype would still apply. */ 29618#ifdef __cplusplus 29619extern "C" 29620#endif 29621char jpeg_read_header (); 29622int 29623main () 29624{ 29625return jpeg_read_header (); 29626 ; 29627 return 0; 29628} 29629_ACEOF 29630if ac_fn_c_try_link "$LINENO"; then : 29631 ac_cv_lib_jpeg_jpeg_read_header=yes 29632else 29633 ac_cv_lib_jpeg_jpeg_read_header=no 29634fi 29635rm -f core conftest.err conftest.$ac_objext \ 29636 conftest$ac_exeext conftest.$ac_ext 29637LIBS=$ac_check_lib_save_LIBS 29638fi 29639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 29640$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; } 29641if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then : 29642 passed=`expr $passed + 1` 29643else 29644 failed=`expr $failed + 1` 29645fi 29646 29647 29648# Test for compatible JPEG library 29649if test "$ac_cv_jpeg_version_ok" != 'yes'; then 29650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5 29651$as_echo_n "checking for JPEG library is version 6b or later... " >&6; } 29652if ${ac_cv_jpeg_version_ok+:} false; then : 29653 $as_echo_n "(cached) " >&6 29654else 29655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29656/* end confdefs.h. */ 29657#include <stdio.h> 29658#include <stdlib.h> 29659#include <jpeglib.h> 29660 29661int 29662main () 29663{ 29664 29665#if JPEG_LIB_VERSION < 62 29666#error IJG JPEG library must be version 6b or newer! 29667#endif 29668return 0; 29669 29670 ; 29671 return 0; 29672} 29673_ACEOF 29674if ac_fn_c_try_compile "$LINENO"; then : 29675 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1` 29676else 29677 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1` 29678fi 29679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29680fi 29681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5 29682$as_echo "$ac_cv_jpeg_version_ok" >&6; } 29683fi 29684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5 29685$as_echo_n "checking if JPEG package is complete... " >&6; } 29686 if test $passed -gt 0; then 29687 if test $failed -gt 0; then 29688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 29689$as_echo "no -- some components failed test" >&6; } 29690 have_jpeg='no (failed tests)' 29691 else 29692 JPEG_LIBS='-ljpeg' 29693 LIBS="$JPEG_LIBS $LIBS" 29694 29695$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h 29696 29697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29698$as_echo "yes" >&6; } 29699 have_jpeg='yes' 29700 fi 29701 else 29702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29703$as_echo "no" >&6; } 29704 fi 29705fi 29706 if test "$have_jpeg" = 'yes'; then 29707 JPEG_DELEGATE_TRUE= 29708 JPEG_DELEGATE_FALSE='#' 29709else 29710 JPEG_DELEGATE_TRUE='#' 29711 JPEG_DELEGATE_FALSE= 29712fi 29713 29714 29715 29716 29717# 29718# Check for JPEG Version 2 delegate library. 29719# 29720 29721# Check whether --with-jp2 was given. 29722if test "${with_jp2+set}" = set; then : 29723 withval=$with_jp2; with_jp2=$withval 29724else 29725 with_jp2='yes' 29726fi 29727 29728 29729if test "$with_jp2" != 'yes'; then 29730 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 " 29731fi 29732 29733have_jp2='no' 29734JP2_LIBS='' 29735if test "$with_jp2" != 'no'; then 29736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 29737$as_echo "-------------------------------------------------------------" >&6; } 29738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5 29739$as_echo_n "checking for JPEG Version 2... " >&6; } 29740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 29741$as_echo "" >&6; } 29742 failed=0 29743 passed=0 29744 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default" 29745if test "x$ac_cv_header_jasper_jasper_h" = xyes; then : 29746 passed=`expr $passed + 1` 29747else 29748 failed=`expr $failed + 1` 29749fi 29750 29751 29752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5 29753$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; } 29754if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then : 29755 $as_echo_n "(cached) " >&6 29756else 29757 ac_check_lib_save_LIBS=$LIBS 29758LIBS="-ljasper $LIBS" 29759cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29760/* end confdefs.h. */ 29761 29762/* Override any GCC internal prototype to avoid an error. 29763 Use char because int might match the return type of a GCC 29764 builtin and then its argument prototype would still apply. */ 29765#ifdef __cplusplus 29766extern "C" 29767#endif 29768char jas_stream_fopen (); 29769int 29770main () 29771{ 29772return jas_stream_fopen (); 29773 ; 29774 return 0; 29775} 29776_ACEOF 29777if ac_fn_c_try_link "$LINENO"; then : 29778 ac_cv_lib_jasper_jas_stream_fopen=yes 29779else 29780 ac_cv_lib_jasper_jas_stream_fopen=no 29781fi 29782rm -f core conftest.err conftest.$ac_objext \ 29783 conftest$ac_exeext conftest.$ac_ext 29784LIBS=$ac_check_lib_save_LIBS 29785fi 29786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5 29787$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; } 29788if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then : 29789 passed=`expr $passed + 1` 29790else 29791 failed=`expr $failed + 1` 29792fi 29793 29794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5 29795$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; } 29796 if test $passed -gt 0; then 29797 if test $failed -gt 0; then 29798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 29799$as_echo "no -- some components failed test" >&6; } 29800 have_jp2='no (failed tests)' 29801 else 29802 JP2_LIBS='-ljasper' 29803 LIBS="$JP2_LIBS $LIBS" 29804 29805$as_echo "#define JP2_DELEGATE 1" >>confdefs.h 29806 29807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29808$as_echo "yes" >&6; } 29809 have_jp2='yes' 29810 fi 29811 else 29812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29813$as_echo "no" >&6; } 29814 fi 29815fi 29816 if test "$have_jp2" = 'yes'; then 29817 JP2_DELEGATE_TRUE= 29818 JP2_DELEGATE_FALSE='#' 29819else 29820 JP2_DELEGATE_TRUE='#' 29821 JP2_DELEGATE_FALSE= 29822fi 29823 29824 29825 29826 29827# 29828# Check for LCMS delegate library. 29829# 29830# Disable LCMS. 29831 29832# Check whether --with-lcms was given. 29833if test "${with_lcms+set}" = set; then : 29834 withval=$with_lcms; with_lcms=$withval 29835else 29836 with_lcms='yes' 29837fi 29838 29839if test "$with_lcms" != 'yes' ; then 29840 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms " 29841fi 29842 29843# Disable LCMS2. 29844 29845# Check whether --with-lcms2 was given. 29846if test "${with_lcms2+set}" = set; then : 29847 withval=$with_lcms2; with_lcms2=$withval 29848else 29849 with_lcms2='yes' 29850fi 29851 29852if test "$with_lcms2" != 'yes' ; then 29853 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 " 29854fi 29855 29856have_lcms2='no' 29857LCMS_LIBS='' 29858if test "$with_lcms2" != 'no'; then 29859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 29860$as_echo "-------------------------------------------------------------" >&6; } 29861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5 29862$as_echo_n "checking for LCMS v2... " >&6; } 29863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 29864$as_echo "" >&6; } 29865 failed=0 29866 passed=0 29867 have_lcms_header='no' 29868 29869 # Check for <lcms2.h> 29870 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default" 29871if test "x$ac_cv_header_lcms2_h" = xyes; then : 29872 have_lcms_header='yes' 29873fi 29874 29875 29876 if test "$have_lcms_header" = 'yes'; then 29877 29878$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h 29879 29880 passed=`expr $passed + 1` 29881 fi 29882 29883 # Check for <lcms2/lcms2.h) 29884 if test "$have_lcms_header" != 'yes'; then 29885 ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default" 29886if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then : 29887 have_lcms_header='yes' 29888fi 29889 29890 29891 if test "$have_lcms_header" = 'yes'; then 29892 passed=`expr $passed + 1` 29893 29894$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h 29895 29896 fi 29897 fi 29898 29899 # Failed to find lcms header? 29900 if test "$have_lcms_header" != 'yes'; then 29901 failed=`expr $failed + 1` 29902 fi 29903 29904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5 29905$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; } 29906if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then : 29907 $as_echo_n "(cached) " >&6 29908else 29909 ac_check_lib_save_LIBS=$LIBS 29910LIBS="-llcms2 $LIBS" 29911cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29912/* end confdefs.h. */ 29913 29914/* Override any GCC internal prototype to avoid an error. 29915 Use char because int might match the return type of a GCC 29916 builtin and then its argument prototype would still apply. */ 29917#ifdef __cplusplus 29918extern "C" 29919#endif 29920char cmsSetLogErrorHandler (); 29921int 29922main () 29923{ 29924return cmsSetLogErrorHandler (); 29925 ; 29926 return 0; 29927} 29928_ACEOF 29929if ac_fn_c_try_link "$LINENO"; then : 29930 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes 29931else 29932 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no 29933fi 29934rm -f core conftest.err conftest.$ac_objext \ 29935 conftest$ac_exeext conftest.$ac_ext 29936LIBS=$ac_check_lib_save_LIBS 29937fi 29938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5 29939$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; } 29940if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then : 29941 passed=`expr $passed + 1` 29942else 29943 failed=`expr $failed + 1` 29944fi 29945 29946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5 29947$as_echo_n "checking if LCMS v2 package is complete... " >&6; } 29948 if test $passed -gt 0; then 29949 if test $failed -gt 0; then 29950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 29951$as_echo "no -- some components failed test" >&6; } 29952 have_lcms2='no (failed tests)' 29953 else 29954 LCMS_LIBS='-llcms2' 29955 LIBS="$LCMS_LIBS $LIBS" 29956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29957$as_echo "yes" >&6; } 29958 have_lcms2='yes' 29959 fi 29960 else 29961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29962$as_echo "no" >&6; } 29963 fi 29964fi 29965 29966# 29967# Check for LCMS v1 (1.11 or later) 29968# 29969if test $have_lcms2 = 'yes'; then 29970 with_lcms='no' 29971fi 29972 29973have_lcms='no' 29974if test "$with_lcms" != 'no'; then 29975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 29976$as_echo "-------------------------------------------------------------" >&6; } 29977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5 29978$as_echo_n "checking for LCMS v1.1X... " >&6; } 29979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 29980$as_echo "" >&6; } 29981 failed=0 29982 passed=0 29983 have_lcms_header='no' 29984 29985 # Check for <lcms.h> 29986 if test "$have_lcms_header" != 'yes'; then 29987 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default" 29988if test "x$ac_cv_header_lcms_h" = xyes; then : 29989 have_lcms_header='yes' 29990fi 29991 29992 29993 if test "$have_lcms_header" = 'yes'; then 29994 passed=`expr $passed + 1` 29995 29996$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h 29997 29998 fi 29999 fi 30000 30001 # Check for <lcms/lcms.h> 30002 if test "$have_lcms_header" != 'yes'; then 30003 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default" 30004if test "x$ac_cv_header_lcms_lcms_h" = xyes; then : 30005 have_lcms_header='yes' 30006fi 30007 30008 30009 if test "$have_lcms_header" = 'yes'; then 30010 passed=`expr $passed + 1` 30011 30012$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h 30013 30014 fi 30015 fi 30016 30017 # Failed to find lcms header? 30018 if test "$have_lcms_header" != 'yes'; then 30019 failed=`expr $failed + 1` 30020 fi 30021 30022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5 30023$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; } 30024if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then : 30025 $as_echo_n "(cached) " >&6 30026else 30027 ac_check_lib_save_LIBS=$LIBS 30028LIBS="-llcms $LIBS" 30029cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30030/* end confdefs.h. */ 30031 30032/* Override any GCC internal prototype to avoid an error. 30033 Use char because int might match the return type of a GCC 30034 builtin and then its argument prototype would still apply. */ 30035#ifdef __cplusplus 30036extern "C" 30037#endif 30038char cmsSetErrorHandler (); 30039int 30040main () 30041{ 30042return cmsSetErrorHandler (); 30043 ; 30044 return 0; 30045} 30046_ACEOF 30047if ac_fn_c_try_link "$LINENO"; then : 30048 ac_cv_lib_lcms_cmsSetErrorHandler=yes 30049else 30050 ac_cv_lib_lcms_cmsSetErrorHandler=no 30051fi 30052rm -f core conftest.err conftest.$ac_objext \ 30053 conftest$ac_exeext conftest.$ac_ext 30054LIBS=$ac_check_lib_save_LIBS 30055fi 30056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5 30057$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; } 30058if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then : 30059 passed=`expr $passed + 1` 30060else 30061 failed=`expr $failed + 1` 30062fi 30063 30064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5 30065$as_echo_n "checking if LCMS package is complete... " >&6; } 30066 if test $passed -gt 0; then 30067 if test $failed -gt 0; then 30068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 30069$as_echo "no -- some components failed test" >&6; } 30070 have_lcms='no (failed tests)' 30071 else 30072 LCMS_LIBS='-llcms' 30073 LIBS="$LCMS_LIBS $LIBS" 30074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30075$as_echo "yes" >&6; } 30076 have_lcms='yes' 30077 fi 30078 else 30079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30080$as_echo "no" >&6; } 30081 fi 30082fi 30083 30084 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then 30085 LCMS_DELEGATE_TRUE= 30086 LCMS_DELEGATE_FALSE='#' 30087else 30088 LCMS_DELEGATE_TRUE='#' 30089 LCMS_DELEGATE_FALSE= 30090fi 30091 30092if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then 30093 30094$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h 30095 30096fi 30097 30098 30099 30100 30101# 30102# Check for the LQR (Liquid Rescale) delegate library. 30103# 30104 30105# Check whether --with-lqr was given. 30106if test "${with_lqr+set}" = set; then : 30107 withval=$with_lqr; with_lqr=$withval 30108else 30109 with_lqr='yes' 30110fi 30111 30112 30113if test "$with_lqr" != 'yes'; then 30114 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr " 30115fi 30116 30117have_lqr='no' 30118LQR_CFLAGS="" 30119LQR_LIBS="" 30120LQR_PKG="" 30121if test "x$with_lqr" = "xyes"; then 30122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 30123$as_echo "-------------------------------------------------------------" >&6; } 30124 30125pkg_failed=no 30126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5 30127$as_echo_n "checking for LQR... " >&6; } 30128 30129if test -n "$LQR_CFLAGS"; then 30130 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS" 30131 elif test -n "$PKG_CONFIG"; then 30132 if test -n "$PKG_CONFIG" && \ 30133 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5 30134 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5 30135 ac_status=$? 30136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30137 test $ac_status = 0; }; then 30138 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null` 30139else 30140 pkg_failed=yes 30141fi 30142 else 30143 pkg_failed=untried 30144fi 30145if test -n "$LQR_LIBS"; then 30146 pkg_cv_LQR_LIBS="$LQR_LIBS" 30147 elif test -n "$PKG_CONFIG"; then 30148 if test -n "$PKG_CONFIG" && \ 30149 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5 30150 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5 30151 ac_status=$? 30152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30153 test $ac_status = 0; }; then 30154 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null` 30155else 30156 pkg_failed=yes 30157fi 30158 else 30159 pkg_failed=untried 30160fi 30161 30162 30163 30164if test $pkg_failed = yes; then 30165 30166if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30167 _pkg_short_errors_supported=yes 30168else 30169 _pkg_short_errors_supported=no 30170fi 30171 if test $_pkg_short_errors_supported = yes; then 30172 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1` 30173 else 30174 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1` 30175 fi 30176 # Put the nasty error message in config.log where it belongs 30177 echo "$LQR_PKG_ERRORS" >&5 30178 30179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30180$as_echo "no" >&6; } 30181 have_lqr=no 30182elif test $pkg_failed = untried; then 30183 have_lqr=no 30184else 30185 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS 30186 LQR_LIBS=$pkg_cv_LQR_LIBS 30187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30188$as_echo "yes" >&6; } 30189 have_lqr=yes 30190fi 30191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 30192$as_echo "" >&6; } 30193fi 30194 30195if test "$have_lqr" = 'yes'; then 30196 30197$as_echo "#define LQR_DELEGATE 1" >>confdefs.h 30198 30199 CFLAGS="$LQR_CFLAGS $CFLAGS" 30200fi 30201 30202 if test "$have_lqr" = 'yes'; then 30203 LQR_DELEGATE_TRUE= 30204 LQR_DELEGATE_FALSE='#' 30205else 30206 LQR_DELEGATE_TRUE='#' 30207 LQR_DELEGATE_FALSE= 30208fi 30209 30210 30211 30212 30213 30214# Disable LZMA (lzma library) 30215 30216# Check whether --with-lzma was given. 30217if test "${with_lzma+set}" = set; then : 30218 withval=$with_lzma; with_lzma=$withval 30219else 30220 with_lzma='yes' 30221fi 30222 30223if test "$with_lzma" != 'yes' ; then 30224 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma " 30225fi 30226 30227LZMA_PKG="" 30228if test "x$with_lzma" = "xyes"; then 30229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 30230$as_echo "-------------------------------------------------------------" >&6; } 30231 30232pkg_failed=no 30233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5 30234$as_echo_n "checking for LZMA... " >&6; } 30235 30236if test -n "$LZMA_CFLAGS"; then 30237 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS" 30238 elif test -n "$PKG_CONFIG"; then 30239 if test -n "$PKG_CONFIG" && \ 30240 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5 30241 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5 30242 ac_status=$? 30243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30244 test $ac_status = 0; }; then 30245 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null` 30246else 30247 pkg_failed=yes 30248fi 30249 else 30250 pkg_failed=untried 30251fi 30252if test -n "$LZMA_LIBS"; then 30253 pkg_cv_LZMA_LIBS="$LZMA_LIBS" 30254 elif test -n "$PKG_CONFIG"; then 30255 if test -n "$PKG_CONFIG" && \ 30256 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5 30257 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5 30258 ac_status=$? 30259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30260 test $ac_status = 0; }; then 30261 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null` 30262else 30263 pkg_failed=yes 30264fi 30265 else 30266 pkg_failed=untried 30267fi 30268 30269 30270 30271if test $pkg_failed = yes; then 30272 30273if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30274 _pkg_short_errors_supported=yes 30275else 30276 _pkg_short_errors_supported=no 30277fi 30278 if test $_pkg_short_errors_supported = yes; then 30279 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1` 30280 else 30281 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1` 30282 fi 30283 # Put the nasty error message in config.log where it belongs 30284 echo "$LZMA_PKG_ERRORS" >&5 30285 30286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30287$as_echo "no" >&6; } 30288 have_lzma=no 30289elif test $pkg_failed = untried; then 30290 have_lzma=no 30291else 30292 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS 30293 LZMA_LIBS=$pkg_cv_LZMA_LIBS 30294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30295$as_echo "yes" >&6; } 30296 have_lzma=yes 30297fi 30298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 30299$as_echo "" >&6; } 30300fi 30301 30302if test "$have_lzma" = 'yes'; then 30303 30304$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h 30305 30306 if test "$build_modules" = 'no'; then 30307 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS" 30308 fi 30309fi 30310 30311 if test "$have_lzma" = 'yes'; then 30312 LZMA_DELEGATE_TRUE= 30313 LZMA_DELEGATE_FALSE='#' 30314else 30315 LZMA_DELEGATE_TRUE='#' 30316 LZMA_DELEGATE_FALSE= 30317fi 30318 30319 30320 30321 30322 30323# 30324# Check for the OpenEXR delegate library. 30325# 30326 30327# Check whether --with-openexr was given. 30328if test "${with_openexr+set}" = set; then : 30329 withval=$with_openexr; with_openexr=$withval 30330else 30331 with_openexr='yes' 30332fi 30333 30334 30335if test "$with_openexr" != 'yes'; then 30336 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr " 30337fi 30338 30339have_openexr='no' 30340OPENEXR_CFLAGS="" 30341OPENEXR_LIBS="" 30342OPENEXR_PKG="" 30343if test "x$with_openexr" = "xyes"; then 30344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 30345$as_echo "-------------------------------------------------------------" >&6; } 30346 30347pkg_failed=no 30348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5 30349$as_echo_n "checking for OPENEXR... " >&6; } 30350 30351if test -n "$OPENEXR_CFLAGS"; then 30352 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS" 30353 elif test -n "$PKG_CONFIG"; then 30354 if test -n "$PKG_CONFIG" && \ 30355 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5 30356 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5 30357 ac_status=$? 30358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30359 test $ac_status = 0; }; then 30360 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null` 30361else 30362 pkg_failed=yes 30363fi 30364 else 30365 pkg_failed=untried 30366fi 30367if test -n "$OPENEXR_LIBS"; then 30368 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS" 30369 elif test -n "$PKG_CONFIG"; then 30370 if test -n "$PKG_CONFIG" && \ 30371 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5 30372 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5 30373 ac_status=$? 30374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30375 test $ac_status = 0; }; then 30376 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null` 30377else 30378 pkg_failed=yes 30379fi 30380 else 30381 pkg_failed=untried 30382fi 30383 30384 30385 30386if test $pkg_failed = yes; then 30387 30388if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30389 _pkg_short_errors_supported=yes 30390else 30391 _pkg_short_errors_supported=no 30392fi 30393 if test $_pkg_short_errors_supported = yes; then 30394 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1` 30395 else 30396 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1` 30397 fi 30398 # Put the nasty error message in config.log where it belongs 30399 echo "$OPENEXR_PKG_ERRORS" >&5 30400 30401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30402$as_echo "no" >&6; } 30403 have_openexr=no 30404elif test $pkg_failed = untried; then 30405 have_openexr=no 30406else 30407 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS 30408 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS 30409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30410$as_echo "yes" >&6; } 30411 have_openexr=yes 30412fi 30413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 30414$as_echo "" >&6; } 30415fi 30416 30417if test "$have_openexr" = 'yes'; then 30418 30419$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h 30420 30421 if test "$build_modules" = 'no'; then 30422 CFLAGS="$OPENEXR_CFLAGS $CFLAGS" 30423 fi 30424fi 30425 30426 if test "$have_openexr" = 'yes'; then 30427 OPENEXR_DELEGATE_TRUE= 30428 OPENEXR_DELEGATE_FALSE='#' 30429else 30430 OPENEXR_DELEGATE_TRUE='#' 30431 OPENEXR_DELEGATE_FALSE= 30432fi 30433 30434 30435 30436 30437 30438# 30439# Check for PANGO delegate library. 30440# 30441 30442# Check whether --with-pango was given. 30443if test "${with_pango+set}" = set; then : 30444 withval=$with_pango; with_pango=$withval 30445else 30446 with_pango='yes' 30447fi 30448 30449 30450if test "$with_pango" != 'yes'; then 30451 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango " 30452fi 30453 30454have_pango='no' 30455have_pangocairo='no' 30456PANGO_CFLAGS="" 30457PANGO_LIBS="" 30458PANGO_PKG="" 30459if test "x$with_pango" = "xyes"; then 30460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 30461$as_echo "-------------------------------------------------------------" >&6; } 30462 30463pkg_failed=no 30464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5 30465$as_echo_n "checking for PANGO... " >&6; } 30466 30467if test -n "$PANGO_CFLAGS"; then 30468 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS" 30469 elif test -n "$PKG_CONFIG"; then 30470 if test -n "$PKG_CONFIG" && \ 30471 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5 30472 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5 30473 ac_status=$? 30474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30475 test $ac_status = 0; }; then 30476 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null` 30477else 30478 pkg_failed=yes 30479fi 30480 else 30481 pkg_failed=untried 30482fi 30483if test -n "$PANGO_LIBS"; then 30484 pkg_cv_PANGO_LIBS="$PANGO_LIBS" 30485 elif test -n "$PKG_CONFIG"; then 30486 if test -n "$PKG_CONFIG" && \ 30487 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5 30488 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5 30489 ac_status=$? 30490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30491 test $ac_status = 0; }; then 30492 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null` 30493else 30494 pkg_failed=yes 30495fi 30496 else 30497 pkg_failed=untried 30498fi 30499 30500 30501 30502if test $pkg_failed = yes; then 30503 30504if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30505 _pkg_short_errors_supported=yes 30506else 30507 _pkg_short_errors_supported=no 30508fi 30509 if test $_pkg_short_errors_supported = yes; then 30510 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1` 30511 else 30512 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1` 30513 fi 30514 # Put the nasty error message in config.log where it belongs 30515 echo "$PANGO_PKG_ERRORS" >&5 30516 30517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30518$as_echo "no" >&6; } 30519 have_pangocairo=no 30520elif test $pkg_failed = untried; then 30521 have_pangocairo=no 30522else 30523 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS 30524 PANGO_LIBS=$pkg_cv_PANGO_LIBS 30525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30526$as_echo "yes" >&6; } 30527 have_pangocairo=yes 30528fi 30529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 30530$as_echo "" >&6; } 30531 30532pkg_failed=no 30533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5 30534$as_echo_n "checking for PANGO... " >&6; } 30535 30536if test -n "$PANGO_CFLAGS"; then 30537 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS" 30538 elif test -n "$PKG_CONFIG"; then 30539 if test -n "$PKG_CONFIG" && \ 30540 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5 30541 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5 30542 ac_status=$? 30543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30544 test $ac_status = 0; }; then 30545 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null` 30546else 30547 pkg_failed=yes 30548fi 30549 else 30550 pkg_failed=untried 30551fi 30552if test -n "$PANGO_LIBS"; then 30553 pkg_cv_PANGO_LIBS="$PANGO_LIBS" 30554 elif test -n "$PKG_CONFIG"; then 30555 if test -n "$PKG_CONFIG" && \ 30556 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5 30557 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5 30558 ac_status=$? 30559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30560 test $ac_status = 0; }; then 30561 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null` 30562else 30563 pkg_failed=yes 30564fi 30565 else 30566 pkg_failed=untried 30567fi 30568 30569 30570 30571if test $pkg_failed = yes; then 30572 30573if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30574 _pkg_short_errors_supported=yes 30575else 30576 _pkg_short_errors_supported=no 30577fi 30578 if test $_pkg_short_errors_supported = yes; then 30579 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1` 30580 else 30581 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1` 30582 fi 30583 # Put the nasty error message in config.log where it belongs 30584 echo "$PANGO_PKG_ERRORS" >&5 30585 30586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30587$as_echo "no" >&6; } 30588 have_pango=no 30589elif test $pkg_failed = untried; then 30590 have_pango=no 30591else 30592 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS 30593 PANGO_LIBS=$pkg_cv_PANGO_LIBS 30594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30595$as_echo "yes" >&6; } 30596 have_pango=yes 30597fi 30598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 30599$as_echo "" >&6; } 30600fi 30601 30602if test "$have_pango" = 'yes'; then 30603 30604$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h 30605 30606 if test "$build_modules" = 'no'; then 30607 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS" 30608 fi 30609fi 30610 30611if test "$have_pangocairo" = 'yes'; then 30612 30613$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h 30614 30615 if test "$build_modules" = 'no'; then 30616 CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS" 30617 fi 30618fi 30619 30620 if test "$have_pango" = 'yes'; then 30621 PANGO_DELEGATE_TRUE= 30622 PANGO_DELEGATE_FALSE='#' 30623else 30624 PANGO_DELEGATE_TRUE='#' 30625 PANGO_DELEGATE_FALSE= 30626fi 30627 30628 if test "$have_pangocairo" = 'yes'; then 30629 PANGOCAIRO_DELEGATE_TRUE= 30630 PANGOCAIRO_DELEGATE_FALSE='#' 30631else 30632 PANGOCAIRO_DELEGATE_TRUE='#' 30633 PANGOCAIRO_DELEGATE_FALSE= 30634fi 30635 30636 30637 30638 30639 30640# 30641# Check for PNG delegate library. 30642# 30643 30644# Check whether --with-png was given. 30645if test "${with_png+set}" = set; then : 30646 withval=$with_png; with_png=$withval 30647else 30648 with_png='yes' 30649fi 30650 30651 30652if test "$with_png" != 'yes'; then 30653 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png " 30654fi 30655 30656have_png='no' 30657PNG_LIBS='' 30658 30659if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then 30660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 30661$as_echo "-------------------------------------------------------------" >&6; } 30662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5 30663$as_echo_n "checking for PNG support ... " >&6; } 30664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 30665$as_echo "" >&6; } 30666 failed=0 30667 passed=0 30668 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default" 30669if test "x$ac_cv_header_png_h" = xyes; then : 30670 passed=`expr $passed + 1` 30671else 30672 failed=`expr $failed + 1` 30673fi 30674 30675 30676 30677 if test $passed -gt 0; then 30678 for var in 7 6 5 4 2 '' ; do 30679 if test "$have_png" = 'no' ; then 30680 if test "x${var}" = 'x' ; then 30681 pnglib='png' 30682 else 30683 pnglib="png1${var}" 30684 fi 30685 30686# Test for compatible LIBPNG library 30687 failed=0 30688 passed=0 30689 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then 30690 if test "${pnglib}" != 'png' ; then 30691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5 30692$as_echo_n "checking for LIBPNG1${var} support ... " >&6; } 30693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30694/* end confdefs.h. */ 30695#include <stdio.h> 30696#include <stdlib.h> 30697#include <png.h> 30698 30699int 30700main () 30701{ 30702 30703#if PNG_LIBPNG_VER_MINOR != ${var} 30704#error LIBPNG library must be version 1${var}! 30705Kaboom, Kaboom 30706#endif 30707return 0; 30708 30709 ; 30710 return 0; 30711} 30712_ACEOF 30713if ac_fn_c_try_compile "$LINENO"; then : 30714 ac_cv_libpng_ok='yes' 30715else 30716 ac_cv_libpng_ok='no' 30717fi 30718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30719 if test "$ac_cv_libpng_ok" = 'yes' ; then 30720 passed=`expr $passed + 1` 30721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30722$as_echo "yes" >&6; } 30723 else 30724 failed=`expr $failed + 1` 30725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30726$as_echo "no" >&6; } 30727 fi 30728 else 30729 passed=`expr $passed + 1` 30730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30731$as_echo "yes" >&6; } 30732 fi 30733 fi 30734 30735 if test $passed -gt 0 -a $failed -le 0; then 30736 if test "1${var}" = '17' ; then 30737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng17" >&5 30738$as_echo_n "checking for png_get_io_ptr in -lpng17... " >&6; } 30739if ${ac_cv_lib_png17_png_get_io_ptr+:} false; then : 30740 $as_echo_n "(cached) " >&6 30741else 30742 ac_check_lib_save_LIBS=$LIBS 30743LIBS="-lpng17 $LIBS" 30744cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30745/* end confdefs.h. */ 30746 30747/* Override any GCC internal prototype to avoid an error. 30748 Use char because int might match the return type of a GCC 30749 builtin and then its argument prototype would still apply. */ 30750#ifdef __cplusplus 30751extern "C" 30752#endif 30753char png_get_io_ptr (); 30754int 30755main () 30756{ 30757return png_get_io_ptr (); 30758 ; 30759 return 0; 30760} 30761_ACEOF 30762if ac_fn_c_try_link "$LINENO"; then : 30763 ac_cv_lib_png17_png_get_io_ptr=yes 30764else 30765 ac_cv_lib_png17_png_get_io_ptr=no 30766fi 30767rm -f core conftest.err conftest.$ac_objext \ 30768 conftest$ac_exeext conftest.$ac_ext 30769LIBS=$ac_check_lib_save_LIBS 30770fi 30771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_get_io_ptr" >&5 30772$as_echo "$ac_cv_lib_png17_png_get_io_ptr" >&6; } 30773if test "x$ac_cv_lib_png17_png_get_io_ptr" = xyes; then : 30774 passed=`expr $passed + 1` 30775else 30776 failed=`expr $failed + 1` 30777fi 30778 30779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng17" >&5 30780$as_echo_n "checking for png_longjmp in -lpng17... " >&6; } 30781if ${ac_cv_lib_png17_png_longjmp+:} false; then : 30782 $as_echo_n "(cached) " >&6 30783else 30784 ac_check_lib_save_LIBS=$LIBS 30785LIBS="-lpng17 $LIBS" 30786cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30787/* end confdefs.h. */ 30788 30789/* Override any GCC internal prototype to avoid an error. 30790 Use char because int might match the return type of a GCC 30791 builtin and then its argument prototype would still apply. */ 30792#ifdef __cplusplus 30793extern "C" 30794#endif 30795char png_longjmp (); 30796int 30797main () 30798{ 30799return png_longjmp (); 30800 ; 30801 return 0; 30802} 30803_ACEOF 30804if ac_fn_c_try_link "$LINENO"; then : 30805 ac_cv_lib_png17_png_longjmp=yes 30806else 30807 ac_cv_lib_png17_png_longjmp=no 30808fi 30809rm -f core conftest.err conftest.$ac_objext \ 30810 conftest$ac_exeext conftest.$ac_ext 30811LIBS=$ac_check_lib_save_LIBS 30812fi 30813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_longjmp" >&5 30814$as_echo "$ac_cv_lib_png17_png_longjmp" >&6; } 30815if test "x$ac_cv_lib_png17_png_longjmp" = xyes; then : 30816 passed=`expr $passed + 1` 30817else 30818 failed=`expr $failed + 1` 30819fi 30820 30821 fi 30822 if test "1${var}" = '16' ; then 30823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng16" >&5 30824$as_echo_n "checking for png_get_io_ptr in -lpng16... " >&6; } 30825if ${ac_cv_lib_png16_png_get_io_ptr+:} false; then : 30826 $as_echo_n "(cached) " >&6 30827else 30828 ac_check_lib_save_LIBS=$LIBS 30829LIBS="-lpng16 $LIBS" 30830cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30831/* end confdefs.h. */ 30832 30833/* Override any GCC internal prototype to avoid an error. 30834 Use char because int might match the return type of a GCC 30835 builtin and then its argument prototype would still apply. */ 30836#ifdef __cplusplus 30837extern "C" 30838#endif 30839char png_get_io_ptr (); 30840int 30841main () 30842{ 30843return png_get_io_ptr (); 30844 ; 30845 return 0; 30846} 30847_ACEOF 30848if ac_fn_c_try_link "$LINENO"; then : 30849 ac_cv_lib_png16_png_get_io_ptr=yes 30850else 30851 ac_cv_lib_png16_png_get_io_ptr=no 30852fi 30853rm -f core conftest.err conftest.$ac_objext \ 30854 conftest$ac_exeext conftest.$ac_ext 30855LIBS=$ac_check_lib_save_LIBS 30856fi 30857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_get_io_ptr" >&5 30858$as_echo "$ac_cv_lib_png16_png_get_io_ptr" >&6; } 30859if test "x$ac_cv_lib_png16_png_get_io_ptr" = xyes; then : 30860 passed=`expr $passed + 1` 30861else 30862 failed=`expr $failed + 1` 30863fi 30864 30865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng16" >&5 30866$as_echo_n "checking for png_longjmp in -lpng16... " >&6; } 30867if ${ac_cv_lib_png16_png_longjmp+:} false; then : 30868 $as_echo_n "(cached) " >&6 30869else 30870 ac_check_lib_save_LIBS=$LIBS 30871LIBS="-lpng16 $LIBS" 30872cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30873/* end confdefs.h. */ 30874 30875/* Override any GCC internal prototype to avoid an error. 30876 Use char because int might match the return type of a GCC 30877 builtin and then its argument prototype would still apply. */ 30878#ifdef __cplusplus 30879extern "C" 30880#endif 30881char png_longjmp (); 30882int 30883main () 30884{ 30885return png_longjmp (); 30886 ; 30887 return 0; 30888} 30889_ACEOF 30890if ac_fn_c_try_link "$LINENO"; then : 30891 ac_cv_lib_png16_png_longjmp=yes 30892else 30893 ac_cv_lib_png16_png_longjmp=no 30894fi 30895rm -f core conftest.err conftest.$ac_objext \ 30896 conftest$ac_exeext conftest.$ac_ext 30897LIBS=$ac_check_lib_save_LIBS 30898fi 30899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_longjmp" >&5 30900$as_echo "$ac_cv_lib_png16_png_longjmp" >&6; } 30901if test "x$ac_cv_lib_png16_png_longjmp" = xyes; then : 30902 passed=`expr $passed + 1` 30903else 30904 failed=`expr $failed + 1` 30905fi 30906 30907 fi 30908 if test "1${var}" = '15' ; then 30909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5 30910$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; } 30911if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then : 30912 $as_echo_n "(cached) " >&6 30913else 30914 ac_check_lib_save_LIBS=$LIBS 30915LIBS="-lpng15 $LIBS" 30916cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30917/* end confdefs.h. */ 30918 30919/* Override any GCC internal prototype to avoid an error. 30920 Use char because int might match the return type of a GCC 30921 builtin and then its argument prototype would still apply. */ 30922#ifdef __cplusplus 30923extern "C" 30924#endif 30925char png_get_io_ptr (); 30926int 30927main () 30928{ 30929return png_get_io_ptr (); 30930 ; 30931 return 0; 30932} 30933_ACEOF 30934if ac_fn_c_try_link "$LINENO"; then : 30935 ac_cv_lib_png15_png_get_io_ptr=yes 30936else 30937 ac_cv_lib_png15_png_get_io_ptr=no 30938fi 30939rm -f core conftest.err conftest.$ac_objext \ 30940 conftest$ac_exeext conftest.$ac_ext 30941LIBS=$ac_check_lib_save_LIBS 30942fi 30943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5 30944$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; } 30945if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then : 30946 passed=`expr $passed + 1` 30947else 30948 failed=`expr $failed + 1` 30949fi 30950 30951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5 30952$as_echo_n "checking for png_longjmp in -lpng15... " >&6; } 30953if ${ac_cv_lib_png15_png_longjmp+:} false; then : 30954 $as_echo_n "(cached) " >&6 30955else 30956 ac_check_lib_save_LIBS=$LIBS 30957LIBS="-lpng15 $LIBS" 30958cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30959/* end confdefs.h. */ 30960 30961/* Override any GCC internal prototype to avoid an error. 30962 Use char because int might match the return type of a GCC 30963 builtin and then its argument prototype would still apply. */ 30964#ifdef __cplusplus 30965extern "C" 30966#endif 30967char png_longjmp (); 30968int 30969main () 30970{ 30971return png_longjmp (); 30972 ; 30973 return 0; 30974} 30975_ACEOF 30976if ac_fn_c_try_link "$LINENO"; then : 30977 ac_cv_lib_png15_png_longjmp=yes 30978else 30979 ac_cv_lib_png15_png_longjmp=no 30980fi 30981rm -f core conftest.err conftest.$ac_objext \ 30982 conftest$ac_exeext conftest.$ac_ext 30983LIBS=$ac_check_lib_save_LIBS 30984fi 30985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5 30986$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; } 30987if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then : 30988 passed=`expr $passed + 1` 30989else 30990 failed=`expr $failed + 1` 30991fi 30992 30993 fi 30994 if test "1${var}" = '14' ; then 30995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5 30996$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; } 30997if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then : 30998 $as_echo_n "(cached) " >&6 30999else 31000 ac_check_lib_save_LIBS=$LIBS 31001LIBS="-lpng14 $LIBS" 31002cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31003/* end confdefs.h. */ 31004 31005/* Override any GCC internal prototype to avoid an error. 31006 Use char because int might match the return type of a GCC 31007 builtin and then its argument prototype would still apply. */ 31008#ifdef __cplusplus 31009extern "C" 31010#endif 31011char png_get_io_ptr (); 31012int 31013main () 31014{ 31015return png_get_io_ptr (); 31016 ; 31017 return 0; 31018} 31019_ACEOF 31020if ac_fn_c_try_link "$LINENO"; then : 31021 ac_cv_lib_png14_png_get_io_ptr=yes 31022else 31023 ac_cv_lib_png14_png_get_io_ptr=no 31024fi 31025rm -f core conftest.err conftest.$ac_objext \ 31026 conftest$ac_exeext conftest.$ac_ext 31027LIBS=$ac_check_lib_save_LIBS 31028fi 31029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5 31030$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; } 31031if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then : 31032 passed=`expr $passed + 1` 31033else 31034 failed=`expr $failed + 1` 31035fi 31036 31037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5 31038$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; } 31039if ${ac_cv_lib_png14_png_get_io_state+:} false; then : 31040 $as_echo_n "(cached) " >&6 31041else 31042 ac_check_lib_save_LIBS=$LIBS 31043LIBS="-lpng14 $LIBS" 31044cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31045/* end confdefs.h. */ 31046 31047/* Override any GCC internal prototype to avoid an error. 31048 Use char because int might match the return type of a GCC 31049 builtin and then its argument prototype would still apply. */ 31050#ifdef __cplusplus 31051extern "C" 31052#endif 31053char png_get_io_state (); 31054int 31055main () 31056{ 31057return png_get_io_state (); 31058 ; 31059 return 0; 31060} 31061_ACEOF 31062if ac_fn_c_try_link "$LINENO"; then : 31063 ac_cv_lib_png14_png_get_io_state=yes 31064else 31065 ac_cv_lib_png14_png_get_io_state=no 31066fi 31067rm -f core conftest.err conftest.$ac_objext \ 31068 conftest$ac_exeext conftest.$ac_ext 31069LIBS=$ac_check_lib_save_LIBS 31070fi 31071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5 31072$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; } 31073if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then : 31074 passed=`expr $passed + 1` 31075else 31076 failed=`expr $failed + 1` 31077fi 31078 31079 fi 31080 if test "1${var}" = '12' ; then 31081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5 31082$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; } 31083if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then : 31084 $as_echo_n "(cached) " >&6 31085else 31086 ac_check_lib_save_LIBS=$LIBS 31087LIBS="-lpng12 $LIBS" 31088cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31089/* end confdefs.h. */ 31090 31091/* Override any GCC internal prototype to avoid an error. 31092 Use char because int might match the return type of a GCC 31093 builtin and then its argument prototype would still apply. */ 31094#ifdef __cplusplus 31095extern "C" 31096#endif 31097char png_get_io_ptr (); 31098int 31099main () 31100{ 31101return png_get_io_ptr (); 31102 ; 31103 return 0; 31104} 31105_ACEOF 31106if ac_fn_c_try_link "$LINENO"; then : 31107 ac_cv_lib_png12_png_get_io_ptr=yes 31108else 31109 ac_cv_lib_png12_png_get_io_ptr=no 31110fi 31111rm -f core conftest.err conftest.$ac_objext \ 31112 conftest$ac_exeext conftest.$ac_ext 31113LIBS=$ac_check_lib_save_LIBS 31114fi 31115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5 31116$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; } 31117if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then : 31118 passed=`expr $passed + 1` 31119else 31120 failed=`expr $failed + 1` 31121fi 31122 31123 fi 31124 if test "1${var}" = '1' ; then 31125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5 31126$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; } 31127if ${ac_cv_lib_png_png_get_io_ptr+:} false; then : 31128 $as_echo_n "(cached) " >&6 31129else 31130 ac_check_lib_save_LIBS=$LIBS 31131LIBS="-lpng $LIBS" 31132cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31133/* end confdefs.h. */ 31134 31135/* Override any GCC internal prototype to avoid an error. 31136 Use char because int might match the return type of a GCC 31137 builtin and then its argument prototype would still apply. */ 31138#ifdef __cplusplus 31139extern "C" 31140#endif 31141char png_get_io_ptr (); 31142int 31143main () 31144{ 31145return png_get_io_ptr (); 31146 ; 31147 return 0; 31148} 31149_ACEOF 31150if ac_fn_c_try_link "$LINENO"; then : 31151 ac_cv_lib_png_png_get_io_ptr=yes 31152else 31153 ac_cv_lib_png_png_get_io_ptr=no 31154fi 31155rm -f core conftest.err conftest.$ac_objext \ 31156 conftest$ac_exeext conftest.$ac_ext 31157LIBS=$ac_check_lib_save_LIBS 31158fi 31159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5 31160$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; } 31161if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then : 31162 passed=`expr $passed + 1` 31163else 31164 failed=`expr $failed + 1` 31165fi 31166 31167 fi 31168 if test $passed -gt 0 -a $failed -le 0 ; then 31169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5 31170$as_echo_n "checking if ${pnglib} package is complete... " >&6; } 31171 if test $passed -gt 0 ; then 31172 if test $failed -gt 0 ; then 31173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 31174$as_echo "no -- some components failed test" >&6; } 31175 have_png='no (failed tests)' 31176 else 31177 PNG_LIBS="-l${pnglib}" 31178 LIBS="$PNG_LIBS $LIBS" 31179 31180$as_echo "#define PNG_DELEGATE 1" >>confdefs.h 31181 31182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31183$as_echo "yes" >&6; } 31184 have_png='yes' 31185 fi 31186 fi 31187 fi 31188 fi 31189 fi 31190 done 31191 fi 31192fi 31193 31194 if test "$have_png" = 'yes'; then 31195 PNG_DELEGATE_TRUE= 31196 PNG_DELEGATE_FALSE='#' 31197else 31198 PNG_DELEGATE_TRUE='#' 31199 PNG_DELEGATE_FALSE= 31200fi 31201 31202 31203 31204 31205 31206# 31207# Check for RSVG delegate library. 31208# 31209 31210# Check whether --with-rsvg was given. 31211if test "${with_rsvg+set}" = set; then : 31212 withval=$with_rsvg; with_rsvg=$withval 31213else 31214 with_rsvg='no' 31215fi 31216 31217 31218if test "$with_rsvg" != 'yes'; then 31219 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg " 31220fi 31221 31222have_rsvg='no' 31223have_cairo='no' 31224RSVG_CFLAGS="" 31225RSVG_LIBS="" 31226RSVG_PKG="" 31227if test "x$with_rsvg" = "xyes"; then 31228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 31229$as_echo "-------------------------------------------------------------" >&6; } 31230 31231pkg_failed=no 31232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5 31233$as_echo_n "checking for RSVG... " >&6; } 31234 31235if test -n "$RSVG_CFLAGS"; then 31236 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS" 31237 elif test -n "$PKG_CONFIG"; then 31238 if test -n "$PKG_CONFIG" && \ 31239 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5 31240 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5 31241 ac_status=$? 31242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31243 test $ac_status = 0; }; then 31244 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null` 31245else 31246 pkg_failed=yes 31247fi 31248 else 31249 pkg_failed=untried 31250fi 31251if test -n "$RSVG_LIBS"; then 31252 pkg_cv_RSVG_LIBS="$RSVG_LIBS" 31253 elif test -n "$PKG_CONFIG"; then 31254 if test -n "$PKG_CONFIG" && \ 31255 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5 31256 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5 31257 ac_status=$? 31258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31259 test $ac_status = 0; }; then 31260 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null` 31261else 31262 pkg_failed=yes 31263fi 31264 else 31265 pkg_failed=untried 31266fi 31267 31268 31269 31270if test $pkg_failed = yes; then 31271 31272if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31273 _pkg_short_errors_supported=yes 31274else 31275 _pkg_short_errors_supported=no 31276fi 31277 if test $_pkg_short_errors_supported = yes; then 31278 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1` 31279 else 31280 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1` 31281 fi 31282 # Put the nasty error message in config.log where it belongs 31283 echo "$RSVG_PKG_ERRORS" >&5 31284 31285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31286$as_echo "no" >&6; } 31287 have_rsvg=no 31288elif test $pkg_failed = untried; then 31289 have_rsvg=no 31290else 31291 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS 31292 RSVG_LIBS=$pkg_cv_RSVG_LIBS 31293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31294$as_echo "yes" >&6; } 31295 have_rsvg=yes 31296fi 31297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 31298$as_echo "" >&6; } 31299 31300pkg_failed=no 31301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5 31302$as_echo_n "checking for CAIRO_SVG... " >&6; } 31303 31304if test -n "$CAIRO_SVG_CFLAGS"; then 31305 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS" 31306 elif test -n "$PKG_CONFIG"; then 31307 if test -n "$PKG_CONFIG" && \ 31308 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5 31309 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5 31310 ac_status=$? 31311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31312 test $ac_status = 0; }; then 31313 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null` 31314else 31315 pkg_failed=yes 31316fi 31317 else 31318 pkg_failed=untried 31319fi 31320if test -n "$CAIRO_SVG_LIBS"; then 31321 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS" 31322 elif test -n "$PKG_CONFIG"; then 31323 if test -n "$PKG_CONFIG" && \ 31324 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5 31325 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5 31326 ac_status=$? 31327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31328 test $ac_status = 0; }; then 31329 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null` 31330else 31331 pkg_failed=yes 31332fi 31333 else 31334 pkg_failed=untried 31335fi 31336 31337 31338 31339if test $pkg_failed = yes; then 31340 31341if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31342 _pkg_short_errors_supported=yes 31343else 31344 _pkg_short_errors_supported=no 31345fi 31346 if test $_pkg_short_errors_supported = yes; then 31347 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1` 31348 else 31349 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1` 31350 fi 31351 # Put the nasty error message in config.log where it belongs 31352 echo "$CAIRO_SVG_PKG_ERRORS" >&5 31353 31354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31355$as_echo "no" >&6; } 31356 have_cairo=no 31357elif test $pkg_failed = untried; then 31358 have_cairo=no 31359else 31360 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS 31361 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS 31362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31363$as_echo "yes" >&6; } 31364 have_cairo=yes 31365fi 31366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 31367$as_echo "" >&6; } 31368fi 31369 31370if test "$have_rsvg" = 'yes'; then 31371 31372$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h 31373 31374 if test "$build_modules" = 'no'; then 31375 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS" 31376 fi 31377fi 31378 31379if test "$have_cairo" = 'yes'; then 31380 31381$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h 31382 31383 if test "$build_modules" = 'no'; then 31384 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS" 31385 fi 31386fi 31387 31388 if test "$have_rsvg" = 'yes'; then 31389 RSVG_DELEGATE_TRUE= 31390 RSVG_DELEGATE_FALSE='#' 31391else 31392 RSVG_DELEGATE_TRUE='#' 31393 RSVG_DELEGATE_FALSE= 31394fi 31395 31396 if test "$have_cairo" = 'yes'; then 31397 CAIRO_DELEGATE_TRUE= 31398 CAIRO_DELEGATE_FALSE='#' 31399else 31400 CAIRO_DELEGATE_TRUE='#' 31401 CAIRO_DELEGATE_FALSE= 31402fi 31403 31404 31405 31406 31407 31408# 31409# Check for TIFF delegate library. 31410# 31411 31412# Check whether --with-tiff was given. 31413if test "${with_tiff+set}" = set; then : 31414 withval=$with_tiff; with_tiff=$withval 31415else 31416 with_tiff='yes' 31417fi 31418 31419 31420if test "$with_tiff" != 'yes'; then 31421 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff " 31422fi 31423 31424have_tiff='no' 31425TIFF_LIBS='' 31426if test "$with_tiff" != 'no'; then 31427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 31428$as_echo "-------------------------------------------------------------" >&6; } 31429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5 31430$as_echo_n "checking for TIFF... " >&6; } 31431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 31432$as_echo "" >&6; } 31433 failed=0 31434 passed=0 31435 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default" 31436if test "x$ac_cv_header_tiff_h" = xyes; then : 31437 passed=`expr $passed + 1` 31438else 31439 failed=`expr $failed + 1` 31440fi 31441 31442 31443 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default" 31444if test "x$ac_cv_header_tiffio_h" = xyes; then : 31445 passed=`expr $passed + 1` 31446else 31447 failed=`expr $failed + 1` 31448fi 31449 31450 31451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5 31452$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; } 31453if ${ac_cv_lib_tiff_TIFFOpen+:} false; then : 31454 $as_echo_n "(cached) " >&6 31455else 31456 ac_check_lib_save_LIBS=$LIBS 31457LIBS="-ltiff $LIBS" 31458cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31459/* end confdefs.h. */ 31460 31461/* Override any GCC internal prototype to avoid an error. 31462 Use char because int might match the return type of a GCC 31463 builtin and then its argument prototype would still apply. */ 31464#ifdef __cplusplus 31465extern "C" 31466#endif 31467char TIFFOpen (); 31468int 31469main () 31470{ 31471return TIFFOpen (); 31472 ; 31473 return 0; 31474} 31475_ACEOF 31476if ac_fn_c_try_link "$LINENO"; then : 31477 ac_cv_lib_tiff_TIFFOpen=yes 31478else 31479 ac_cv_lib_tiff_TIFFOpen=no 31480fi 31481rm -f core conftest.err conftest.$ac_objext \ 31482 conftest$ac_exeext conftest.$ac_ext 31483LIBS=$ac_check_lib_save_LIBS 31484fi 31485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5 31486$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; } 31487if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then : 31488 passed=`expr $passed + 1` 31489else 31490 failed=`expr $failed + 1` 31491fi 31492 31493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5 31494$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; } 31495if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then : 31496 $as_echo_n "(cached) " >&6 31497else 31498 ac_check_lib_save_LIBS=$LIBS 31499LIBS="-ltiff $LIBS" 31500cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31501/* end confdefs.h. */ 31502 31503/* Override any GCC internal prototype to avoid an error. 31504 Use char because int might match the return type of a GCC 31505 builtin and then its argument prototype would still apply. */ 31506#ifdef __cplusplus 31507extern "C" 31508#endif 31509char TIFFClientOpen (); 31510int 31511main () 31512{ 31513return TIFFClientOpen (); 31514 ; 31515 return 0; 31516} 31517_ACEOF 31518if ac_fn_c_try_link "$LINENO"; then : 31519 ac_cv_lib_tiff_TIFFClientOpen=yes 31520else 31521 ac_cv_lib_tiff_TIFFClientOpen=no 31522fi 31523rm -f core conftest.err conftest.$ac_objext \ 31524 conftest$ac_exeext conftest.$ac_ext 31525LIBS=$ac_check_lib_save_LIBS 31526fi 31527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5 31528$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; } 31529if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then : 31530 passed=`expr $passed + 1` 31531else 31532 failed=`expr $failed + 1` 31533fi 31534 31535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5 31536$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; } 31537if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then : 31538 $as_echo_n "(cached) " >&6 31539else 31540 ac_check_lib_save_LIBS=$LIBS 31541LIBS="-ltiff $LIBS" 31542cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31543/* end confdefs.h. */ 31544 31545/* Override any GCC internal prototype to avoid an error. 31546 Use char because int might match the return type of a GCC 31547 builtin and then its argument prototype would still apply. */ 31548#ifdef __cplusplus 31549extern "C" 31550#endif 31551char TIFFIsByteSwapped (); 31552int 31553main () 31554{ 31555return TIFFIsByteSwapped (); 31556 ; 31557 return 0; 31558} 31559_ACEOF 31560if ac_fn_c_try_link "$LINENO"; then : 31561 ac_cv_lib_tiff_TIFFIsByteSwapped=yes 31562else 31563 ac_cv_lib_tiff_TIFFIsByteSwapped=no 31564fi 31565rm -f core conftest.err conftest.$ac_objext \ 31566 conftest$ac_exeext conftest.$ac_ext 31567LIBS=$ac_check_lib_save_LIBS 31568fi 31569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5 31570$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; } 31571if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then : 31572 passed=`expr $passed + 1` 31573else 31574 failed=`expr $failed + 1` 31575fi 31576 31577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5 31578$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; } 31579if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then : 31580 $as_echo_n "(cached) " >&6 31581else 31582 ac_check_lib_save_LIBS=$LIBS 31583LIBS="-ltiff $LIBS" 31584cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31585/* end confdefs.h. */ 31586 31587/* Override any GCC internal prototype to avoid an error. 31588 Use char because int might match the return type of a GCC 31589 builtin and then its argument prototype would still apply. */ 31590#ifdef __cplusplus 31591extern "C" 31592#endif 31593char TIFFReadRGBATile (); 31594int 31595main () 31596{ 31597return TIFFReadRGBATile (); 31598 ; 31599 return 0; 31600} 31601_ACEOF 31602if ac_fn_c_try_link "$LINENO"; then : 31603 ac_cv_lib_tiff_TIFFReadRGBATile=yes 31604else 31605 ac_cv_lib_tiff_TIFFReadRGBATile=no 31606fi 31607rm -f core conftest.err conftest.$ac_objext \ 31608 conftest$ac_exeext conftest.$ac_ext 31609LIBS=$ac_check_lib_save_LIBS 31610fi 31611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5 31612$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; } 31613if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then : 31614 passed=`expr $passed + 1` 31615else 31616 failed=`expr $failed + 1` 31617fi 31618 31619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5 31620$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; } 31621if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then : 31622 $as_echo_n "(cached) " >&6 31623else 31624 ac_check_lib_save_LIBS=$LIBS 31625LIBS="-ltiff $LIBS" 31626cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31627/* end confdefs.h. */ 31628 31629/* Override any GCC internal prototype to avoid an error. 31630 Use char because int might match the return type of a GCC 31631 builtin and then its argument prototype would still apply. */ 31632#ifdef __cplusplus 31633extern "C" 31634#endif 31635char TIFFReadRGBAStrip (); 31636int 31637main () 31638{ 31639return TIFFReadRGBAStrip (); 31640 ; 31641 return 0; 31642} 31643_ACEOF 31644if ac_fn_c_try_link "$LINENO"; then : 31645 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes 31646else 31647 ac_cv_lib_tiff_TIFFReadRGBAStrip=no 31648fi 31649rm -f core conftest.err conftest.$ac_objext \ 31650 conftest$ac_exeext conftest.$ac_ext 31651LIBS=$ac_check_lib_save_LIBS 31652fi 31653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5 31654$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; } 31655if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then : 31656 passed=`expr $passed + 1` 31657else 31658 failed=`expr $failed + 1` 31659fi 31660 31661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5 31662$as_echo_n "checking if TIFF package is complete... " >&6; } 31663 if test $passed -gt 0; then 31664 if test $failed -gt 0; then 31665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 31666$as_echo "no -- some components failed test" >&6; } 31667 have_tiff='no (failed tests)' 31668 else 31669 TIFF_LIBS='-ltiff' 31670 LIBS="$TIFF_LIBS $LIBS" 31671 31672$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h 31673 31674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31675$as_echo "yes" >&6; } 31676 have_tiff='yes' 31677 for ac_header in tiffconf.h 31678do : 31679 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default" 31680if test "x$ac_cv_header_tiffconf_h" = xyes; then : 31681 cat >>confdefs.h <<_ACEOF 31682#define HAVE_TIFFCONF_H 1 31683_ACEOF 31684 31685fi 31686 31687done 31688 31689 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \ 31690 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \ 31691 TIFFSetTagExtender TIFFSetWarningHandlerExt \ 31692 TIFFSwabArrayOfTriples 31693do : 31694 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 31695ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 31696if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 31697 cat >>confdefs.h <<_ACEOF 31698#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 31699_ACEOF 31700 31701fi 31702done 31703 31704 fi 31705 else 31706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31707$as_echo "no" >&6; } 31708 fi 31709fi 31710 if test "$have_tiff" = 'yes'; then 31711 TIFF_DELEGATE_TRUE= 31712 TIFF_DELEGATE_FALSE='#' 31713else 31714 TIFF_DELEGATE_TRUE='#' 31715 TIFF_DELEGATE_FALSE= 31716fi 31717 31718 31719 31720 31721# 31722# Check for WEBP delegate library. 31723# 31724 31725# Check whether --with-webp was given. 31726if test "${with_webp+set}" = set; then : 31727 withval=$with_webp; with_webp=$withval 31728else 31729 with_webp='yes' 31730fi 31731 31732 31733if test "$with_webp" != 'yes'; then 31734 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp " 31735fi 31736 31737have_webp='no' 31738WEBP_LIBS='' 31739if test "$with_webp" != 'no'; then 31740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 31741$as_echo "-------------------------------------------------------------" >&6; } 31742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5 31743$as_echo_n "checking for WEBP... " >&6; } 31744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 31745$as_echo "" >&6; } 31746 failed=0 31747 passed=0 31748 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default" 31749if test "x$ac_cv_header_webp_decode_h" = xyes; then : 31750 passed=`expr $passed + 1` 31751else 31752 failed=`expr $failed + 1` 31753fi 31754 31755 31756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPPictureInit in -lwebp" >&5 31757$as_echo_n "checking for WebPPictureInit in -lwebp... " >&6; } 31758if ${ac_cv_lib_webp_WebPPictureInit+:} false; then : 31759 $as_echo_n "(cached) " >&6 31760else 31761 ac_check_lib_save_LIBS=$LIBS 31762LIBS="-lwebp $LIBS" 31763cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31764/* end confdefs.h. */ 31765 31766/* Override any GCC internal prototype to avoid an error. 31767 Use char because int might match the return type of a GCC 31768 builtin and then its argument prototype would still apply. */ 31769#ifdef __cplusplus 31770extern "C" 31771#endif 31772char WebPPictureInit (); 31773int 31774main () 31775{ 31776return WebPPictureInit (); 31777 ; 31778 return 0; 31779} 31780_ACEOF 31781if ac_fn_c_try_link "$LINENO"; then : 31782 ac_cv_lib_webp_WebPPictureInit=yes 31783else 31784 ac_cv_lib_webp_WebPPictureInit=no 31785fi 31786rm -f core conftest.err conftest.$ac_objext \ 31787 conftest$ac_exeext conftest.$ac_ext 31788LIBS=$ac_check_lib_save_LIBS 31789fi 31790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPPictureInit" >&5 31791$as_echo "$ac_cv_lib_webp_WebPPictureInit" >&6; } 31792if test "x$ac_cv_lib_webp_WebPPictureInit" = xyes; then : 31793 passed=`expr $passed + 1` 31794else 31795 failed=`expr $failed + 1` 31796fi 31797 31798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5 31799$as_echo_n "checking if WEBP package is complete... " >&6; } 31800 if test $passed -gt 0; then 31801 if test $failed -gt 0; then 31802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 31803$as_echo "no -- some components failed test" >&6; } 31804 have_webp='no (failed tests)' 31805 else 31806 WEBP_LIBS='-lwebp' 31807 LIBS="$WEBP_LIBS $LIBS" 31808 31809$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h 31810 31811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31812$as_echo "yes" >&6; } 31813 have_webp='yes' 31814 fi 31815 else 31816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31817$as_echo "no" >&6; } 31818 fi 31819fi 31820 if test "$have_webp" = 'yes'; then 31821 WEBP_DELEGATE_TRUE= 31822 WEBP_DELEGATE_FALSE='#' 31823else 31824 WEBP_DELEGATE_TRUE='#' 31825 WEBP_DELEGATE_FALSE= 31826fi 31827 31828 31829 31830 31831# 31832# Set Windows font directory. 31833# 31834 31835# Check whether --with-windows-font-dir was given. 31836if test "${with_windows_font_dir+set}" = set; then : 31837 withval=$with_windows_font_dir; with_windows_font_dir=$withval 31838else 31839 with_windows_font_dir='' 31840fi 31841 31842if test "$with_windows_font_dir" != '' ; then 31843 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir " 31844fi 31845 31846 31847# 31848# Check for WMF delegate library. 31849# 31850 31851# Check whether --with-wmf was given. 31852if test "${with_wmf+set}" = set; then : 31853 withval=$with_wmf; with_wmf=$withval 31854else 31855 with_wmf='no' 31856fi 31857 31858 31859if test "$with_wmf" != 'yes'; then 31860 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf " 31861fi 31862 31863have_wmf='no' 31864WMF_LIBS='' 31865WMF_LIBS_DEPS='' 31866OLIBS="$LIBS" 31867if test "$with_wmf" != 'no'; then 31868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 31869$as_echo "-------------------------------------------------------------" >&6; } 31870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5 31871$as_echo_n "checking for WMF... " >&6; } 31872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 31873$as_echo "" >&6; } 31874 have_libwmf='no' 31875 have_libwmflite='no' 31876 have_libwmf_ipa_h='no' 31877 31878 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H 31879" 31880if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then : 31881 have_libwmf_ipa_h='yes' 31882fi 31883 31884 31885 if test "$have_libwmf_ipa_h" = 'yes'; then 31886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5 31887$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; } 31888if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then : 31889 $as_echo_n "(cached) " >&6 31890else 31891 ac_check_lib_save_LIBS=$LIBS 31892LIBS="-lwmflite $LIBS" 31893cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31894/* end confdefs.h. */ 31895 31896/* Override any GCC internal prototype to avoid an error. 31897 Use char because int might match the return type of a GCC 31898 builtin and then its argument prototype would still apply. */ 31899#ifdef __cplusplus 31900extern "C" 31901#endif 31902char wmf_lite_create (); 31903int 31904main () 31905{ 31906return wmf_lite_create (); 31907 ; 31908 return 0; 31909} 31910_ACEOF 31911if ac_fn_c_try_link "$LINENO"; then : 31912 ac_cv_lib_wmflite_wmf_lite_create=yes 31913else 31914 ac_cv_lib_wmflite_wmf_lite_create=no 31915fi 31916rm -f core conftest.err conftest.$ac_objext \ 31917 conftest$ac_exeext conftest.$ac_ext 31918LIBS=$ac_check_lib_save_LIBS 31919fi 31920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5 31921$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; } 31922if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then : 31923 have_libwmflite='yes' 31924fi 31925 31926 if test "$have_libwmflite" = 'yes'; then 31927 31928$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h 31929 31930 WMF_LIBS='-lwmflite' 31931 LIBS="$WMF_LIBS $LIBS" 31932 have_wmf='yes' 31933 else 31934 WMF_LIBS_DEPS='' 31935 WMF_CONFIG_LIBS=`libwmf-config --libs` 31936 for lib in xml2 expat freetype jpeg png z; do 31937 testlib="-l${lib}" 31938 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib" 31939 done 31940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5 31941$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; } 31942if ${ac_cv_lib_wmf_wmf_api_create+:} false; then : 31943 $as_echo_n "(cached) " >&6 31944else 31945 ac_check_lib_save_LIBS=$LIBS 31946LIBS="-lwmf $WMF_LIBS_DEPS $LIBS" 31947cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31948/* end confdefs.h. */ 31949 31950/* Override any GCC internal prototype to avoid an error. 31951 Use char because int might match the return type of a GCC 31952 builtin and then its argument prototype would still apply. */ 31953#ifdef __cplusplus 31954extern "C" 31955#endif 31956char wmf_api_create (); 31957int 31958main () 31959{ 31960return wmf_api_create (); 31961 ; 31962 return 0; 31963} 31964_ACEOF 31965if ac_fn_c_try_link "$LINENO"; then : 31966 ac_cv_lib_wmf_wmf_api_create=yes 31967else 31968 ac_cv_lib_wmf_wmf_api_create=no 31969fi 31970rm -f core conftest.err conftest.$ac_objext \ 31971 conftest$ac_exeext conftest.$ac_ext 31972LIBS=$ac_check_lib_save_LIBS 31973fi 31974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5 31975$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; } 31976if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then : 31977 have_libwmf='yes' 31978fi 31979 31980 if test "$have_libwmf" = 'yes'; then 31981 31982$as_echo "#define WMF_DELEGATE 1" >>confdefs.h 31983 31984 WMF_LIBS='-lwmf' 31985 LIBS="$WMF_LIBS $LIBS" 31986 have_wmf='yes' 31987 else 31988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 31989$as_echo "no -- some components failed test" >&6; } 31990 have_wmf='no (failed tests)' 31991 have_wmflite='no (failed tests)' 31992 LIBS="$OLIBS" 31993 WMF_LIBS='' 31994 fi 31995 fi 31996 fi 31997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5 31998$as_echo_n "checking if WMF package is complete... " >&6; } 31999 if test "$have_wmf" = 'yes'; then 32000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32001$as_echo "yes" >&6; } 32002 else 32003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32004$as_echo "no" >&6; } 32005 fi 32006fi 32007 if test "$have_wmf" = 'yes'; then 32008 WMF_DELEGATE_TRUE= 32009 WMF_DELEGATE_FALSE='#' 32010else 32011 WMF_DELEGATE_TRUE='#' 32012 WMF_DELEGATE_FALSE= 32013fi 32014 32015 32016 32017 32018 32019 32020# 32021# Check for XML delegate library. 32022# 32023 32024# Check whether --with-xml was given. 32025if test "${with_xml+set}" = set; then : 32026 withval=$with_xml; with_xml=$withval 32027else 32028 with_xml='yes' 32029fi 32030 32031 32032if test "$with_xml" != 'yes' ; then 32033 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml " 32034fi 32035 32036have_xml='no' 32037XML_LIBS='' 32038if test "$with_xml" != 'no'; then 32039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 32040$as_echo "-------------------------------------------------------------" >&6; } 32041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5 32042$as_echo_n "checking for XML... " >&6; } 32043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 32044$as_echo "" >&6; } 32045 PERSIST_LDFLAGS=$LDFLAGS 32046 PERSIST_CPPFLAGS=$CPPFLAGS 32047 xml2_config='' 32048 # Extract the first word of "xml2-config", so it can be a program name with args. 32049set dummy xml2-config; ac_word=$2 32050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32051$as_echo_n "checking for $ac_word... " >&6; } 32052if ${ac_cv_path_xml2_config+:} false; then : 32053 $as_echo_n "(cached) " >&6 32054else 32055 case $xml2_config in 32056 [\\/]* | ?:[\\/]*) 32057 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path. 32058 ;; 32059 *) 32060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32061for as_dir in $PATH 32062do 32063 IFS=$as_save_IFS 32064 test -z "$as_dir" && as_dir=. 32065 for ac_exec_ext in '' $ac_executable_extensions; do 32066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32067 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext" 32068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32069 break 2 32070 fi 32071done 32072 done 32073IFS=$as_save_IFS 32074 32075 ;; 32076esac 32077fi 32078xml2_config=$ac_cv_path_xml2_config 32079if test -n "$xml2_config"; then 32080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5 32081$as_echo "$xml2_config" >&6; } 32082else 32083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32084$as_echo "no" >&6; } 32085fi 32086 32087 if test -n "$xml2_config"; then 32088 # Debian installs libxml headers under /usr/include/libxml2/libxml with 32089 # the shared library installed under /usr/lib, whereas the package 32090 # installs itself under $prefix/libxml and $prefix/lib. 32091 xml2_prefix=`xml2-config --prefix` 32092 if test -d "${xml2_prefix}/include/libxml2"; then 32093 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2" 32094 fi 32095 if test "${xml2_prefix}" != '/usr'; then 32096 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib" 32097 fi 32098 fi 32099 failed=0 32100 passed=0 32101 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default" 32102if test "x$ac_cv_header_libxml_parser_h" = xyes; then : 32103 passed=`expr $passed + 1` 32104else 32105 failed=`expr $failed + 1` 32106fi 32107 32108 32109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5 32110$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; } 32111if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then : 32112 $as_echo_n "(cached) " >&6 32113else 32114 ac_check_lib_save_LIBS=$LIBS 32115LIBS="-lxml2 $LIBS" 32116cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32117/* end confdefs.h. */ 32118 32119/* Override any GCC internal prototype to avoid an error. 32120 Use char because int might match the return type of a GCC 32121 builtin and then its argument prototype would still apply. */ 32122#ifdef __cplusplus 32123extern "C" 32124#endif 32125char xmlSAXVersion (); 32126int 32127main () 32128{ 32129return xmlSAXVersion (); 32130 ; 32131 return 0; 32132} 32133_ACEOF 32134if ac_fn_c_try_link "$LINENO"; then : 32135 ac_cv_lib_xml2_xmlSAXVersion=yes 32136else 32137 ac_cv_lib_xml2_xmlSAXVersion=no 32138fi 32139rm -f core conftest.err conftest.$ac_objext \ 32140 conftest$ac_exeext conftest.$ac_ext 32141LIBS=$ac_check_lib_save_LIBS 32142fi 32143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5 32144$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; } 32145if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then : 32146 passed=`expr $passed + 1` 32147else 32148 failed=`expr $failed + 1` 32149fi 32150 32151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5 32152$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; } 32153if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then : 32154 $as_echo_n "(cached) " >&6 32155else 32156 ac_check_lib_save_LIBS=$LIBS 32157LIBS="-lxml2 $LIBS" 32158cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32159/* end confdefs.h. */ 32160 32161/* Override any GCC internal prototype to avoid an error. 32162 Use char because int might match the return type of a GCC 32163 builtin and then its argument prototype would still apply. */ 32164#ifdef __cplusplus 32165extern "C" 32166#endif 32167char xmlParseChunk (); 32168int 32169main () 32170{ 32171return xmlParseChunk (); 32172 ; 32173 return 0; 32174} 32175_ACEOF 32176if ac_fn_c_try_link "$LINENO"; then : 32177 ac_cv_lib_xml2_xmlParseChunk=yes 32178else 32179 ac_cv_lib_xml2_xmlParseChunk=no 32180fi 32181rm -f core conftest.err conftest.$ac_objext \ 32182 conftest$ac_exeext conftest.$ac_ext 32183LIBS=$ac_check_lib_save_LIBS 32184fi 32185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5 32186$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; } 32187if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then : 32188 passed=`expr $passed + 1` 32189else 32190 failed=`expr $failed + 1` 32191fi 32192 32193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5 32194$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; } 32195if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then : 32196 $as_echo_n "(cached) " >&6 32197else 32198 ac_check_lib_save_LIBS=$LIBS 32199LIBS="-lxml2 $LIBS" 32200cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32201/* end confdefs.h. */ 32202 32203/* Override any GCC internal prototype to avoid an error. 32204 Use char because int might match the return type of a GCC 32205 builtin and then its argument prototype would still apply. */ 32206#ifdef __cplusplus 32207extern "C" 32208#endif 32209char xmlCreatePushParserCtxt (); 32210int 32211main () 32212{ 32213return xmlCreatePushParserCtxt (); 32214 ; 32215 return 0; 32216} 32217_ACEOF 32218if ac_fn_c_try_link "$LINENO"; then : 32219 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes 32220else 32221 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no 32222fi 32223rm -f core conftest.err conftest.$ac_objext \ 32224 conftest$ac_exeext conftest.$ac_ext 32225LIBS=$ac_check_lib_save_LIBS 32226fi 32227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5 32228$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; } 32229if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then : 32230 passed=`expr $passed + 1` 32231else 32232 failed=`expr $failed + 1` 32233fi 32234 32235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5 32236$as_echo_n "checking if XML package is complete... " >&6; } 32237 if test $passed -gt 0; then 32238 if test $failed -gt 0; then 32239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 32240$as_echo "no -- some components failed test" >&6; } 32241 have_xml='no (failed tests)' 32242 LDFLAGS="$PERSIST_LDFLAGS" 32243 CPPFLAGS="$PERSIST_CPPFLAGS" 32244 else 32245 XML_LIBS='-lxml2' 32246 LIBS="$XML_LIBS $LIBS" 32247 32248$as_echo "#define XML_DELEGATE 1" >>confdefs.h 32249 32250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32251$as_echo "yes" >&6; } 32252 have_xml='yes' 32253 fi 32254 else 32255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32256$as_echo "no" >&6; } 32257 fi 32258fi 32259 if test "$have_xml" = 'yes'; then 32260 XML_DELEGATE_TRUE= 32261 XML_DELEGATE_FALSE='#' 32262else 32263 XML_DELEGATE_TRUE='#' 32264 XML_DELEGATE_FALSE= 32265fi 32266 32267 32268 32269 32270# Substitute compiler name to build/link PerlMagick 32271# 32272 32273 32274# 32275# Configure install Paths 32276# 32277 32278# Path to ImageMagick header files 32279INCLUDE_RELATIVE_PATH="ImageMagick-${MAGICK_MAJOR_VERSION}.${MAGICK_MINOR_VERSION}" 32280INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}" 32281DEFINE_INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}/" 32282case "${build_os}" in 32283 mingw* ) 32284 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1` 32285 ;; 32286esac 32287 32288cat >>confdefs.h <<_ACEOF 32289#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH" 32290_ACEOF 32291 32292 32293 32294# Path to ImageMagick header files (arch part) 32295INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}" 32296DEFINE_INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/" 32297case "${build_os}" in 32298 mingw* ) 32299 DEFINE_INCLUDEARCH_PATH=`$WinPathScript "$DEFINE_INCLUDEARCH_PATH" 1` 32300 ;; 32301esac 32302 32303cat >>confdefs.h <<_ACEOF 32304#define INCLUDEARCH_PATH "$DEFINE_INCLUDE_PATH" 32305_ACEOF 32306 32307 32308 32309# Subdirectory under lib to place ImageMagick lib files 32310LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}" 32311 32312cat >>confdefs.h <<_ACEOF 32313#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH" 32314_ACEOF 32315 32316 32317# Path to ImageMagick bin directory 32318EXECUTABLE_PATH="${BIN_DIR}" 32319DEFINE_EXECUTABLE_PATH="${BIN_DIR}/" 32320case "${build_os}" in 32321 mingw* ) 32322 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1` 32323 ;; 32324esac 32325 32326cat >>confdefs.h <<_ACEOF 32327#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH" 32328_ACEOF 32329 32330 32331 32332# Path to ImageMagick lib 32333LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}" 32334DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/" 32335case "${build_os}" in 32336 mingw* ) 32337 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1` 32338 ;; 32339esac 32340 32341cat >>confdefs.h <<_ACEOF 32342#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH" 32343_ACEOF 32344 32345 32346 32347# 32348# path to modules lib 32349if test "x$MODULES_BASEDIRNAME" = "x"; then 32350 MODULES_BASEDIRNAME="modules" 32351fi 32352 32353cat >>confdefs.h <<_ACEOF 32354#define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME" 32355_ACEOF 32356 32357 32358 32359if test "x$MODULES_DIRNAME" = "x"; then 32360 MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX} 32361else 32362 32363cat >>confdefs.h <<_ACEOF 32364#define MODULES_DIRNAME "$MODULES_DIRNAME" 32365_ACEOF 32366 32367fi 32368 32369 32370MODULES_RELATIVE_PATH="${MODULES_DIRNAME}" 32371 32372MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}" 32373 32374 32375# 32376# path to coders lib 32377if test "x$CODER_DIRNAME" = "x"; then 32378 CODER_DIRNAME="coders" 32379fi 32380 32381cat >>confdefs.h <<_ACEOF 32382#define CODER_DIRNAME "$CODER_DIRNAME" 32383_ACEOF 32384 32385 32386 32387CODER_RELATIVE_PATH="${CODER_DIRNAME}" 32388CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}" 32389 32390 32391# 32392# Subdirectory under lib to place ImageMagick filter module files 32393# 32394# path to coders lib 32395if test "x$FILTER_DIRNAME" = "x"; then 32396 FILTER_DIRNAME="filters" 32397fi 32398 32399cat >>confdefs.h <<_ACEOF 32400#define FILTER_DIRNAME "$FILTER_DIRNAME" 32401_ACEOF 32402 32403 32404 32405FILTER_RELATIVE_PATH="${FILTER_DIRNAME}" 32406FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}" 32407 32408 32409# 32410# Path to ImageMagick documentation files 32411DOCUMENTATION_RELATIVE_PATH="ImageMagick-${MAGICK_MAJOR_VERSION}.${MAGICK_MINOR_VERSION}" 32412DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}" 32413DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/" 32414case "${build_os}" in 32415 mingw* ) 32416 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1` 32417 ;; 32418esac 32419 32420cat >>confdefs.h <<_ACEOF 32421#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH" 32422_ACEOF 32423 32424 32425 32426# Subdirectory to place architecture-dependent configuration files 32427CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}.${MAGICK_MINOR_VERSION}" 32428 32429cat >>confdefs.h <<_ACEOF 32430#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH" 32431_ACEOF 32432 32433CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/" 32434DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/" 32435case "${build_os}" in 32436 mingw* ) 32437 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1` 32438 ;; 32439esac 32440 32441cat >>confdefs.h <<_ACEOF 32442#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH" 32443_ACEOF 32444 32445 32446 32447# Subdirectory to place architecture-independent configuration files 32448SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}.${MAGICK_MINOR_VERSION}" 32449 32450cat >>confdefs.h <<_ACEOF 32451#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH" 32452_ACEOF 32453 32454SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}" 32455DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/" 32456case "${build_os}" in 32457 mingw* ) 32458 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1` 32459 ;; 32460esac 32461 32462cat >>confdefs.h <<_ACEOF 32463#define SHARE_PATH "$DEFINE_SHARE_PATH" 32464_ACEOF 32465 32466 32467 32468# 32469# Subdirectory to place architecture-dependent configuration files. 32470if test "x$SHAREARCH_BASEDIRNAME" = "x"; then 32471 SHAREARCH_BASEDIRNAME="config" 32472fi 32473 32474cat >>confdefs.h <<_ACEOF 32475#define SHAREARCH_BASEDIRNAME "$SHAREARCH_BASEDIRNAME" 32476_ACEOF 32477 32478 32479 32480if test "x$SHAREARCH_DIRNAME" = "x"; then 32481 SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX} 32482else 32483 32484cat >>confdefs.h <<_ACEOF 32485#define SHAREARCH_DIRNAME "$SHAREARCH_DIRNAME" 32486_ACEOF 32487 32488fi 32489 32490 32491SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}" 32492 32493SHAREARCH_PATH="${LIBRARY_PATH}/${SHAREARCH_RELATIVE_PATH}" 32494 32495 32496# 32497# program_transform_name is formed for use in a Makefile, so create a 32498# modified version for use in a shell script. 32499configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'` 32500 32501# Default delegate definitions 32502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 32503$as_echo "-------------------------------------------------------------" >&6; } 32504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5 32505$as_echo_n "checking for ImageMagick delegate programs... " >&6; } 32506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 32507$as_echo "" >&6; } 32508AutotraceDecodeDelegateDefault='autotrace' 32509BlenderDecodeDelegateDefault='blender' 32510BZIPDelegateDefault='bzip2' 32511BrowseDelegateDefault='xdg-open' 32512CGMDecodeDelegateDefault='ralcgm' 32513CatDelegateDefault='cat' 32514DNGDecodeDelegateDefault='ufraw-batch' 32515GVCDecodeDelegateDefault='dot' 32516DVIDecodeDelegateDefault='dvips' 32517EchoDelegateDefault='echo' 32518EditorDelegateDefault='xterm' 32519FIGDecodeDelegateDefault='fig2dev' 32520ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}` 32521DisplayDelegateDefault=`echo display | sed ${configure_transform_name}` 32522MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}` 32523GnuplotDecodeDelegateDefault='gnuplot' 32524HPGLDecodeDelegateDefault='hp2xx' 32525HTMLDecodeDelegateDefault='html2ps' 32526ILBMDecodeDelegateDefault='ilbmtoppm' 32527ILBMEncodeDelegateDefault='ppmtoilbm' 32528LPDelegateDefault='lp' 32529LPRDelegateDefault='lpr' 32530LaunchDelegateDefault='gimp' 32531MANDelegateDefault='groff' 32532MPEGDecodeDelegateDefault='ffmpeg' 32533MPEGEncodeDelegateDefault='ffmpeg' 32534MrSIDDecodeDelegateDefault='mrsidgeodecode' 32535MVDelegateDefault='mv' 32536PCLDelegateDefault='pcl6' 32537PGPDecodeDelegateDefault='pgpv' 32538POVDelegateDefault='povray' 32539if test "$native_win32_build" = 'yes'; then 32540 PSDelegateDefault='gswin32c' 32541elif test "$gslib_framework" = 'yes'; then 32542 PSDelegateDefault='gsc' 32543else 32544 PSDelegateDefault='gs' 32545fi 32546RLEEncodeDelegateDefault='rawtorle' 32547RMDelegateDefault='rm' 32548RSVGDecodeDelegateDefault='rsvg-convert' 32549SCANDecodeDelegateDefault='scanimage' 32550SVGDecodeDelegateDefault='inkscape' 32551TXTDelegateDefault='enscript' 32552UniconvertorDelegateDefault='uniconvertor' 32553WMFDecodeDelegateDefault='wmf2eps' 32554WWWDecodeDelegateDefault='curl' 32555XPSDelegateDefault='gxps' 32556ZipDelegateDefault='gzip' 32557 32558# Search for delegates 32559# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args. 32560set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2 32561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32562$as_echo_n "checking for $ac_word... " >&6; } 32563if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then : 32564 $as_echo_n "(cached) " >&6 32565else 32566 case $AutotraceDecodeDelegate in 32567 [\\/]* | ?:[\\/]*) 32568 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path. 32569 ;; 32570 *) 32571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32572for as_dir in $PATH 32573do 32574 IFS=$as_save_IFS 32575 test -z "$as_dir" && as_dir=. 32576 for ac_exec_ext in '' $ac_executable_extensions; do 32577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32578 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 32579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32580 break 2 32581 fi 32582done 32583 done 32584IFS=$as_save_IFS 32585 32586 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault"" 32587 ;; 32588esac 32589fi 32590AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate 32591if test -n "$AutotraceDecodeDelegate"; then 32592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5 32593$as_echo "$AutotraceDecodeDelegate" >&6; } 32594else 32595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32596$as_echo "no" >&6; } 32597fi 32598 32599 32600# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args. 32601set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2 32602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32603$as_echo_n "checking for $ac_word... " >&6; } 32604if ${ac_cv_path_BlenderDecodeDelegate+:} false; then : 32605 $as_echo_n "(cached) " >&6 32606else 32607 case $BlenderDecodeDelegate in 32608 [\\/]* | ?:[\\/]*) 32609 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path. 32610 ;; 32611 *) 32612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32613for as_dir in $PATH 32614do 32615 IFS=$as_save_IFS 32616 test -z "$as_dir" && as_dir=. 32617 for ac_exec_ext in '' $ac_executable_extensions; do 32618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32619 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 32620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32621 break 2 32622 fi 32623done 32624 done 32625IFS=$as_save_IFS 32626 32627 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault"" 32628 ;; 32629esac 32630fi 32631BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate 32632if test -n "$BlenderDecodeDelegate"; then 32633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5 32634$as_echo "$BlenderDecodeDelegate" >&6; } 32635else 32636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32637$as_echo "no" >&6; } 32638fi 32639 32640 32641# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args. 32642set dummy "$BZIPDelegateDefault"; ac_word=$2 32643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32644$as_echo_n "checking for $ac_word... " >&6; } 32645if ${ac_cv_path_BZIPDelegate+:} false; then : 32646 $as_echo_n "(cached) " >&6 32647else 32648 case $BZIPDelegate in 32649 [\\/]* | ?:[\\/]*) 32650 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path. 32651 ;; 32652 *) 32653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32654for as_dir in $PATH 32655do 32656 IFS=$as_save_IFS 32657 test -z "$as_dir" && as_dir=. 32658 for ac_exec_ext in '' $ac_executable_extensions; do 32659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32660 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext" 32661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32662 break 2 32663 fi 32664done 32665 done 32666IFS=$as_save_IFS 32667 32668 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault"" 32669 ;; 32670esac 32671fi 32672BZIPDelegate=$ac_cv_path_BZIPDelegate 32673if test -n "$BZIPDelegate"; then 32674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5 32675$as_echo "$BZIPDelegate" >&6; } 32676else 32677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32678$as_echo "no" >&6; } 32679fi 32680 32681 32682for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx 32683do 32684 # Extract the first word of "$ac_prog", so it can be a program name with args. 32685set dummy $ac_prog; ac_word=$2 32686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32687$as_echo_n "checking for $ac_word... " >&6; } 32688if ${ac_cv_path_BrowseDelegate+:} false; then : 32689 $as_echo_n "(cached) " >&6 32690else 32691 case $BrowseDelegate in 32692 [\\/]* | ?:[\\/]*) 32693 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path. 32694 ;; 32695 *) 32696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32697for as_dir in $PATH 32698do 32699 IFS=$as_save_IFS 32700 test -z "$as_dir" && as_dir=. 32701 for ac_exec_ext in '' $ac_executable_extensions; do 32702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32703 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext" 32704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32705 break 2 32706 fi 32707done 32708 done 32709IFS=$as_save_IFS 32710 32711 ;; 32712esac 32713fi 32714BrowseDelegate=$ac_cv_path_BrowseDelegate 32715if test -n "$BrowseDelegate"; then 32716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5 32717$as_echo "$BrowseDelegate" >&6; } 32718else 32719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32720$as_echo "no" >&6; } 32721fi 32722 32723 32724 test -n "$BrowseDelegate" && break 32725done 32726test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault"" 32727 32728# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args. 32729set dummy "$CGMDecodeDelegateDefault"; ac_word=$2 32730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32731$as_echo_n "checking for $ac_word... " >&6; } 32732if ${ac_cv_path_CGMDecodeDelegate+:} false; then : 32733 $as_echo_n "(cached) " >&6 32734else 32735 case $CGMDecodeDelegate in 32736 [\\/]* | ?:[\\/]*) 32737 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path. 32738 ;; 32739 *) 32740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32741for as_dir in $PATH 32742do 32743 IFS=$as_save_IFS 32744 test -z "$as_dir" && as_dir=. 32745 for ac_exec_ext in '' $ac_executable_extensions; do 32746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32747 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 32748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32749 break 2 32750 fi 32751done 32752 done 32753IFS=$as_save_IFS 32754 32755 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault"" 32756 ;; 32757esac 32758fi 32759CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate 32760if test -n "$CGMDecodeDelegate"; then 32761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5 32762$as_echo "$CGMDecodeDelegate" >&6; } 32763else 32764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32765$as_echo "no" >&6; } 32766fi 32767 32768 32769# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args. 32770set dummy "$CatDelegateDefault"; ac_word=$2 32771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32772$as_echo_n "checking for $ac_word... " >&6; } 32773if ${ac_cv_path_CatDelegate+:} false; then : 32774 $as_echo_n "(cached) " >&6 32775else 32776 case $CatDelegate in 32777 [\\/]* | ?:[\\/]*) 32778 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path. 32779 ;; 32780 *) 32781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32782for as_dir in $PATH 32783do 32784 IFS=$as_save_IFS 32785 test -z "$as_dir" && as_dir=. 32786 for ac_exec_ext in '' $ac_executable_extensions; do 32787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32788 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext" 32789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32790 break 2 32791 fi 32792done 32793 done 32794IFS=$as_save_IFS 32795 32796 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault"" 32797 ;; 32798esac 32799fi 32800CatDelegate=$ac_cv_path_CatDelegate 32801if test -n "$CatDelegate"; then 32802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5 32803$as_echo "$CatDelegate" >&6; } 32804else 32805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32806$as_echo "no" >&6; } 32807fi 32808 32809 32810# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args. 32811set dummy "$DNGDecodeDelegateDefault"; ac_word=$2 32812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32813$as_echo_n "checking for $ac_word... " >&6; } 32814if ${ac_cv_path_DNGDecodeDelegate+:} false; then : 32815 $as_echo_n "(cached) " >&6 32816else 32817 case $DNGDecodeDelegate in 32818 [\\/]* | ?:[\\/]*) 32819 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path. 32820 ;; 32821 *) 32822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32823for as_dir in $PATH 32824do 32825 IFS=$as_save_IFS 32826 test -z "$as_dir" && as_dir=. 32827 for ac_exec_ext in '' $ac_executable_extensions; do 32828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32829 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 32830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32831 break 2 32832 fi 32833done 32834 done 32835IFS=$as_save_IFS 32836 32837 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault"" 32838 ;; 32839esac 32840fi 32841DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate 32842if test -n "$DNGDecodeDelegate"; then 32843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5 32844$as_echo "$DNGDecodeDelegate" >&6; } 32845else 32846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32847$as_echo "no" >&6; } 32848fi 32849 32850 32851# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args. 32852set dummy "$GVCDecodeDelegateDefault"; ac_word=$2 32853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32854$as_echo_n "checking for $ac_word... " >&6; } 32855if ${ac_cv_path_GVCDecodeDelegate+:} false; then : 32856 $as_echo_n "(cached) " >&6 32857else 32858 case $GVCDecodeDelegate in 32859 [\\/]* | ?:[\\/]*) 32860 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path. 32861 ;; 32862 *) 32863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32864for as_dir in $PATH 32865do 32866 IFS=$as_save_IFS 32867 test -z "$as_dir" && as_dir=. 32868 for ac_exec_ext in '' $ac_executable_extensions; do 32869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32870 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 32871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32872 break 2 32873 fi 32874done 32875 done 32876IFS=$as_save_IFS 32877 32878 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault"" 32879 ;; 32880esac 32881fi 32882GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate 32883if test -n "$GVCDecodeDelegate"; then 32884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5 32885$as_echo "$GVCDecodeDelegate" >&6; } 32886else 32887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32888$as_echo "no" >&6; } 32889fi 32890 32891 32892# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args. 32893set dummy "$DVIDecodeDelegateDefault"; ac_word=$2 32894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32895$as_echo_n "checking for $ac_word... " >&6; } 32896if ${ac_cv_path_DVIDecodeDelegate+:} false; then : 32897 $as_echo_n "(cached) " >&6 32898else 32899 case $DVIDecodeDelegate in 32900 [\\/]* | ?:[\\/]*) 32901 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path. 32902 ;; 32903 *) 32904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32905for as_dir in $PATH 32906do 32907 IFS=$as_save_IFS 32908 test -z "$as_dir" && as_dir=. 32909 for ac_exec_ext in '' $ac_executable_extensions; do 32910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32911 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 32912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32913 break 2 32914 fi 32915done 32916 done 32917IFS=$as_save_IFS 32918 32919 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault"" 32920 ;; 32921esac 32922fi 32923DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate 32924if test -n "$DVIDecodeDelegate"; then 32925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5 32926$as_echo "$DVIDecodeDelegate" >&6; } 32927else 32928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32929$as_echo "no" >&6; } 32930fi 32931 32932 32933# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args. 32934set dummy "$EchoDelegateDefault"; ac_word=$2 32935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32936$as_echo_n "checking for $ac_word... " >&6; } 32937if ${ac_cv_path_EchoDelegate+:} false; then : 32938 $as_echo_n "(cached) " >&6 32939else 32940 case $EchoDelegate in 32941 [\\/]* | ?:[\\/]*) 32942 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path. 32943 ;; 32944 *) 32945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32946for as_dir in $PATH 32947do 32948 IFS=$as_save_IFS 32949 test -z "$as_dir" && as_dir=. 32950 for ac_exec_ext in '' $ac_executable_extensions; do 32951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32952 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext" 32953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32954 break 2 32955 fi 32956done 32957 done 32958IFS=$as_save_IFS 32959 32960 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault"" 32961 ;; 32962esac 32963fi 32964EchoDelegate=$ac_cv_path_EchoDelegate 32965if test -n "$EchoDelegate"; then 32966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5 32967$as_echo "$EchoDelegate" >&6; } 32968else 32969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32970$as_echo "no" >&6; } 32971fi 32972 32973 32974# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args. 32975set dummy "$EditorDelegateDefault"; ac_word=$2 32976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32977$as_echo_n "checking for $ac_word... " >&6; } 32978if ${ac_cv_path_EditorDelegate+:} false; then : 32979 $as_echo_n "(cached) " >&6 32980else 32981 case $EditorDelegate in 32982 [\\/]* | ?:[\\/]*) 32983 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path. 32984 ;; 32985 *) 32986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32987for as_dir in $PATH 32988do 32989 IFS=$as_save_IFS 32990 test -z "$as_dir" && as_dir=. 32991 for ac_exec_ext in '' $ac_executable_extensions; do 32992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32993 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext" 32994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32995 break 2 32996 fi 32997done 32998 done 32999IFS=$as_save_IFS 33000 33001 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault"" 33002 ;; 33003esac 33004fi 33005EditorDelegate=$ac_cv_path_EditorDelegate 33006if test -n "$EditorDelegate"; then 33007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5 33008$as_echo "$EditorDelegate" >&6; } 33009else 33010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33011$as_echo "no" >&6; } 33012fi 33013 33014 33015# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args. 33016set dummy "$FIGDecodeDelegateDefault"; ac_word=$2 33017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33018$as_echo_n "checking for $ac_word... " >&6; } 33019if ${ac_cv_path_FIGDecodeDelegate+:} false; then : 33020 $as_echo_n "(cached) " >&6 33021else 33022 case $FIGDecodeDelegate in 33023 [\\/]* | ?:[\\/]*) 33024 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path. 33025 ;; 33026 *) 33027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33028for as_dir in $PATH 33029do 33030 IFS=$as_save_IFS 33031 test -z "$as_dir" && as_dir=. 33032 for ac_exec_ext in '' $ac_executable_extensions; do 33033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33034 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 33035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33036 break 2 33037 fi 33038done 33039 done 33040IFS=$as_save_IFS 33041 33042 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault"" 33043 ;; 33044esac 33045fi 33046FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate 33047if test -n "$FIGDecodeDelegate"; then 33048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5 33049$as_echo "$FIGDecodeDelegate" >&6; } 33050else 33051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33052$as_echo "no" >&6; } 33053fi 33054 33055 33056# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args. 33057set dummy "$ConvertDelegateDefault"; ac_word=$2 33058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33059$as_echo_n "checking for $ac_word... " >&6; } 33060if ${ac_cv_path_ConvertDelegate+:} false; then : 33061 $as_echo_n "(cached) " >&6 33062else 33063 case $ConvertDelegate in 33064 [\\/]* | ?:[\\/]*) 33065 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path. 33066 ;; 33067 *) 33068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33069for as_dir in $PATH 33070do 33071 IFS=$as_save_IFS 33072 test -z "$as_dir" && as_dir=. 33073 for ac_exec_ext in '' $ac_executable_extensions; do 33074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33075 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext" 33076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33077 break 2 33078 fi 33079done 33080 done 33081IFS=$as_save_IFS 33082 33083 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault"" 33084 ;; 33085esac 33086fi 33087ConvertDelegate=$ac_cv_path_ConvertDelegate 33088if test -n "$ConvertDelegate"; then 33089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5 33090$as_echo "$ConvertDelegate" >&6; } 33091else 33092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33093$as_echo "no" >&6; } 33094fi 33095 33096 33097# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args. 33098set dummy "$DisplayDelegateDefault"; ac_word=$2 33099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33100$as_echo_n "checking for $ac_word... " >&6; } 33101if ${ac_cv_path_DisplayDelegate+:} false; then : 33102 $as_echo_n "(cached) " >&6 33103else 33104 case $DisplayDelegate in 33105 [\\/]* | ?:[\\/]*) 33106 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path. 33107 ;; 33108 *) 33109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33110for as_dir in $PATH 33111do 33112 IFS=$as_save_IFS 33113 test -z "$as_dir" && as_dir=. 33114 for ac_exec_ext in '' $ac_executable_extensions; do 33115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33116 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext" 33117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33118 break 2 33119 fi 33120done 33121 done 33122IFS=$as_save_IFS 33123 33124 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault"" 33125 ;; 33126esac 33127fi 33128DisplayDelegate=$ac_cv_path_DisplayDelegate 33129if test -n "$DisplayDelegate"; then 33130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5 33131$as_echo "$DisplayDelegate" >&6; } 33132else 33133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33134$as_echo "no" >&6; } 33135fi 33136 33137 33138# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args. 33139set dummy "$MogrifyDelegateDefault"; ac_word=$2 33140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33141$as_echo_n "checking for $ac_word... " >&6; } 33142if ${ac_cv_path_MogrifyDelegate+:} false; then : 33143 $as_echo_n "(cached) " >&6 33144else 33145 case $MogrifyDelegate in 33146 [\\/]* | ?:[\\/]*) 33147 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path. 33148 ;; 33149 *) 33150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33151for as_dir in $PATH 33152do 33153 IFS=$as_save_IFS 33154 test -z "$as_dir" && as_dir=. 33155 for ac_exec_ext in '' $ac_executable_extensions; do 33156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33157 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext" 33158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33159 break 2 33160 fi 33161done 33162 done 33163IFS=$as_save_IFS 33164 33165 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault"" 33166 ;; 33167esac 33168fi 33169MogrifyDelegate=$ac_cv_path_MogrifyDelegate 33170if test -n "$MogrifyDelegate"; then 33171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5 33172$as_echo "$MogrifyDelegate" >&6; } 33173else 33174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33175$as_echo "no" >&6; } 33176fi 33177 33178 33179# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args. 33180set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2 33181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33182$as_echo_n "checking for $ac_word... " >&6; } 33183if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then : 33184 $as_echo_n "(cached) " >&6 33185else 33186 case $GnuplotDecodeDelegate in 33187 [\\/]* | ?:[\\/]*) 33188 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path. 33189 ;; 33190 *) 33191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33192for as_dir in $PATH 33193do 33194 IFS=$as_save_IFS 33195 test -z "$as_dir" && as_dir=. 33196 for ac_exec_ext in '' $ac_executable_extensions; do 33197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33198 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 33199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33200 break 2 33201 fi 33202done 33203 done 33204IFS=$as_save_IFS 33205 33206 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault"" 33207 ;; 33208esac 33209fi 33210GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate 33211if test -n "$GnuplotDecodeDelegate"; then 33212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5 33213$as_echo "$GnuplotDecodeDelegate" >&6; } 33214else 33215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33216$as_echo "no" >&6; } 33217fi 33218 33219 33220# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args. 33221set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2 33222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33223$as_echo_n "checking for $ac_word... " >&6; } 33224if ${ac_cv_path_HPGLDecodeDelegate+:} false; then : 33225 $as_echo_n "(cached) " >&6 33226else 33227 case $HPGLDecodeDelegate in 33228 [\\/]* | ?:[\\/]*) 33229 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path. 33230 ;; 33231 *) 33232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33233for as_dir in $PATH 33234do 33235 IFS=$as_save_IFS 33236 test -z "$as_dir" && as_dir=. 33237 for ac_exec_ext in '' $ac_executable_extensions; do 33238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33239 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 33240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33241 break 2 33242 fi 33243done 33244 done 33245IFS=$as_save_IFS 33246 33247 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault"" 33248 ;; 33249esac 33250fi 33251HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate 33252if test -n "$HPGLDecodeDelegate"; then 33253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5 33254$as_echo "$HPGLDecodeDelegate" >&6; } 33255else 33256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33257$as_echo "no" >&6; } 33258fi 33259 33260 33261# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args. 33262set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2 33263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33264$as_echo_n "checking for $ac_word... " >&6; } 33265if ${ac_cv_path_HTMLDecodeDelegate+:} false; then : 33266 $as_echo_n "(cached) " >&6 33267else 33268 case $HTMLDecodeDelegate in 33269 [\\/]* | ?:[\\/]*) 33270 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path. 33271 ;; 33272 *) 33273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33274for as_dir in $PATH 33275do 33276 IFS=$as_save_IFS 33277 test -z "$as_dir" && as_dir=. 33278 for ac_exec_ext in '' $ac_executable_extensions; do 33279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33280 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 33281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33282 break 2 33283 fi 33284done 33285 done 33286IFS=$as_save_IFS 33287 33288 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault"" 33289 ;; 33290esac 33291fi 33292HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate 33293if test -n "$HTMLDecodeDelegate"; then 33294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5 33295$as_echo "$HTMLDecodeDelegate" >&6; } 33296else 33297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33298$as_echo "no" >&6; } 33299fi 33300 33301 33302# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args. 33303set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2 33304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33305$as_echo_n "checking for $ac_word... " >&6; } 33306if ${ac_cv_path_ILBMDecodeDelegate+:} false; then : 33307 $as_echo_n "(cached) " >&6 33308else 33309 case $ILBMDecodeDelegate in 33310 [\\/]* | ?:[\\/]*) 33311 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path. 33312 ;; 33313 *) 33314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33315for as_dir in $PATH 33316do 33317 IFS=$as_save_IFS 33318 test -z "$as_dir" && as_dir=. 33319 for ac_exec_ext in '' $ac_executable_extensions; do 33320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33321 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 33322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33323 break 2 33324 fi 33325done 33326 done 33327IFS=$as_save_IFS 33328 33329 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault"" 33330 ;; 33331esac 33332fi 33333ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate 33334if test -n "$ILBMDecodeDelegate"; then 33335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5 33336$as_echo "$ILBMDecodeDelegate" >&6; } 33337else 33338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33339$as_echo "no" >&6; } 33340fi 33341 33342 33343# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args. 33344set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2 33345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33346$as_echo_n "checking for $ac_word... " >&6; } 33347if ${ac_cv_path_ILBMEncodeDelegate+:} false; then : 33348 $as_echo_n "(cached) " >&6 33349else 33350 case $ILBMEncodeDelegate in 33351 [\\/]* | ?:[\\/]*) 33352 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path. 33353 ;; 33354 *) 33355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33356for as_dir in $PATH 33357do 33358 IFS=$as_save_IFS 33359 test -z "$as_dir" && as_dir=. 33360 for ac_exec_ext in '' $ac_executable_extensions; do 33361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33362 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext" 33363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33364 break 2 33365 fi 33366done 33367 done 33368IFS=$as_save_IFS 33369 33370 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault"" 33371 ;; 33372esac 33373fi 33374ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate 33375if test -n "$ILBMEncodeDelegate"; then 33376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5 33377$as_echo "$ILBMEncodeDelegate" >&6; } 33378else 33379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33380$as_echo "no" >&6; } 33381fi 33382 33383 33384# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args. 33385set dummy "$LPDelegateDefault"; ac_word=$2 33386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33387$as_echo_n "checking for $ac_word... " >&6; } 33388if ${ac_cv_path_LPDelegate+:} false; then : 33389 $as_echo_n "(cached) " >&6 33390else 33391 case $LPDelegate in 33392 [\\/]* | ?:[\\/]*) 33393 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path. 33394 ;; 33395 *) 33396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33397for as_dir in $PATH 33398do 33399 IFS=$as_save_IFS 33400 test -z "$as_dir" && as_dir=. 33401 for ac_exec_ext in '' $ac_executable_extensions; do 33402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33403 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext" 33404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33405 break 2 33406 fi 33407done 33408 done 33409IFS=$as_save_IFS 33410 33411 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no" 33412 ;; 33413esac 33414fi 33415LPDelegate=$ac_cv_path_LPDelegate 33416if test -n "$LPDelegate"; then 33417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5 33418$as_echo "$LPDelegate" >&6; } 33419else 33420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33421$as_echo "no" >&6; } 33422fi 33423 33424 33425# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args. 33426set dummy "$LPRDelegateDefault"; ac_word=$2 33427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33428$as_echo_n "checking for $ac_word... " >&6; } 33429if ${ac_cv_path_LPRDelegate+:} false; then : 33430 $as_echo_n "(cached) " >&6 33431else 33432 case $LPRDelegate in 33433 [\\/]* | ?:[\\/]*) 33434 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path. 33435 ;; 33436 *) 33437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33438for as_dir in $PATH 33439do 33440 IFS=$as_save_IFS 33441 test -z "$as_dir" && as_dir=. 33442 for ac_exec_ext in '' $ac_executable_extensions; do 33443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33444 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext" 33445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33446 break 2 33447 fi 33448done 33449 done 33450IFS=$as_save_IFS 33451 33452 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault"" 33453 ;; 33454esac 33455fi 33456LPRDelegate=$ac_cv_path_LPRDelegate 33457if test -n "$LPRDelegate"; then 33458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5 33459$as_echo "$LPRDelegate" >&6; } 33460else 33461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33462$as_echo "no" >&6; } 33463fi 33464 33465 33466# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args. 33467set dummy "$LaunchDelegateDefault"; ac_word=$2 33468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33469$as_echo_n "checking for $ac_word... " >&6; } 33470if ${ac_cv_path_LaunchDelegate+:} false; then : 33471 $as_echo_n "(cached) " >&6 33472else 33473 case $LaunchDelegate in 33474 [\\/]* | ?:[\\/]*) 33475 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path. 33476 ;; 33477 *) 33478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33479for as_dir in $PATH 33480do 33481 IFS=$as_save_IFS 33482 test -z "$as_dir" && as_dir=. 33483 for ac_exec_ext in '' $ac_executable_extensions; do 33484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33485 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext" 33486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33487 break 2 33488 fi 33489done 33490 done 33491IFS=$as_save_IFS 33492 33493 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault"" 33494 ;; 33495esac 33496fi 33497LaunchDelegate=$ac_cv_path_LaunchDelegate 33498if test -n "$LaunchDelegate"; then 33499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5 33500$as_echo "$LaunchDelegate" >&6; } 33501else 33502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33503$as_echo "no" >&6; } 33504fi 33505 33506 33507# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args. 33508set dummy "$MANDelegateDefault"; ac_word=$2 33509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33510$as_echo_n "checking for $ac_word... " >&6; } 33511if ${ac_cv_path_MANDelegate+:} false; then : 33512 $as_echo_n "(cached) " >&6 33513else 33514 case $MANDelegate in 33515 [\\/]* | ?:[\\/]*) 33516 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path. 33517 ;; 33518 *) 33519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33520for as_dir in $PATH 33521do 33522 IFS=$as_save_IFS 33523 test -z "$as_dir" && as_dir=. 33524 for ac_exec_ext in '' $ac_executable_extensions; do 33525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33526 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext" 33527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33528 break 2 33529 fi 33530done 33531 done 33532IFS=$as_save_IFS 33533 33534 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault"" 33535 ;; 33536esac 33537fi 33538MANDelegate=$ac_cv_path_MANDelegate 33539if test -n "$MANDelegate"; then 33540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5 33541$as_echo "$MANDelegate" >&6; } 33542else 33543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33544$as_echo "no" >&6; } 33545fi 33546 33547 33548# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args. 33549set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2 33550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33551$as_echo_n "checking for $ac_word... " >&6; } 33552if ${ac_cv_path_MPEGDecodeDelegate+:} false; then : 33553 $as_echo_n "(cached) " >&6 33554else 33555 case $MPEGDecodeDelegate in 33556 [\\/]* | ?:[\\/]*) 33557 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path. 33558 ;; 33559 *) 33560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33561for as_dir in $PATH 33562do 33563 IFS=$as_save_IFS 33564 test -z "$as_dir" && as_dir=. 33565 for ac_exec_ext in '' $ac_executable_extensions; do 33566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33567 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 33568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33569 break 2 33570 fi 33571done 33572 done 33573IFS=$as_save_IFS 33574 33575 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault"" 33576 ;; 33577esac 33578fi 33579MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate 33580if test -n "$MPEGDecodeDelegate"; then 33581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5 33582$as_echo "$MPEGDecodeDelegate" >&6; } 33583else 33584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33585$as_echo "no" >&6; } 33586fi 33587 33588 33589# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args. 33590set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2 33591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33592$as_echo_n "checking for $ac_word... " >&6; } 33593if ${ac_cv_path_MPEGEncodeDelegate+:} false; then : 33594 $as_echo_n "(cached) " >&6 33595else 33596 case $MPEGEncodeDelegate in 33597 [\\/]* | ?:[\\/]*) 33598 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path. 33599 ;; 33600 *) 33601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33602for as_dir in $PATH 33603do 33604 IFS=$as_save_IFS 33605 test -z "$as_dir" && as_dir=. 33606 for ac_exec_ext in '' $ac_executable_extensions; do 33607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33608 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext" 33609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33610 break 2 33611 fi 33612done 33613 done 33614IFS=$as_save_IFS 33615 33616 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault"" 33617 ;; 33618esac 33619fi 33620MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate 33621if test -n "$MPEGEncodeDelegate"; then 33622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5 33623$as_echo "$MPEGEncodeDelegate" >&6; } 33624else 33625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33626$as_echo "no" >&6; } 33627fi 33628 33629 33630# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args. 33631set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2 33632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33633$as_echo_n "checking for $ac_word... " >&6; } 33634if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then : 33635 $as_echo_n "(cached) " >&6 33636else 33637 case $MrSIDDecodeDelegate in 33638 [\\/]* | ?:[\\/]*) 33639 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path. 33640 ;; 33641 *) 33642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33643for as_dir in $PATH 33644do 33645 IFS=$as_save_IFS 33646 test -z "$as_dir" && as_dir=. 33647 for ac_exec_ext in '' $ac_executable_extensions; do 33648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33649 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 33650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33651 break 2 33652 fi 33653done 33654 done 33655IFS=$as_save_IFS 33656 33657 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault"" 33658 ;; 33659esac 33660fi 33661MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate 33662if test -n "$MrSIDDecodeDelegate"; then 33663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5 33664$as_echo "$MrSIDDecodeDelegate" >&6; } 33665else 33666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33667$as_echo "no" >&6; } 33668fi 33669 33670 33671# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args. 33672set dummy "$MVDelegateDefault"; ac_word=$2 33673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33674$as_echo_n "checking for $ac_word... " >&6; } 33675if ${ac_cv_path_MVDelegate+:} false; then : 33676 $as_echo_n "(cached) " >&6 33677else 33678 case $MVDelegate in 33679 [\\/]* | ?:[\\/]*) 33680 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path. 33681 ;; 33682 *) 33683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33684for as_dir in $PATH 33685do 33686 IFS=$as_save_IFS 33687 test -z "$as_dir" && as_dir=. 33688 for ac_exec_ext in '' $ac_executable_extensions; do 33689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33690 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext" 33691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33692 break 2 33693 fi 33694done 33695 done 33696IFS=$as_save_IFS 33697 33698 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault"" 33699 ;; 33700esac 33701fi 33702MVDelegate=$ac_cv_path_MVDelegate 33703if test -n "$MVDelegate"; then 33704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5 33705$as_echo "$MVDelegate" >&6; } 33706else 33707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33708$as_echo "no" >&6; } 33709fi 33710 33711 33712# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args. 33713set dummy "$PCLDelegateDefault"; ac_word=$2 33714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33715$as_echo_n "checking for $ac_word... " >&6; } 33716if ${ac_cv_path_PCLDelegate+:} false; then : 33717 $as_echo_n "(cached) " >&6 33718else 33719 case $PCLDelegate in 33720 [\\/]* | ?:[\\/]*) 33721 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path. 33722 ;; 33723 *) 33724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33725for as_dir in $PATH 33726do 33727 IFS=$as_save_IFS 33728 test -z "$as_dir" && as_dir=. 33729 for ac_exec_ext in '' $ac_executable_extensions; do 33730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33731 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext" 33732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33733 break 2 33734 fi 33735done 33736 done 33737IFS=$as_save_IFS 33738 33739 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault"" 33740 ;; 33741esac 33742fi 33743PCLDelegate=$ac_cv_path_PCLDelegate 33744if test -n "$PCLDelegate"; then 33745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5 33746$as_echo "$PCLDelegate" >&6; } 33747else 33748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33749$as_echo "no" >&6; } 33750fi 33751 33752 33753# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args. 33754set dummy "$PGPDecodeDelegateDefault"; ac_word=$2 33755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33756$as_echo_n "checking for $ac_word... " >&6; } 33757if ${ac_cv_path_PGPDecodeDelegate+:} false; then : 33758 $as_echo_n "(cached) " >&6 33759else 33760 case $PGPDecodeDelegate in 33761 [\\/]* | ?:[\\/]*) 33762 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path. 33763 ;; 33764 *) 33765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33766for as_dir in $PATH 33767do 33768 IFS=$as_save_IFS 33769 test -z "$as_dir" && as_dir=. 33770 for ac_exec_ext in '' $ac_executable_extensions; do 33771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33772 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 33773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33774 break 2 33775 fi 33776done 33777 done 33778IFS=$as_save_IFS 33779 33780 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault"" 33781 ;; 33782esac 33783fi 33784PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate 33785if test -n "$PGPDecodeDelegate"; then 33786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5 33787$as_echo "$PGPDecodeDelegate" >&6; } 33788else 33789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33790$as_echo "no" >&6; } 33791fi 33792 33793 33794# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args. 33795set dummy "$POVDelegateDefault"; ac_word=$2 33796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33797$as_echo_n "checking for $ac_word... " >&6; } 33798if ${ac_cv_path_POVDelegate+:} false; then : 33799 $as_echo_n "(cached) " >&6 33800else 33801 case $POVDelegate in 33802 [\\/]* | ?:[\\/]*) 33803 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path. 33804 ;; 33805 *) 33806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33807for as_dir in $PATH 33808do 33809 IFS=$as_save_IFS 33810 test -z "$as_dir" && as_dir=. 33811 for ac_exec_ext in '' $ac_executable_extensions; do 33812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33813 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext" 33814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33815 break 2 33816 fi 33817done 33818 done 33819IFS=$as_save_IFS 33820 33821 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault"" 33822 ;; 33823esac 33824fi 33825POVDelegate=$ac_cv_path_POVDelegate 33826if test -n "$POVDelegate"; then 33827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5 33828$as_echo "$POVDelegate" >&6; } 33829else 33830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33831$as_echo "no" >&6; } 33832fi 33833 33834 33835for ac_prog in gsx gsc "$PSDelegateDefault" 33836do 33837 # Extract the first word of "$ac_prog", so it can be a program name with args. 33838set dummy $ac_prog; ac_word=$2 33839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33840$as_echo_n "checking for $ac_word... " >&6; } 33841if ${ac_cv_path_PSDelegate+:} false; then : 33842 $as_echo_n "(cached) " >&6 33843else 33844 case $PSDelegate in 33845 [\\/]* | ?:[\\/]*) 33846 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path. 33847 ;; 33848 *) 33849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33850for as_dir in $PATH 33851do 33852 IFS=$as_save_IFS 33853 test -z "$as_dir" && as_dir=. 33854 for ac_exec_ext in '' $ac_executable_extensions; do 33855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33856 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext" 33857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33858 break 2 33859 fi 33860done 33861 done 33862IFS=$as_save_IFS 33863 33864 ;; 33865esac 33866fi 33867PSDelegate=$ac_cv_path_PSDelegate 33868if test -n "$PSDelegate"; then 33869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5 33870$as_echo "$PSDelegate" >&6; } 33871else 33872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33873$as_echo "no" >&6; } 33874fi 33875 33876 33877 test -n "$PSDelegate" && break 33878done 33879test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault"" 33880 33881# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args. 33882set dummy "$RLEEncodeDelegateDefault"; ac_word=$2 33883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33884$as_echo_n "checking for $ac_word... " >&6; } 33885if ${ac_cv_path_RLEEncodeDelegate+:} false; then : 33886 $as_echo_n "(cached) " >&6 33887else 33888 case $RLEEncodeDelegate in 33889 [\\/]* | ?:[\\/]*) 33890 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path. 33891 ;; 33892 *) 33893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33894for as_dir in $PATH 33895do 33896 IFS=$as_save_IFS 33897 test -z "$as_dir" && as_dir=. 33898 for ac_exec_ext in '' $ac_executable_extensions; do 33899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33900 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext" 33901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33902 break 2 33903 fi 33904done 33905 done 33906IFS=$as_save_IFS 33907 33908 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault"" 33909 ;; 33910esac 33911fi 33912RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate 33913if test -n "$RLEEncodeDelegate"; then 33914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5 33915$as_echo "$RLEEncodeDelegate" >&6; } 33916else 33917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33918$as_echo "no" >&6; } 33919fi 33920 33921 33922# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args. 33923set dummy "$RMDelegateDefault"; ac_word=$2 33924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33925$as_echo_n "checking for $ac_word... " >&6; } 33926if ${ac_cv_path_RMDelegate+:} false; then : 33927 $as_echo_n "(cached) " >&6 33928else 33929 case $RMDelegate in 33930 [\\/]* | ?:[\\/]*) 33931 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path. 33932 ;; 33933 *) 33934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33935for as_dir in $PATH 33936do 33937 IFS=$as_save_IFS 33938 test -z "$as_dir" && as_dir=. 33939 for ac_exec_ext in '' $ac_executable_extensions; do 33940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33941 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext" 33942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33943 break 2 33944 fi 33945done 33946 done 33947IFS=$as_save_IFS 33948 33949 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault"" 33950 ;; 33951esac 33952fi 33953RMDelegate=$ac_cv_path_RMDelegate 33954if test -n "$RMDelegate"; then 33955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5 33956$as_echo "$RMDelegate" >&6; } 33957else 33958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33959$as_echo "no" >&6; } 33960fi 33961 33962 33963# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args. 33964set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2 33965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33966$as_echo_n "checking for $ac_word... " >&6; } 33967if ${ac_cv_path_RSVGDecodeDelegate+:} false; then : 33968 $as_echo_n "(cached) " >&6 33969else 33970 case $RSVGDecodeDelegate in 33971 [\\/]* | ?:[\\/]*) 33972 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path. 33973 ;; 33974 *) 33975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33976for as_dir in $PATH 33977do 33978 IFS=$as_save_IFS 33979 test -z "$as_dir" && as_dir=. 33980 for ac_exec_ext in '' $ac_executable_extensions; do 33981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33982 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 33983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33984 break 2 33985 fi 33986done 33987 done 33988IFS=$as_save_IFS 33989 33990 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault"" 33991 ;; 33992esac 33993fi 33994RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate 33995if test -n "$RSVGDecodeDelegate"; then 33996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5 33997$as_echo "$RSVGDecodeDelegate" >&6; } 33998else 33999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34000$as_echo "no" >&6; } 34001fi 34002 34003 34004# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args. 34005set dummy "$SCANDecodeDelegateDefault"; ac_word=$2 34006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34007$as_echo_n "checking for $ac_word... " >&6; } 34008if ${ac_cv_path_SCANDecodeDelegate+:} false; then : 34009 $as_echo_n "(cached) " >&6 34010else 34011 case $SCANDecodeDelegate in 34012 [\\/]* | ?:[\\/]*) 34013 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path. 34014 ;; 34015 *) 34016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34017for as_dir in $PATH 34018do 34019 IFS=$as_save_IFS 34020 test -z "$as_dir" && as_dir=. 34021 for ac_exec_ext in '' $ac_executable_extensions; do 34022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34023 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 34024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34025 break 2 34026 fi 34027done 34028 done 34029IFS=$as_save_IFS 34030 34031 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault"" 34032 ;; 34033esac 34034fi 34035SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate 34036if test -n "$SCANDecodeDelegate"; then 34037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5 34038$as_echo "$SCANDecodeDelegate" >&6; } 34039else 34040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34041$as_echo "no" >&6; } 34042fi 34043 34044 34045# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args. 34046set dummy "$SVGDecodeDelegateDefault"; ac_word=$2 34047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34048$as_echo_n "checking for $ac_word... " >&6; } 34049if ${ac_cv_path_SVGDecodeDelegate+:} false; then : 34050 $as_echo_n "(cached) " >&6 34051else 34052 case $SVGDecodeDelegate in 34053 [\\/]* | ?:[\\/]*) 34054 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path. 34055 ;; 34056 *) 34057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34058for as_dir in $PATH 34059do 34060 IFS=$as_save_IFS 34061 test -z "$as_dir" && as_dir=. 34062 for ac_exec_ext in '' $ac_executable_extensions; do 34063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34064 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 34065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34066 break 2 34067 fi 34068done 34069 done 34070IFS=$as_save_IFS 34071 34072 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault"" 34073 ;; 34074esac 34075fi 34076SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate 34077if test -n "$SVGDecodeDelegate"; then 34078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5 34079$as_echo "$SVGDecodeDelegate" >&6; } 34080else 34081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34082$as_echo "no" >&6; } 34083fi 34084 34085 34086# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args. 34087set dummy "$TXTDelegateDefault"; ac_word=$2 34088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34089$as_echo_n "checking for $ac_word... " >&6; } 34090if ${ac_cv_path_TXTDelegate+:} false; then : 34091 $as_echo_n "(cached) " >&6 34092else 34093 case $TXTDelegate in 34094 [\\/]* | ?:[\\/]*) 34095 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path. 34096 ;; 34097 *) 34098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34099for as_dir in $PATH 34100do 34101 IFS=$as_save_IFS 34102 test -z "$as_dir" && as_dir=. 34103 for ac_exec_ext in '' $ac_executable_extensions; do 34104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34105 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext" 34106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34107 break 2 34108 fi 34109done 34110 done 34111IFS=$as_save_IFS 34112 34113 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault"" 34114 ;; 34115esac 34116fi 34117TXTDelegate=$ac_cv_path_TXTDelegate 34118if test -n "$TXTDelegate"; then 34119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5 34120$as_echo "$TXTDelegate" >&6; } 34121else 34122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34123$as_echo "no" >&6; } 34124fi 34125 34126 34127# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args. 34128set dummy "$UniconvertorDelegateDefault"; ac_word=$2 34129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34130$as_echo_n "checking for $ac_word... " >&6; } 34131if ${ac_cv_path_UniconvertorDelegate+:} false; then : 34132 $as_echo_n "(cached) " >&6 34133else 34134 case $UniconvertorDelegate in 34135 [\\/]* | ?:[\\/]*) 34136 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path. 34137 ;; 34138 *) 34139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34140for as_dir in $PATH 34141do 34142 IFS=$as_save_IFS 34143 test -z "$as_dir" && as_dir=. 34144 for ac_exec_ext in '' $ac_executable_extensions; do 34145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34146 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext" 34147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34148 break 2 34149 fi 34150done 34151 done 34152IFS=$as_save_IFS 34153 34154 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault"" 34155 ;; 34156esac 34157fi 34158UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate 34159if test -n "$UniconvertorDelegate"; then 34160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5 34161$as_echo "$UniconvertorDelegate" >&6; } 34162else 34163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34164$as_echo "no" >&6; } 34165fi 34166 34167 34168# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args. 34169set dummy "$WMFDecodeDelegateDefault"; ac_word=$2 34170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34171$as_echo_n "checking for $ac_word... " >&6; } 34172if ${ac_cv_path_WMFDecodeDelegate+:} false; then : 34173 $as_echo_n "(cached) " >&6 34174else 34175 case $WMFDecodeDelegate in 34176 [\\/]* | ?:[\\/]*) 34177 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path. 34178 ;; 34179 *) 34180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34181for as_dir in $PATH 34182do 34183 IFS=$as_save_IFS 34184 test -z "$as_dir" && as_dir=. 34185 for ac_exec_ext in '' $ac_executable_extensions; do 34186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34187 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 34188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34189 break 2 34190 fi 34191done 34192 done 34193IFS=$as_save_IFS 34194 34195 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault"" 34196 ;; 34197esac 34198fi 34199WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate 34200if test -n "$WMFDecodeDelegate"; then 34201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5 34202$as_echo "$WMFDecodeDelegate" >&6; } 34203else 34204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34205$as_echo "no" >&6; } 34206fi 34207 34208 34209# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args. 34210set dummy "$WWWDecodeDelegateDefault"; ac_word=$2 34211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34212$as_echo_n "checking for $ac_word... " >&6; } 34213if ${ac_cv_path_WWWDecodeDelegate+:} false; then : 34214 $as_echo_n "(cached) " >&6 34215else 34216 case $WWWDecodeDelegate in 34217 [\\/]* | ?:[\\/]*) 34218 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path. 34219 ;; 34220 *) 34221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34222for as_dir in $PATH 34223do 34224 IFS=$as_save_IFS 34225 test -z "$as_dir" && as_dir=. 34226 for ac_exec_ext in '' $ac_executable_extensions; do 34227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34228 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 34229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34230 break 2 34231 fi 34232done 34233 done 34234IFS=$as_save_IFS 34235 34236 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault"" 34237 ;; 34238esac 34239fi 34240WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate 34241if test -n "$WWWDecodeDelegate"; then 34242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5 34243$as_echo "$WWWDecodeDelegate" >&6; } 34244else 34245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34246$as_echo "no" >&6; } 34247fi 34248 34249 34250# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args. 34251set dummy "$XPSDelegateDefault"; ac_word=$2 34252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34253$as_echo_n "checking for $ac_word... " >&6; } 34254if ${ac_cv_path_XPSDelegate+:} false; then : 34255 $as_echo_n "(cached) " >&6 34256else 34257 case $XPSDelegate in 34258 [\\/]* | ?:[\\/]*) 34259 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path. 34260 ;; 34261 *) 34262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34263for as_dir in $PATH 34264do 34265 IFS=$as_save_IFS 34266 test -z "$as_dir" && as_dir=. 34267 for ac_exec_ext in '' $ac_executable_extensions; do 34268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34269 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext" 34270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34271 break 2 34272 fi 34273done 34274 done 34275IFS=$as_save_IFS 34276 34277 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault"" 34278 ;; 34279esac 34280fi 34281XPSDelegate=$ac_cv_path_XPSDelegate 34282if test -n "$XPSDelegate"; then 34283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5 34284$as_echo "$XPSDelegate" >&6; } 34285else 34286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34287$as_echo "no" >&6; } 34288fi 34289 34290 34291# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args. 34292set dummy "$ZipDelegateDefault"; ac_word=$2 34293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34294$as_echo_n "checking for $ac_word... " >&6; } 34295if ${ac_cv_path_ZipDelegate+:} false; then : 34296 $as_echo_n "(cached) " >&6 34297else 34298 case $ZipDelegate in 34299 [\\/]* | ?:[\\/]*) 34300 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path. 34301 ;; 34302 *) 34303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34304for as_dir in $PATH 34305do 34306 IFS=$as_save_IFS 34307 test -z "$as_dir" && as_dir=. 34308 for ac_exec_ext in '' $ac_executable_extensions; do 34309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34310 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext" 34311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34312 break 2 34313 fi 34314done 34315 done 34316IFS=$as_save_IFS 34317 34318 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault"" 34319 ;; 34320esac 34321fi 34322ZipDelegate=$ac_cv_path_ZipDelegate 34323if test -n "$ZipDelegate"; then 34324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5 34325$as_echo "$ZipDelegate" >&6; } 34326else 34327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34328$as_echo "no" >&6; } 34329fi 34330 34331 34332 34333# Prefer lpr to lp; lp needs options tacked on. 34334if test "$LPRDelegate" != no; then 34335 PrintDelegate="$LPRDelegate" 34336else 34337 PrintDelegate="$LPDelegate -c -s" 34338fi 34339 34340 34341# Installed ImageMagick utiltity paths 34342ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}" 34343DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}" 34344MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}" 34345 34346# Set delegate booleans 34347have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi 34348have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi 34349have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi 34350have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi 34351have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi 34352have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi 34353have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi 34354have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi 34355have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi 34356have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi 34357 34358# 34359# Test for font directories 34360# 34361type_include_files='' 34362 34363# Dejavu fonts. 34364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5 34365$as_echo_n "checking for Dejavu fonts directory... " >&6; } 34366dejavu_font_dir='' 34367if test "${with_dejavu_font_dir}" != 'default'; then 34368 dejavu_font_dir="${with_dejavu_font_dir}/" 34369else 34370 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do 34371 if test -f "${font_dir}DejaVuSerif.ttf"; then 34372 dejavu_font_dir="${font_dir}" 34373 break 1 34374 fi 34375 done 34376fi 34377if test "${dejavu_font_dir}x" != 'x'; then 34378 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />' 34379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5 34380$as_echo "$dejavu_font_dir" >&6; } 34381else 34382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5 34383$as_echo "not found!" >&6; }; 34384fi 34385 34386 34387# Windows 34388windows_font_dir='' 34389if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then 34390 windows_font_dir="${with_windows_font_dir}/" 34391fi 34392if test "${windows_font_dir}x" != 'x'; then 34393 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then 34394 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/' 34395 fi 34396 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then 34397 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/' 34398 fi 34399 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then 34400 windows_font_dir='/usr/share/fonts/msttcore/truetype/' 34401 fi 34402fi 34403if test "${windows_font_dir}x" != 'x'; then 34404 type_include_files="$type_include_files "'<include file="type-windows.xml" />' 34405fi 34406 34407 34408# Ghostscript 34409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5 34410$as_echo_n "checking for Ghostscript fonts directory... " >&6; } 34411ghostscript_font_dir='' 34412if test "${with_gs_font_dir}" != 'default'; then 34413 ghostscript_font_dir="${with_gs_font_dir}/" 34414else 34415 if test "${native_win32_build}" = 'yes'; then 34416 # Native Windows Build 34417 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do 34418 if test -f "${font_dir}a010013l.pfb"; then 34419 ghostscript_font_dir="$font_dir" 34420 break 1 34421 fi 34422 done 34423 if test "${PSDelegate}" != 'gswin32c'; then 34424 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\" 34425 fi 34426 else 34427 # Linux / Mac OS X / Unix Build 34428 for font_dir in "${prefix}/share/ghostscript/fonts/" '/usr/share/fonts/default/Type1/' '/usr/share/ghostscript/fonts/' '/usr/share/fonts/ghostscript/' '/usr/share/fonts/type1/gsfonts/' '/opt/local/share/ghostscript/fonts/' '/sw/share/ghostscript/fonts/' '/System/Library/Frameworks/Ghostscript.framework/Resources/fonts/'; do 34429 if test -f "${font_dir}a010013l.pfb"; then 34430 ghostscript_font_dir="${font_dir}" 34431 break 1 34432 fi 34433 done 34434 if test "${ghostscript_font_dir}x" = 'x'; then 34435 if test "$PSDelegate" != 'gs'; then 34436 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/" 34437 fi 34438 fi 34439 fi 34440fi 34441if test "${ghostscript_font_dir}x" != 'x'; then 34442 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />' 34443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5 34444$as_echo "$ghostscript_font_dir" >&6; } 34445else 34446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5 34447$as_echo "not found!" >&6; }; 34448fi 34449 34450case "${build_os}" in 34451 mingw* ) 34452 PSDelegate=`$WinPathScript "$PSDelegate" 1` 34453 ;; 34454esac 34455 34456 34457 34458# 34459# Handle case where user doesn't want frozen paths 34460# 34461if test "$with_frozenpaths" != 'yes'; then 34462 # Re-set delegate definitions to default (no paths) 34463 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault" 34464 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault" 34465 BZIPDelegate="$BZIPDelegateDefault" 34466 BrowseDelegate="$BrowseDelegateDefault" 34467 CGMDecodeDelegate="$CGMDecodeDelegateDefault" 34468 CatDelegate="$CatDelegateDefault" 34469 ConvertDelegate="$ConvertDelegateDefault" 34470 GVCDecodeDelegate="$GVCDecodeDelegateDefault" 34471 DVIDecodeDelegate="$DVIDecodeDelegateDefault" 34472 EchoDelegate="$EchoDelegateDefault" 34473 EditorDelegate="$EditorDelegateDefault" 34474 FIGDecodeDelegate="$FIGDecodeDelegateDefault" 34475 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault" 34476 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault" 34477 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault" 34478 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault" 34479 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault" 34480 LPDelegate="$LPDelegateDefault" 34481 LaunchDelegate="$LaunchDelegateDefault" 34482 MANDelegate="$MANDelegateDefault" 34483 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault" 34484 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault" 34485 MogrifyDelegate="$MogrifyDelegateDefault" 34486 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault" 34487 MVDelegate="$MVDelegateDefault" 34488 PCLDelegate="$PCLDelegateDefault" 34489 PGPDecodeDelegate="$PGPDecodeDelegateDefault" 34490 POVDelegate="$POVDelegateDefault" 34491 PSDelegate="$PSDelegateDefault" 34492 RLEEncodeDelegate="$RLEEncodeDelegateDefault" 34493 RMDelegate="$RMDelegateDefault" 34494 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault" 34495 SCANDecodeDelegate="$SCANDecodeDelegateDefault" 34496 SVGDecodeDelegate="$SVGDecodeDelegateDefault" 34497 ShowImageDelegate="$ShowImageDelegateDefault" 34498 TXTDelegate="$TXTDelegateDefault" 34499 UniconvertorDelegate="$UniconvertorDelegateDefault" 34500 WMFDecodeDelegate="$WMFDecodeDelegateDefault" 34501 WWWDecodeDelegate="$WWWDecodeDelegateDefault" 34502 XPSDelegate="$XPSDelegateDefault" 34503 ZipDelegate="$ZipDelegateDefault" 34504fi 34505 34506# Delegate substitutions 34507 34508 34509 34510 34511 34512 34513 34514 34515 34516 34517 34518 34519 34520 34521 34522 34523 34524 34525 34526 34527 34528 34529 34530 34531 34532 34533 34534 34535 34536 34537 34538 34539 34540 34541 34542 34543 34544 34545 34546 34547# 34548# RPM support. 34549# 34550RPM='' 34551for ac_prog in gnutar gtar tar 34552do 34553 # Extract the first word of "$ac_prog", so it can be a program name with args. 34554set dummy $ac_prog; ac_word=$2 34555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34556$as_echo_n "checking for $ac_word... " >&6; } 34557if ${ac_cv_prog_TAR+:} false; then : 34558 $as_echo_n "(cached) " >&6 34559else 34560 if test -n "$TAR"; then 34561 ac_cv_prog_TAR="$TAR" # Let the user override the test. 34562else 34563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34564for as_dir in $PATH 34565do 34566 IFS=$as_save_IFS 34567 test -z "$as_dir" && as_dir=. 34568 for ac_exec_ext in '' $ac_executable_extensions; do 34569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34570 ac_cv_prog_TAR="$ac_prog" 34571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34572 break 2 34573 fi 34574done 34575 done 34576IFS=$as_save_IFS 34577 34578fi 34579fi 34580TAR=$ac_cv_prog_TAR 34581if test -n "$TAR"; then 34582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 34583$as_echo "$TAR" >&6; } 34584else 34585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34586$as_echo "no" >&6; } 34587fi 34588 34589 34590 test -n "$TAR" && break 34591done 34592 34593for ac_prog in perl 34594do 34595 # Extract the first word of "$ac_prog", so it can be a program name with args. 34596set dummy $ac_prog; ac_word=$2 34597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34598$as_echo_n "checking for $ac_word... " >&6; } 34599if ${ac_cv_prog_PERL+:} false; then : 34600 $as_echo_n "(cached) " >&6 34601else 34602 if test -n "$PERL"; then 34603 ac_cv_prog_PERL="$PERL" # Let the user override the test. 34604else 34605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34606for as_dir in $PATH 34607do 34608 IFS=$as_save_IFS 34609 test -z "$as_dir" && as_dir=. 34610 for ac_exec_ext in '' $ac_executable_extensions; do 34611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34612 ac_cv_prog_PERL="$ac_prog" 34613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34614 break 2 34615 fi 34616done 34617 done 34618IFS=$as_save_IFS 34619 34620fi 34621fi 34622PERL=$ac_cv_prog_PERL 34623if test -n "$PERL"; then 34624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 34625$as_echo "$PERL" >&6; } 34626else 34627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34628$as_echo "no" >&6; } 34629fi 34630 34631 34632 test -n "$PERL" && break 34633done 34634 34635for ac_prog in rpmbuild rpm 34636do 34637 # Extract the first word of "$ac_prog", so it can be a program name with args. 34638set dummy $ac_prog; ac_word=$2 34639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34640$as_echo_n "checking for $ac_word... " >&6; } 34641if ${ac_cv_prog_RPM+:} false; then : 34642 $as_echo_n "(cached) " >&6 34643else 34644 if test -n "$RPM"; then 34645 ac_cv_prog_RPM="$RPM" # Let the user override the test. 34646else 34647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34648for as_dir in $PATH 34649do 34650 IFS=$as_save_IFS 34651 test -z "$as_dir" && as_dir=. 34652 for ac_exec_ext in '' $ac_executable_extensions; do 34653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34654 ac_cv_prog_RPM="$ac_prog" 34655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34656 break 2 34657 fi 34658done 34659 done 34660IFS=$as_save_IFS 34661 34662fi 34663fi 34664RPM=$ac_cv_prog_RPM 34665if test -n "$RPM"; then 34666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5 34667$as_echo "$RPM" >&6; } 34668else 34669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34670$as_echo "no" >&6; } 34671fi 34672 34673 34674 test -n "$RPM" && break 34675done 34676 34677 34678ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"} 34679 34680 34681AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 34682 34683 34684AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"} 34685 34686 34687AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 34688 34689 34690 if test "x$RPM" != "x" ; then 34691 RPM_DELEGATE_TRUE= 34692 RPM_DELEGATE_FALSE='#' 34693else 34694 RPM_DELEGATE_TRUE='#' 34695 RPM_DELEGATE_FALSE= 34696fi 34697 34698 34699# 34700# 7ZIP support (http://p7zip.sourceforge.net/) 34701# 34702P7ZIP='' 34703for ac_prog in 7za 34704do 34705 # Extract the first word of "$ac_prog", so it can be a program name with args. 34706set dummy $ac_prog; ac_word=$2 34707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34708$as_echo_n "checking for $ac_word... " >&6; } 34709if ${ac_cv_prog_P7ZIP+:} false; then : 34710 $as_echo_n "(cached) " >&6 34711else 34712 if test -n "$P7ZIP"; then 34713 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test. 34714else 34715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34716for as_dir in $PATH 34717do 34718 IFS=$as_save_IFS 34719 test -z "$as_dir" && as_dir=. 34720 for ac_exec_ext in '' $ac_executable_extensions; do 34721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34722 ac_cv_prog_P7ZIP="$ac_prog" 34723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34724 break 2 34725 fi 34726done 34727 done 34728IFS=$as_save_IFS 34729 34730fi 34731fi 34732P7ZIP=$ac_cv_prog_P7ZIP 34733if test -n "$P7ZIP"; then 34734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5 34735$as_echo "$P7ZIP" >&6; } 34736else 34737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34738$as_echo "no" >&6; } 34739fi 34740 34741 34742 test -n "$P7ZIP" && break 34743done 34744 34745 34746 if test "x$P7ZIP" != "x" ; then 34747 P7ZIP_DELEGATE_TRUE= 34748 P7ZIP_DELEGATE_FALSE='#' 34749else 34750 P7ZIP_DELEGATE_TRUE='#' 34751 P7ZIP_DELEGATE_FALSE= 34752fi 34753 34754 34755# 34756# ZIP support (http://www.info-zip.org/Zip.html) 34757# 34758ZIP='' 34759for ac_prog in zip 34760do 34761 # Extract the first word of "$ac_prog", so it can be a program name with args. 34762set dummy $ac_prog; ac_word=$2 34763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34764$as_echo_n "checking for $ac_word... " >&6; } 34765if ${ac_cv_prog_ZIP+:} false; then : 34766 $as_echo_n "(cached) " >&6 34767else 34768 if test -n "$ZIP"; then 34769 ac_cv_prog_ZIP="$ZIP" # Let the user override the test. 34770else 34771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34772for as_dir in $PATH 34773do 34774 IFS=$as_save_IFS 34775 test -z "$as_dir" && as_dir=. 34776 for ac_exec_ext in '' $ac_executable_extensions; do 34777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34778 ac_cv_prog_ZIP="$ac_prog" 34779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34780 break 2 34781 fi 34782done 34783 done 34784IFS=$as_save_IFS 34785 34786fi 34787fi 34788ZIP=$ac_cv_prog_ZIP 34789if test -n "$ZIP"; then 34790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 34791$as_echo "$ZIP" >&6; } 34792else 34793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34794$as_echo "no" >&6; } 34795fi 34796 34797 34798 test -n "$ZIP" && break 34799done 34800 34801 34802 if test "x$ZIP" != "x" ; then 34803 ZIP_DELEGATE_TRUE= 34804 ZIP_DELEGATE_FALSE='#' 34805else 34806 ZIP_DELEGATE_TRUE='#' 34807 ZIP_DELEGATE_FALSE= 34808fi 34809 34810 34811# 34812# GhostPCL related configuration. 34813# 34814PCLColorDevice=ppmraw 34815PCLCMYKDevice=pamcmyk32 34816PCLMonoDevice=pbmraw 34817if test -z "$PCLVersion"; then 34818 PCLVersion='unknown' 34819fi 34820if test $have_pcl = 'yes'; then 34821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 34822$as_echo "-------------------------------------------------------------" >&6; } 34823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5 34824$as_echo_n "checking for PCL... " >&6; } 34825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 34826$as_echo "" >&6; } 34827 # PCLColorDevice 34828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5 34829$as_echo_n "checking for pcl color device... " >&6; } 34830 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then 34831 : 34832 else 34833 PCLColorDevice=ppmraw 34834 fi 34835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5 34836$as_echo "$PCLColorDevice" >&6; } 34837 34838 # PCLCMYKDevice 34839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5 34840$as_echo_n "checking for pcl CMYK device... " >&6; } 34841 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then 34842 : 34843 else 34844 PCLCMYKDevice=$PCLColorDevice 34845 fi 34846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5 34847$as_echo "$PCLCMYKDevice" >&6; } 34848 34849 # PCLMonoDevice 34850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5 34851$as_echo_n "checking for pcl mono device... " >&6; } 34852 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then 34853 : 34854 else 34855 PCLMonoDevice=$PCLColorDevice 34856 fi 34857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5 34858$as_echo "$PCLMonoDevice" >&6; } 34859fi 34860 34861 34862 34863 34864 34865 34866# 34867# GhostXPS related configuration. 34868# 34869XPSColorDevice=ppmraw 34870XPSCMYKDevice=bmpsep8 34871XPSMonoDevice=pbmraw 34872if test -z "$XPSVersion"; then 34873 XPSVersion='unknown' 34874fi 34875if test $have_xps = 'yes'; then 34876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 34877$as_echo "-------------------------------------------------------------" >&6; } 34878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5 34879$as_echo_n "checking for XPS... " >&6; } 34880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 34881$as_echo "" >&6; } 34882 # XPSColorDevice 34883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5 34884$as_echo_n "checking for xps color device... " >&6; } 34885 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then 34886 : 34887 else 34888 XPSColorDevice=ppmraw 34889 fi 34890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5 34891$as_echo "$XPSColorDevice" >&6; } 34892 34893 # XPSCMYKDevice 34894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5 34895$as_echo_n "checking for xps CMYK device... " >&6; } 34896 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then 34897 : 34898 else 34899 XPSCMYKDevice=$XPSColorDevice 34900 fi 34901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5 34902$as_echo "$XPSCMYKDevice" >&6; } 34903 34904 # XPSMonoDevice 34905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5 34906$as_echo_n "checking for xps mono device... " >&6; } 34907 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then 34908 : 34909 else 34910 XPSMonoDevice=$XPSColorDevice 34911 fi 34912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5 34913$as_echo "$XPSMonoDevice" >&6; } 34914fi 34915 34916 34917 34918 34919 34920 34921# 34922# Ghostscript related configuration. 34923# 34924GSAlphaDevice=pngalpha 34925GSColorDevice=pnmraw 34926GSCMYKDevice=pam 34927GSMonoDevice=pbmraw 34928GSPDFDevice=pdfwrite 34929GSPSDevice=pswrite 34930GSEPSDevice=epswrite 34931GSVersion='unknown' 34932if test $have_gs = 'yes'; then 34933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 34934$as_echo "-------------------------------------------------------------" >&6; } 34935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5 34936$as_echo_n "checking for Ghostscript... " >&6; } 34937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 34938$as_echo "" >&6; } 34939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5 34940$as_echo_n "checking for Ghostscript version... " >&6; } 34941 if GSVersion=`$PSDelegate --version`; then 34942 : 34943 else 34944 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'` 34945 fi 34946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5 34947$as_echo "$GSVersion" >&6; } 34948 34949 # GSAlphaDevice 34950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5 34951$as_echo_n "checking for gs alpha device... " >&6; } 34952 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then 34953 : 34954 else 34955 GSAlphaDevice=pnmraw 34956 fi 34957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5 34958$as_echo "$GSAlphaDevice" >&6; } 34959 34960 # GSColorDevice 34961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5 34962$as_echo_n "checking for gs color device... " >&6; } 34963 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then 34964 : 34965 else 34966 GSColorDevice=pnmraw 34967 fi 34968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5 34969$as_echo "$GSColorDevice" >&6; } 34970 34971 # GSCMYKDevice 34972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5 34973$as_echo_n "checking for gs CMYK device... " >&6; } 34974 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then 34975 : 34976 else 34977 GSCMYKDevice=bmpsep8 34978 fi 34979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5 34980$as_echo "$GSCMYKDevice" >&6; } 34981 34982 # GSMonoDevice 34983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5 34984$as_echo_n "checking for gs mono device... " >&6; } 34985 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then 34986 : 34987 else 34988 GSMonoDevice=$GSColorDevice 34989 fi 34990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5 34991$as_echo "$GSMonoDevice" >&6; } 34992 34993 # GSPDFDevice 34994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5 34995$as_echo_n "checking for gs PDF writing device... " >&6; } 34996 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then 34997 : 34998 else 34999 GSPDFDevice=nodevice 35000 fi 35001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5 35002$as_echo "$GSPDFDevice" >&6; } 35003 35004 # GSPSDevice 35005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5 35006$as_echo_n "checking for gs PS writing device... " >&6; } 35007 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then 35008 : 35009 else 35010 GSPSDevice=nodevice 35011 fi 35012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5 35013$as_echo "$GSPSDevice" >&6; } 35014 35015 # GSEPSDevice 35016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5 35017$as_echo_n "checking for gs EPS writing device... " >&6; } 35018 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then 35019 : 35020 else 35021 GSEPSDevice=nodevice 35022 fi 35023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5 35024$as_echo "$GSEPSDevice" >&6; } 35025fi 35026 35027 35028 35029 35030 35031 35032 35033 35034 35035 35036# 35037# PerlMagick-related configuration 35038# 35039 35040# Look for PERL if PerlMagick requested 35041# If name/path of desired PERL interpreter is specified, look for that one first 35042have_perl='no' 35043if test "$with_perl" != 'no'; then 35044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 35045$as_echo "-------------------------------------------------------------" >&6; } 35046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5 35047$as_echo_n "checking for Perl... " >&6; } 35048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 35049$as_echo "" >&6; } 35050 if test "$with_perl" != 'yes'; then 35051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5 35052$as_echo_n "checking for perl... " >&6; } 35053if ${ac_cv_path_PERL+:} false; then : 35054 $as_echo_n "(cached) " >&6 35055else 35056 ac_cv_path_PERL="$with_perl" 35057fi 35058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5 35059$as_echo "$ac_cv_path_PERL" >&6; }; 35060 PERL=$ac_cv_path_PERL 35061 have_perl="$ac_cv_path_PERL" 35062 else 35063 for ac_prog in perl perl5 35064do 35065 # Extract the first word of "$ac_prog", so it can be a program name with args. 35066set dummy $ac_prog; ac_word=$2 35067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35068$as_echo_n "checking for $ac_word... " >&6; } 35069if ${ac_cv_path_PERL+:} false; then : 35070 $as_echo_n "(cached) " >&6 35071else 35072 case $PERL in 35073 [\\/]* | ?:[\\/]*) 35074 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 35075 ;; 35076 *) 35077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35078for as_dir in $PATH 35079do 35080 IFS=$as_save_IFS 35081 test -z "$as_dir" && as_dir=. 35082 for ac_exec_ext in '' $ac_executable_extensions; do 35083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35084 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 35085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35086 break 2 35087 fi 35088done 35089 done 35090IFS=$as_save_IFS 35091 35092 ;; 35093esac 35094fi 35095PERL=$ac_cv_path_PERL 35096if test -n "$PERL"; then 35097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 35098$as_echo "$PERL" >&6; } 35099else 35100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35101$as_echo "no" >&6; } 35102fi 35103 35104 35105 test -n "$PERL" && break 35106done 35107 if test "$ac_cv_path_PERL"; then 35108 have_perl="$ac_cv_path_PERL" 35109 fi 35110 fi 35111fi 35112 35113if test "$with_perl" != 'yes' ; then 35114 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl " 35115fi 35116 35117PERL_SUPPORTS_DESTDIR='no' 35118 35119with_perl_static='no' 35120with_perl_dynamic='no' 35121if test "$have_perl" != 'no'; then 35122 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then 35123 with_perl_static='yes' 35124 fi 35125 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then 35126 with_perl_dynamic='yes' 35127 fi 35128 # Is PERL's MakeMaker new enough to support DESTDIR? 35129 35130 35131 35132 35133 if test -n "$PERL"; then : 35134 35135 ax_perl_version="5.8.1" 35136 35137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5 35138$as_echo_n "checking for perl version... " >&6; } 35139 35140 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'` 35141 35142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5 35143$as_echo "$perl_version" >&6; } 35144 35145 PERL_VERSION=$perl_version 35146 35147 35148 35149 35150 35151 # Used to indicate true or false condition 35152 ax_compare_version=false 35153 35154 # Convert the two version strings to be compared into a format that 35155 # allows a simple string comparison. The end result is that a version 35156 # string of the form 1.12.5-r617 will be converted to the form 35157 # 0001001200050617. In other words, each number is zero padded to four 35158 # digits, and non digits are removed. 35159 35160 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ 35161 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ 35162 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ 35163 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ 35164 -e 's/[^0-9]//g'` 35165 35166 35167 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ 35168 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ 35169 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ 35170 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ 35171 -e 's/[^0-9]//g'` 35172 35173 35174 ax_compare_version=`echo "x$ax_compare_version_A 35175x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"` 35176 35177 35178 35179 if test "$ax_compare_version" = "true" ; then 35180 35181 : 35182 PERL_SUPPORTS_DESTDIR='yes' 35183 35184 else 35185 : 35186 PERL_SUPPORTS_DESTDIR='no' 35187 35188 fi 35189 35190 35191else 35192 35193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5 35194$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;} 35195 PERL_SUPPORTS_DESTDIR='no' 35196 35197fi 35198 35199fi 35200 if test "$have_perl" != 'no'; then 35201 WITH_PERL_TRUE= 35202 WITH_PERL_FALSE='#' 35203else 35204 WITH_PERL_TRUE='#' 35205 WITH_PERL_FALSE= 35206fi 35207 35208 if test $with_perl_static = 'yes'; then 35209 WITH_PERL_STATIC_TRUE= 35210 WITH_PERL_STATIC_FALSE='#' 35211else 35212 WITH_PERL_STATIC_TRUE='#' 35213 WITH_PERL_STATIC_FALSE= 35214fi 35215 35216 if test $with_perl_dynamic = 'yes'; then 35217 WITH_PERL_DYNAMIC_TRUE= 35218 WITH_PERL_DYNAMIC_FALSE='#' 35219else 35220 WITH_PERL_DYNAMIC_TRUE='#' 35221 WITH_PERL_DYNAMIC_FALSE= 35222fi 35223 35224 35225 35226# Determine path to pick up MagickCore library from for use with building PerlMagick 35227MAGICKCORE_PATH="${LIB_DIR}" 35228if test $with_perl_static = 'yes'; then 35229 # Find out where libtool hides its uninstalled libraries (as libtool_objdir) 35230 libtool_objdir=$objdir 35231 35232 # Linker search path to library, followed by -lMagickCore 35233 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}" 35234fi 35235 35236 35237# Create a simple string containing format names for all delegate libraries. 35238MAGICK_DELEGATES='' 35239if test "$have_autotrace" = 'yes' ; then 35240 MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace" 35241fi 35242if test "$have_bzlib" = 'yes' ; then 35243 MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib" 35244fi 35245if test "$have_dps" = 'yes' ; then 35246 MAGICK_DELEGATES="$MAGICK_DELEGATES dps" 35247fi 35248if test "$have_djvu" = 'yes' ; then 35249 MAGICK_DELEGATES="$MAGICK_DELEGATES djvu" 35250fi 35251if test "$have_ffmpeg" = 'yes' ; then 35252 MAGICK_DELEGATES="$MAGICK_DELEGATES mpeg" 35253fi 35254if test "$have_fftw" = 'yes' ; then 35255 MAGICK_DELEGATES="$MAGICK_DELEGATES fftw" 35256fi 35257if test "$have_fig2dev" = 'yes' && test "$have_ps" = 'yes' ; then 35258 MAGICK_DELEGATES="$MAGICK_DELEGATES xfig" 35259fi 35260if test "$have_fpx" = 'yes' ; then 35261 MAGICK_DELEGATES="$MAGICK_DELEGATES fpx" 35262fi 35263if test "$have_fontconfig" = 'yes' ; then 35264 MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig" 35265fi 35266if test "$have_freetype" = 'yes' ; then 35267 MAGICK_DELEGATES="$MAGICK_DELEGATES freetype" 35268fi 35269if test "$have_gslib" = 'yes' ; then 35270 MAGICK_DELEGATES="$MAGICK_DELEGATES gslib" 35271fi 35272if test "$have_jbig" = 'yes' ; then 35273 MAGICK_DELEGATES="$MAGICK_DELEGATES jbig" 35274fi 35275if test "$have_png$have_jpeg" = 'yesyes' ; then 35276 MAGICK_DELEGATES="$MAGICK_DELEGATES jng" 35277fi 35278if test "$have_jp2" = 'yes' ; then 35279 MAGICK_DELEGATES="$MAGICK_DELEGATES jp2" 35280fi 35281if test "$have_jpeg" = 'yes' ; then 35282 MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg" 35283fi 35284if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then 35285 MAGICK_DELEGATES="$MAGICK_DELEGATES lcms" 35286fi 35287if test "$have_lqr" = 'yes' ; then 35288 MAGICK_DELEGATES="$MAGICK_DELEGATES lqr" 35289fi 35290if test "$have_lzma" = 'yes' ; then 35291 MAGICK_DELEGATES="$MAGICK_DELEGATES lzma" 35292fi 35293if test "$have_openexr" = 'yes' ; then 35294 MAGICK_DELEGATES="$MAGICK_DELEGATES openexr" 35295fi 35296if test "$have_pango" = 'yes' ; then 35297 MAGICK_DELEGATES="$MAGICK_DELEGATES pango" 35298fi 35299if test "$have_png" = 'yes' ; then 35300 MAGICK_DELEGATES="$MAGICK_DELEGATES png" 35301fi 35302have_ps='no' 35303if test "$have_dps" = 'yes' || \ 35304 test "$have_gs" = 'yes' || \ 35305 test "${native_win32_build}" = 'yes' ; then 35306 have_ps='yes' 35307fi 35308if test "$have_ps" = 'yes' ; then 35309 MAGICK_DELEGATES="$MAGICK_DELEGATES ps" 35310fi 35311if test "$have_ralcgm" = 'yes' ; then 35312 MAGICK_DELEGATES="$MAGICK_DELEGATES cgm" 35313fi 35314if test "$have_ra_ppm" = 'yes' ; then 35315 MAGICK_DELEGATES="$MAGICK_DELEGATES rad" 35316fi 35317if test "$have_rsvg" = 'yes' ; then 35318 MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg" 35319fi 35320if test "$have_tiff" = 'yes' ; then 35321 MAGICK_DELEGATES="$MAGICK_DELEGATES tiff" 35322fi 35323if test "$have_ttf" = 'yes' ; then 35324 MAGICK_DELEGATES="$MAGICK_DELEGATES ttf" 35325fi 35326if test "$have_wmf" = 'yes' ; then 35327 MAGICK_DELEGATES="$MAGICK_DELEGATES wmf" 35328fi 35329if test "$have_x" = 'yes' ; then 35330 MAGICK_DELEGATES="$MAGICK_DELEGATES x" 35331fi 35332if test "$have_xml" = 'yes' ; then 35333 MAGICK_DELEGATES="$MAGICK_DELEGATES xml" 35334fi 35335if test "$have_zlib" = 'yes' ; then 35336 MAGICK_DELEGATES="$MAGICK_DELEGATES zlib" 35337fi 35338# Remove extraneous spaces from output variables (asthetic) 35339MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/ */ /g'` 35340MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/ */ /g'` 35341 35342 35343 35344# 35345# Handle special compiler flags 35346# 35347 35348# Add '-p' if prof source profiling support enabled 35349if test "$enable_prof" = 'yes'; then 35350 CFLAGS="-p $CFLAGS" 35351 CXXFLAGS="-p $CXXFLAGS" 35352 LDFLAGS="-p $LDFLAGS" 35353fi 35354 35355# Add '-pg' if gprof source profiling support enabled 35356if test "$enable_gprof" = 'yes'; then 35357 CFLAGS="-pg $CFLAGS" 35358 CXXFLAGS="-pg $CXXFLAGS" 35359 LDFLAGS="-pg $LDFLAGS" 35360fi 35361 35362# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled 35363# This is a gcc-specific feature 35364if test "$enable_gcov" = 'yes'; then 35365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5 35366$as_echo_n "checking for _gcov_init in -lgcov... " >&6; } 35367if ${ac_cv_lib_gcov__gcov_init+:} false; then : 35368 $as_echo_n "(cached) " >&6 35369else 35370 ac_check_lib_save_LIBS=$LIBS 35371LIBS="-lgcov $LIBS" 35372cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35373/* end confdefs.h. */ 35374 35375/* Override any GCC internal prototype to avoid an error. 35376 Use char because int might match the return type of a GCC 35377 builtin and then its argument prototype would still apply. */ 35378#ifdef __cplusplus 35379extern "C" 35380#endif 35381char _gcov_init (); 35382int 35383main () 35384{ 35385return _gcov_init (); 35386 ; 35387 return 0; 35388} 35389_ACEOF 35390if ac_fn_c_try_link "$LINENO"; then : 35391 ac_cv_lib_gcov__gcov_init=yes 35392else 35393 ac_cv_lib_gcov__gcov_init=no 35394fi 35395rm -f core conftest.err conftest.$ac_objext \ 35396 conftest$ac_exeext conftest.$ac_ext 35397LIBS=$ac_check_lib_save_LIBS 35398fi 35399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5 35400$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; } 35401if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then : 35402 cat >>confdefs.h <<_ACEOF 35403#define HAVE_LIBGCOV 1 35404_ACEOF 35405 35406 LIBS="-lgcov $LIBS" 35407 35408fi 35409 35410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5 35411$as_echo_n "checking for __gcov_init in -lgcov... " >&6; } 35412if ${ac_cv_lib_gcov___gcov_init+:} false; then : 35413 $as_echo_n "(cached) " >&6 35414else 35415 ac_check_lib_save_LIBS=$LIBS 35416LIBS="-lgcov $LIBS" 35417cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35418/* end confdefs.h. */ 35419 35420/* Override any GCC internal prototype to avoid an error. 35421 Use char because int might match the return type of a GCC 35422 builtin and then its argument prototype would still apply. */ 35423#ifdef __cplusplus 35424extern "C" 35425#endif 35426char __gcov_init (); 35427int 35428main () 35429{ 35430return __gcov_init (); 35431 ; 35432 return 0; 35433} 35434_ACEOF 35435if ac_fn_c_try_link "$LINENO"; then : 35436 ac_cv_lib_gcov___gcov_init=yes 35437else 35438 ac_cv_lib_gcov___gcov_init=no 35439fi 35440rm -f core conftest.err conftest.$ac_objext \ 35441 conftest$ac_exeext conftest.$ac_ext 35442LIBS=$ac_check_lib_save_LIBS 35443fi 35444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5 35445$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; } 35446if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then : 35447 cat >>confdefs.h <<_ACEOF 35448#define HAVE_LIBGCOV 1 35449_ACEOF 35450 35451 LIBS="-lgcov $LIBS" 35452 35453fi 35454 35455 case "$target_os" in 35456 darwin*) 35457 OSX_GCOV_LDFLAG="-Wl,-single_module" 35458 ;; 35459 *) 35460 OSX_GCOV_LDFLAG="" 35461 ;; 35462 esac 35463 35464 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS" 35465 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS" 35466 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS" 35467fi 35468 35469# 35470# Build library dependency list for libMagickCore 35471# 35472 35473if test "$build_modules" != 'no'; then 35474 MAGICK_DEP_LIBS="$LCMS_LIBS $FREETYPE_LIBS $LQR_LIBS $FFTW_LIBS $FONTCONFIG_LIBS $XEXT_LIBS $IPC_LIBS $X11_LIBS $XT_LIBS $LZMA_LIBS $BZLIB_LIBS $ZLIB_LIBS $LTDL_LIBS $GDI32_LIBS $MATH_LIBS $GOMP_LIBS $CL_LIBS $UMEM_LIBS $THREAD_LIBS" 35475else 35476 MAGICK_DEP_LIBS="$JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JP2_LIBS $JPEG_LIBS $GS_LIBS $LQR_LIBS $PNG_LIBS $AUTOTRACE_LIBS $DJVU_LIBS $FFTW_LIBS $FPX_LIBS $FONTCONFIG_LIBS $WEBP_LIBS $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $LZMA_LIBS $BZLIB_LIBS $OPENEXR_LIBS $PANGO_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $GOMP_LIBS $CL_LIBS $UMEM_LIBS $THREAD_LIBS" 35477fi 35478 35479 35480# 35481# Remove extraneous spaces from output variables (asthetic) 35482# 35483X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'` 35484X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'` 35485X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'` 35486X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'` 35487 35488CC=`echo $CC | sed -e 's/ */ /g'` 35489CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'` 35490CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'` 35491CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'` 35492DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'` 35493LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'` 35494TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'` 35495MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'` 35496#LIBS=`echo $LIBS | sed -e 's/ */ /g'` 35497 35498# Pass only user-provided LIBS as "global" libraries 35499LIBS=$USER_LIBS 35500 35501#AC_SUBST(CPPFLAGS) 35502 35503#AC_SUBST(LDFLAGS) 35504#AC_SUBST(X_PRE_LIBS) 35505#AC_SUBST(X_LIBS) 35506#AC_SUBST(X_EXTRA_LIBS) 35507 35508MAGICK_CFLAGS=$CFLAGS 35509MAGICK_CXXFLAGS="$CXXFLAGS" 35510MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'` 35511MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'` 35512MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS" 35513MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS" 35514 35515 35516 35517 35518 35519 35520 35521 35522# Set configured scripts to executable. 35523ac_config_commands="$ac_config_commands default" 35524 35525ac_config_commands="$ac_config_commands magick.sh.in" 35526 35527ac_config_commands="$ac_config_commands MagickCore-config.in" 35528 35529ac_config_commands="$ac_config_commands MagickWand-config.in" 35530 35531ac_config_commands="$ac_config_commands Magick++-config.in" 35532 35533ac_config_commands="$ac_config_commands PerlMagick/check.sh.in" 35534 35535 35536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 35537$as_echo "-------------------------------------------------------------" >&6; } 35538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5 35539$as_echo "Update ImageMagick configuration" >&6; } 35540cat >confcache <<\_ACEOF 35541# This file is a shell script that caches the results of configure 35542# tests run on this system so they can be shared between configure 35543# scripts and configure runs, see configure's option --config-cache. 35544# It is not useful on other systems. If it contains results you don't 35545# want to keep, you may remove or edit it. 35546# 35547# config.status only pays attention to the cache file if you give it 35548# the --recheck option to rerun configure. 35549# 35550# `ac_cv_env_foo' variables (set or unset) will be overridden when 35551# loading this file, other *unset* `ac_cv_foo' will be assigned the 35552# following values. 35553 35554_ACEOF 35555 35556# The following way of writing the cache mishandles newlines in values, 35557# but we know of no workaround that is simple, portable, and efficient. 35558# So, we kill variables containing newlines. 35559# Ultrix sh set writes to stderr and can't be redirected directly, 35560# and sets the high bit in the cache file unless we assign to the vars. 35561( 35562 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 35563 eval ac_val=\$$ac_var 35564 case $ac_val in #( 35565 *${as_nl}*) 35566 case $ac_var in #( 35567 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 35568$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 35569 esac 35570 case $ac_var in #( 35571 _ | IFS | as_nl) ;; #( 35572 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 35573 *) { eval $ac_var=; unset $ac_var;} ;; 35574 esac ;; 35575 esac 35576 done 35577 35578 (set) 2>&1 | 35579 case $as_nl`(ac_space=' '; set) 2>&1` in #( 35580 *${as_nl}ac_space=\ *) 35581 # `set' does not quote correctly, so add quotes: double-quote 35582 # substitution turns \\\\ into \\, and sed turns \\ into \. 35583 sed -n \ 35584 "s/'/'\\\\''/g; 35585 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 35586 ;; #( 35587 *) 35588 # `set' quotes correctly as required by POSIX, so do not add quotes. 35589 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 35590 ;; 35591 esac | 35592 sort 35593) | 35594 sed ' 35595 /^ac_cv_env_/b end 35596 t clear 35597 :clear 35598 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 35599 t end 35600 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 35601 :end' >>confcache 35602if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 35603 if test -w "$cache_file"; then 35604 if test "x$cache_file" != "x/dev/null"; then 35605 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 35606$as_echo "$as_me: updating cache $cache_file" >&6;} 35607 if test ! -f "$cache_file" || test -h "$cache_file"; then 35608 cat confcache >"$cache_file" 35609 else 35610 case $cache_file in #( 35611 */* | ?:*) 35612 mv -f confcache "$cache_file"$$ && 35613 mv -f "$cache_file"$$ "$cache_file" ;; #( 35614 *) 35615 mv -f confcache "$cache_file" ;; 35616 esac 35617 fi 35618 fi 35619 else 35620 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 35621$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 35622 fi 35623fi 35624rm -f confcache 35625 35626test "x$prefix" = xNONE && prefix=$ac_default_prefix 35627# Let make expand exec_prefix. 35628test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 35629 35630DEFS=-DHAVE_CONFIG_H 35631 35632ac_libobjs= 35633ac_ltlibobjs= 35634U= 35635for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 35636 # 1. Remove the extension, and $U if already installed. 35637 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 35638 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 35639 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 35640 # will be set to the directory where LIBOBJS objects are built. 35641 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 35642 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 35643done 35644LIBOBJS=$ac_libobjs 35645 35646LTLIBOBJS=$ac_ltlibobjs 35647 35648 35649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 35650$as_echo_n "checking that generated files are newer than configure... " >&6; } 35651 if test -n "$am_sleep_pid"; then 35652 # Hide warnings about reused PIDs. 35653 wait $am_sleep_pid 2>/dev/null 35654 fi 35655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 35656$as_echo "done" >&6; } 35657 if test -n "$EXEEXT"; then 35658 am__EXEEXT_TRUE= 35659 am__EXEEXT_FALSE='#' 35660else 35661 am__EXEEXT_TRUE='#' 35662 am__EXEEXT_FALSE= 35663fi 35664 35665if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 35666 as_fn_error $? "conditional \"AMDEP\" was never defined. 35667Usually this means the macro was only invoked conditionally." "$LINENO" 5 35668fi 35669if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 35670 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 35671Usually this means the macro was only invoked conditionally." "$LINENO" 5 35672fi 35673if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 35674 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 35675Usually this means the macro was only invoked conditionally." "$LINENO" 5 35676fi 35677if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 35678 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 35679Usually this means the macro was only invoked conditionally." "$LINENO" 5 35680fi 35681if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then 35682 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined. 35683Usually this means the macro was only invoked conditionally." "$LINENO" 5 35684fi 35685if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then 35686 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined. 35687Usually this means the macro was only invoked conditionally." "$LINENO" 5 35688fi 35689if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then 35690 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined. 35691Usually this means the macro was only invoked conditionally." "$LINENO" 5 35692fi 35693if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then 35694 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined. 35695Usually this means the macro was only invoked conditionally." "$LINENO" 5 35696fi 35697if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then 35698 as_fn_error $? "conditional \"USING_CL\" was never defined. 35699Usually this means the macro was only invoked conditionally." "$LINENO" 5 35700fi 35701if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then 35702 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined. 35703Usually this means the macro was only invoked conditionally." "$LINENO" 5 35704fi 35705if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then 35706 as_fn_error $? "conditional \"WITH_MODULES\" was never defined. 35707Usually this means the macro was only invoked conditionally." "$LINENO" 5 35708fi 35709if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 35710 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 35711Usually this means the macro was only invoked conditionally." "$LINENO" 5 35712fi 35713if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then 35714 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined. 35715Usually this means the macro was only invoked conditionally." "$LINENO" 5 35716fi 35717 35718if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 35719 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 35720Usually this means the macro was only invoked conditionally." "$LINENO" 5 35721fi 35722if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then 35723 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined. 35724Usually this means the macro was only invoked conditionally." "$LINENO" 5 35725fi 35726if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then 35727 as_fn_error $? "conditional \"HasUMEM\" was never defined. 35728Usually this means the macro was only invoked conditionally." "$LINENO" 5 35729fi 35730if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then 35731 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined. 35732Usually this means the macro was only invoked conditionally." "$LINENO" 5 35733fi 35734if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then 35735 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined. 35736Usually this means the macro was only invoked conditionally." "$LINENO" 5 35737fi 35738if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then 35739 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined. 35740Usually this means the macro was only invoked conditionally." "$LINENO" 5 35741fi 35742if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then 35743 as_fn_error $? "conditional \"WITH_LTDL\" was never defined. 35744Usually this means the macro was only invoked conditionally." "$LINENO" 5 35745fi 35746if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then 35747 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined. 35748Usually this means the macro was only invoked conditionally." "$LINENO" 5 35749fi 35750if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then 35751 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined. 35752Usually this means the macro was only invoked conditionally." "$LINENO" 5 35753fi 35754if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then 35755 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined. 35756Usually this means the macro was only invoked conditionally." "$LINENO" 5 35757fi 35758if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then 35759 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined. 35760Usually this means the macro was only invoked conditionally." "$LINENO" 5 35761fi 35762if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then 35763 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined. 35764Usually this means the macro was only invoked conditionally." "$LINENO" 5 35765fi 35766if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then 35767 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined. 35768Usually this means the macro was only invoked conditionally." "$LINENO" 5 35769fi 35770if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then 35771 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined. 35772Usually this means the macro was only invoked conditionally." "$LINENO" 5 35773fi 35774if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then 35775 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined. 35776Usually this means the macro was only invoked conditionally." "$LINENO" 5 35777fi 35778if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then 35779 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined. 35780Usually this means the macro was only invoked conditionally." "$LINENO" 5 35781fi 35782if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then 35783 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined. 35784Usually this means the macro was only invoked conditionally." "$LINENO" 5 35785fi 35786if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then 35787 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined. 35788Usually this means the macro was only invoked conditionally." "$LINENO" 5 35789fi 35790if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then 35791 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined. 35792Usually this means the macro was only invoked conditionally." "$LINENO" 5 35793fi 35794if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then 35795 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined. 35796Usually this means the macro was only invoked conditionally." "$LINENO" 5 35797fi 35798if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then 35799 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined. 35800Usually this means the macro was only invoked conditionally." "$LINENO" 5 35801fi 35802if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then 35803 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined. 35804Usually this means the macro was only invoked conditionally." "$LINENO" 5 35805fi 35806if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then 35807 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined. 35808Usually this means the macro was only invoked conditionally." "$LINENO" 5 35809fi 35810if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then 35811 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined. 35812Usually this means the macro was only invoked conditionally." "$LINENO" 5 35813fi 35814if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then 35815 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined. 35816Usually this means the macro was only invoked conditionally." "$LINENO" 5 35817fi 35818if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then 35819 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined. 35820Usually this means the macro was only invoked conditionally." "$LINENO" 5 35821fi 35822if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then 35823 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined. 35824Usually this means the macro was only invoked conditionally." "$LINENO" 5 35825fi 35826if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then 35827 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined. 35828Usually this means the macro was only invoked conditionally." "$LINENO" 5 35829fi 35830if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then 35831 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined. 35832Usually this means the macro was only invoked conditionally." "$LINENO" 5 35833fi 35834if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then 35835 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined. 35836Usually this means the macro was only invoked conditionally." "$LINENO" 5 35837fi 35838if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then 35839 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined. 35840Usually this means the macro was only invoked conditionally." "$LINENO" 5 35841fi 35842if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then 35843 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined. 35844Usually this means the macro was only invoked conditionally." "$LINENO" 5 35845fi 35846if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then 35847 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined. 35848Usually this means the macro was only invoked conditionally." "$LINENO" 5 35849fi 35850if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then 35851 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined. 35852Usually this means the macro was only invoked conditionally." "$LINENO" 5 35853fi 35854if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then 35855 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined. 35856Usually this means the macro was only invoked conditionally." "$LINENO" 5 35857fi 35858if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then 35859 as_fn_error $? "conditional \"WITH_PERL\" was never defined. 35860Usually this means the macro was only invoked conditionally." "$LINENO" 5 35861fi 35862if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then 35863 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined. 35864Usually this means the macro was only invoked conditionally." "$LINENO" 5 35865fi 35866if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then 35867 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined. 35868Usually this means the macro was only invoked conditionally." "$LINENO" 5 35869fi 35870 35871: "${CONFIG_STATUS=./config.status}" 35872ac_write_fail=0 35873ac_clean_files_save=$ac_clean_files 35874ac_clean_files="$ac_clean_files $CONFIG_STATUS" 35875{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 35876$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 35877as_write_fail=0 35878cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 35879#! $SHELL 35880# Generated by $as_me. 35881# Run this file to recreate the current configuration. 35882# Compiler output produced by configure, useful for debugging 35883# configure, is in config.log if it exists. 35884 35885debug=false 35886ac_cs_recheck=false 35887ac_cs_silent=false 35888 35889SHELL=\${CONFIG_SHELL-$SHELL} 35890export SHELL 35891_ASEOF 35892cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 35893## -------------------- ## 35894## M4sh Initialization. ## 35895## -------------------- ## 35896 35897# Be more Bourne compatible 35898DUALCASE=1; export DUALCASE # for MKS sh 35899if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 35900 emulate sh 35901 NULLCMD=: 35902 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 35903 # is contrary to our usage. Disable this feature. 35904 alias -g '${1+"$@"}'='"$@"' 35905 setopt NO_GLOB_SUBST 35906else 35907 case `(set -o) 2>/dev/null` in #( 35908 *posix*) : 35909 set -o posix ;; #( 35910 *) : 35911 ;; 35912esac 35913fi 35914 35915 35916as_nl=' 35917' 35918export as_nl 35919# Printing a long string crashes Solaris 7 /usr/bin/printf. 35920as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 35921as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 35922as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 35923# Prefer a ksh shell builtin over an external printf program on Solaris, 35924# but without wasting forks for bash or zsh. 35925if test -z "$BASH_VERSION$ZSH_VERSION" \ 35926 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 35927 as_echo='print -r --' 35928 as_echo_n='print -rn --' 35929elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 35930 as_echo='printf %s\n' 35931 as_echo_n='printf %s' 35932else 35933 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 35934 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 35935 as_echo_n='/usr/ucb/echo -n' 35936 else 35937 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 35938 as_echo_n_body='eval 35939 arg=$1; 35940 case $arg in #( 35941 *"$as_nl"*) 35942 expr "X$arg" : "X\\(.*\\)$as_nl"; 35943 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 35944 esac; 35945 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 35946 ' 35947 export as_echo_n_body 35948 as_echo_n='sh -c $as_echo_n_body as_echo' 35949 fi 35950 export as_echo_body 35951 as_echo='sh -c $as_echo_body as_echo' 35952fi 35953 35954# The user is always right. 35955if test "${PATH_SEPARATOR+set}" != set; then 35956 PATH_SEPARATOR=: 35957 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 35958 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 35959 PATH_SEPARATOR=';' 35960 } 35961fi 35962 35963 35964# IFS 35965# We need space, tab and new line, in precisely that order. Quoting is 35966# there to prevent editors from complaining about space-tab. 35967# (If _AS_PATH_WALK were called with IFS unset, it would disable word 35968# splitting by setting IFS to empty value.) 35969IFS=" "" $as_nl" 35970 35971# Find who we are. Look in the path if we contain no directory separator. 35972as_myself= 35973case $0 in #(( 35974 *[\\/]* ) as_myself=$0 ;; 35975 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35976for as_dir in $PATH 35977do 35978 IFS=$as_save_IFS 35979 test -z "$as_dir" && as_dir=. 35980 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 35981 done 35982IFS=$as_save_IFS 35983 35984 ;; 35985esac 35986# We did not find ourselves, most probably we were run as `sh COMMAND' 35987# in which case we are not to be found in the path. 35988if test "x$as_myself" = x; then 35989 as_myself=$0 35990fi 35991if test ! -f "$as_myself"; then 35992 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 35993 exit 1 35994fi 35995 35996# Unset variables that we do not need and which cause bugs (e.g. in 35997# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 35998# suppresses any "Segmentation fault" message there. '((' could 35999# trigger a bug in pdksh 5.2.14. 36000for as_var in BASH_ENV ENV MAIL MAILPATH 36001do eval test x\${$as_var+set} = xset \ 36002 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 36003done 36004PS1='$ ' 36005PS2='> ' 36006PS4='+ ' 36007 36008# NLS nuisances. 36009LC_ALL=C 36010export LC_ALL 36011LANGUAGE=C 36012export LANGUAGE 36013 36014# CDPATH. 36015(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 36016 36017 36018# as_fn_error STATUS ERROR [LINENO LOG_FD] 36019# ---------------------------------------- 36020# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 36021# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 36022# script with STATUS, using 1 if that was 0. 36023as_fn_error () 36024{ 36025 as_status=$1; test $as_status -eq 0 && as_status=1 36026 if test "$4"; then 36027 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 36028 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 36029 fi 36030 $as_echo "$as_me: error: $2" >&2 36031 as_fn_exit $as_status 36032} # as_fn_error 36033 36034 36035# as_fn_set_status STATUS 36036# ----------------------- 36037# Set $? to STATUS, without forking. 36038as_fn_set_status () 36039{ 36040 return $1 36041} # as_fn_set_status 36042 36043# as_fn_exit STATUS 36044# ----------------- 36045# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 36046as_fn_exit () 36047{ 36048 set +e 36049 as_fn_set_status $1 36050 exit $1 36051} # as_fn_exit 36052 36053# as_fn_unset VAR 36054# --------------- 36055# Portably unset VAR. 36056as_fn_unset () 36057{ 36058 { eval $1=; unset $1;} 36059} 36060as_unset=as_fn_unset 36061# as_fn_append VAR VALUE 36062# ---------------------- 36063# Append the text in VALUE to the end of the definition contained in VAR. Take 36064# advantage of any shell optimizations that allow amortized linear growth over 36065# repeated appends, instead of the typical quadratic growth present in naive 36066# implementations. 36067if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 36068 eval 'as_fn_append () 36069 { 36070 eval $1+=\$2 36071 }' 36072else 36073 as_fn_append () 36074 { 36075 eval $1=\$$1\$2 36076 } 36077fi # as_fn_append 36078 36079# as_fn_arith ARG... 36080# ------------------ 36081# Perform arithmetic evaluation on the ARGs, and store the result in the 36082# global $as_val. Take advantage of shells that can avoid forks. The arguments 36083# must be portable across $(()) and expr. 36084if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 36085 eval 'as_fn_arith () 36086 { 36087 as_val=$(( $* )) 36088 }' 36089else 36090 as_fn_arith () 36091 { 36092 as_val=`expr "$@" || test $? -eq 1` 36093 } 36094fi # as_fn_arith 36095 36096 36097if expr a : '\(a\)' >/dev/null 2>&1 && 36098 test "X`expr 00001 : '.*\(...\)'`" = X001; then 36099 as_expr=expr 36100else 36101 as_expr=false 36102fi 36103 36104if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 36105 as_basename=basename 36106else 36107 as_basename=false 36108fi 36109 36110if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 36111 as_dirname=dirname 36112else 36113 as_dirname=false 36114fi 36115 36116as_me=`$as_basename -- "$0" || 36117$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 36118 X"$0" : 'X\(//\)$' \| \ 36119 X"$0" : 'X\(/\)' \| . 2>/dev/null || 36120$as_echo X/"$0" | 36121 sed '/^.*\/\([^/][^/]*\)\/*$/{ 36122 s//\1/ 36123 q 36124 } 36125 /^X\/\(\/\/\)$/{ 36126 s//\1/ 36127 q 36128 } 36129 /^X\/\(\/\).*/{ 36130 s//\1/ 36131 q 36132 } 36133 s/.*/./; q'` 36134 36135# Avoid depending upon Character Ranges. 36136as_cr_letters='abcdefghijklmnopqrstuvwxyz' 36137as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 36138as_cr_Letters=$as_cr_letters$as_cr_LETTERS 36139as_cr_digits='0123456789' 36140as_cr_alnum=$as_cr_Letters$as_cr_digits 36141 36142ECHO_C= ECHO_N= ECHO_T= 36143case `echo -n x` in #((((( 36144-n*) 36145 case `echo 'xy\c'` in 36146 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 36147 xy) ECHO_C='\c';; 36148 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 36149 ECHO_T=' ';; 36150 esac;; 36151*) 36152 ECHO_N='-n';; 36153esac 36154 36155rm -f conf$$ conf$$.exe conf$$.file 36156if test -d conf$$.dir; then 36157 rm -f conf$$.dir/conf$$.file 36158else 36159 rm -f conf$$.dir 36160 mkdir conf$$.dir 2>/dev/null 36161fi 36162if (echo >conf$$.file) 2>/dev/null; then 36163 if ln -s conf$$.file conf$$ 2>/dev/null; then 36164 as_ln_s='ln -s' 36165 # ... but there are two gotchas: 36166 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 36167 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 36168 # In both cases, we have to default to `cp -pR'. 36169 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 36170 as_ln_s='cp -pR' 36171 elif ln conf$$.file conf$$ 2>/dev/null; then 36172 as_ln_s=ln 36173 else 36174 as_ln_s='cp -pR' 36175 fi 36176else 36177 as_ln_s='cp -pR' 36178fi 36179rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 36180rmdir conf$$.dir 2>/dev/null 36181 36182 36183# as_fn_mkdir_p 36184# ------------- 36185# Create "$as_dir" as a directory, including parents if necessary. 36186as_fn_mkdir_p () 36187{ 36188 36189 case $as_dir in #( 36190 -*) as_dir=./$as_dir;; 36191 esac 36192 test -d "$as_dir" || eval $as_mkdir_p || { 36193 as_dirs= 36194 while :; do 36195 case $as_dir in #( 36196 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 36197 *) as_qdir=$as_dir;; 36198 esac 36199 as_dirs="'$as_qdir' $as_dirs" 36200 as_dir=`$as_dirname -- "$as_dir" || 36201$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 36202 X"$as_dir" : 'X\(//\)[^/]' \| \ 36203 X"$as_dir" : 'X\(//\)$' \| \ 36204 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 36205$as_echo X"$as_dir" | 36206 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 36207 s//\1/ 36208 q 36209 } 36210 /^X\(\/\/\)[^/].*/{ 36211 s//\1/ 36212 q 36213 } 36214 /^X\(\/\/\)$/{ 36215 s//\1/ 36216 q 36217 } 36218 /^X\(\/\).*/{ 36219 s//\1/ 36220 q 36221 } 36222 s/.*/./; q'` 36223 test -d "$as_dir" && break 36224 done 36225 test -z "$as_dirs" || eval "mkdir $as_dirs" 36226 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 36227 36228 36229} # as_fn_mkdir_p 36230if mkdir -p . 2>/dev/null; then 36231 as_mkdir_p='mkdir -p "$as_dir"' 36232else 36233 test -d ./-p && rmdir ./-p 36234 as_mkdir_p=false 36235fi 36236 36237 36238# as_fn_executable_p FILE 36239# ----------------------- 36240# Test if FILE is an executable regular file. 36241as_fn_executable_p () 36242{ 36243 test -f "$1" && test -x "$1" 36244} # as_fn_executable_p 36245as_test_x='test -x' 36246as_executable_p=as_fn_executable_p 36247 36248# Sed expression to map a string onto a valid CPP name. 36249as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 36250 36251# Sed expression to map a string onto a valid variable name. 36252as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 36253 36254 36255exec 6>&1 36256## ----------------------------------- ## 36257## Main body of $CONFIG_STATUS script. ## 36258## ----------------------------------- ## 36259_ASEOF 36260test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 36261 36262cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 36263# Save the log message, to keep $0 and so on meaningful, and to 36264# report actual input values of CONFIG_FILES etc. instead of their 36265# values after options handling. 36266ac_log=" 36267This file was extended by ImageMagick $as_me 7.0.0-0, which was 36268generated by GNU Autoconf 2.69. Invocation command line was 36269 36270 CONFIG_FILES = $CONFIG_FILES 36271 CONFIG_HEADERS = $CONFIG_HEADERS 36272 CONFIG_LINKS = $CONFIG_LINKS 36273 CONFIG_COMMANDS = $CONFIG_COMMANDS 36274 $ $0 $@ 36275 36276on `(hostname || uname -n) 2>/dev/null | sed 1q` 36277" 36278 36279_ACEOF 36280 36281case $ac_config_files in *" 36282"*) set x $ac_config_files; shift; ac_config_files=$*;; 36283esac 36284 36285case $ac_config_headers in *" 36286"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 36287esac 36288 36289 36290cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 36291# Files that config.status was made for. 36292config_files="$ac_config_files" 36293config_headers="$ac_config_headers" 36294config_commands="$ac_config_commands" 36295 36296_ACEOF 36297 36298cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 36299ac_cs_usage="\ 36300\`$as_me' instantiates files and other configuration actions 36301from templates according to the current configuration. Unless the files 36302and actions are specified as TAGs, all are instantiated by default. 36303 36304Usage: $0 [OPTION]... [TAG]... 36305 36306 -h, --help print this help, then exit 36307 -V, --version print version number and configuration settings, then exit 36308 --config print configuration, then exit 36309 -q, --quiet, --silent 36310 do not print progress messages 36311 -d, --debug don't remove temporary files 36312 --recheck update $as_me by reconfiguring in the same conditions 36313 --file=FILE[:TEMPLATE] 36314 instantiate the configuration file FILE 36315 --header=FILE[:TEMPLATE] 36316 instantiate the configuration header FILE 36317 36318Configuration files: 36319$config_files 36320 36321Configuration headers: 36322$config_headers 36323 36324Configuration commands: 36325$config_commands 36326 36327Report bugs to <http://www.imagemagick.org>." 36328 36329_ACEOF 36330cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 36331ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 36332ac_cs_version="\\ 36333ImageMagick config.status 7.0.0-0 36334configured by $0, generated by GNU Autoconf 2.69, 36335 with options \\"\$ac_cs_config\\" 36336 36337Copyright (C) 2012 Free Software Foundation, Inc. 36338This config.status script is free software; the Free Software Foundation 36339gives unlimited permission to copy, distribute and modify it." 36340 36341ac_pwd='$ac_pwd' 36342srcdir='$srcdir' 36343INSTALL='$INSTALL' 36344MKDIR_P='$MKDIR_P' 36345AWK='$AWK' 36346test -n "\$AWK" || AWK=awk 36347_ACEOF 36348 36349cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 36350# The default lists apply if the user does not specify any file. 36351ac_need_defaults=: 36352while test $# != 0 36353do 36354 case $1 in 36355 --*=?*) 36356 ac_option=`expr "X$1" : 'X\([^=]*\)='` 36357 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 36358 ac_shift=: 36359 ;; 36360 --*=) 36361 ac_option=`expr "X$1" : 'X\([^=]*\)='` 36362 ac_optarg= 36363 ac_shift=: 36364 ;; 36365 *) 36366 ac_option=$1 36367 ac_optarg=$2 36368 ac_shift=shift 36369 ;; 36370 esac 36371 36372 case $ac_option in 36373 # Handling of the options. 36374 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 36375 ac_cs_recheck=: ;; 36376 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 36377 $as_echo "$ac_cs_version"; exit ;; 36378 --config | --confi | --conf | --con | --co | --c ) 36379 $as_echo "$ac_cs_config"; exit ;; 36380 --debug | --debu | --deb | --de | --d | -d ) 36381 debug=: ;; 36382 --file | --fil | --fi | --f ) 36383 $ac_shift 36384 case $ac_optarg in 36385 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 36386 '') as_fn_error $? "missing file argument" ;; 36387 esac 36388 as_fn_append CONFIG_FILES " '$ac_optarg'" 36389 ac_need_defaults=false;; 36390 --header | --heade | --head | --hea ) 36391 $ac_shift 36392 case $ac_optarg in 36393 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 36394 esac 36395 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 36396 ac_need_defaults=false;; 36397 --he | --h) 36398 # Conflict between --help and --header 36399 as_fn_error $? "ambiguous option: \`$1' 36400Try \`$0 --help' for more information.";; 36401 --help | --hel | -h ) 36402 $as_echo "$ac_cs_usage"; exit ;; 36403 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 36404 | -silent | --silent | --silen | --sile | --sil | --si | --s) 36405 ac_cs_silent=: ;; 36406 36407 # This is an error. 36408 -*) as_fn_error $? "unrecognized option: \`$1' 36409Try \`$0 --help' for more information." ;; 36410 36411 *) as_fn_append ac_config_targets " $1" 36412 ac_need_defaults=false ;; 36413 36414 esac 36415 shift 36416done 36417 36418ac_configure_extra_args= 36419 36420if $ac_cs_silent; then 36421 exec 6>/dev/null 36422 ac_configure_extra_args="$ac_configure_extra_args --silent" 36423fi 36424 36425_ACEOF 36426cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 36427if \$ac_cs_recheck; then 36428 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 36429 shift 36430 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 36431 CONFIG_SHELL='$SHELL' 36432 export CONFIG_SHELL 36433 exec "\$@" 36434fi 36435 36436_ACEOF 36437cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 36438exec 5>>config.log 36439{ 36440 echo 36441 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 36442## Running $as_me. ## 36443_ASBOX 36444 $as_echo "$ac_log" 36445} >&5 36446 36447_ACEOF 36448cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 36449# 36450# INIT-COMMANDS 36451# 36452PACKAGE="$PACKAGE" 36453AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 36454 36455 36456# The HP-UX ksh and POSIX shell print the target directory to stdout 36457# if CDPATH is set. 36458(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 36459 36460sed_quote_subst='$sed_quote_subst' 36461double_quote_subst='$double_quote_subst' 36462delay_variable_subst='$delay_variable_subst' 36463SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 36464Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 36465GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 36466EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 36467FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 36468SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 36469ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 36470LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 36471macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 36472macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 36473AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 36474DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 36475OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 36476enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 36477enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 36478pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 36479enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 36480PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 36481host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 36482host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 36483host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 36484build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 36485build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 36486build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 36487NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 36488LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 36489max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 36490ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 36491exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 36492lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 36493lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 36494lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 36495lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 36496lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 36497reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 36498reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 36499deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 36500file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 36501file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 36502want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 36503sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 36504AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 36505AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 36506archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 36507STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 36508RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 36509old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 36510old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 36511old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 36512lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 36513CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 36514CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 36515compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 36516GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 36517lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 36518lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 36519lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 36520lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' 36521nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 36522lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 36523objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 36524MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 36525lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 36526lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 36527lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 36528lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 36529lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 36530need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 36531MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 36532DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 36533NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 36534LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 36535OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 36536OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 36537libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 36538shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 36539extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 36540archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 36541enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 36542export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 36543whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 36544compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 36545old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 36546old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 36547archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 36548archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 36549module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 36550module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 36551with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 36552allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 36553no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 36554hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 36555hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 36556hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 36557hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 36558hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 36559hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 36560hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 36561inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 36562link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 36563always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 36564export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 36565exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 36566include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 36567prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 36568postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 36569file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 36570variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 36571need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 36572need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 36573version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 36574runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 36575shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 36576shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 36577libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 36578library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 36579soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 36580install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 36581postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 36582postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 36583finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 36584finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 36585hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 36586sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 36587sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 36588hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 36589enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 36590enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 36591enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 36592old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 36593striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 36594compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 36595predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 36596postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 36597predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 36598postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 36599compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 36600LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 36601reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 36602reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 36603old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 36604compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 36605GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 36606lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 36607lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 36608lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 36609lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 36610lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 36611archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 36612enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 36613export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 36614whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 36615compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 36616old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 36617old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 36618archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 36619archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 36620module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 36621module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 36622with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 36623allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 36624no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 36625hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 36626hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 36627hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 36628hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 36629hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 36630hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 36631hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 36632inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 36633link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 36634always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 36635export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 36636exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 36637include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 36638prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 36639postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 36640file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 36641hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 36642compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 36643predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 36644postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 36645predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 36646postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 36647compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 36648 36649LTCC='$LTCC' 36650LTCFLAGS='$LTCFLAGS' 36651compiler='$compiler_DEFAULT' 36652 36653# A function that is used when there is no print builtin or printf. 36654func_fallback_echo () 36655{ 36656 eval 'cat <<_LTECHO_EOF 36657\$1 36658_LTECHO_EOF' 36659} 36660 36661# Quote evaled strings. 36662for var in SED \ 36663GREP \ 36664EGREP \ 36665FGREP \ 36666SHELL \ 36667ECHO \ 36668LD \ 36669AS \ 36670DLLTOOL \ 36671OBJDUMP \ 36672PATH_SEPARATOR \ 36673NM \ 36674LN_S \ 36675lt_SP2NL \ 36676lt_NL2SP \ 36677reload_flag \ 36678deplibs_check_method \ 36679file_magic_cmd \ 36680file_magic_glob \ 36681want_nocaseglob \ 36682sharedlib_from_linklib_cmd \ 36683AR \ 36684AR_FLAGS \ 36685archiver_list_spec \ 36686STRIP \ 36687RANLIB \ 36688CC \ 36689CFLAGS \ 36690compiler \ 36691lt_cv_sys_global_symbol_pipe \ 36692lt_cv_sys_global_symbol_to_cdecl \ 36693lt_cv_sys_global_symbol_to_c_name_address \ 36694lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 36695nm_file_list_spec \ 36696lt_prog_compiler_no_builtin_flag \ 36697lt_prog_compiler_pic \ 36698lt_prog_compiler_wl \ 36699lt_prog_compiler_static \ 36700lt_cv_prog_compiler_c_o \ 36701need_locks \ 36702MANIFEST_TOOL \ 36703DSYMUTIL \ 36704NMEDIT \ 36705LIPO \ 36706OTOOL \ 36707OTOOL64 \ 36708shrext_cmds \ 36709export_dynamic_flag_spec \ 36710whole_archive_flag_spec \ 36711compiler_needs_object \ 36712with_gnu_ld \ 36713allow_undefined_flag \ 36714no_undefined_flag \ 36715hardcode_libdir_flag_spec \ 36716hardcode_libdir_separator \ 36717exclude_expsyms \ 36718include_expsyms \ 36719file_list_spec \ 36720variables_saved_for_relink \ 36721libname_spec \ 36722library_names_spec \ 36723soname_spec \ 36724install_override_mode \ 36725finish_eval \ 36726old_striplib \ 36727striplib \ 36728compiler_lib_search_dirs \ 36729predep_objects \ 36730postdep_objects \ 36731predeps \ 36732postdeps \ 36733compiler_lib_search_path \ 36734LD_CXX \ 36735reload_flag_CXX \ 36736compiler_CXX \ 36737lt_prog_compiler_no_builtin_flag_CXX \ 36738lt_prog_compiler_pic_CXX \ 36739lt_prog_compiler_wl_CXX \ 36740lt_prog_compiler_static_CXX \ 36741lt_cv_prog_compiler_c_o_CXX \ 36742export_dynamic_flag_spec_CXX \ 36743whole_archive_flag_spec_CXX \ 36744compiler_needs_object_CXX \ 36745with_gnu_ld_CXX \ 36746allow_undefined_flag_CXX \ 36747no_undefined_flag_CXX \ 36748hardcode_libdir_flag_spec_CXX \ 36749hardcode_libdir_separator_CXX \ 36750exclude_expsyms_CXX \ 36751include_expsyms_CXX \ 36752file_list_spec_CXX \ 36753compiler_lib_search_dirs_CXX \ 36754predep_objects_CXX \ 36755postdep_objects_CXX \ 36756predeps_CXX \ 36757postdeps_CXX \ 36758compiler_lib_search_path_CXX; do 36759 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 36760 *[\\\\\\\`\\"\\\$]*) 36761 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 36762 ;; 36763 *) 36764 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 36765 ;; 36766 esac 36767done 36768 36769# Double-quote double-evaled strings. 36770for var in reload_cmds \ 36771old_postinstall_cmds \ 36772old_postuninstall_cmds \ 36773old_archive_cmds \ 36774extract_expsyms_cmds \ 36775old_archive_from_new_cmds \ 36776old_archive_from_expsyms_cmds \ 36777archive_cmds \ 36778archive_expsym_cmds \ 36779module_cmds \ 36780module_expsym_cmds \ 36781export_symbols_cmds \ 36782prelink_cmds \ 36783postlink_cmds \ 36784postinstall_cmds \ 36785postuninstall_cmds \ 36786finish_cmds \ 36787sys_lib_search_path_spec \ 36788sys_lib_dlsearch_path_spec \ 36789reload_cmds_CXX \ 36790old_archive_cmds_CXX \ 36791old_archive_from_new_cmds_CXX \ 36792old_archive_from_expsyms_cmds_CXX \ 36793archive_cmds_CXX \ 36794archive_expsym_cmds_CXX \ 36795module_cmds_CXX \ 36796module_expsym_cmds_CXX \ 36797export_symbols_cmds_CXX \ 36798prelink_cmds_CXX \ 36799postlink_cmds_CXX; do 36800 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 36801 *[\\\\\\\`\\"\\\$]*) 36802 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 36803 ;; 36804 *) 36805 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 36806 ;; 36807 esac 36808done 36809 36810ac_aux_dir='$ac_aux_dir' 36811xsi_shell='$xsi_shell' 36812lt_shell_append='$lt_shell_append' 36813 36814# See if we are running on zsh, and set the options which allow our 36815# commands through without removal of \ escapes INIT. 36816if test -n "\${ZSH_VERSION+set}" ; then 36817 setopt NO_GLOB_SUBST 36818fi 36819 36820 36821 PACKAGE='$PACKAGE' 36822 VERSION='$VERSION' 36823 TIMESTAMP='$TIMESTAMP' 36824 RM='$RM' 36825 ofile='$ofile' 36826 36827 36828 36829 36830 36831 36832_ACEOF 36833 36834cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 36835 36836# Handling of arguments. 36837for ac_config_target in $ac_config_targets 36838do 36839 case $ac_config_target in 36840 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;; 36841 "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;; 36842 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;; 36843 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;; 36844 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;; 36845 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;; 36846 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;; 36847 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;; 36848 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;; 36849 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;; 36850 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;; 36851 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;; 36852 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;; 36853 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;; 36854 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;; 36855 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;; 36856 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;; 36857 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;; 36858 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;; 36859 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;; 36860 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 36861 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;; 36862 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;; 36863 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;; 36864 "PerlMagick/quantum/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/Makefile.PL" ;; 36865 "PerlMagick/quantum/quantum.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.pm" ;; 36866 "PerlMagick/quantum/quantum.xs") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.xs" ;; 36867 "PerlMagick/quantum/typemap") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/typemap" ;; 36868 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;; 36869 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;; 36870 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;; 36871 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;; 36872 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;; 36873 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;; 36874 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;; 36875 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;; 36876 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;; 36877 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;; 36878 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;; 36879 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;; 36880 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;; 36881 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;; 36882 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;; 36883 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 36884 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 36885 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 36886 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;; 36887 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;; 36888 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;; 36889 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;; 36890 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;; 36891 36892 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 36893 esac 36894done 36895 36896 36897# If the user did not use the arguments to specify the items to instantiate, 36898# then the envvar interface is used. Set only those that are not. 36899# We use the long form for the default assignment because of an extremely 36900# bizarre bug on SunOS 4.1.3. 36901if $ac_need_defaults; then 36902 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 36903 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 36904 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 36905fi 36906 36907# Have a temporary directory for convenience. Make it in the build tree 36908# simply because there is no reason against having it here, and in addition, 36909# creating and moving files from /tmp can sometimes cause problems. 36910# Hook for its removal unless debugging. 36911# Note that there is a small window in which the directory will not be cleaned: 36912# after its creation but before its name has been assigned to `$tmp'. 36913$debug || 36914{ 36915 tmp= ac_tmp= 36916 trap 'exit_status=$? 36917 : "${ac_tmp:=$tmp}" 36918 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 36919' 0 36920 trap 'as_fn_exit 1' 1 2 13 15 36921} 36922# Create a (secure) tmp directory for tmp files. 36923 36924{ 36925 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 36926 test -d "$tmp" 36927} || 36928{ 36929 tmp=./conf$$-$RANDOM 36930 (umask 077 && mkdir "$tmp") 36931} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 36932ac_tmp=$tmp 36933 36934# Set up the scripts for CONFIG_FILES section. 36935# No need to generate them if there are no CONFIG_FILES. 36936# This happens for instance with `./config.status config.h'. 36937if test -n "$CONFIG_FILES"; then 36938 36939 36940ac_cr=`echo X | tr X '\015'` 36941# On cygwin, bash can eat \r inside `` if the user requested igncr. 36942# But we know of no other shell where ac_cr would be empty at this 36943# point, so we can use a bashism as a fallback. 36944if test "x$ac_cr" = x; then 36945 eval ac_cr=\$\'\\r\' 36946fi 36947ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 36948if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 36949 ac_cs_awk_cr='\\r' 36950else 36951 ac_cs_awk_cr=$ac_cr 36952fi 36953 36954echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 36955_ACEOF 36956 36957 36958{ 36959 echo "cat >conf$$subs.awk <<_ACEOF" && 36960 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 36961 echo "_ACEOF" 36962} >conf$$subs.sh || 36963 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 36964ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 36965ac_delim='%!_!# ' 36966for ac_last_try in false false false false false :; do 36967 . ./conf$$subs.sh || 36968 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 36969 36970 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 36971 if test $ac_delim_n = $ac_delim_num; then 36972 break 36973 elif $ac_last_try; then 36974 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 36975 else 36976 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 36977 fi 36978done 36979rm -f conf$$subs.sh 36980 36981cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 36982cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 36983_ACEOF 36984sed -n ' 36985h 36986s/^/S["/; s/!.*/"]=/ 36987p 36988g 36989s/^[^!]*!// 36990:repl 36991t repl 36992s/'"$ac_delim"'$// 36993t delim 36994:nl 36995h 36996s/\(.\{148\}\)..*/\1/ 36997t more1 36998s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 36999p 37000n 37001b repl 37002:more1 37003s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 37004p 37005g 37006s/.\{148\}// 37007t nl 37008:delim 37009h 37010s/\(.\{148\}\)..*/\1/ 37011t more2 37012s/["\\]/\\&/g; s/^/"/; s/$/"/ 37013p 37014b 37015:more2 37016s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 37017p 37018g 37019s/.\{148\}// 37020t delim 37021' <conf$$subs.awk | sed ' 37022/^[^""]/{ 37023 N 37024 s/\n// 37025} 37026' >>$CONFIG_STATUS || ac_write_fail=1 37027rm -f conf$$subs.awk 37028cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 37029_ACAWK 37030cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 37031 for (key in S) S_is_set[key] = 1 37032 FS = "" 37033 37034} 37035{ 37036 line = $ 0 37037 nfields = split(line, field, "@") 37038 substed = 0 37039 len = length(field[1]) 37040 for (i = 2; i < nfields; i++) { 37041 key = field[i] 37042 keylen = length(key) 37043 if (S_is_set[key]) { 37044 value = S[key] 37045 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 37046 len += length(value) + length(field[++i]) 37047 substed = 1 37048 } else 37049 len += 1 + keylen 37050 } 37051 37052 print line 37053} 37054 37055_ACAWK 37056_ACEOF 37057cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 37058if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 37059 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 37060else 37061 cat 37062fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 37063 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 37064_ACEOF 37065 37066# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 37067# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 37068# trailing colons and then remove the whole line if VPATH becomes empty 37069# (actually we leave an empty line to preserve line numbers). 37070if test "x$srcdir" = x.; then 37071 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 37072h 37073s/// 37074s/^/:/ 37075s/[ ]*$/:/ 37076s/:\$(srcdir):/:/g 37077s/:\${srcdir}:/:/g 37078s/:@srcdir@:/:/g 37079s/^:*// 37080s/:*$// 37081x 37082s/\(=[ ]*\).*/\1/ 37083G 37084s/\n// 37085s/^[^=]*=[ ]*$// 37086}' 37087fi 37088 37089cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 37090fi # test -n "$CONFIG_FILES" 37091 37092# Set up the scripts for CONFIG_HEADERS section. 37093# No need to generate them if there are no CONFIG_HEADERS. 37094# This happens for instance with `./config.status Makefile'. 37095if test -n "$CONFIG_HEADERS"; then 37096cat >"$ac_tmp/defines.awk" <<\_ACAWK || 37097BEGIN { 37098_ACEOF 37099 37100# Transform confdefs.h into an awk script `defines.awk', embedded as 37101# here-document in config.status, that substitutes the proper values into 37102# config.h.in to produce config.h. 37103 37104# Create a delimiter string that does not exist in confdefs.h, to ease 37105# handling of long lines. 37106ac_delim='%!_!# ' 37107for ac_last_try in false false :; do 37108 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 37109 if test -z "$ac_tt"; then 37110 break 37111 elif $ac_last_try; then 37112 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 37113 else 37114 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 37115 fi 37116done 37117 37118# For the awk script, D is an array of macro values keyed by name, 37119# likewise P contains macro parameters if any. Preserve backslash 37120# newline sequences. 37121 37122ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 37123sed -n ' 37124s/.\{148\}/&'"$ac_delim"'/g 37125t rset 37126:rset 37127s/^[ ]*#[ ]*define[ ][ ]*/ / 37128t def 37129d 37130:def 37131s/\\$// 37132t bsnl 37133s/["\\]/\\&/g 37134s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 37135D["\1"]=" \3"/p 37136s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 37137d 37138:bsnl 37139s/["\\]/\\&/g 37140s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 37141D["\1"]=" \3\\\\\\n"\\/p 37142t cont 37143s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 37144t cont 37145d 37146:cont 37147n 37148s/.\{148\}/&'"$ac_delim"'/g 37149t clear 37150:clear 37151s/\\$// 37152t bsnlc 37153s/["\\]/\\&/g; s/^/"/; s/$/"/p 37154d 37155:bsnlc 37156s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 37157b cont 37158' <confdefs.h | sed ' 37159s/'"$ac_delim"'/"\\\ 37160"/g' >>$CONFIG_STATUS || ac_write_fail=1 37161 37162cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 37163 for (key in D) D_is_set[key] = 1 37164 FS = "" 37165} 37166/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 37167 line = \$ 0 37168 split(line, arg, " ") 37169 if (arg[1] == "#") { 37170 defundef = arg[2] 37171 mac1 = arg[3] 37172 } else { 37173 defundef = substr(arg[1], 2) 37174 mac1 = arg[2] 37175 } 37176 split(mac1, mac2, "(") #) 37177 macro = mac2[1] 37178 prefix = substr(line, 1, index(line, defundef) - 1) 37179 if (D_is_set[macro]) { 37180 # Preserve the white space surrounding the "#". 37181 print prefix "define", macro P[macro] D[macro] 37182 next 37183 } else { 37184 # Replace #undef with comments. This is necessary, for example, 37185 # in the case of _POSIX_SOURCE, which is predefined and required 37186 # on some systems where configure will not decide to define it. 37187 if (defundef == "undef") { 37188 print "/*", prefix defundef, macro, "*/" 37189 next 37190 } 37191 } 37192} 37193{ print } 37194_ACAWK 37195_ACEOF 37196cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 37197 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 37198fi # test -n "$CONFIG_HEADERS" 37199 37200 37201eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 37202shift 37203for ac_tag 37204do 37205 case $ac_tag in 37206 :[FHLC]) ac_mode=$ac_tag; continue;; 37207 esac 37208 case $ac_mode$ac_tag in 37209 :[FHL]*:*);; 37210 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 37211 :[FH]-) ac_tag=-:-;; 37212 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 37213 esac 37214 ac_save_IFS=$IFS 37215 IFS=: 37216 set x $ac_tag 37217 IFS=$ac_save_IFS 37218 shift 37219 ac_file=$1 37220 shift 37221 37222 case $ac_mode in 37223 :L) ac_source=$1;; 37224 :[FH]) 37225 ac_file_inputs= 37226 for ac_f 37227 do 37228 case $ac_f in 37229 -) ac_f="$ac_tmp/stdin";; 37230 *) # Look for the file first in the build tree, then in the source tree 37231 # (if the path is not absolute). The absolute path cannot be DOS-style, 37232 # because $ac_f cannot contain `:'. 37233 test -f "$ac_f" || 37234 case $ac_f in 37235 [\\/$]*) false;; 37236 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 37237 esac || 37238 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 37239 esac 37240 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 37241 as_fn_append ac_file_inputs " '$ac_f'" 37242 done 37243 37244 # Let's still pretend it is `configure' which instantiates (i.e., don't 37245 # use $as_me), people would be surprised to read: 37246 # /* config.h. Generated by config.status. */ 37247 configure_input='Generated from '` 37248 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 37249 `' by configure.' 37250 if test x"$ac_file" != x-; then 37251 configure_input="$ac_file. $configure_input" 37252 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 37253$as_echo "$as_me: creating $ac_file" >&6;} 37254 fi 37255 # Neutralize special characters interpreted by sed in replacement strings. 37256 case $configure_input in #( 37257 *\&* | *\|* | *\\* ) 37258 ac_sed_conf_input=`$as_echo "$configure_input" | 37259 sed 's/[\\\\&|]/\\\\&/g'`;; #( 37260 *) ac_sed_conf_input=$configure_input;; 37261 esac 37262 37263 case $ac_tag in 37264 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 37265 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 37266 esac 37267 ;; 37268 esac 37269 37270 ac_dir=`$as_dirname -- "$ac_file" || 37271$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 37272 X"$ac_file" : 'X\(//\)[^/]' \| \ 37273 X"$ac_file" : 'X\(//\)$' \| \ 37274 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 37275$as_echo X"$ac_file" | 37276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 37277 s//\1/ 37278 q 37279 } 37280 /^X\(\/\/\)[^/].*/{ 37281 s//\1/ 37282 q 37283 } 37284 /^X\(\/\/\)$/{ 37285 s//\1/ 37286 q 37287 } 37288 /^X\(\/\).*/{ 37289 s//\1/ 37290 q 37291 } 37292 s/.*/./; q'` 37293 as_dir="$ac_dir"; as_fn_mkdir_p 37294 ac_builddir=. 37295 37296case "$ac_dir" in 37297.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 37298*) 37299 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 37300 # A ".." for each directory in $ac_dir_suffix. 37301 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 37302 case $ac_top_builddir_sub in 37303 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 37304 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 37305 esac ;; 37306esac 37307ac_abs_top_builddir=$ac_pwd 37308ac_abs_builddir=$ac_pwd$ac_dir_suffix 37309# for backward compatibility: 37310ac_top_builddir=$ac_top_build_prefix 37311 37312case $srcdir in 37313 .) # We are building in place. 37314 ac_srcdir=. 37315 ac_top_srcdir=$ac_top_builddir_sub 37316 ac_abs_top_srcdir=$ac_pwd ;; 37317 [\\/]* | ?:[\\/]* ) # Absolute name. 37318 ac_srcdir=$srcdir$ac_dir_suffix; 37319 ac_top_srcdir=$srcdir 37320 ac_abs_top_srcdir=$srcdir ;; 37321 *) # Relative name. 37322 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 37323 ac_top_srcdir=$ac_top_build_prefix$srcdir 37324 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 37325esac 37326ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 37327 37328 37329 case $ac_mode in 37330 :F) 37331 # 37332 # CONFIG_FILE 37333 # 37334 37335 case $INSTALL in 37336 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 37337 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 37338 esac 37339 ac_MKDIR_P=$MKDIR_P 37340 case $MKDIR_P in 37341 [\\/$]* | ?:[\\/]* ) ;; 37342 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 37343 esac 37344_ACEOF 37345 37346cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 37347# If the template does not know about datarootdir, expand it. 37348# FIXME: This hack should be removed a few years after 2.60. 37349ac_datarootdir_hack=; ac_datarootdir_seen= 37350ac_sed_dataroot=' 37351/datarootdir/ { 37352 p 37353 q 37354} 37355/@datadir@/p 37356/@docdir@/p 37357/@infodir@/p 37358/@localedir@/p 37359/@mandir@/p' 37360case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 37361*datarootdir*) ac_datarootdir_seen=yes;; 37362*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 37363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 37364$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 37365_ACEOF 37366cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 37367 ac_datarootdir_hack=' 37368 s&@datadir@&$datadir&g 37369 s&@docdir@&$docdir&g 37370 s&@infodir@&$infodir&g 37371 s&@localedir@&$localedir&g 37372 s&@mandir@&$mandir&g 37373 s&\\\${datarootdir}&$datarootdir&g' ;; 37374esac 37375_ACEOF 37376 37377# Neutralize VPATH when `$srcdir' = `.'. 37378# Shell code in configure.ac might set extrasub. 37379# FIXME: do we really want to maintain this feature? 37380cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 37381ac_sed_extra="$ac_vpsub 37382$extrasub 37383_ACEOF 37384cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 37385:t 37386/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 37387s|@configure_input@|$ac_sed_conf_input|;t t 37388s&@top_builddir@&$ac_top_builddir_sub&;t t 37389s&@top_build_prefix@&$ac_top_build_prefix&;t t 37390s&@srcdir@&$ac_srcdir&;t t 37391s&@abs_srcdir@&$ac_abs_srcdir&;t t 37392s&@top_srcdir@&$ac_top_srcdir&;t t 37393s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 37394s&@builddir@&$ac_builddir&;t t 37395s&@abs_builddir@&$ac_abs_builddir&;t t 37396s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 37397s&@INSTALL@&$ac_INSTALL&;t t 37398s&@MKDIR_P@&$ac_MKDIR_P&;t t 37399$ac_datarootdir_hack 37400" 37401eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 37402 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 37403 37404test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 37405 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 37406 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 37407 "$ac_tmp/out"`; test -z "$ac_out"; } && 37408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 37409which seems to be undefined. Please make sure it is defined" >&5 37410$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 37411which seems to be undefined. Please make sure it is defined" >&2;} 37412 37413 rm -f "$ac_tmp/stdin" 37414 case $ac_file in 37415 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 37416 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 37417 esac \ 37418 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 37419 ;; 37420 :H) 37421 # 37422 # CONFIG_HEADER 37423 # 37424 if test x"$ac_file" != x-; then 37425 { 37426 $as_echo "/* $configure_input */" \ 37427 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 37428 } >"$ac_tmp/config.h" \ 37429 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 37430 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 37431 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 37432$as_echo "$as_me: $ac_file is unchanged" >&6;} 37433 else 37434 rm -f "$ac_file" 37435 mv "$ac_tmp/config.h" "$ac_file" \ 37436 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 37437 fi 37438 else 37439 $as_echo "/* $configure_input */" \ 37440 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 37441 || as_fn_error $? "could not create -" "$LINENO" 5 37442 fi 37443# Compute "$ac_file"'s index in $config_headers. 37444_am_arg="$ac_file" 37445_am_stamp_count=1 37446for _am_header in $config_headers :; do 37447 case $_am_header in 37448 $_am_arg | $_am_arg:* ) 37449 break ;; 37450 * ) 37451 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 37452 esac 37453done 37454echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 37455$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 37456 X"$_am_arg" : 'X\(//\)[^/]' \| \ 37457 X"$_am_arg" : 'X\(//\)$' \| \ 37458 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 37459$as_echo X"$_am_arg" | 37460 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 37461 s//\1/ 37462 q 37463 } 37464 /^X\(\/\/\)[^/].*/{ 37465 s//\1/ 37466 q 37467 } 37468 /^X\(\/\/\)$/{ 37469 s//\1/ 37470 q 37471 } 37472 /^X\(\/\).*/{ 37473 s//\1/ 37474 q 37475 } 37476 s/.*/./; q'`/stamp-h$_am_stamp_count 37477 ;; 37478 37479 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 37480$as_echo "$as_me: executing $ac_file commands" >&6;} 37481 ;; 37482 esac 37483 37484 37485 case $ac_file$ac_mode in 37486 "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h` 37487ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"` 37488ac_prefix_conf_PKG=`echo MagickCore` 37489ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"` 37490ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"` 37491ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'` 37492if test ".$ac_prefix_conf_INP" = "."; then 37493 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue 37494 case "$ac_file" in 37495 *.h) ac_prefix_conf_INP=$ac_file ;; 37496 *) 37497 esac 37498 test ".$ac_prefix_conf_INP" != "." && break 37499 done 37500fi 37501if test ".$ac_prefix_conf_INP" = "."; then 37502 case "$ac_prefix_conf_OUT" in 37503 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"` 37504 ;; 37505 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"` 37506 ;; 37507 *) ac_prefix_conf_INP=config.h 37508 ;; 37509 esac 37510fi 37511if test -z "$ac_prefix_conf_PKG" ; then 37512 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5 37513else 37514 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then 37515 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP" 37516 fi fi 37517 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5 37518$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;} 37519 if test -f $ac_prefix_conf_INP ; then 37520 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix 37521 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix 37522 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix 37523 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix 37524 $as_echo "#endif/" >> conftest.prefix 37525 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix 37526 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix 37527 $as_echo "#endif/" >> conftest.prefix 37528 # now executing _script on _DEF input to create _OUT output file 37529 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h 37530 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h 37531 echo ' ' >>$tmp/pconfig.h 37532 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h 37533 37534 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h 37535 echo ' ' >>$tmp/pconfig.h 37536 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h 37537 echo "#endif" >>$tmp/pconfig.h 37538 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then 37539 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5 37540$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;} 37541 else 37542 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" || 37543$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 37544 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \ 37545 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \ 37546 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null || 37547$as_echo X"$ac_prefix_conf_OUT" | 37548 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 37549 s//\1/ 37550 q 37551 } 37552 /^X\(\/\/\)[^/].*/{ 37553 s//\1/ 37554 q 37555 } 37556 /^X\(\/\/\)$/{ 37557 s//\1/ 37558 q 37559 } 37560 /^X\(\/\).*/{ 37561 s//\1/ 37562 q 37563 } 37564 s/.*/./; q'` 37565 as_dir="$ac_dir"; as_fn_mkdir_p 37566 rm -f "$ac_prefix_conf_OUT" 37567 mv $tmp/pconfig.h "$ac_prefix_conf_OUT" 37568 fi 37569 cp conftest.prefix _configs.sed 37570 else 37571 as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5 37572 fi 37573 rm -f conftest.* 37574fi 37575 ;; 37576 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 37577 # Older Autoconf quotes --file arguments for eval, but not when files 37578 # are listed without --file. Let's play safe and only enable the eval 37579 # if we detect the quoting. 37580 case $CONFIG_FILES in 37581 *\'*) eval set x "$CONFIG_FILES" ;; 37582 *) set x $CONFIG_FILES ;; 37583 esac 37584 shift 37585 for mf 37586 do 37587 # Strip MF so we end up with the name of the file. 37588 mf=`echo "$mf" | sed -e 's/:.*$//'` 37589 # Check whether this is an Automake generated Makefile or not. 37590 # We used to match only the files named 'Makefile.in', but 37591 # some people rename them; so instead we look at the file content. 37592 # Grep'ing the first line is not enough: some people post-process 37593 # each Makefile.in and add a new line on top of each file to say so. 37594 # Grep'ing the whole file is not good either: AIX grep has a line 37595 # limit of 2048, but all sed's we know have understand at least 4000. 37596 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 37597 dirpart=`$as_dirname -- "$mf" || 37598$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 37599 X"$mf" : 'X\(//\)[^/]' \| \ 37600 X"$mf" : 'X\(//\)$' \| \ 37601 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 37602$as_echo X"$mf" | 37603 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 37604 s//\1/ 37605 q 37606 } 37607 /^X\(\/\/\)[^/].*/{ 37608 s//\1/ 37609 q 37610 } 37611 /^X\(\/\/\)$/{ 37612 s//\1/ 37613 q 37614 } 37615 /^X\(\/\).*/{ 37616 s//\1/ 37617 q 37618 } 37619 s/.*/./; q'` 37620 else 37621 continue 37622 fi 37623 # Extract the definition of DEPDIR, am__include, and am__quote 37624 # from the Makefile without running 'make'. 37625 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 37626 test -z "$DEPDIR" && continue 37627 am__include=`sed -n 's/^am__include = //p' < "$mf"` 37628 test -z "am__include" && continue 37629 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 37630 # Find all dependency output files, they are included files with 37631 # $(DEPDIR) in their names. We invoke sed twice because it is the 37632 # simplest approach to changing $(DEPDIR) to its actual value in the 37633 # expansion. 37634 for file in `sed -n " 37635 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 37636 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 37637 # Make sure the directory exists. 37638 test -f "$dirpart/$file" && continue 37639 fdir=`$as_dirname -- "$file" || 37640$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 37641 X"$file" : 'X\(//\)[^/]' \| \ 37642 X"$file" : 'X\(//\)$' \| \ 37643 X"$file" : 'X\(/\)' \| . 2>/dev/null || 37644$as_echo X"$file" | 37645 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 37646 s//\1/ 37647 q 37648 } 37649 /^X\(\/\/\)[^/].*/{ 37650 s//\1/ 37651 q 37652 } 37653 /^X\(\/\/\)$/{ 37654 s//\1/ 37655 q 37656 } 37657 /^X\(\/\).*/{ 37658 s//\1/ 37659 q 37660 } 37661 s/.*/./; q'` 37662 as_dir=$dirpart/$fdir; as_fn_mkdir_p 37663 # echo "creating $dirpart/$file" 37664 echo '# dummy' > "$dirpart/$file" 37665 done 37666 done 37667} 37668 ;; 37669 "libtool":C) 37670 37671 # See if we are running on zsh, and set the options which allow our 37672 # commands through without removal of \ escapes. 37673 if test -n "${ZSH_VERSION+set}" ; then 37674 setopt NO_GLOB_SUBST 37675 fi 37676 37677 cfgfile="${ofile}T" 37678 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 37679 $RM "$cfgfile" 37680 37681 cat <<_LT_EOF >> "$cfgfile" 37682#! $SHELL 37683 37684# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 37685# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 37686# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 37687# NOTE: Changes made to this file will be lost: look at ltmain.sh. 37688# 37689# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 37690# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 37691# Foundation, Inc. 37692# Written by Gordon Matzigkeit, 1996 37693# 37694# This file is part of GNU Libtool. 37695# 37696# GNU Libtool is free software; you can redistribute it and/or 37697# modify it under the terms of the GNU General Public License as 37698# published by the Free Software Foundation; either version 2 of 37699# the License, or (at your option) any later version. 37700# 37701# As a special exception to the GNU General Public License, 37702# if you distribute this file as part of a program or library that 37703# is built using GNU Libtool, you may include this file under the 37704# same distribution terms that you use for the rest of that program. 37705# 37706# GNU Libtool is distributed in the hope that it will be useful, 37707# but WITHOUT ANY WARRANTY; without even the implied warranty of 37708# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 37709# GNU General Public License for more details. 37710# 37711# You should have received a copy of the GNU General Public License 37712# along with GNU Libtool; see the file COPYING. If not, a copy 37713# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 37714# obtained by writing to the Free Software Foundation, Inc., 37715# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 37716 37717 37718# The names of the tagged configurations supported by this script. 37719available_tags="CXX " 37720 37721# ### BEGIN LIBTOOL CONFIG 37722 37723# A sed program that does not truncate output. 37724SED=$lt_SED 37725 37726# Sed that helps us avoid accidentally triggering echo(1) options like -n. 37727Xsed="\$SED -e 1s/^X//" 37728 37729# A grep program that handles long lines. 37730GREP=$lt_GREP 37731 37732# An ERE matcher. 37733EGREP=$lt_EGREP 37734 37735# A literal string matcher. 37736FGREP=$lt_FGREP 37737 37738# Shell to use when invoking shell scripts. 37739SHELL=$lt_SHELL 37740 37741# An echo program that protects backslashes. 37742ECHO=$lt_ECHO 37743 37744# Which release of libtool.m4 was used? 37745macro_version=$macro_version 37746macro_revision=$macro_revision 37747 37748# Assembler program. 37749AS=$lt_AS 37750 37751# DLL creation program. 37752DLLTOOL=$lt_DLLTOOL 37753 37754# Object dumper program. 37755OBJDUMP=$lt_OBJDUMP 37756 37757# Whether or not to build shared libraries. 37758build_libtool_libs=$enable_shared 37759 37760# Whether or not to build static libraries. 37761build_old_libs=$enable_static 37762 37763# What type of objects to build. 37764pic_mode=$pic_mode 37765 37766# Whether or not to optimize for fast installation. 37767fast_install=$enable_fast_install 37768 37769# The PATH separator for the build system. 37770PATH_SEPARATOR=$lt_PATH_SEPARATOR 37771 37772# The host system. 37773host_alias=$host_alias 37774host=$host 37775host_os=$host_os 37776 37777# The build system. 37778build_alias=$build_alias 37779build=$build 37780build_os=$build_os 37781 37782# A BSD- or MS-compatible name lister. 37783NM=$lt_NM 37784 37785# Whether we need soft or hard links. 37786LN_S=$lt_LN_S 37787 37788# What is the maximum length of a command? 37789max_cmd_len=$max_cmd_len 37790 37791# Object file suffix (normally "o"). 37792objext=$ac_objext 37793 37794# Executable file suffix (normally ""). 37795exeext=$exeext 37796 37797# whether the shell understands "unset". 37798lt_unset=$lt_unset 37799 37800# turn spaces into newlines. 37801SP2NL=$lt_lt_SP2NL 37802 37803# turn newlines into spaces. 37804NL2SP=$lt_lt_NL2SP 37805 37806# convert \$build file names to \$host format. 37807to_host_file_cmd=$lt_cv_to_host_file_cmd 37808 37809# convert \$build files to toolchain format. 37810to_tool_file_cmd=$lt_cv_to_tool_file_cmd 37811 37812# Method to check whether dependent libraries are shared objects. 37813deplibs_check_method=$lt_deplibs_check_method 37814 37815# Command to use when deplibs_check_method = "file_magic". 37816file_magic_cmd=$lt_file_magic_cmd 37817 37818# How to find potential files when deplibs_check_method = "file_magic". 37819file_magic_glob=$lt_file_magic_glob 37820 37821# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 37822want_nocaseglob=$lt_want_nocaseglob 37823 37824# Command to associate shared and link libraries. 37825sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 37826 37827# The archiver. 37828AR=$lt_AR 37829 37830# Flags to create an archive. 37831AR_FLAGS=$lt_AR_FLAGS 37832 37833# How to feed a file listing to the archiver. 37834archiver_list_spec=$lt_archiver_list_spec 37835 37836# A symbol stripping program. 37837STRIP=$lt_STRIP 37838 37839# Commands used to install an old-style archive. 37840RANLIB=$lt_RANLIB 37841old_postinstall_cmds=$lt_old_postinstall_cmds 37842old_postuninstall_cmds=$lt_old_postuninstall_cmds 37843 37844# Whether to use a lock for old archive extraction. 37845lock_old_archive_extraction=$lock_old_archive_extraction 37846 37847# A C compiler. 37848LTCC=$lt_CC 37849 37850# LTCC compiler flags. 37851LTCFLAGS=$lt_CFLAGS 37852 37853# Take the output of nm and produce a listing of raw symbols and C names. 37854global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 37855 37856# Transform the output of nm in a proper C declaration. 37857global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 37858 37859# Transform the output of nm in a C name address pair. 37860global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 37861 37862# Transform the output of nm in a C name address pair when lib prefix is needed. 37863global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 37864 37865# Specify filename containing input files for \$NM. 37866nm_file_list_spec=$lt_nm_file_list_spec 37867 37868# The root where to search for dependent libraries,and in which our libraries should be installed. 37869lt_sysroot=$lt_sysroot 37870 37871# The name of the directory that contains temporary libtool files. 37872objdir=$objdir 37873 37874# Used to examine libraries when file_magic_cmd begins with "file". 37875MAGIC_CMD=$MAGIC_CMD 37876 37877# Must we lock files when doing compilation? 37878need_locks=$lt_need_locks 37879 37880# Manifest tool. 37881MANIFEST_TOOL=$lt_MANIFEST_TOOL 37882 37883# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 37884DSYMUTIL=$lt_DSYMUTIL 37885 37886# Tool to change global to local symbols on Mac OS X. 37887NMEDIT=$lt_NMEDIT 37888 37889# Tool to manipulate fat objects and archives on Mac OS X. 37890LIPO=$lt_LIPO 37891 37892# ldd/readelf like tool for Mach-O binaries on Mac OS X. 37893OTOOL=$lt_OTOOL 37894 37895# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 37896OTOOL64=$lt_OTOOL64 37897 37898# Old archive suffix (normally "a"). 37899libext=$libext 37900 37901# Shared library suffix (normally ".so"). 37902shrext_cmds=$lt_shrext_cmds 37903 37904# The commands to extract the exported symbol list from a shared archive. 37905extract_expsyms_cmds=$lt_extract_expsyms_cmds 37906 37907# Variables whose values should be saved in libtool wrapper scripts and 37908# restored at link time. 37909variables_saved_for_relink=$lt_variables_saved_for_relink 37910 37911# Do we need the "lib" prefix for modules? 37912need_lib_prefix=$need_lib_prefix 37913 37914# Do we need a version for libraries? 37915need_version=$need_version 37916 37917# Library versioning type. 37918version_type=$version_type 37919 37920# Shared library runtime path variable. 37921runpath_var=$runpath_var 37922 37923# Shared library path variable. 37924shlibpath_var=$shlibpath_var 37925 37926# Is shlibpath searched before the hard-coded library search path? 37927shlibpath_overrides_runpath=$shlibpath_overrides_runpath 37928 37929# Format of library name prefix. 37930libname_spec=$lt_libname_spec 37931 37932# List of archive names. First name is the real one, the rest are links. 37933# The last name is the one that the linker finds with -lNAME 37934library_names_spec=$lt_library_names_spec 37935 37936# The coded name of the library, if different from the real name. 37937soname_spec=$lt_soname_spec 37938 37939# Permission mode override for installation of shared libraries. 37940install_override_mode=$lt_install_override_mode 37941 37942# Command to use after installation of a shared archive. 37943postinstall_cmds=$lt_postinstall_cmds 37944 37945# Command to use after uninstallation of a shared archive. 37946postuninstall_cmds=$lt_postuninstall_cmds 37947 37948# Commands used to finish a libtool library installation in a directory. 37949finish_cmds=$lt_finish_cmds 37950 37951# As "finish_cmds", except a single script fragment to be evaled but 37952# not shown. 37953finish_eval=$lt_finish_eval 37954 37955# Whether we should hardcode library paths into libraries. 37956hardcode_into_libs=$hardcode_into_libs 37957 37958# Compile-time system search path for libraries. 37959sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 37960 37961# Run-time system search path for libraries. 37962sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 37963 37964# Whether dlopen is supported. 37965dlopen_support=$enable_dlopen 37966 37967# Whether dlopen of programs is supported. 37968dlopen_self=$enable_dlopen_self 37969 37970# Whether dlopen of statically linked programs is supported. 37971dlopen_self_static=$enable_dlopen_self_static 37972 37973# Commands to strip libraries. 37974old_striplib=$lt_old_striplib 37975striplib=$lt_striplib 37976 37977 37978# The linker used to build libraries. 37979LD=$lt_LD 37980 37981# How to create reloadable object files. 37982reload_flag=$lt_reload_flag 37983reload_cmds=$lt_reload_cmds 37984 37985# Commands used to build an old-style archive. 37986old_archive_cmds=$lt_old_archive_cmds 37987 37988# A language specific compiler. 37989CC=$lt_compiler 37990 37991# Is the compiler the GNU compiler? 37992with_gcc=$GCC 37993 37994# Compiler flag to turn off builtin functions. 37995no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 37996 37997# Additional compiler flags for building library objects. 37998pic_flag=$lt_lt_prog_compiler_pic 37999 38000# How to pass a linker flag through the compiler. 38001wl=$lt_lt_prog_compiler_wl 38002 38003# Compiler flag to prevent dynamic linking. 38004link_static_flag=$lt_lt_prog_compiler_static 38005 38006# Does compiler simultaneously support -c and -o options? 38007compiler_c_o=$lt_lt_cv_prog_compiler_c_o 38008 38009# Whether or not to add -lc for building shared libraries. 38010build_libtool_need_lc=$archive_cmds_need_lc 38011 38012# Whether or not to disallow shared libs when runtime libs are static. 38013allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 38014 38015# Compiler flag to allow reflexive dlopens. 38016export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 38017 38018# Compiler flag to generate shared objects directly from archives. 38019whole_archive_flag_spec=$lt_whole_archive_flag_spec 38020 38021# Whether the compiler copes with passing no objects directly. 38022compiler_needs_object=$lt_compiler_needs_object 38023 38024# Create an old-style archive from a shared archive. 38025old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 38026 38027# Create a temporary old-style archive to link instead of a shared archive. 38028old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 38029 38030# Commands used to build a shared archive. 38031archive_cmds=$lt_archive_cmds 38032archive_expsym_cmds=$lt_archive_expsym_cmds 38033 38034# Commands used to build a loadable module if different from building 38035# a shared archive. 38036module_cmds=$lt_module_cmds 38037module_expsym_cmds=$lt_module_expsym_cmds 38038 38039# Whether we are building with GNU ld or not. 38040with_gnu_ld=$lt_with_gnu_ld 38041 38042# Flag that allows shared libraries with undefined symbols to be built. 38043allow_undefined_flag=$lt_allow_undefined_flag 38044 38045# Flag that enforces no undefined symbols. 38046no_undefined_flag=$lt_no_undefined_flag 38047 38048# Flag to hardcode \$libdir into a binary during linking. 38049# This must work even if \$libdir does not exist 38050hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 38051 38052# Whether we need a single "-rpath" flag with a separated argument. 38053hardcode_libdir_separator=$lt_hardcode_libdir_separator 38054 38055# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 38056# DIR into the resulting binary. 38057hardcode_direct=$hardcode_direct 38058 38059# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 38060# DIR into the resulting binary and the resulting library dependency is 38061# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 38062# library is relocated. 38063hardcode_direct_absolute=$hardcode_direct_absolute 38064 38065# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 38066# into the resulting binary. 38067hardcode_minus_L=$hardcode_minus_L 38068 38069# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 38070# into the resulting binary. 38071hardcode_shlibpath_var=$hardcode_shlibpath_var 38072 38073# Set to "yes" if building a shared library automatically hardcodes DIR 38074# into the library and all subsequent libraries and executables linked 38075# against it. 38076hardcode_automatic=$hardcode_automatic 38077 38078# Set to yes if linker adds runtime paths of dependent libraries 38079# to runtime path list. 38080inherit_rpath=$inherit_rpath 38081 38082# Whether libtool must link a program against all its dependency libraries. 38083link_all_deplibs=$link_all_deplibs 38084 38085# Set to "yes" if exported symbols are required. 38086always_export_symbols=$always_export_symbols 38087 38088# The commands to list exported symbols. 38089export_symbols_cmds=$lt_export_symbols_cmds 38090 38091# Symbols that should not be listed in the preloaded symbols. 38092exclude_expsyms=$lt_exclude_expsyms 38093 38094# Symbols that must always be exported. 38095include_expsyms=$lt_include_expsyms 38096 38097# Commands necessary for linking programs (against libraries) with templates. 38098prelink_cmds=$lt_prelink_cmds 38099 38100# Commands necessary for finishing linking programs. 38101postlink_cmds=$lt_postlink_cmds 38102 38103# Specify filename containing input files. 38104file_list_spec=$lt_file_list_spec 38105 38106# How to hardcode a shared library path into an executable. 38107hardcode_action=$hardcode_action 38108 38109# The directories searched by this compiler when creating a shared library. 38110compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 38111 38112# Dependencies to place before and after the objects being linked to 38113# create a shared library. 38114predep_objects=$lt_predep_objects 38115postdep_objects=$lt_postdep_objects 38116predeps=$lt_predeps 38117postdeps=$lt_postdeps 38118 38119# The library search path used internally by the compiler when linking 38120# a shared library. 38121compiler_lib_search_path=$lt_compiler_lib_search_path 38122 38123# ### END LIBTOOL CONFIG 38124 38125_LT_EOF 38126 38127 case $host_os in 38128 aix3*) 38129 cat <<\_LT_EOF >> "$cfgfile" 38130# AIX sometimes has problems with the GCC collect2 program. For some 38131# reason, if we set the COLLECT_NAMES environment variable, the problems 38132# vanish in a puff of smoke. 38133if test "X${COLLECT_NAMES+set}" != Xset; then 38134 COLLECT_NAMES= 38135 export COLLECT_NAMES 38136fi 38137_LT_EOF 38138 ;; 38139 esac 38140 38141 38142ltmain="$ac_aux_dir/ltmain.sh" 38143 38144 38145 # We use sed instead of cat because bash on DJGPP gets confused if 38146 # if finds mixed CR/LF and LF-only lines. Since sed operates in 38147 # text mode, it properly converts lines to CR/LF. This bash problem 38148 # is reportedly fixed, but why not run on old versions too? 38149 sed '$q' "$ltmain" >> "$cfgfile" \ 38150 || (rm -f "$cfgfile"; exit 1) 38151 38152 if test x"$xsi_shell" = xyes; then 38153 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 38154func_dirname ()\ 38155{\ 38156\ case ${1} in\ 38157\ */*) func_dirname_result="${1%/*}${2}" ;;\ 38158\ * ) func_dirname_result="${3}" ;;\ 38159\ esac\ 38160} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 38161 && mv -f "$cfgfile.tmp" "$cfgfile" \ 38162 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 38163test 0 -eq $? || _lt_function_replace_fail=: 38164 38165 38166 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 38167func_basename ()\ 38168{\ 38169\ func_basename_result="${1##*/}"\ 38170} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 38171 && mv -f "$cfgfile.tmp" "$cfgfile" \ 38172 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 38173test 0 -eq $? || _lt_function_replace_fail=: 38174 38175 38176 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 38177func_dirname_and_basename ()\ 38178{\ 38179\ case ${1} in\ 38180\ */*) func_dirname_result="${1%/*}${2}" ;;\ 38181\ * ) func_dirname_result="${3}" ;;\ 38182\ esac\ 38183\ func_basename_result="${1##*/}"\ 38184} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 38185 && mv -f "$cfgfile.tmp" "$cfgfile" \ 38186 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 38187test 0 -eq $? || _lt_function_replace_fail=: 38188 38189 38190 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 38191func_stripname ()\ 38192{\ 38193\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 38194\ # positional parameters, so assign one to ordinary parameter first.\ 38195\ func_stripname_result=${3}\ 38196\ func_stripname_result=${func_stripname_result#"${1}"}\ 38197\ func_stripname_result=${func_stripname_result%"${2}"}\ 38198} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 38199 && mv -f "$cfgfile.tmp" "$cfgfile" \ 38200 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 38201test 0 -eq $? || _lt_function_replace_fail=: 38202 38203 38204 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 38205func_split_long_opt ()\ 38206{\ 38207\ func_split_long_opt_name=${1%%=*}\ 38208\ func_split_long_opt_arg=${1#*=}\ 38209} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 38210 && mv -f "$cfgfile.tmp" "$cfgfile" \ 38211 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 38212test 0 -eq $? || _lt_function_replace_fail=: 38213 38214 38215 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 38216func_split_short_opt ()\ 38217{\ 38218\ func_split_short_opt_arg=${1#??}\ 38219\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 38220} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 38221 && mv -f "$cfgfile.tmp" "$cfgfile" \ 38222 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 38223test 0 -eq $? || _lt_function_replace_fail=: 38224 38225 38226 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 38227func_lo2o ()\ 38228{\ 38229\ case ${1} in\ 38230\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 38231\ *) func_lo2o_result=${1} ;;\ 38232\ esac\ 38233} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 38234 && mv -f "$cfgfile.tmp" "$cfgfile" \ 38235 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 38236test 0 -eq $? || _lt_function_replace_fail=: 38237 38238 38239 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 38240func_xform ()\ 38241{\ 38242 func_xform_result=${1%.*}.lo\ 38243} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 38244 && mv -f "$cfgfile.tmp" "$cfgfile" \ 38245 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 38246test 0 -eq $? || _lt_function_replace_fail=: 38247 38248 38249 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 38250func_arith ()\ 38251{\ 38252 func_arith_result=$(( $* ))\ 38253} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 38254 && mv -f "$cfgfile.tmp" "$cfgfile" \ 38255 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 38256test 0 -eq $? || _lt_function_replace_fail=: 38257 38258 38259 sed -e '/^func_len ()$/,/^} # func_len /c\ 38260func_len ()\ 38261{\ 38262 func_len_result=${#1}\ 38263} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 38264 && mv -f "$cfgfile.tmp" "$cfgfile" \ 38265 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 38266test 0 -eq $? || _lt_function_replace_fail=: 38267 38268fi 38269 38270if test x"$lt_shell_append" = xyes; then 38271 sed -e '/^func_append ()$/,/^} # func_append /c\ 38272func_append ()\ 38273{\ 38274 eval "${1}+=\\${2}"\ 38275} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 38276 && mv -f "$cfgfile.tmp" "$cfgfile" \ 38277 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 38278test 0 -eq $? || _lt_function_replace_fail=: 38279 38280 38281 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 38282func_append_quoted ()\ 38283{\ 38284\ func_quote_for_eval "${2}"\ 38285\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 38286} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 38287 && mv -f "$cfgfile.tmp" "$cfgfile" \ 38288 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 38289test 0 -eq $? || _lt_function_replace_fail=: 38290 38291 38292 # Save a `func_append' function call where possible by direct use of '+=' 38293 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 38294 && mv -f "$cfgfile.tmp" "$cfgfile" \ 38295 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 38296 test 0 -eq $? || _lt_function_replace_fail=: 38297else 38298 # Save a `func_append' function call even when '+=' is not available 38299 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 38300 && mv -f "$cfgfile.tmp" "$cfgfile" \ 38301 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 38302 test 0 -eq $? || _lt_function_replace_fail=: 38303fi 38304 38305if test x"$_lt_function_replace_fail" = x":"; then 38306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 38307$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 38308fi 38309 38310 38311 mv -f "$cfgfile" "$ofile" || 38312 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 38313 chmod +x "$ofile" 38314 38315 38316 cat <<_LT_EOF >> "$ofile" 38317 38318# ### BEGIN LIBTOOL TAG CONFIG: CXX 38319 38320# The linker used to build libraries. 38321LD=$lt_LD_CXX 38322 38323# How to create reloadable object files. 38324reload_flag=$lt_reload_flag_CXX 38325reload_cmds=$lt_reload_cmds_CXX 38326 38327# Commands used to build an old-style archive. 38328old_archive_cmds=$lt_old_archive_cmds_CXX 38329 38330# A language specific compiler. 38331CC=$lt_compiler_CXX 38332 38333# Is the compiler the GNU compiler? 38334with_gcc=$GCC_CXX 38335 38336# Compiler flag to turn off builtin functions. 38337no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 38338 38339# Additional compiler flags for building library objects. 38340pic_flag=$lt_lt_prog_compiler_pic_CXX 38341 38342# How to pass a linker flag through the compiler. 38343wl=$lt_lt_prog_compiler_wl_CXX 38344 38345# Compiler flag to prevent dynamic linking. 38346link_static_flag=$lt_lt_prog_compiler_static_CXX 38347 38348# Does compiler simultaneously support -c and -o options? 38349compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 38350 38351# Whether or not to add -lc for building shared libraries. 38352build_libtool_need_lc=$archive_cmds_need_lc_CXX 38353 38354# Whether or not to disallow shared libs when runtime libs are static. 38355allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 38356 38357# Compiler flag to allow reflexive dlopens. 38358export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 38359 38360# Compiler flag to generate shared objects directly from archives. 38361whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 38362 38363# Whether the compiler copes with passing no objects directly. 38364compiler_needs_object=$lt_compiler_needs_object_CXX 38365 38366# Create an old-style archive from a shared archive. 38367old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 38368 38369# Create a temporary old-style archive to link instead of a shared archive. 38370old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 38371 38372# Commands used to build a shared archive. 38373archive_cmds=$lt_archive_cmds_CXX 38374archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 38375 38376# Commands used to build a loadable module if different from building 38377# a shared archive. 38378module_cmds=$lt_module_cmds_CXX 38379module_expsym_cmds=$lt_module_expsym_cmds_CXX 38380 38381# Whether we are building with GNU ld or not. 38382with_gnu_ld=$lt_with_gnu_ld_CXX 38383 38384# Flag that allows shared libraries with undefined symbols to be built. 38385allow_undefined_flag=$lt_allow_undefined_flag_CXX 38386 38387# Flag that enforces no undefined symbols. 38388no_undefined_flag=$lt_no_undefined_flag_CXX 38389 38390# Flag to hardcode \$libdir into a binary during linking. 38391# This must work even if \$libdir does not exist 38392hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 38393 38394# Whether we need a single "-rpath" flag with a separated argument. 38395hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 38396 38397# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 38398# DIR into the resulting binary. 38399hardcode_direct=$hardcode_direct_CXX 38400 38401# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 38402# DIR into the resulting binary and the resulting library dependency is 38403# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 38404# library is relocated. 38405hardcode_direct_absolute=$hardcode_direct_absolute_CXX 38406 38407# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 38408# into the resulting binary. 38409hardcode_minus_L=$hardcode_minus_L_CXX 38410 38411# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 38412# into the resulting binary. 38413hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 38414 38415# Set to "yes" if building a shared library automatically hardcodes DIR 38416# into the library and all subsequent libraries and executables linked 38417# against it. 38418hardcode_automatic=$hardcode_automatic_CXX 38419 38420# Set to yes if linker adds runtime paths of dependent libraries 38421# to runtime path list. 38422inherit_rpath=$inherit_rpath_CXX 38423 38424# Whether libtool must link a program against all its dependency libraries. 38425link_all_deplibs=$link_all_deplibs_CXX 38426 38427# Set to "yes" if exported symbols are required. 38428always_export_symbols=$always_export_symbols_CXX 38429 38430# The commands to list exported symbols. 38431export_symbols_cmds=$lt_export_symbols_cmds_CXX 38432 38433# Symbols that should not be listed in the preloaded symbols. 38434exclude_expsyms=$lt_exclude_expsyms_CXX 38435 38436# Symbols that must always be exported. 38437include_expsyms=$lt_include_expsyms_CXX 38438 38439# Commands necessary for linking programs (against libraries) with templates. 38440prelink_cmds=$lt_prelink_cmds_CXX 38441 38442# Commands necessary for finishing linking programs. 38443postlink_cmds=$lt_postlink_cmds_CXX 38444 38445# Specify filename containing input files. 38446file_list_spec=$lt_file_list_spec_CXX 38447 38448# How to hardcode a shared library path into an executable. 38449hardcode_action=$hardcode_action_CXX 38450 38451# The directories searched by this compiler when creating a shared library. 38452compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 38453 38454# Dependencies to place before and after the objects being linked to 38455# create a shared library. 38456predep_objects=$lt_predep_objects_CXX 38457postdep_objects=$lt_postdep_objects_CXX 38458predeps=$lt_predeps_CXX 38459postdeps=$lt_postdeps_CXX 38460 38461# The library search path used internally by the compiler when linking 38462# a shared library. 38463compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 38464 38465# ### END LIBTOOL TAG CONFIG: CXX 38466_LT_EOF 38467 38468 ;; 38469 "magick.sh.in":C) chmod +x magick.sh ;; 38470 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;; 38471 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;; 38472 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;; 38473 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;; 38474 38475 esac 38476done # for ac_tag 38477 38478 38479as_fn_exit 0 38480_ACEOF 38481ac_clean_files=$ac_clean_files_save 38482 38483test $ac_write_fail = 0 || 38484 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 38485 38486 38487# configure is writing to config.log, and then calls config.status. 38488# config.status does its own redirection, appending to config.log. 38489# Unfortunately, on DOS this fails, as config.log is still kept open 38490# by configure, so config.status won't be able to write to it; its 38491# output is simply discarded. So we exec the FD to /dev/null, 38492# effectively closing config.log, so it can be properly (re)opened and 38493# appended to by config.status. When coming back to configure, we 38494# need to make the FD available again. 38495if test "$no_create" != yes; then 38496 ac_cs_success=: 38497 ac_config_status_args= 38498 test "$silent" = yes && 38499 ac_config_status_args="$ac_config_status_args --quiet" 38500 exec 5>/dev/null 38501 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 38502 exec 5>>config.log 38503 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 38504 # would make configure fail if this is the last instruction. 38505 $ac_cs_success || as_fn_exit 1 38506fi 38507if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 38508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 38509$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 38510fi 38511 38512 38513rm -f magick-version 38514 38515result_dejavu_font_dir='none' 38516if test "${dejavu_font_dir}x" != 'x'; then 38517 result_dejavu_font_dir=$dejavu_font_dir 38518fi 38519 38520result_ghostscript_font_dir='none' 38521if test "${ghostscript_font_dir}x" != 'x'; then 38522 result_ghostscript_font_dir=$ghostscript_font_dir 38523fi 38524 38525result_windows_font_dir='none' 38526if test "${windows_font_dir}x" != 'x'; then 38527 result_windows_font_dir=${windows_font_dir} 38528fi 38529 38530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: 38531ImageMagick is configured as follows. Please verify that this configuration 38532matches your expectations. 38533 38534Host system type: $host 38535Build system type: $build 38536 38537 Option Value 38538------------------------------------------------------------------------------- 38539Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs 38540Static libraries --enable-static=$enable_static $libtool_build_static_libs 38541Module support --with-modules=$build_modules $build_modules 38542GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld 38543Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth 38544High Dynamic Range Imagery 38545 --enable-hdri=$enable_hdri $enable_hdri 38546 38547Delegate Configuration: 38548BZLIB --with-bzlib=$with_bzlib $have_bzlib 38549Autotrace --with-autotrace=$with_autotrace $have_autotrace 38550Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir 38551DJVU --with-djvu=$with_djvu $have_djvu 38552DPS --with-dps=$with_dps $have_dps 38553FFTW --with-fftw=$with_fftw $have_fftw 38554FlashPIX --with-fpx=$with_fpx $have_fpx 38555FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig 38556FreeType --with-freetype=$with_freetype $have_freetype 38557GhostPCL None $PCLDelegate ($PCLVersion) 38558GhostXPS None $XPSDelegate ($XPSVersion) 38559Ghostscript None $PSDelegate ($GSVersion) 38560Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir 38561Ghostscript lib --with-gslib=$with_gslib $have_gslib 38562Graphviz --with-gvc=$with_gvc $have_gvc 38563JBIG --with-jbig=$with_jbig $have_jbig 38564JPEG v1 --with-jpeg=$with_jpeg $have_jpeg 38565JPEG-2000 --with-jp2=$with_jp2 $have_jp2 38566LCMS v1 --with-lcms=$with_lcms $have_lcms 38567LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2 38568LQR --with-lqr=$with_lqr $have_lqr 38569LTDL --with-ltdl=$with_ltdl $have_ltdl 38570LZMA --with-lzma=$with_lzma $have_lzma 38571Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus 38572OpenEXR --with-openexr=$with_openexr $have_openexr 38573PANGO --with-pango=$with_pango $have_pango 38574PERL --with-perl=$with_perl $have_perl 38575PNG --with-png=$with_png $have_png 38576RSVG --with-rsvg=$with_rsvg $have_rsvg 38577TIFF --with-tiff=$with_tiff $have_tiff 38578WEBP --with-webp=$with_webp $have_webp 38579Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir 38580WMF --with-wmf=$with_wmf $have_wmf 38581X11 --with-x=$with_x $have_x 38582XML --with-xml=$with_xml $have_xml 38583ZLIB --with-zlib=$with_zlib $have_zlib 38584 38585X11 Configuration: 38586 X_CFLAGS = $X_CFLAGS 38587 X_PRE_LIBS = $X_PRE_LIBS 38588 X_LIBS = $X_LIBS 38589 X_EXTRA_LIBS = $X_EXTRA_LIBS 38590 38591Options used to compile and link: 38592 PREFIX = $PREFIX_DIR 38593 EXEC-PREFIX = $EXEC_PREFIX_DIR 38594 VERSION = $PACKAGE_VERSION 38595 CC = $CC 38596 CFLAGS = $CFLAGS 38597 CPPFLAGS = $MAGICK_CPPFLAGS 38598 PCFLAGS = $MAGICK_PCFLAGS 38599 DEFS = $DEFS 38600 LDFLAGS = $LDFLAGS 38601 MAGICK_LDFLAGS = $MAGICK_LDFLAGS 38602 LIBS = $MAGICK_LIBS 38603 CXX = $CXX 38604 CXXFLAGS = $CXXFLAGS 38605 FEATURES = $MAGICK_FEATURES 38606 DELEGATES = $MAGICK_DELEGATES 38607" >&5 38608$as_echo " 38609ImageMagick is configured as follows. Please verify that this configuration 38610matches your expectations. 38611 38612Host system type: $host 38613Build system type: $build 38614 38615 Option Value 38616------------------------------------------------------------------------------- 38617Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs 38618Static libraries --enable-static=$enable_static $libtool_build_static_libs 38619Module support --with-modules=$build_modules $build_modules 38620GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld 38621Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth 38622High Dynamic Range Imagery 38623 --enable-hdri=$enable_hdri $enable_hdri 38624 38625Delegate Configuration: 38626BZLIB --with-bzlib=$with_bzlib $have_bzlib 38627Autotrace --with-autotrace=$with_autotrace $have_autotrace 38628Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir 38629DJVU --with-djvu=$with_djvu $have_djvu 38630DPS --with-dps=$with_dps $have_dps 38631FFTW --with-fftw=$with_fftw $have_fftw 38632FlashPIX --with-fpx=$with_fpx $have_fpx 38633FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig 38634FreeType --with-freetype=$with_freetype $have_freetype 38635GhostPCL None $PCLDelegate ($PCLVersion) 38636GhostXPS None $XPSDelegate ($XPSVersion) 38637Ghostscript None $PSDelegate ($GSVersion) 38638Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir 38639Ghostscript lib --with-gslib=$with_gslib $have_gslib 38640Graphviz --with-gvc=$with_gvc $have_gvc 38641JBIG --with-jbig=$with_jbig $have_jbig 38642JPEG v1 --with-jpeg=$with_jpeg $have_jpeg 38643JPEG-2000 --with-jp2=$with_jp2 $have_jp2 38644LCMS v1 --with-lcms=$with_lcms $have_lcms 38645LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2 38646LQR --with-lqr=$with_lqr $have_lqr 38647LTDL --with-ltdl=$with_ltdl $have_ltdl 38648LZMA --with-lzma=$with_lzma $have_lzma 38649Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus 38650OpenEXR --with-openexr=$with_openexr $have_openexr 38651PANGO --with-pango=$with_pango $have_pango 38652PERL --with-perl=$with_perl $have_perl 38653PNG --with-png=$with_png $have_png 38654RSVG --with-rsvg=$with_rsvg $have_rsvg 38655TIFF --with-tiff=$with_tiff $have_tiff 38656WEBP --with-webp=$with_webp $have_webp 38657Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir 38658WMF --with-wmf=$with_wmf $have_wmf 38659X11 --with-x=$with_x $have_x 38660XML --with-xml=$with_xml $have_xml 38661ZLIB --with-zlib=$with_zlib $have_zlib 38662 38663X11 Configuration: 38664 X_CFLAGS = $X_CFLAGS 38665 X_PRE_LIBS = $X_PRE_LIBS 38666 X_LIBS = $X_LIBS 38667 X_EXTRA_LIBS = $X_EXTRA_LIBS 38668 38669Options used to compile and link: 38670 PREFIX = $PREFIX_DIR 38671 EXEC-PREFIX = $EXEC_PREFIX_DIR 38672 VERSION = $PACKAGE_VERSION 38673 CC = $CC 38674 CFLAGS = $CFLAGS 38675 CPPFLAGS = $MAGICK_CPPFLAGS 38676 PCFLAGS = $MAGICK_PCFLAGS 38677 DEFS = $DEFS 38678 LDFLAGS = $LDFLAGS 38679 MAGICK_LDFLAGS = $MAGICK_LDFLAGS 38680 LIBS = $MAGICK_LIBS 38681 CXX = $CXX 38682 CXXFLAGS = $CXXFLAGS 38683 FEATURES = $MAGICK_FEATURES 38684 DELEGATES = $MAGICK_DELEGATES 38685" >&6; } 38686