| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3 | # Generated by GNU Autoconf 2.64 for ImageMagick 6.5.7. |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4 | # |
| 5 | # Report bugs to <http://www.imagemagick.org>. |
| 6 | # |
| 7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software |
| 9 | # Foundation, Inc. |
| 10 | # |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11 | # This configure script is free software; the Free Software Foundation |
| 12 | # gives unlimited permission to copy, distribute and modify it. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 13 | ## -------------------- ## |
| 14 | ## M4sh Initialization. ## |
| 15 | ## -------------------- ## |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16 | |
| 17 | # Be more Bourne compatible |
| 18 | DUALCASE=1; export DUALCASE # for MKS sh |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 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 |
| 26 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27 | case `(set -o) 2>/dev/null` in #( |
| 28 | *posix*) : |
| 29 | set -o posix ;; #( |
| 30 | *) : |
| 31 | ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32 | esac |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33 | fi |
| 34 | |
| 35 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36 | as_nl=' |
| 37 | ' |
| 38 | export as_nl |
| 39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 43 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 44 | # but without wasting forks for bash or zsh. |
| 45 | if 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 --' |
| 49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 50 | as_echo='printf %s\n' |
| 51 | as_echo_n='printf %s' |
| 52 | else |
| 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; |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 60 | case $arg in #( |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 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' |
| 72 | fi |
| 73 | |
| 74 | # The user is always right. |
| 75 | if 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 | } |
| 81 | fi |
| 82 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 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.) |
| 89 | IFS=" "" $as_nl" |
| 90 | |
| 91 | # Find who we are. Look in the path if we contain no directory separator. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 92 | case $0 in #(( |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 93 | *[\\/]* ) as_myself=$0 ;; |
| 94 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 95 | for as_dir in $PATH |
| 96 | do |
| 97 | IFS=$as_save_IFS |
| 98 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 99 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 100 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 101 | IFS=$as_save_IFS |
| 102 | |
| 103 | ;; |
| 104 | esac |
| 105 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 106 | # in which case we are not to be found in the path. |
| 107 | if test "x$as_myself" = x; then |
| 108 | as_myself=$0 |
| 109 | fi |
| 110 | if test ! -f "$as_myself"; then |
| 111 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 112 | exit 1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 113 | fi |
| 114 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 115 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 116 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 117 | # suppresses any "Segmentation fault" message there. '((' could |
| 118 | # trigger a bug in pdksh 5.2.14. |
| 119 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 120 | do eval test x\${$as_var+set} = xset \ |
| 121 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 122 | done |
| 123 | PS1='$ ' |
| 124 | PS2='> ' |
| 125 | PS4='+ ' |
| 126 | |
| 127 | # NLS nuisances. |
| 128 | LC_ALL=C |
| 129 | export LC_ALL |
| 130 | LANGUAGE=C |
| 131 | export LANGUAGE |
| 132 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 133 | # CDPATH. |
| 134 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 135 | |
| 136 | if test "x$CONFIG_SHELL" = x; then |
| 137 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 138 | emulate sh |
| 139 | NULLCMD=: |
| 140 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 141 | # is contrary to our usage. Disable this feature. |
| 142 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 143 | setopt NO_GLOB_SUBST |
| 144 | else |
| 145 | case \`(set -o) 2>/dev/null\` in #( |
| 146 | *posix*) : |
| 147 | set -o posix ;; #( |
| 148 | *) : |
| 149 | ;; |
| 150 | esac |
| 151 | fi |
| 152 | " |
| 153 | as_required="as_fn_return () { (exit \$1); } |
| 154 | as_fn_success () { as_fn_return 0; } |
| 155 | as_fn_failure () { as_fn_return 1; } |
| 156 | as_fn_ret_success () { return 0; } |
| 157 | as_fn_ret_failure () { return 1; } |
| 158 | |
| 159 | exitcode=0 |
| 160 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 161 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 162 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 163 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 164 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 165 | |
| 166 | else |
| 167 | exitcode=1; echo positional parameters were not saved. |
| 168 | fi |
| 169 | test x\$exitcode = x0 || exit 1" |
| 170 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 171 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 172 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 173 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 174 | test \$(( 1 + 1 )) = 2 || exit 1" |
| 175 | if (eval "$as_required") 2>/dev/null; then : |
| 176 | as_have_required=yes |
| 177 | else |
| 178 | as_have_required=no |
| 179 | fi |
| 180 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 181 | |
| 182 | else |
| 183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 184 | as_found=false |
| 185 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 186 | do |
| 187 | IFS=$as_save_IFS |
| 188 | test -z "$as_dir" && as_dir=. |
| 189 | as_found=: |
| 190 | case $as_dir in #( |
| 191 | /*) |
| 192 | for as_base in sh bash ksh sh5; do |
| 193 | # Try only shells that exist, to save several forks. |
| 194 | as_shell=$as_dir/$as_base |
| 195 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 196 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 197 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 198 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 199 | break 2 |
| 200 | fi |
| 201 | fi |
| 202 | done;; |
| 203 | esac |
| 204 | as_found=false |
| 205 | done |
| 206 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 207 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 208 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 209 | fi; } |
| 210 | IFS=$as_save_IFS |
| 211 | |
| 212 | |
| 213 | if test "x$CONFIG_SHELL" != x; then : |
| 214 | # We cannot yet assume a decent shell, so we have to provide a |
| 215 | # neutralization value for shells without unset; and this also |
| 216 | # works around shells that cannot unset nonexistent variables. |
| 217 | BASH_ENV=/dev/null |
| 218 | ENV=/dev/null |
| 219 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 220 | export CONFIG_SHELL |
| 221 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
| 222 | fi |
| 223 | |
| 224 | if test x$as_have_required = xno; then : |
| 225 | $as_echo "$0: This script requires a shell more modern than all" |
| 226 | $as_echo "$0: the shells that I found on your system." |
| 227 | if test x${ZSH_VERSION+set} = xset ; then |
| 228 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 229 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 230 | else |
| 231 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
| 232 | $0: http://www.imagemagick.org about your system, including |
| 233 | $0: any error possibly output before this message. Then |
| 234 | $0: install a modern shell, or manually run the script |
| 235 | $0: under such a shell if you do have one." |
| 236 | fi |
| 237 | exit 1 |
| 238 | fi |
| 239 | fi |
| 240 | fi |
| 241 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 242 | export SHELL |
| 243 | # Unset more variables known to interfere with behavior of common tools. |
| 244 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 245 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 246 | |
| 247 | ## --------------------- ## |
| 248 | ## M4sh Shell Functions. ## |
| 249 | ## --------------------- ## |
| 250 | # as_fn_unset VAR |
| 251 | # --------------- |
| 252 | # Portably unset VAR. |
| 253 | as_fn_unset () |
| 254 | { |
| 255 | { eval $1=; unset $1;} |
| 256 | } |
| 257 | as_unset=as_fn_unset |
| 258 | |
| 259 | # as_fn_set_status STATUS |
| 260 | # ----------------------- |
| 261 | # Set $? to STATUS, without forking. |
| 262 | as_fn_set_status () |
| 263 | { |
| 264 | return $1 |
| 265 | } # as_fn_set_status |
| 266 | |
| 267 | # as_fn_exit STATUS |
| 268 | # ----------------- |
| 269 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 270 | as_fn_exit () |
| 271 | { |
| 272 | set +e |
| 273 | as_fn_set_status $1 |
| 274 | exit $1 |
| 275 | } # as_fn_exit |
| 276 | |
| 277 | # as_fn_mkdir_p |
| 278 | # ------------- |
| 279 | # Create "$as_dir" as a directory, including parents if necessary. |
| 280 | as_fn_mkdir_p () |
| 281 | { |
| 282 | |
| 283 | case $as_dir in #( |
| 284 | -*) as_dir=./$as_dir;; |
| 285 | esac |
| 286 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 287 | as_dirs= |
| 288 | while :; do |
| 289 | case $as_dir in #( |
| 290 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 291 | *) as_qdir=$as_dir;; |
| 292 | esac |
| 293 | as_dirs="'$as_qdir' $as_dirs" |
| 294 | as_dir=`$as_dirname -- "$as_dir" || |
| 295 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 296 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 297 | X"$as_dir" : 'X\(//\)$' \| \ |
| 298 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 299 | $as_echo X"$as_dir" | |
| 300 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 301 | s//\1/ |
| 302 | q |
| 303 | } |
| 304 | /^X\(\/\/\)[^/].*/{ |
| 305 | s//\1/ |
| 306 | q |
| 307 | } |
| 308 | /^X\(\/\/\)$/{ |
| 309 | s//\1/ |
| 310 | q |
| 311 | } |
| 312 | /^X\(\/\).*/{ |
| 313 | s//\1/ |
| 314 | q |
| 315 | } |
| 316 | s/.*/./; q'` |
| 317 | test -d "$as_dir" && break |
| 318 | done |
| 319 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 320 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
| 321 | |
| 322 | |
| 323 | } # as_fn_mkdir_p |
| 324 | # as_fn_append VAR VALUE |
| 325 | # ---------------------- |
| 326 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 327 | # advantage of any shell optimizations that allow amortized linear growth over |
| 328 | # repeated appends, instead of the typical quadratic growth present in naive |
| 329 | # implementations. |
| 330 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 331 | eval 'as_fn_append () |
| 332 | { |
| 333 | eval $1+=\$2 |
| 334 | }' |
| 335 | else |
| 336 | as_fn_append () |
| 337 | { |
| 338 | eval $1=\$$1\$2 |
| 339 | } |
| 340 | fi # as_fn_append |
| 341 | |
| 342 | # as_fn_arith ARG... |
| 343 | # ------------------ |
| 344 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 345 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 346 | # must be portable across $(()) and expr. |
| 347 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 348 | eval 'as_fn_arith () |
| 349 | { |
| 350 | as_val=$(( $* )) |
| 351 | }' |
| 352 | else |
| 353 | as_fn_arith () |
| 354 | { |
| 355 | as_val=`expr "$@" || test $? -eq 1` |
| 356 | } |
| 357 | fi # as_fn_arith |
| 358 | |
| 359 | |
| 360 | # as_fn_error ERROR [LINENO LOG_FD] |
| 361 | # --------------------------------- |
| 362 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 363 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 364 | # script with status $?, using 1 if that was 0. |
| 365 | as_fn_error () |
| 366 | { |
| 367 | as_status=$?; test $as_status -eq 0 && as_status=1 |
| 368 | if test "$3"; then |
| 369 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 370 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
| 371 | fi |
| 372 | $as_echo "$as_me: error: $1" >&2 |
| 373 | as_fn_exit $as_status |
| 374 | } # as_fn_error |
| 375 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 376 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 377 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 378 | as_expr=expr |
| 379 | else |
| 380 | as_expr=false |
| 381 | fi |
| 382 | |
| 383 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 384 | as_basename=basename |
| 385 | else |
| 386 | as_basename=false |
| 387 | fi |
| 388 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 389 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 390 | as_dirname=dirname |
| 391 | else |
| 392 | as_dirname=false |
| 393 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 394 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 395 | as_me=`$as_basename -- "$0" || |
| 396 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 397 | X"$0" : 'X\(//\)$' \| \ |
| 398 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 399 | $as_echo X/"$0" | |
| 400 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 401 | s//\1/ |
| 402 | q |
| 403 | } |
| 404 | /^X\/\(\/\/\)$/{ |
| 405 | s//\1/ |
| 406 | q |
| 407 | } |
| 408 | /^X\/\(\/\).*/{ |
| 409 | s//\1/ |
| 410 | q |
| 411 | } |
| 412 | s/.*/./; q'` |
| 413 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 414 | # Avoid depending upon Character Ranges. |
| 415 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 416 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 417 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 418 | as_cr_digits='0123456789' |
| 419 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 420 | |
| 421 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 422 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 423 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 424 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 425 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 426 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 427 | sed -n ' |
| 428 | p |
| 429 | /[$]LINENO/= |
| 430 | ' <$as_myself | |
| 431 | sed ' |
| 432 | s/[$]LINENO.*/&-/ |
| 433 | t lineno |
| 434 | b |
| 435 | :lineno |
| 436 | N |
| 437 | :loop |
| 438 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 439 | t loop |
| 440 | s/-\n.*// |
| 441 | ' >$as_me.lineno && |
| 442 | chmod +x "$as_me.lineno" || |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 443 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 444 | |
| 445 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 446 | # (the dirname of $[0] is not the place where we might find the |
| 447 | # original and so on. Autoconf is especially sensitive to this). |
| 448 | . "./$as_me.lineno" |
| 449 | # Exit status is that of the last command. |
| 450 | exit |
| 451 | } |
| 452 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 453 | ECHO_C= ECHO_N= ECHO_T= |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 454 | case `echo -n x` in #((((( |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 455 | -n*) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 456 | case `echo 'xy\c'` in |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 457 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 458 | xy) ECHO_C='\c';; |
| 459 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 460 | ECHO_T=' ';; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 461 | esac;; |
| 462 | *) |
| 463 | ECHO_N='-n';; |
| 464 | esac |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 465 | |
| 466 | rm -f conf$$ conf$$.exe conf$$.file |
| 467 | if test -d conf$$.dir; then |
| 468 | rm -f conf$$.dir/conf$$.file |
| 469 | else |
| 470 | rm -f conf$$.dir |
| 471 | mkdir conf$$.dir 2>/dev/null |
| 472 | fi |
| 473 | if (echo >conf$$.file) 2>/dev/null; then |
| 474 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 475 | as_ln_s='ln -s' |
| 476 | # ... but there are two gotchas: |
| 477 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 478 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 479 | # In both cases, we have to default to `cp -p'. |
| 480 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 481 | as_ln_s='cp -p' |
| 482 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 483 | as_ln_s=ln |
| 484 | else |
| 485 | as_ln_s='cp -p' |
| 486 | fi |
| 487 | else |
| 488 | as_ln_s='cp -p' |
| 489 | fi |
| 490 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 491 | rmdir conf$$.dir 2>/dev/null |
| 492 | |
| 493 | if mkdir -p . 2>/dev/null; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 494 | as_mkdir_p='mkdir -p "$as_dir"' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 495 | else |
| 496 | test -d ./-p && rmdir ./-p |
| 497 | as_mkdir_p=false |
| 498 | fi |
| 499 | |
| 500 | if test -x / >/dev/null 2>&1; then |
| 501 | as_test_x='test -x' |
| 502 | else |
| 503 | if ls -dL / >/dev/null 2>&1; then |
| 504 | as_ls_L_option=L |
| 505 | else |
| 506 | as_ls_L_option= |
| 507 | fi |
| 508 | as_test_x=' |
| 509 | eval sh -c '\'' |
| 510 | if test -d "$1"; then |
| 511 | test -d "$1/."; |
| 512 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 513 | case $1 in #( |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 514 | -*)set "./$1";; |
| 515 | esac; |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 516 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 517 | ???[sx]*):;;*)false;;esac;fi |
| 518 | '\'' sh |
| 519 | ' |
| 520 | fi |
| 521 | as_executable_p=$as_test_x |
| 522 | |
| 523 | # Sed expression to map a string onto a valid CPP name. |
| 524 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 525 | |
| 526 | # Sed expression to map a string onto a valid variable name. |
| 527 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 528 | |
| 529 | |
| 530 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 531 | # Check that we are running under the correct shell. |
| 532 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 533 | |
| 534 | case X$lt_ECHO in |
| 535 | X*--fallback-echo) |
| 536 | # Remove one level of quotation (which was required for Make). |
| 537 | ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` |
| 538 | ;; |
| 539 | esac |
| 540 | |
| 541 | ECHO=${lt_ECHO-echo} |
| 542 | if test "X$1" = X--no-reexec; then |
| 543 | # Discard the --no-reexec flag, and continue. |
| 544 | shift |
| 545 | elif test "X$1" = X--fallback-echo; then |
| 546 | # Avoid inline document here, it may be left over |
| 547 | : |
| 548 | elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then |
| 549 | # Yippee, $ECHO works! |
| 550 | : |
| 551 | else |
| 552 | # Restart under the correct shell. |
| 553 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
| 554 | fi |
| 555 | |
| 556 | if test "X$1" = X--fallback-echo; then |
| 557 | # used as fallback echo |
| 558 | shift |
| 559 | cat <<_LT_EOF |
| 560 | $* |
| 561 | _LT_EOF |
| 562 | exit 0 |
| 563 | fi |
| 564 | |
| 565 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 566 | # if CDPATH is set. |
| 567 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 568 | |
| 569 | if test -z "$lt_ECHO"; then |
| 570 | if test "X${echo_test_string+set}" != Xset; then |
| 571 | # find a string as large as possible, as long as the shell can cope with it |
| 572 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
| 573 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
| 574 | if { echo_test_string=`eval $cmd`; } 2>/dev/null && |
| 575 | { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null |
| 576 | then |
| 577 | break |
| 578 | fi |
| 579 | done |
| 580 | fi |
| 581 | |
| 582 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && |
| 583 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && |
| 584 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 585 | : |
| 586 | else |
| 587 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
| 588 | # backslashes. This makes it impossible to quote backslashes using |
| 589 | # echo "$something" | sed 's/\\/\\\\/g' |
| 590 | # |
| 591 | # So, first we look for a working echo in the user's PATH. |
| 592 | |
| 593 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 594 | for dir in $PATH /usr/ucb; do |
| 595 | IFS="$lt_save_ifs" |
| 596 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
| 597 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
| 598 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
| 599 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 600 | ECHO="$dir/echo" |
| 601 | break |
| 602 | fi |
| 603 | done |
| 604 | IFS="$lt_save_ifs" |
| 605 | |
| 606 | if test "X$ECHO" = Xecho; then |
| 607 | # We didn't find a better echo, so look for alternatives. |
| 608 | if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && |
| 609 | echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && |
| 610 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 611 | # This shell has a builtin print -r that does the trick. |
| 612 | ECHO='print -r' |
| 613 | elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && |
| 614 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
| 615 | # If we have ksh, try running configure again with it. |
| 616 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
| 617 | export ORIGINAL_CONFIG_SHELL |
| 618 | CONFIG_SHELL=/bin/ksh |
| 619 | export CONFIG_SHELL |
| 620 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
| 621 | else |
| 622 | # Try using printf. |
| 623 | ECHO='printf %s\n' |
| 624 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && |
| 625 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && |
| 626 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 627 | # Cool, printf works |
| 628 | : |
| 629 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 630 | test "X$echo_testing_string" = 'X\t' && |
| 631 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 632 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 633 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
| 634 | export CONFIG_SHELL |
| 635 | SHELL="$CONFIG_SHELL" |
| 636 | export SHELL |
| 637 | ECHO="$CONFIG_SHELL $0 --fallback-echo" |
| 638 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 639 | test "X$echo_testing_string" = 'X\t' && |
| 640 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 641 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 642 | ECHO="$CONFIG_SHELL $0 --fallback-echo" |
| 643 | else |
| 644 | # maybe with a smaller string... |
| 645 | prev=: |
| 646 | |
| 647 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
| 648 | if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null |
| 649 | then |
| 650 | break |
| 651 | fi |
| 652 | prev="$cmd" |
| 653 | done |
| 654 | |
| 655 | if test "$prev" != 'sed 50q "$0"'; then |
| 656 | echo_test_string=`eval $prev` |
| 657 | export echo_test_string |
| 658 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
| 659 | else |
| 660 | # Oops. We lost completely, so just stick with echo. |
| 661 | ECHO=echo |
| 662 | fi |
| 663 | fi |
| 664 | fi |
| 665 | fi |
| 666 | fi |
| 667 | fi |
| 668 | |
| 669 | # Copy echo and quote the copy suitably for passing to libtool from |
| 670 | # the Makefile, instead of quoting the original, which is used later. |
| 671 | lt_ECHO=$ECHO |
| 672 | if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
| 673 | lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
| 674 | fi |
| 675 | |
| 676 | |
| 677 | |
| 678 | |
| 679 | lt_ltdl_dir='ltdl' |
| 680 | |
| 681 | lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/" |
| 682 | |
| 683 | exec 7<&0 </dev/null 6>&1 |
| 684 | |
| 685 | # Name of the host. |
| 686 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 687 | # so uname gets run too. |
| 688 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 689 | |
| 690 | # |
| 691 | # Initializations. |
| 692 | # |
| 693 | ac_default_prefix=/usr/local |
| 694 | ac_clean_files= |
| 695 | ac_config_libobj_dir=. |
| 696 | LIBOBJS= |
| 697 | cross_compiling=no |
| 698 | subdirs= |
| 699 | MFLAGS= |
| 700 | MAKEFLAGS= |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 701 | |
| 702 | # Identity of this package. |
| 703 | PACKAGE_NAME='ImageMagick' |
| 704 | PACKAGE_TARNAME='ImageMagick' |
| cristy | d934d10 | 2009-10-10 12:55:13 +0000 | [diff] [blame] | 705 | PACKAGE_VERSION='6.5.7' |
| 706 | PACKAGE_STRING='ImageMagick 6.5.7' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 707 | PACKAGE_BUGREPORT='http://www.imagemagick.org' |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 708 | PACKAGE_URL='' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 709 | |
| 710 | ac_unique_file="magick/MagickCore.h" |
| 711 | ac_config_libobj_dir=ltdl |
| 712 | # Factoring default headers for most tests. |
| 713 | ac_includes_default="\ |
| 714 | #include <stdio.h> |
| 715 | #ifdef HAVE_SYS_TYPES_H |
| 716 | # include <sys/types.h> |
| 717 | #endif |
| 718 | #ifdef HAVE_SYS_STAT_H |
| 719 | # include <sys/stat.h> |
| 720 | #endif |
| 721 | #ifdef STDC_HEADERS |
| 722 | # include <stdlib.h> |
| 723 | # include <stddef.h> |
| 724 | #else |
| 725 | # ifdef HAVE_STDLIB_H |
| 726 | # include <stdlib.h> |
| 727 | # endif |
| 728 | #endif |
| 729 | #ifdef HAVE_STRING_H |
| 730 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
| 731 | # include <memory.h> |
| 732 | # endif |
| 733 | # include <string.h> |
| 734 | #endif |
| 735 | #ifdef HAVE_STRINGS_H |
| 736 | # include <strings.h> |
| 737 | #endif |
| 738 | #ifdef HAVE_INTTYPES_H |
| 739 | # include <inttypes.h> |
| 740 | #endif |
| 741 | #ifdef HAVE_STDINT_H |
| 742 | # include <stdint.h> |
| 743 | #endif |
| 744 | #ifdef HAVE_UNISTD_H |
| 745 | # include <unistd.h> |
| 746 | #endif" |
| 747 | |
| 748 | ac_subst_vars='ltdl_LTLIBOBJS |
| 749 | ltdl_LIBOBJS |
| 750 | am__EXEEXT_FALSE |
| 751 | am__EXEEXT_TRUE |
| 752 | LTLIBOBJS |
| 753 | MAGICK_LIBS |
| 754 | MAGICK_LDFLAGS |
| 755 | MAGICK_PCFLAGS |
| 756 | MAGICK_CPPFLAGS |
| 757 | MAGICK_CXXFLAGS |
| 758 | MAGICK_CFLAGS |
| 759 | MAGICK_DEP_LIBS |
| 760 | MAGICK_LTDLDEPS |
| 761 | MAGICK_LIBLTDL |
| 762 | OSX_GCOV_LDFLAG |
| 763 | DELEGATES |
| 764 | MAGICKCORE_PATH |
| 765 | PERL_SUPPORTS_DESTDIR |
| 766 | WITH_PERL_DYNAMIC_FALSE |
| 767 | WITH_PERL_DYNAMIC_TRUE |
| 768 | WITH_PERL_STATIC_FALSE |
| 769 | WITH_PERL_STATIC_TRUE |
| 770 | WITH_PERL_FALSE |
| 771 | WITH_PERL_TRUE |
| 772 | GSVersion |
| 773 | GSPSDevice |
| 774 | GSPDFDevice |
| 775 | GSMonoDevice |
| 776 | GSEPSDevice |
| 777 | GSColorDevice |
| 778 | GSCMYKDevice |
| 779 | GSAlphaDevice |
| 780 | XPSVersion |
| 781 | XPSCMYKDevice |
| 782 | XPSColorDevice |
| 783 | XPSMonoDevice |
| 784 | PCLVersion |
| 785 | PCLCMYKDevice |
| 786 | PCLColorDevice |
| 787 | PCLMonoDevice |
| 788 | ZIP_DELEGATE_FALSE |
| 789 | ZIP_DELEGATE_TRUE |
| 790 | ZIP |
| 791 | P7ZIP_DELEGATE_FALSE |
| 792 | P7ZIP_DELEGATE_TRUE |
| 793 | P7ZIP |
| 794 | RPM_DELEGATE_FALSE |
| 795 | RPM_DELEGATE_TRUE |
| 796 | RPM |
| 797 | PERL |
| 798 | TAR |
| 799 | ShowImageDelegate |
| 800 | type_include_files |
| 801 | ghostscript_font_dir |
| 802 | windows_font_dir |
| 803 | PrintDelegate |
| 804 | ZipDelegate |
| 805 | XPSDelegate |
| 806 | WWWDecodeDelegate |
| 807 | WMFDecodeDelegate |
| 808 | TXTDelegate |
| 809 | SCANDecodeDelegate |
| 810 | RMDelegate |
| 811 | RLEEncodeDelegate |
| 812 | PSDelegate |
| 813 | POVDelegate |
| 814 | PGPDecodeDelegate |
| 815 | PCLDelegate |
| 816 | MVDelegate |
| 817 | MPEGEncodeDelegate |
| 818 | MPEGDecodeDelegate |
| 819 | MANDelegate |
| 820 | LaunchDelegate |
| 821 | LZWEncodeDelegate |
| 822 | LZWDecodeDelegate |
| 823 | LPRDelegate |
| 824 | LPDelegate |
| 825 | ILBMEncodeDelegate |
| 826 | ILBMDecodeDelegate |
| 827 | HTMLDecodeDelegate |
| 828 | HPGLDecodeDelegate |
| 829 | HDRDecodeDelegate |
| 830 | GnuplotDecodeDelegate |
| 831 | MogrifyDelegate |
| 832 | DisplayDelegate |
| 833 | ConvertDelegate |
| 834 | FIGDecodeDelegate |
| 835 | EditorDelegate |
| 836 | EchoDelegate |
| 837 | DVIDecodeDelegate |
| 838 | GVCDecodeDelegate |
| 839 | DNGDecodeDelegate |
| 840 | CatDelegate |
| 841 | CGMDecodeDelegate |
| 842 | BrowseDelegate |
| 843 | BZIPDelegate |
| 844 | BlenderDecodeDelegate |
| 845 | AVIDecodeDelegate |
| 846 | AutotraceDecodeDelegate |
| 847 | SHARE_CONFIGURE_PATH |
| 848 | SHARE_PATH |
| 849 | DOCUMENTATION_PATH |
| 850 | FILTER_PATH |
| 851 | CODER_PATH |
| 852 | CONFIGURE_PATH |
| 853 | LIBRARY_PATH |
| 854 | EXECUTABLE_PATH |
| 855 | PERLMAINCC |
| 856 | XML_LIBS |
| 857 | XML_DELEGATE_FALSE |
| 858 | XML_DELEGATE_TRUE |
| 859 | xml2_config |
| 860 | WMF_LIBS_DEPS |
| 861 | WMF_LIBS |
| 862 | WMF_DELEGATE_FALSE |
| 863 | WMF_DELEGATE_TRUE |
| 864 | TIFF_LIBS |
| 865 | TIFF_DELEGATE_FALSE |
| 866 | TIFF_DELEGATE_TRUE |
| 867 | CAIRO_DELEGATE_FALSE |
| 868 | CAIRO_DELEGATE_TRUE |
| 869 | RSVG_DELEGATE_FALSE |
| 870 | RSVG_DELEGATE_TRUE |
| 871 | CAIRO_SVG_LIBS |
| 872 | CAIRO_SVG_CFLAGS |
| 873 | RSVG_LIBS |
| 874 | RSVG_CFLAGS |
| 875 | PNG_LIBS |
| 876 | PNG_DELEGATE_FALSE |
| 877 | PNG_DELEGATE_TRUE |
| 878 | OPENEXR_DELEGATE_FALSE |
| 879 | OPENEXR_DELEGATE_TRUE |
| 880 | OPENEXR_LIBS |
| 881 | OPENEXR_CFLAGS |
| 882 | LQR_DELEGATE_FALSE |
| 883 | LQR_DELEGATE_TRUE |
| 884 | LQR_LIBS |
| 885 | LQR_CFLAGS |
| 886 | LCMS_LIBS |
| 887 | LCMS_DELEGATE_FALSE |
| 888 | LCMS_DELEGATE_TRUE |
| 889 | JP2_LIBS |
| 890 | JP2_DELEGATE_FALSE |
| 891 | JP2_DELEGATE_TRUE |
| 892 | JPEG_LIBS |
| 893 | JPEG_DELEGATE_FALSE |
| 894 | JPEG_DELEGATE_TRUE |
| 895 | JBIG_LIBS |
| 896 | JBIG_DELEGATE_FALSE |
| 897 | JBIG_DELEGATE_TRUE |
| 898 | GVC_DELEGATE_FALSE |
| 899 | GVC_DELEGATE_TRUE |
| 900 | GVC_LIBS |
| 901 | GVC_CFLAGS |
| 902 | GS_LIBS |
| 903 | GS_DELEGATE_FALSE |
| 904 | GS_DELEGATE_TRUE |
| 905 | FREETYPE_LIBS |
| 906 | FREETYPE_DELEGATE_FALSE |
| 907 | FREETYPE_DELEGATE_TRUE |
| 908 | freetype_config |
| 909 | FONTCONFIG_DELEGATE_FALSE |
| 910 | FONTCONFIG_DELEGATE_TRUE |
| 911 | FONTCONFIG_LIBS |
| 912 | FONTCONFIG_CFLAGS |
| 913 | FPX_LIBS |
| 914 | FPX_DELEGATE_FALSE |
| 915 | FPX_DELEGATE_TRUE |
| 916 | FFTW_LIBS |
| 917 | FFTW_DELEGATE_FALSE |
| 918 | FFTW_DELEGATE_TRUE |
| 919 | DJVU_LIBS |
| 920 | DJVU_DELEGATE_FALSE |
| 921 | DJVU_DELEGATE_TRUE |
| 922 | DPS_LIBS |
| 923 | DPS_DELEGATE_FALSE |
| 924 | DPS_DELEGATE_TRUE |
| 925 | AUTOTRACE_DELEGATE_FALSE |
| 926 | AUTOTRACE_DELEGATE_TRUE |
| 927 | AUTOTRACE_LIBS |
| 928 | AUTOTRACE_CFLAGS |
| 929 | LIB_DL |
| 930 | ZLIB_LIBS |
| 931 | ZLIB_DELEGATE_FALSE |
| 932 | ZLIB_DELEGATE_TRUE |
| 933 | XEXT_LIBS |
| 934 | X11_LIBS |
| 935 | X11_DELEGATE_FALSE |
| 936 | X11_DELEGATE_TRUE |
| 937 | X_EXTRA_LIBS |
| 938 | X_LIBS |
| 939 | X_PRE_LIBS |
| 940 | X_CFLAGS |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 941 | XMKMF |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 942 | BZLIB_LIBS |
| 943 | BZLIB_DELEGATE_FALSE |
| 944 | BZLIB_DELEGATE_TRUE |
| 945 | MATH_LIBS |
| 946 | CCMALLOCDelegate |
| 947 | UMEM_LIBS |
| 948 | HasUMEM_FALSE |
| 949 | HasUMEM_TRUE |
| 950 | THREAD_LIBS |
| 951 | GOMP_LIBS |
| 952 | WITH_MAGICK_PLUS_PLUS_FALSE |
| 953 | WITH_MAGICK_PLUS_PLUS_TRUE |
| 954 | OPENMP_CXXFLAGS |
| 955 | POW_LIB |
| 956 | LIBOBJS |
| 957 | UINTPTR_T |
| 958 | UINTMAX_T |
| 959 | UINT64_T |
| 960 | INT64_T |
| 961 | UINT32_T |
| 962 | INT32_T |
| 963 | UINT16_T |
| 964 | INT16_T |
| 965 | UINT8_T |
| 966 | INT8_T |
| 967 | LIBRARY_EXTRA_CPPFLAGS |
| 968 | MODULE_EXTRA_CPPFLAGS |
| 969 | LIBSTDCLDFLAGS |
| 970 | PERL_MAKE_OPTIONS |
| 971 | QUANTUM_DEPTH |
| 972 | MAINT |
| 973 | MAINTAINER_MODE_FALSE |
| 974 | MAINTAINER_MODE_TRUE |
| 975 | MAGICK_HDRI |
| 976 | DLLDFLAGS |
| 977 | WITH_LTDL_FALSE |
| 978 | WITH_LTDL_TRUE |
| 979 | WITH_MODULES_FALSE |
| 980 | WITH_MODULES_TRUE |
| 981 | LTCXXLIBOPTS |
| 982 | LTDLOPEN |
| 983 | LT_CONFIG_H |
| 984 | CONVENIENCE_LTDL_FALSE |
| 985 | CONVENIENCE_LTDL_TRUE |
| 986 | INSTALL_LTDL_FALSE |
| 987 | INSTALL_LTDL_TRUE |
| 988 | ARGZ_H |
| 989 | sys_symbol_underscore |
| 990 | LIBADD_DL |
| 991 | LT_DLPREOPEN |
| 992 | LIBADD_DLD_LINK |
| 993 | LIBADD_SHL_LOAD |
| 994 | LIBADD_DLOPEN |
| 995 | LT_DLLOADERS |
| 996 | INCLTDL |
| 997 | LTDLINCL |
| 998 | LTDLDEPS |
| 999 | LIBLTDL |
| 1000 | LIBTOOL_DEPS |
| 1001 | CXXCPP |
| 1002 | OTOOL64 |
| 1003 | OTOOL |
| 1004 | LIPO |
| 1005 | NMEDIT |
| 1006 | DSYMUTIL |
| 1007 | lt_ECHO |
| 1008 | AR |
| 1009 | NM |
| 1010 | ac_ct_DUMPBIN |
| 1011 | DUMPBIN |
| 1012 | LIBTOOL |
| 1013 | OBJDUMP |
| 1014 | DLLTOOL |
| 1015 | AS |
| 1016 | LFS_CPPFLAGS |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 1017 | CL_LIBS |
| 1018 | CL_CFLAGS |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1019 | OPENMP_CFLAGS |
| 1020 | PTHREAD_CFLAGS |
| 1021 | PTHREAD_LIBS |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1022 | PTHREAD_CC |
| 1023 | acx_pthread_config |
| 1024 | WinPathScript |
| 1025 | USING_CL_FALSE |
| 1026 | USING_CL_TRUE |
| 1027 | CYGWIN_BUILD_FALSE |
| 1028 | CYGWIN_BUILD_TRUE |
| 1029 | WIN32_NATIVE_BUILD_FALSE |
| 1030 | WIN32_NATIVE_BUILD_TRUE |
| 1031 | WINGDI32_DELEGATE_FALSE |
| 1032 | WINGDI32_DELEGATE_TRUE |
| 1033 | GDI32_LIBS |
| 1034 | PKG_CONFIG |
| 1035 | LN_S |
| 1036 | am__fastdepCXX_FALSE |
| 1037 | am__fastdepCXX_TRUE |
| 1038 | CXXDEPMODE |
| 1039 | ac_ct_CXX |
| 1040 | CXXFLAGS |
| 1041 | CXX |
| 1042 | RANLIB |
| 1043 | LD |
| 1044 | FGREP |
| 1045 | EGREP |
| 1046 | GREP |
| 1047 | SED |
| 1048 | CPP |
| 1049 | am__fastdepCC_FALSE |
| 1050 | am__fastdepCC_TRUE |
| 1051 | CCDEPMODE |
| 1052 | AMDEPBACKSLASH |
| 1053 | AMDEP_FALSE |
| 1054 | AMDEP_TRUE |
| 1055 | am__quote |
| 1056 | am__include |
| 1057 | DEPDIR |
| 1058 | OBJEXT |
| 1059 | EXEEXT |
| 1060 | ac_ct_CC |
| 1061 | CPPFLAGS |
| 1062 | LDFLAGS |
| 1063 | CFLAGS |
| 1064 | CC |
| 1065 | DIRSEP |
| 1066 | MAGICK_FILTER_MODULE_PATH |
| 1067 | MAGICK_CONFIGURE_BUILD_PATH |
| 1068 | MAGICK_CONFIGURE_SRC_PATH |
| 1069 | MAGICK_CODER_MODULE_PATH |
| 1070 | MAN_DIR |
| 1071 | INFO_DIR |
| 1072 | PERSISTINCLUDE_DIR |
| 1073 | INCLUDE_DIR |
| 1074 | LIB_DIR |
| 1075 | LOCALSTATE_DIR |
| 1076 | SHAREDSTATE_DIR |
| 1077 | SYSCONF_DIR |
| 1078 | DATA_DIR |
| 1079 | LIBEXEC_DIR |
| 1080 | SBIN_DIR |
| 1081 | BIN_DIR |
| 1082 | EXEC_PREFIX_DIR |
| 1083 | PREFIX_DIR |
| 1084 | CONFIG_STATUS_DEPENDENCIES |
| 1085 | MAGICK_LIB_VERSION_NUMBER |
| 1086 | MAGICK_LIB_VERSION_TEXT |
| 1087 | MAGICK_LIB_VERSION |
| 1088 | AM_BACKSLASH |
| 1089 | AM_DEFAULT_VERBOSITY |
| 1090 | am__untar |
| 1091 | am__tar |
| 1092 | AMTAR |
| 1093 | am__leading_dot |
| 1094 | SET_MAKE |
| 1095 | AWK |
| 1096 | mkdir_p |
| 1097 | MKDIR_P |
| 1098 | INSTALL_STRIP_PROGRAM |
| 1099 | STRIP |
| 1100 | install_sh |
| 1101 | MAKEINFO |
| 1102 | AUTOHEADER |
| 1103 | AUTOMAKE |
| 1104 | AUTOCONF |
| 1105 | ACLOCAL |
| 1106 | VERSION |
| 1107 | PACKAGE |
| 1108 | CYGPATH_W |
| 1109 | am__isrc |
| 1110 | INSTALL_DATA |
| 1111 | INSTALL_SCRIPT |
| 1112 | INSTALL_PROGRAM |
| 1113 | PACKAGE_LIB_SUBVERSION |
| 1114 | PACKAGE_RELEASE_DATE |
| 1115 | PACKAGE_LIB_VERSION_NUMBER |
| 1116 | PACKAGE_LIB_VERSION |
| 1117 | PACKAGE_CHANGE_DATE |
| 1118 | PACKAGE_RELEASE |
| 1119 | MAGICK_LIBRARY_AGE |
| 1120 | MAGICK_LIBRARY_REVISION |
| 1121 | MAGICK_LIBRARY_CURRENT |
| 1122 | target_os |
| 1123 | target_vendor |
| 1124 | target_cpu |
| 1125 | target |
| 1126 | host_os |
| 1127 | host_vendor |
| 1128 | host_cpu |
| 1129 | host |
| 1130 | build_os |
| 1131 | build_vendor |
| 1132 | build_cpu |
| 1133 | build |
| 1134 | CONFIGURE_ARGS |
| 1135 | DISTCHECK_CONFIG_FLAGS |
| 1136 | target_alias |
| 1137 | host_alias |
| 1138 | build_alias |
| 1139 | LIBS |
| 1140 | ECHO_T |
| 1141 | ECHO_N |
| 1142 | ECHO_C |
| 1143 | DEFS |
| 1144 | mandir |
| 1145 | localedir |
| 1146 | libdir |
| 1147 | psdir |
| 1148 | pdfdir |
| 1149 | dvidir |
| 1150 | htmldir |
| 1151 | infodir |
| 1152 | docdir |
| 1153 | oldincludedir |
| 1154 | includedir |
| 1155 | localstatedir |
| 1156 | sharedstatedir |
| 1157 | sysconfdir |
| 1158 | datadir |
| 1159 | datarootdir |
| 1160 | libexecdir |
| 1161 | sbindir |
| 1162 | bindir |
| 1163 | program_transform_name |
| 1164 | prefix |
| 1165 | exec_prefix |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 1166 | PACKAGE_URL |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1167 | PACKAGE_BUGREPORT |
| 1168 | PACKAGE_STRING |
| 1169 | PACKAGE_VERSION |
| 1170 | PACKAGE_TARNAME |
| 1171 | PACKAGE_NAME |
| 1172 | PATH_SEPARATOR |
| 1173 | SHELL' |
| 1174 | ac_subst_files='' |
| 1175 | ac_user_opts=' |
| 1176 | enable_option_checking |
| 1177 | enable_silent_rules |
| 1178 | enable_dependency_tracking |
| 1179 | with_gnu_ld |
| 1180 | with_maximum_compile_warnings |
| 1181 | with_dmalloc |
| 1182 | enable_bounds_checking |
| 1183 | enable_osx_universal_binary |
| 1184 | with_threads |
| 1185 | enable_openmp |
| 1186 | enable_largefile |
| 1187 | enable_shared |
| 1188 | enable_static |
| 1189 | with_pic |
| 1190 | enable_fast_install |
| 1191 | enable_libtool_lock |
| 1192 | with_included_ltdl |
| 1193 | with_ltdl_include |
| 1194 | with_ltdl_lib |
| 1195 | enable_ltdl_install |
| 1196 | with_modules |
| 1197 | enable_delegate_build |
| 1198 | enable_deprecated |
| 1199 | enable_installed |
| 1200 | enable_cipher |
| 1201 | enable_embeddable |
| 1202 | enable_hdri |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1203 | enable_assert |
| 1204 | enable_maintainer_mode |
| 1205 | enable_ccmalloc |
| 1206 | enable_efence |
| 1207 | enable_prof |
| 1208 | enable_gprof |
| 1209 | enable_gcov |
| 1210 | with_method_prefix |
| 1211 | with_quantum_depth |
| 1212 | with_cache |
| 1213 | with_frozenpaths |
| 1214 | with_magick_plus_plus |
| 1215 | with_perl |
| 1216 | with_perl_options |
| 1217 | with_umem |
| 1218 | with_libstdc |
| 1219 | with_bzlib |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 1220 | with_x |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1221 | with_zlib |
| 1222 | with_autotrace |
| 1223 | with_dps |
| 1224 | with_djvu |
| 1225 | with_fftw |
| 1226 | with_fpx |
| 1227 | with_fontconfig |
| 1228 | with_freetype |
| 1229 | with_gslib |
| 1230 | with_fontpath |
| 1231 | with_gs_font_dir |
| 1232 | with_gvc |
| 1233 | with_jbig |
| 1234 | with_jpeg |
| 1235 | with_jp2 |
| 1236 | with_lcms |
| 1237 | with_lqr |
| 1238 | with_openexr |
| 1239 | with_png |
| 1240 | with_rsvg |
| 1241 | with_tiff |
| 1242 | with_windows_font_dir |
| 1243 | with_wmf |
| 1244 | with_xml |
| 1245 | ' |
| 1246 | ac_precious_vars='build_alias |
| 1247 | host_alias |
| 1248 | target_alias |
| 1249 | CC |
| 1250 | CFLAGS |
| 1251 | LDFLAGS |
| 1252 | LIBS |
| 1253 | CPPFLAGS |
| 1254 | CPP |
| 1255 | CXX |
| 1256 | CXXFLAGS |
| 1257 | CCC |
| 1258 | PKG_CONFIG |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 1259 | CXXCPP |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 1260 | XMKMF |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1261 | AUTOTRACE_CFLAGS |
| 1262 | AUTOTRACE_LIBS |
| 1263 | FONTCONFIG_CFLAGS |
| 1264 | FONTCONFIG_LIBS |
| 1265 | GVC_CFLAGS |
| 1266 | GVC_LIBS |
| 1267 | LQR_CFLAGS |
| 1268 | LQR_LIBS |
| 1269 | OPENEXR_CFLAGS |
| 1270 | OPENEXR_LIBS |
| 1271 | RSVG_CFLAGS |
| 1272 | RSVG_LIBS |
| 1273 | CAIRO_SVG_CFLAGS |
| 1274 | CAIRO_SVG_LIBS' |
| 1275 | |
| 1276 | |
| 1277 | # Initialize some variables set by options. |
| 1278 | ac_init_help= |
| 1279 | ac_init_version=false |
| 1280 | ac_unrecognized_opts= |
| 1281 | ac_unrecognized_sep= |
| 1282 | # The variables have the same names as the options, with |
| 1283 | # dashes changed to underlines. |
| 1284 | cache_file=/dev/null |
| 1285 | exec_prefix=NONE |
| 1286 | no_create= |
| 1287 | no_recursion= |
| 1288 | prefix=NONE |
| 1289 | program_prefix=NONE |
| 1290 | program_suffix=NONE |
| 1291 | program_transform_name=s,x,x, |
| 1292 | silent= |
| 1293 | site= |
| 1294 | srcdir= |
| 1295 | verbose= |
| 1296 | x_includes=NONE |
| 1297 | x_libraries=NONE |
| 1298 | |
| 1299 | # Installation directory options. |
| 1300 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 1301 | # and all the variables that are supposed to be based on exec_prefix |
| 1302 | # by default will actually change. |
| 1303 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 1304 | # (The list follows the same order as the GNU Coding Standards.) |
| 1305 | bindir='${exec_prefix}/bin' |
| 1306 | sbindir='${exec_prefix}/sbin' |
| 1307 | libexecdir='${exec_prefix}/libexec' |
| 1308 | datarootdir='${prefix}/share' |
| 1309 | datadir='${datarootdir}' |
| 1310 | sysconfdir='${prefix}/etc' |
| 1311 | sharedstatedir='${prefix}/com' |
| 1312 | localstatedir='${prefix}/var' |
| 1313 | includedir='${prefix}/include' |
| 1314 | oldincludedir='/usr/include' |
| 1315 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 1316 | infodir='${datarootdir}/info' |
| 1317 | htmldir='${docdir}' |
| 1318 | dvidir='${docdir}' |
| 1319 | pdfdir='${docdir}' |
| 1320 | psdir='${docdir}' |
| 1321 | libdir='${exec_prefix}/lib' |
| 1322 | localedir='${datarootdir}/locale' |
| 1323 | mandir='${datarootdir}/man' |
| 1324 | |
| 1325 | ac_prev= |
| 1326 | ac_dashdash= |
| 1327 | for ac_option |
| 1328 | do |
| 1329 | # If the previous option needs an argument, assign it. |
| 1330 | if test -n "$ac_prev"; then |
| 1331 | eval $ac_prev=\$ac_option |
| 1332 | ac_prev= |
| 1333 | continue |
| 1334 | fi |
| 1335 | |
| 1336 | case $ac_option in |
| 1337 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 1338 | *) ac_optarg=yes ;; |
| 1339 | esac |
| 1340 | |
| 1341 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 1342 | |
| 1343 | case $ac_dashdash$ac_option in |
| 1344 | --) |
| 1345 | ac_dashdash=yes ;; |
| 1346 | |
| 1347 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 1348 | ac_prev=bindir ;; |
| 1349 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 1350 | bindir=$ac_optarg ;; |
| 1351 | |
| 1352 | -build | --build | --buil | --bui | --bu) |
| 1353 | ac_prev=build_alias ;; |
| 1354 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 1355 | build_alias=$ac_optarg ;; |
| 1356 | |
| 1357 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 1358 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 1359 | ac_prev=cache_file ;; |
| 1360 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 1361 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 1362 | cache_file=$ac_optarg ;; |
| 1363 | |
| 1364 | --config-cache | -C) |
| 1365 | cache_file=config.cache ;; |
| 1366 | |
| 1367 | -datadir | --datadir | --datadi | --datad) |
| 1368 | ac_prev=datadir ;; |
| 1369 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
| 1370 | datadir=$ac_optarg ;; |
| 1371 | |
| 1372 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 1373 | | --dataroo | --dataro | --datar) |
| 1374 | ac_prev=datarootdir ;; |
| 1375 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 1376 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 1377 | datarootdir=$ac_optarg ;; |
| 1378 | |
| 1379 | -disable-* | --disable-*) |
| 1380 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 1381 | # Reject names that are not valid shell variable names. |
| 1382 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 1383 | as_fn_error "invalid feature name: $ac_useropt" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1384 | ac_useropt_orig=$ac_useropt |
| 1385 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1386 | case $ac_user_opts in |
| 1387 | *" |
| 1388 | "enable_$ac_useropt" |
| 1389 | "*) ;; |
| 1390 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 1391 | ac_unrecognized_sep=', ';; |
| 1392 | esac |
| 1393 | eval enable_$ac_useropt=no ;; |
| 1394 | |
| 1395 | -docdir | --docdir | --docdi | --doc | --do) |
| 1396 | ac_prev=docdir ;; |
| 1397 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 1398 | docdir=$ac_optarg ;; |
| 1399 | |
| 1400 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 1401 | ac_prev=dvidir ;; |
| 1402 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 1403 | dvidir=$ac_optarg ;; |
| 1404 | |
| 1405 | -enable-* | --enable-*) |
| 1406 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 1407 | # Reject names that are not valid shell variable names. |
| 1408 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 1409 | as_fn_error "invalid feature name: $ac_useropt" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1410 | ac_useropt_orig=$ac_useropt |
| 1411 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1412 | case $ac_user_opts in |
| 1413 | *" |
| 1414 | "enable_$ac_useropt" |
| 1415 | "*) ;; |
| 1416 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 1417 | ac_unrecognized_sep=', ';; |
| 1418 | esac |
| 1419 | eval enable_$ac_useropt=\$ac_optarg ;; |
| 1420 | |
| 1421 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1422 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1423 | | --exec | --exe | --ex) |
| 1424 | ac_prev=exec_prefix ;; |
| 1425 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1426 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1427 | | --exec=* | --exe=* | --ex=*) |
| 1428 | exec_prefix=$ac_optarg ;; |
| 1429 | |
| 1430 | -gas | --gas | --ga | --g) |
| 1431 | # Obsolete; use --with-gas. |
| 1432 | with_gas=yes ;; |
| 1433 | |
| 1434 | -help | --help | --hel | --he | -h) |
| 1435 | ac_init_help=long ;; |
| 1436 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1437 | ac_init_help=recursive ;; |
| 1438 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1439 | ac_init_help=short ;; |
| 1440 | |
| 1441 | -host | --host | --hos | --ho) |
| 1442 | ac_prev=host_alias ;; |
| 1443 | -host=* | --host=* | --hos=* | --ho=*) |
| 1444 | host_alias=$ac_optarg ;; |
| 1445 | |
| 1446 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1447 | ac_prev=htmldir ;; |
| 1448 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1449 | | --ht=*) |
| 1450 | htmldir=$ac_optarg ;; |
| 1451 | |
| 1452 | -includedir | --includedir | --includedi | --included | --include \ |
| 1453 | | --includ | --inclu | --incl | --inc) |
| 1454 | ac_prev=includedir ;; |
| 1455 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1456 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 1457 | includedir=$ac_optarg ;; |
| 1458 | |
| 1459 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1460 | ac_prev=infodir ;; |
| 1461 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 1462 | infodir=$ac_optarg ;; |
| 1463 | |
| 1464 | -libdir | --libdir | --libdi | --libd) |
| 1465 | ac_prev=libdir ;; |
| 1466 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 1467 | libdir=$ac_optarg ;; |
| 1468 | |
| 1469 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1470 | | --libexe | --libex | --libe) |
| 1471 | ac_prev=libexecdir ;; |
| 1472 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1473 | | --libexe=* | --libex=* | --libe=*) |
| 1474 | libexecdir=$ac_optarg ;; |
| 1475 | |
| 1476 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1477 | ac_prev=localedir ;; |
| 1478 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1479 | localedir=$ac_optarg ;; |
| 1480 | |
| 1481 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 1482 | | --localstate | --localstat | --localsta | --localst | --locals) |
| 1483 | ac_prev=localstatedir ;; |
| 1484 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 1485 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
| 1486 | localstatedir=$ac_optarg ;; |
| 1487 | |
| 1488 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1489 | ac_prev=mandir ;; |
| 1490 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1491 | mandir=$ac_optarg ;; |
| 1492 | |
| 1493 | -nfp | --nfp | --nf) |
| 1494 | # Obsolete; use --without-fp. |
| 1495 | with_fp=no ;; |
| 1496 | |
| 1497 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1498 | | --no-cr | --no-c | -n) |
| 1499 | no_create=yes ;; |
| 1500 | |
| 1501 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1502 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1503 | no_recursion=yes ;; |
| 1504 | |
| 1505 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1506 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1507 | | --oldin | --oldi | --old | --ol | --o) |
| 1508 | ac_prev=oldincludedir ;; |
| 1509 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1510 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1511 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1512 | oldincludedir=$ac_optarg ;; |
| 1513 | |
| 1514 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1515 | ac_prev=prefix ;; |
| 1516 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1517 | prefix=$ac_optarg ;; |
| 1518 | |
| 1519 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1520 | | --program-pre | --program-pr | --program-p) |
| 1521 | ac_prev=program_prefix ;; |
| 1522 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1523 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1524 | program_prefix=$ac_optarg ;; |
| 1525 | |
| 1526 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1527 | | --program-suf | --program-su | --program-s) |
| 1528 | ac_prev=program_suffix ;; |
| 1529 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1530 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1531 | program_suffix=$ac_optarg ;; |
| 1532 | |
| 1533 | -program-transform-name | --program-transform-name \ |
| 1534 | | --program-transform-nam | --program-transform-na \ |
| 1535 | | --program-transform-n | --program-transform- \ |
| 1536 | | --program-transform | --program-transfor \ |
| 1537 | | --program-transfo | --program-transf \ |
| 1538 | | --program-trans | --program-tran \ |
| 1539 | | --progr-tra | --program-tr | --program-t) |
| 1540 | ac_prev=program_transform_name ;; |
| 1541 | -program-transform-name=* | --program-transform-name=* \ |
| 1542 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1543 | | --program-transform-n=* | --program-transform-=* \ |
| 1544 | | --program-transform=* | --program-transfor=* \ |
| 1545 | | --program-transfo=* | --program-transf=* \ |
| 1546 | | --program-trans=* | --program-tran=* \ |
| 1547 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1548 | program_transform_name=$ac_optarg ;; |
| 1549 | |
| 1550 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1551 | ac_prev=pdfdir ;; |
| 1552 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1553 | pdfdir=$ac_optarg ;; |
| 1554 | |
| 1555 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1556 | ac_prev=psdir ;; |
| 1557 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1558 | psdir=$ac_optarg ;; |
| 1559 | |
| 1560 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1561 | | -silent | --silent | --silen | --sile | --sil) |
| 1562 | silent=yes ;; |
| 1563 | |
| 1564 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1565 | ac_prev=sbindir ;; |
| 1566 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1567 | | --sbi=* | --sb=*) |
| 1568 | sbindir=$ac_optarg ;; |
| 1569 | |
| 1570 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1571 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1572 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1573 | | --sha | --sh) |
| 1574 | ac_prev=sharedstatedir ;; |
| 1575 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1576 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1577 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1578 | | --sha=* | --sh=*) |
| 1579 | sharedstatedir=$ac_optarg ;; |
| 1580 | |
| 1581 | -site | --site | --sit) |
| 1582 | ac_prev=site ;; |
| 1583 | -site=* | --site=* | --sit=*) |
| 1584 | site=$ac_optarg ;; |
| 1585 | |
| 1586 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1587 | ac_prev=srcdir ;; |
| 1588 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1589 | srcdir=$ac_optarg ;; |
| 1590 | |
| 1591 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1592 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1593 | ac_prev=sysconfdir ;; |
| 1594 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1595 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1596 | sysconfdir=$ac_optarg ;; |
| 1597 | |
| 1598 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1599 | ac_prev=target_alias ;; |
| 1600 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1601 | target_alias=$ac_optarg ;; |
| 1602 | |
| 1603 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1604 | verbose=yes ;; |
| 1605 | |
| 1606 | -version | --version | --versio | --versi | --vers | -V) |
| 1607 | ac_init_version=: ;; |
| 1608 | |
| 1609 | -with-* | --with-*) |
| 1610 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1611 | # Reject names that are not valid shell variable names. |
| 1612 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 1613 | as_fn_error "invalid package name: $ac_useropt" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1614 | ac_useropt_orig=$ac_useropt |
| 1615 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1616 | case $ac_user_opts in |
| 1617 | *" |
| 1618 | "with_$ac_useropt" |
| 1619 | "*) ;; |
| 1620 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1621 | ac_unrecognized_sep=', ';; |
| 1622 | esac |
| 1623 | eval with_$ac_useropt=\$ac_optarg ;; |
| 1624 | |
| 1625 | -without-* | --without-*) |
| 1626 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1627 | # Reject names that are not valid shell variable names. |
| 1628 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 1629 | as_fn_error "invalid package name: $ac_useropt" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1630 | ac_useropt_orig=$ac_useropt |
| 1631 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1632 | case $ac_user_opts in |
| 1633 | *" |
| 1634 | "with_$ac_useropt" |
| 1635 | "*) ;; |
| 1636 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1637 | ac_unrecognized_sep=', ';; |
| 1638 | esac |
| 1639 | eval with_$ac_useropt=no ;; |
| 1640 | |
| 1641 | --x) |
| 1642 | # Obsolete; use --with-x. |
| 1643 | with_x=yes ;; |
| 1644 | |
| 1645 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1646 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1647 | ac_prev=x_includes ;; |
| 1648 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1649 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1650 | x_includes=$ac_optarg ;; |
| 1651 | |
| 1652 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1653 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1654 | ac_prev=x_libraries ;; |
| 1655 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1656 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1657 | x_libraries=$ac_optarg ;; |
| 1658 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 1659 | -*) as_fn_error "unrecognized option: \`$ac_option' |
| 1660 | Try \`$0 --help' for more information." |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1661 | ;; |
| 1662 | |
| 1663 | *=*) |
| 1664 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1665 | # Reject names that are not valid shell variable names. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 1666 | case $ac_envvar in #( |
| 1667 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1668 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; |
| 1669 | esac |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1670 | eval $ac_envvar=\$ac_optarg |
| 1671 | export $ac_envvar ;; |
| 1672 | |
| 1673 | *) |
| 1674 | # FIXME: should be removed in autoconf 3.0. |
| 1675 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1676 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1677 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1678 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1679 | ;; |
| 1680 | |
| 1681 | esac |
| 1682 | done |
| 1683 | |
| 1684 | if test -n "$ac_prev"; then |
| 1685 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 1686 | as_fn_error "missing argument to $ac_option" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1687 | fi |
| 1688 | |
| 1689 | if test -n "$ac_unrecognized_opts"; then |
| 1690 | case $enable_option_checking in |
| 1691 | no) ;; |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 1692 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1693 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1694 | esac |
| 1695 | fi |
| 1696 | |
| 1697 | # Check all directory arguments for consistency. |
| 1698 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1699 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1700 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1701 | libdir localedir mandir |
| 1702 | do |
| 1703 | eval ac_val=\$$ac_var |
| 1704 | # Remove trailing slashes. |
| 1705 | case $ac_val in |
| 1706 | */ ) |
| 1707 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1708 | eval $ac_var=\$ac_val;; |
| 1709 | esac |
| 1710 | # Be sure to have absolute directory names. |
| 1711 | case $ac_val in |
| 1712 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1713 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1714 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 1715 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1716 | done |
| 1717 | |
| 1718 | # There might be people who depend on the old broken behavior: `$host' |
| 1719 | # used to hold the argument of --host etc. |
| 1720 | # FIXME: To remove some day. |
| 1721 | build=$build_alias |
| 1722 | host=$host_alias |
| 1723 | target=$target_alias |
| 1724 | |
| 1725 | # FIXME: To remove some day. |
| 1726 | if test "x$host_alias" != x; then |
| 1727 | if test "x$build_alias" = x; then |
| 1728 | cross_compiling=maybe |
| 1729 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1730 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1731 | elif test "x$build_alias" != "x$host_alias"; then |
| 1732 | cross_compiling=yes |
| 1733 | fi |
| 1734 | fi |
| 1735 | |
| 1736 | ac_tool_prefix= |
| 1737 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1738 | |
| 1739 | test "$silent" = yes && exec 6>/dev/null |
| 1740 | |
| 1741 | |
| 1742 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1743 | ac_ls_di=`ls -di .` && |
| 1744 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 1745 | as_fn_error "working directory cannot be determined" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1746 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 1747 | as_fn_error "pwd does not report name of working directory" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1748 | |
| 1749 | |
| 1750 | # Find the source files, if location was not specified. |
| 1751 | if test -z "$srcdir"; then |
| 1752 | ac_srcdir_defaulted=yes |
| 1753 | # Try the directory containing this script, then the parent directory. |
| 1754 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1755 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1756 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1757 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1758 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1759 | $as_echo X"$as_myself" | |
| 1760 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1761 | s//\1/ |
| 1762 | q |
| 1763 | } |
| 1764 | /^X\(\/\/\)[^/].*/{ |
| 1765 | s//\1/ |
| 1766 | q |
| 1767 | } |
| 1768 | /^X\(\/\/\)$/{ |
| 1769 | s//\1/ |
| 1770 | q |
| 1771 | } |
| 1772 | /^X\(\/\).*/{ |
| 1773 | s//\1/ |
| 1774 | q |
| 1775 | } |
| 1776 | s/.*/./; q'` |
| 1777 | srcdir=$ac_confdir |
| 1778 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1779 | srcdir=.. |
| 1780 | fi |
| 1781 | else |
| 1782 | ac_srcdir_defaulted=no |
| 1783 | fi |
| 1784 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1785 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 1786 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1787 | fi |
| 1788 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1789 | ac_abs_confdir=`( |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 1790 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1791 | pwd)` |
| 1792 | # When building in place, set srcdir=. |
| 1793 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1794 | srcdir=. |
| 1795 | fi |
| 1796 | # Remove unnecessary trailing slashes from srcdir. |
| 1797 | # Double slashes in file names in object file debugging info |
| 1798 | # mess up M-x gdb in Emacs. |
| 1799 | case $srcdir in |
| 1800 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1801 | esac |
| 1802 | for ac_var in $ac_precious_vars; do |
| 1803 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1804 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1805 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1806 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1807 | done |
| 1808 | |
| 1809 | # |
| 1810 | # Report the --help message. |
| 1811 | # |
| 1812 | if test "$ac_init_help" = "long"; then |
| 1813 | # Omit some internal or obsolete options to make the list less imposing. |
| 1814 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1815 | cat <<_ACEOF |
| cristy | d934d10 | 2009-10-10 12:55:13 +0000 | [diff] [blame] | 1816 | \`configure' configures ImageMagick 6.5.7 to adapt to many kinds of systems. |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1817 | |
| 1818 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1819 | |
| 1820 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1821 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1822 | |
| 1823 | Defaults for the options are specified in brackets. |
| 1824 | |
| 1825 | Configuration: |
| 1826 | -h, --help display this help and exit |
| 1827 | --help=short display options specific to this package |
| 1828 | --help=recursive display the short help of all the included packages |
| 1829 | -V, --version display version information and exit |
| 1830 | -q, --quiet, --silent do not print \`checking...' messages |
| 1831 | --cache-file=FILE cache test results in FILE [disabled] |
| 1832 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1833 | -n, --no-create do not create output files |
| 1834 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1835 | |
| 1836 | Installation directories: |
| 1837 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 1838 | [$ac_default_prefix] |
| 1839 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1840 | [PREFIX] |
| 1841 | |
| 1842 | By default, \`make install' will install all the files in |
| 1843 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1844 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1845 | for instance \`--prefix=\$HOME'. |
| 1846 | |
| 1847 | For better control, use the options below. |
| 1848 | |
| 1849 | Fine tuning of the installation directories: |
| 1850 | --bindir=DIR user executables [EPREFIX/bin] |
| 1851 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1852 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1853 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1854 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1855 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1856 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1857 | --includedir=DIR C header files [PREFIX/include] |
| 1858 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1859 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1860 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1861 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1862 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1863 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1864 | --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick] |
| 1865 | --htmldir=DIR html documentation [DOCDIR] |
| 1866 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1867 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1868 | --psdir=DIR ps documentation [DOCDIR] |
| 1869 | _ACEOF |
| 1870 | |
| 1871 | cat <<\_ACEOF |
| 1872 | |
| 1873 | Program names: |
| 1874 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 1875 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 1876 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 1877 | |
| 1878 | X features: |
| 1879 | --x-includes=DIR X include files are in DIR |
| 1880 | --x-libraries=DIR X library files are in DIR |
| 1881 | |
| 1882 | System types: |
| 1883 | --build=BUILD configure for building on BUILD [guessed] |
| 1884 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1885 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 1886 | _ACEOF |
| 1887 | fi |
| 1888 | |
| 1889 | if test -n "$ac_init_help"; then |
| 1890 | case $ac_init_help in |
| cristy | d934d10 | 2009-10-10 12:55:13 +0000 | [diff] [blame] | 1891 | short | recursive ) echo "Configuration of ImageMagick 6.5.7:";; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1892 | esac |
| 1893 | cat <<\_ACEOF |
| 1894 | |
| 1895 | Optional Features: |
| 1896 | --disable-option-checking ignore unrecognized --enable/--with options |
| 1897 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1898 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1899 | --enable-silent-rules less verbose build output (undo: `make V=1') |
| 1900 | --disable-silent-rules verbose build output (undo: `make V=0') |
| 1901 | --disable-dependency-tracking speeds up one-time build |
| 1902 | --enable-dependency-tracking do not reject slow dependency extractors |
| 1903 | --bounds-checking enable run-time bounds-checking |
| 1904 | --enable-osx-universal-binary |
| 1905 | build universal binary on OS X [default=no] |
| 1906 | --disable-openmp do not use OpenMP |
| 1907 | --disable-largefile omit support for large files |
| 1908 | --enable-shared[=PKGS] build shared libraries [default=yes] |
| 1909 | --enable-static[=PKGS] build static libraries [default=yes] |
| 1910 | --enable-fast-install[=PKGS] |
| 1911 | optimize for fast installation [default=yes] |
| 1912 | --disable-libtool-lock avoid locking (might break parallel builds) |
| 1913 | --enable-ltdl-install install libltdl |
| 1914 | --enable-delegate-build look for delegate libraries in build directory |
| 1915 | --disable-deprecated exclude deprecated methods in MagickCore and |
| 1916 | MagickWand API's |
| 1917 | --disable-installed Formally install ImageMagick under PREFIX |
| 1918 | --disable-cipher disable enciphering and deciphering image pixels |
| 1919 | --enable-embeddable enable self-contained, embeddable, |
| 1920 | zero-configuration ImageMagick |
| 1921 | --enable-hdri accurately represent the wide range of intensity |
| 1922 | levels found in real scenes |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1923 | --disable-assert disable assert() statements in build |
| 1924 | --enable-maintainer-mode enable make rules and dependencies not useful |
| 1925 | (and sometimes confusing) to the casual installer |
| 1926 | --enable-ccmalloc enable 'ccmalloc' memory debug support |
| 1927 | --enable-efence enable 'efence' memory debug support |
| 1928 | --enable-prof enable 'prof' profiling support |
| 1929 | --enable-gprof enable 'gprof' profiling support |
| 1930 | --enable-gcov enable 'gcov' profiling support |
| 1931 | |
| 1932 | Optional Packages: |
| 1933 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1934 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1935 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1936 | --without-maximum-compile-warnings |
| 1937 | Disable maximum warning verbosity |
| 1938 | --with-dmalloc use dmalloc, as in |
| 1939 | http://www.dmalloc.com/dmalloc.tar.gz |
| 1940 | --without-threads disable threads support |
| 1941 | --with-pic try to use only PIC/non-PIC objects [default=use |
| 1942 | both] |
| 1943 | --with-included-ltdl use the GNU ltdl sources included here |
| 1944 | --with-ltdl-include=DIR use the ltdl headers installed in DIR |
| 1945 | --with-ltdl-lib=DIR use the libltdl.la installed in DIR |
| 1946 | --with-modules enable building dynamically loadable modules |
| 1947 | --with-method-prefix=PREFIX |
| 1948 | prefix MagickCore API methods |
| 1949 | --with-quantum-depth=DEPTH |
| 1950 | number of bits in a pixel quantum (default 16) |
| 1951 | --with-cache=THRESHOLD set pixel cache threshhold in MB (default available |
| 1952 | memory) |
| 1953 | --with-frozenpaths freeze delegate paths |
| 1954 | --without-magick-plus-plus |
| 1955 | disable build/install of Magick++ |
| 1956 | --with-perl enable build/install of PerlMagick |
| 1957 | --with-perl-options=OPTIONS |
| 1958 | options to pass on command-line when generating |
| 1959 | PerlMagick's build file |
| 1960 | --with-umem enable umem memory allocation library support |
| 1961 | --with-libstdc=DIR use libstdc++ in DIR (for GNU C++) |
| 1962 | --without-bzlib disable BZLIB support |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 1963 | --with-x use the X Window System |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1964 | --without-zlib disable ZLIB support |
| 1965 | --with-autotrace enable autotrace support |
| 1966 | --without-dps disable Display Postscript support |
| 1967 | --without-djvu disable DjVu support |
| 1968 | --without-fftw disable FFTW support |
| 1969 | --without-fpx disable FlashPIX support |
| 1970 | --without-fontconfig disable fontconfig support |
| 1971 | --without-freetype disable Freetype support |
| 1972 | --without-gslib enable Ghostscript library support |
| 1973 | --with-fontpath=DIR prepend to default font search path |
| 1974 | --with-gs-font-dir=DIR Ghostscript font directory |
| 1975 | --without-gvc disable GVC support |
| 1976 | --without-jbig disable JBIG support |
| 1977 | --without-jpeg disable JPEG support |
| 1978 | --without-jp2 disable JPEG-2000 support |
| 1979 | --without-lcms disable LCMS support |
| 1980 | --without-lqr disable Liquid Rescale support (experimental) |
| 1981 | --without-openexr disable OpenEXR support |
| 1982 | --without-png disable PNG support |
| 1983 | --without-rsvg disable RSVG support |
| 1984 | --without-tiff disable TIFF support |
| 1985 | --with-windows-font-dir=DIR |
| 1986 | directory containing MS-Windows fonts |
| 1987 | --without-wmf disable WMF support |
| 1988 | --without-xml disable XML support |
| 1989 | |
| 1990 | Some influential environment variables: |
| 1991 | CC C compiler command |
| 1992 | CFLAGS C compiler flags |
| 1993 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1994 | nonstandard directory <lib dir> |
| 1995 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1996 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1997 | you have headers in a nonstandard directory <include dir> |
| 1998 | CPP C preprocessor |
| 1999 | CXX C++ compiler command |
| 2000 | CXXFLAGS C++ compiler flags |
| 2001 | PKG_CONFIG path to pkg-config utility |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 2002 | CXXCPP C++ preprocessor |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 2003 | XMKMF Path to xmkmf, Makefile generator for X Window System |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2004 | AUTOTRACE_CFLAGS |
| 2005 | C compiler flags for AUTOTRACE, overriding pkg-config |
| 2006 | AUTOTRACE_LIBS |
| 2007 | linker flags for AUTOTRACE, overriding pkg-config |
| 2008 | FONTCONFIG_CFLAGS |
| 2009 | C compiler flags for FONTCONFIG, overriding pkg-config |
| 2010 | FONTCONFIG_LIBS |
| 2011 | linker flags for FONTCONFIG, overriding pkg-config |
| 2012 | GVC_CFLAGS C compiler flags for GVC, overriding pkg-config |
| 2013 | GVC_LIBS linker flags for GVC, overriding pkg-config |
| 2014 | LQR_CFLAGS C compiler flags for LQR, overriding pkg-config |
| 2015 | LQR_LIBS linker flags for LQR, overriding pkg-config |
| 2016 | OPENEXR_CFLAGS |
| 2017 | C compiler flags for OPENEXR, overriding pkg-config |
| 2018 | OPENEXR_LIBS |
| 2019 | linker flags for OPENEXR, overriding pkg-config |
| 2020 | RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config |
| 2021 | RSVG_LIBS linker flags for RSVG, overriding pkg-config |
| 2022 | CAIRO_SVG_CFLAGS |
| 2023 | C compiler flags for CAIRO_SVG, overriding pkg-config |
| 2024 | CAIRO_SVG_LIBS |
| 2025 | linker flags for CAIRO_SVG, overriding pkg-config |
| 2026 | |
| 2027 | Use these variables to override the choices made by `configure' or to help |
| 2028 | it to find libraries and programs with nonstandard names/locations. |
| 2029 | |
| 2030 | Report bugs to <http://www.imagemagick.org>. |
| 2031 | _ACEOF |
| 2032 | ac_status=$? |
| 2033 | fi |
| 2034 | |
| 2035 | if test "$ac_init_help" = "recursive"; then |
| 2036 | # If there are subdirs, report their specific --help. |
| 2037 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 2038 | test -d "$ac_dir" || |
| 2039 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 2040 | continue |
| 2041 | ac_builddir=. |
| 2042 | |
| 2043 | case "$ac_dir" in |
| 2044 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 2045 | *) |
| 2046 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 2047 | # A ".." for each directory in $ac_dir_suffix. |
| 2048 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 2049 | case $ac_top_builddir_sub in |
| 2050 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 2051 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 2052 | esac ;; |
| 2053 | esac |
| 2054 | ac_abs_top_builddir=$ac_pwd |
| 2055 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 2056 | # for backward compatibility: |
| 2057 | ac_top_builddir=$ac_top_build_prefix |
| 2058 | |
| 2059 | case $srcdir in |
| 2060 | .) # We are building in place. |
| 2061 | ac_srcdir=. |
| 2062 | ac_top_srcdir=$ac_top_builddir_sub |
| 2063 | ac_abs_top_srcdir=$ac_pwd ;; |
| 2064 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 2065 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 2066 | ac_top_srcdir=$srcdir |
| 2067 | ac_abs_top_srcdir=$srcdir ;; |
| 2068 | *) # Relative name. |
| 2069 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 2070 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 2071 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 2072 | esac |
| 2073 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 2074 | |
| 2075 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 2076 | # Check for guested configure. |
| 2077 | if test -f "$ac_srcdir/configure.gnu"; then |
| 2078 | echo && |
| 2079 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 2080 | elif test -f "$ac_srcdir/configure"; then |
| 2081 | echo && |
| 2082 | $SHELL "$ac_srcdir/configure" --help=recursive |
| 2083 | else |
| 2084 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 2085 | fi || ac_status=$? |
| 2086 | cd "$ac_pwd" || { ac_status=$?; break; } |
| 2087 | done |
| 2088 | fi |
| 2089 | |
| 2090 | test -n "$ac_init_help" && exit $ac_status |
| 2091 | if $ac_init_version; then |
| 2092 | cat <<\_ACEOF |
| cristy | d934d10 | 2009-10-10 12:55:13 +0000 | [diff] [blame] | 2093 | ImageMagick configure 6.5.7 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 2094 | generated by GNU Autoconf 2.64 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2095 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 2096 | Copyright (C) 2009 Free Software Foundation, Inc. |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2097 | This configure script is free software; the Free Software Foundation |
| 2098 | gives unlimited permission to copy, distribute and modify it. |
| 2099 | _ACEOF |
| 2100 | exit |
| 2101 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 2102 | |
| 2103 | ## ------------------------ ## |
| 2104 | ## Autoconf initialization. ## |
| 2105 | ## ------------------------ ## |
| 2106 | |
| 2107 | # ac_fn_c_try_compile LINENO |
| 2108 | # -------------------------- |
| 2109 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 2110 | ac_fn_c_try_compile () |
| 2111 | { |
| 2112 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2113 | rm -f conftest.$ac_objext |
| 2114 | if { { ac_try="$ac_compile" |
| 2115 | case "(($ac_try" in |
| 2116 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2117 | *) ac_try_echo=$ac_try;; |
| 2118 | esac |
| 2119 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2120 | $as_echo "$ac_try_echo"; } >&5 |
| 2121 | (eval "$ac_compile") 2>conftest.err |
| 2122 | ac_status=$? |
| 2123 | if test -s conftest.err; then |
| 2124 | grep -v '^ *+' conftest.err >conftest.er1 |
| 2125 | cat conftest.er1 >&5 |
| 2126 | mv -f conftest.er1 conftest.err |
| 2127 | fi |
| 2128 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2129 | test $ac_status = 0; } && { |
| 2130 | test -z "$ac_c_werror_flag" || |
| 2131 | test ! -s conftest.err |
| 2132 | } && test -s conftest.$ac_objext; then : |
| 2133 | ac_retval=0 |
| 2134 | else |
| 2135 | $as_echo "$as_me: failed program was:" >&5 |
| 2136 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2137 | |
| 2138 | ac_retval=1 |
| 2139 | fi |
| 2140 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2141 | return $ac_retval |
| 2142 | |
| 2143 | } # ac_fn_c_try_compile |
| 2144 | |
| 2145 | # ac_fn_c_try_cpp LINENO |
| 2146 | # ---------------------- |
| 2147 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 2148 | ac_fn_c_try_cpp () |
| 2149 | { |
| 2150 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2151 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 2152 | case "(($ac_try" in |
| 2153 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2154 | *) ac_try_echo=$ac_try;; |
| 2155 | esac |
| 2156 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2157 | $as_echo "$ac_try_echo"; } >&5 |
| 2158 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 2159 | ac_status=$? |
| 2160 | if test -s conftest.err; then |
| 2161 | grep -v '^ *+' conftest.err >conftest.er1 |
| 2162 | cat conftest.er1 >&5 |
| 2163 | mv -f conftest.er1 conftest.err |
| 2164 | fi |
| 2165 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2166 | test $ac_status = 0; } >/dev/null && { |
| 2167 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 2168 | test ! -s conftest.err |
| 2169 | }; then : |
| 2170 | ac_retval=0 |
| 2171 | else |
| 2172 | $as_echo "$as_me: failed program was:" >&5 |
| 2173 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2174 | |
| 2175 | ac_retval=1 |
| 2176 | fi |
| 2177 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2178 | return $ac_retval |
| 2179 | |
| 2180 | } # ac_fn_c_try_cpp |
| 2181 | |
| 2182 | # ac_fn_cxx_try_compile LINENO |
| 2183 | # ---------------------------- |
| 2184 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 2185 | ac_fn_cxx_try_compile () |
| 2186 | { |
| 2187 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2188 | rm -f conftest.$ac_objext |
| 2189 | if { { ac_try="$ac_compile" |
| 2190 | case "(($ac_try" in |
| 2191 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2192 | *) ac_try_echo=$ac_try;; |
| 2193 | esac |
| 2194 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2195 | $as_echo "$ac_try_echo"; } >&5 |
| 2196 | (eval "$ac_compile") 2>conftest.err |
| 2197 | ac_status=$? |
| 2198 | if test -s conftest.err; then |
| 2199 | grep -v '^ *+' conftest.err >conftest.er1 |
| 2200 | cat conftest.er1 >&5 |
| 2201 | mv -f conftest.er1 conftest.err |
| 2202 | fi |
| 2203 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2204 | test $ac_status = 0; } && { |
| 2205 | test -z "$ac_cxx_werror_flag" || |
| 2206 | test ! -s conftest.err |
| 2207 | } && test -s conftest.$ac_objext; then : |
| 2208 | ac_retval=0 |
| 2209 | else |
| 2210 | $as_echo "$as_me: failed program was:" >&5 |
| 2211 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2212 | |
| 2213 | ac_retval=1 |
| 2214 | fi |
| 2215 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2216 | return $ac_retval |
| 2217 | |
| 2218 | } # ac_fn_cxx_try_compile |
| 2219 | |
| 2220 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 2221 | # ------------------------------------------------------- |
| 2222 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 2223 | # the include files in INCLUDES and setting the cache variable VAR |
| 2224 | # accordingly. |
| 2225 | ac_fn_c_check_header_mongrel () |
| 2226 | { |
| 2227 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2228 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2230 | $as_echo_n "checking for $2... " >&6; } |
| 2231 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2232 | $as_echo_n "(cached) " >&6 |
| 2233 | fi |
| 2234 | eval ac_res=\$$3 |
| 2235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2236 | $as_echo "$ac_res" >&6; } |
| 2237 | else |
| 2238 | # Is the header compilable? |
| 2239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 2240 | $as_echo_n "checking $2 usability... " >&6; } |
| 2241 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2242 | /* end confdefs.h. */ |
| 2243 | $4 |
| 2244 | #include <$2> |
| 2245 | _ACEOF |
| 2246 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2247 | ac_header_compiler=yes |
| 2248 | else |
| 2249 | ac_header_compiler=no |
| 2250 | fi |
| 2251 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 2253 | $as_echo "$ac_header_compiler" >&6; } |
| 2254 | |
| 2255 | # Is the header present? |
| 2256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 2257 | $as_echo_n "checking $2 presence... " >&6; } |
| 2258 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2259 | /* end confdefs.h. */ |
| 2260 | #include <$2> |
| 2261 | _ACEOF |
| 2262 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 2263 | ac_header_preproc=yes |
| 2264 | else |
| 2265 | ac_header_preproc=no |
| 2266 | fi |
| 2267 | rm -f conftest.err conftest.$ac_ext |
| 2268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 2269 | $as_echo "$ac_header_preproc" >&6; } |
| 2270 | |
| 2271 | # So? What about this header? |
| 2272 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 2273 | yes:no: ) |
| 2274 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 2275 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 2276 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 2277 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 2278 | ;; |
| 2279 | no:yes:* ) |
| 2280 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 2281 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 2282 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 2283 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 2284 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 2285 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 2286 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 2287 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 2288 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 2289 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 2290 | ( cat <<\_ASBOX |
| 2291 | ## ----------------------------------------- ## |
| 2292 | ## Report this to http://www.imagemagick.org ## |
| 2293 | ## ----------------------------------------- ## |
| 2294 | _ASBOX |
| 2295 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 2296 | ;; |
| 2297 | esac |
| 2298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2299 | $as_echo_n "checking for $2... " >&6; } |
| 2300 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2301 | $as_echo_n "(cached) " >&6 |
| 2302 | else |
| 2303 | eval "$3=\$ac_header_compiler" |
| 2304 | fi |
| 2305 | eval ac_res=\$$3 |
| 2306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2307 | $as_echo "$ac_res" >&6; } |
| 2308 | fi |
| 2309 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2310 | |
| 2311 | } # ac_fn_c_check_header_mongrel |
| 2312 | |
| 2313 | # ac_fn_c_try_run LINENO |
| 2314 | # ---------------------- |
| 2315 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 2316 | # that executables *can* be run. |
| 2317 | ac_fn_c_try_run () |
| 2318 | { |
| 2319 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2320 | if { { ac_try="$ac_link" |
| 2321 | case "(($ac_try" in |
| 2322 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2323 | *) ac_try_echo=$ac_try;; |
| 2324 | esac |
| 2325 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2326 | $as_echo "$ac_try_echo"; } >&5 |
| 2327 | (eval "$ac_link") 2>&5 |
| 2328 | ac_status=$? |
| 2329 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2330 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 2331 | { { case "(($ac_try" in |
| 2332 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2333 | *) ac_try_echo=$ac_try;; |
| 2334 | esac |
| 2335 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2336 | $as_echo "$ac_try_echo"; } >&5 |
| 2337 | (eval "$ac_try") 2>&5 |
| 2338 | ac_status=$? |
| 2339 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2340 | test $ac_status = 0; }; }; then : |
| 2341 | ac_retval=0 |
| 2342 | else |
| 2343 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 2344 | $as_echo "$as_me: failed program was:" >&5 |
| 2345 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2346 | |
| 2347 | ac_retval=$ac_status |
| 2348 | fi |
| 2349 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 2350 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2351 | return $ac_retval |
| 2352 | |
| 2353 | } # ac_fn_c_try_run |
| 2354 | |
| 2355 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 2356 | # ------------------------------------------------------- |
| 2357 | # Tests whether HEADER exists and can be compiled using the include files in |
| 2358 | # INCLUDES, setting the cache variable VAR accordingly. |
| 2359 | ac_fn_c_check_header_compile () |
| 2360 | { |
| 2361 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2362 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2363 | $as_echo_n "checking for $2... " >&6; } |
| 2364 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2365 | $as_echo_n "(cached) " >&6 |
| 2366 | else |
| 2367 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2368 | /* end confdefs.h. */ |
| 2369 | $4 |
| 2370 | #include <$2> |
| 2371 | _ACEOF |
| 2372 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2373 | eval "$3=yes" |
| 2374 | else |
| 2375 | eval "$3=no" |
| 2376 | fi |
| 2377 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2378 | fi |
| 2379 | eval ac_res=\$$3 |
| 2380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2381 | $as_echo "$ac_res" >&6; } |
| 2382 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2383 | |
| 2384 | } # ac_fn_c_check_header_compile |
| 2385 | |
| 2386 | # ac_fn_c_try_link LINENO |
| 2387 | # ----------------------- |
| 2388 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 2389 | ac_fn_c_try_link () |
| 2390 | { |
| 2391 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2392 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2393 | if { { ac_try="$ac_link" |
| 2394 | case "(($ac_try" in |
| 2395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2396 | *) ac_try_echo=$ac_try;; |
| 2397 | esac |
| 2398 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2399 | $as_echo "$ac_try_echo"; } >&5 |
| 2400 | (eval "$ac_link") 2>conftest.err |
| 2401 | ac_status=$? |
| 2402 | if test -s conftest.err; then |
| 2403 | grep -v '^ *+' conftest.err >conftest.er1 |
| 2404 | cat conftest.er1 >&5 |
| 2405 | mv -f conftest.er1 conftest.err |
| 2406 | fi |
| 2407 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2408 | test $ac_status = 0; } && { |
| 2409 | test -z "$ac_c_werror_flag" || |
| 2410 | test ! -s conftest.err |
| 2411 | } && test -s conftest$ac_exeext && { |
| 2412 | test "$cross_compiling" = yes || |
| 2413 | $as_test_x conftest$ac_exeext |
| 2414 | }; then : |
| 2415 | ac_retval=0 |
| 2416 | else |
| 2417 | $as_echo "$as_me: failed program was:" >&5 |
| 2418 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2419 | |
| 2420 | ac_retval=1 |
| 2421 | fi |
| 2422 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 2423 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 2424 | # interfere with the next link command; also delete a directory that is |
| 2425 | # left behind by Apple's compiler. We do this before executing the actions. |
| 2426 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 2427 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2428 | return $ac_retval |
| 2429 | |
| 2430 | } # ac_fn_c_try_link |
| 2431 | |
| 2432 | # ac_fn_c_check_func LINENO FUNC VAR |
| 2433 | # ---------------------------------- |
| 2434 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 2435 | ac_fn_c_check_func () |
| 2436 | { |
| 2437 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2439 | $as_echo_n "checking for $2... " >&6; } |
| 2440 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2441 | $as_echo_n "(cached) " >&6 |
| 2442 | else |
| 2443 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2444 | /* end confdefs.h. */ |
| 2445 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 2446 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 2447 | #define $2 innocuous_$2 |
| 2448 | |
| 2449 | /* System header to define __stub macros and hopefully few prototypes, |
| 2450 | which can conflict with char $2 (); below. |
| 2451 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2452 | <limits.h> exists even on freestanding compilers. */ |
| 2453 | |
| 2454 | #ifdef __STDC__ |
| 2455 | # include <limits.h> |
| 2456 | #else |
| 2457 | # include <assert.h> |
| 2458 | #endif |
| 2459 | |
| 2460 | #undef $2 |
| 2461 | |
| 2462 | /* Override any GCC internal prototype to avoid an error. |
| 2463 | Use char because int might match the return type of a GCC |
| 2464 | builtin and then its argument prototype would still apply. */ |
| 2465 | #ifdef __cplusplus |
| 2466 | extern "C" |
| 2467 | #endif |
| 2468 | char $2 (); |
| 2469 | /* The GNU C library defines this for functions which it implements |
| 2470 | to always fail with ENOSYS. Some functions are actually named |
| 2471 | something starting with __ and the normal name is an alias. */ |
| 2472 | #if defined __stub_$2 || defined __stub___$2 |
| 2473 | choke me |
| 2474 | #endif |
| 2475 | |
| 2476 | int |
| 2477 | main () |
| 2478 | { |
| 2479 | return $2 (); |
| 2480 | ; |
| 2481 | return 0; |
| 2482 | } |
| 2483 | _ACEOF |
| 2484 | if ac_fn_c_try_link "$LINENO"; then : |
| 2485 | eval "$3=yes" |
| 2486 | else |
| 2487 | eval "$3=no" |
| 2488 | fi |
| 2489 | rm -f core conftest.err conftest.$ac_objext \ |
| 2490 | conftest$ac_exeext conftest.$ac_ext |
| 2491 | fi |
| 2492 | eval ac_res=\$$3 |
| 2493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2494 | $as_echo "$ac_res" >&6; } |
| 2495 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2496 | |
| 2497 | } # ac_fn_c_check_func |
| 2498 | |
| 2499 | # ac_fn_cxx_try_cpp LINENO |
| 2500 | # ------------------------ |
| 2501 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 2502 | ac_fn_cxx_try_cpp () |
| 2503 | { |
| 2504 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2505 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 2506 | case "(($ac_try" in |
| 2507 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2508 | *) ac_try_echo=$ac_try;; |
| 2509 | esac |
| 2510 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2511 | $as_echo "$ac_try_echo"; } >&5 |
| 2512 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 2513 | ac_status=$? |
| 2514 | if test -s conftest.err; then |
| 2515 | grep -v '^ *+' conftest.err >conftest.er1 |
| 2516 | cat conftest.er1 >&5 |
| 2517 | mv -f conftest.er1 conftest.err |
| 2518 | fi |
| 2519 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2520 | test $ac_status = 0; } >/dev/null && { |
| 2521 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
| 2522 | test ! -s conftest.err |
| 2523 | }; then : |
| 2524 | ac_retval=0 |
| 2525 | else |
| 2526 | $as_echo "$as_me: failed program was:" >&5 |
| 2527 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2528 | |
| 2529 | ac_retval=1 |
| 2530 | fi |
| 2531 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2532 | return $ac_retval |
| 2533 | |
| 2534 | } # ac_fn_cxx_try_cpp |
| 2535 | |
| 2536 | # ac_fn_cxx_try_link LINENO |
| 2537 | # ------------------------- |
| 2538 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 2539 | ac_fn_cxx_try_link () |
| 2540 | { |
| 2541 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2542 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2543 | if { { ac_try="$ac_link" |
| 2544 | case "(($ac_try" in |
| 2545 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2546 | *) ac_try_echo=$ac_try;; |
| 2547 | esac |
| 2548 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2549 | $as_echo "$ac_try_echo"; } >&5 |
| 2550 | (eval "$ac_link") 2>conftest.err |
| 2551 | ac_status=$? |
| 2552 | if test -s conftest.err; then |
| 2553 | grep -v '^ *+' conftest.err >conftest.er1 |
| 2554 | cat conftest.er1 >&5 |
| 2555 | mv -f conftest.er1 conftest.err |
| 2556 | fi |
| 2557 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2558 | test $ac_status = 0; } && { |
| 2559 | test -z "$ac_cxx_werror_flag" || |
| 2560 | test ! -s conftest.err |
| 2561 | } && test -s conftest$ac_exeext && { |
| 2562 | test "$cross_compiling" = yes || |
| 2563 | $as_test_x conftest$ac_exeext |
| 2564 | }; then : |
| 2565 | ac_retval=0 |
| 2566 | else |
| 2567 | $as_echo "$as_me: failed program was:" >&5 |
| 2568 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2569 | |
| 2570 | ac_retval=1 |
| 2571 | fi |
| 2572 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 2573 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 2574 | # interfere with the next link command; also delete a directory that is |
| 2575 | # left behind by Apple's compiler. We do this before executing the actions. |
| 2576 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 2577 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2578 | return $ac_retval |
| 2579 | |
| 2580 | } # ac_fn_cxx_try_link |
| 2581 | |
| 2582 | # ac_fn_c_check_decl LINENO SYMBOL VAR |
| 2583 | # ------------------------------------ |
| 2584 | # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. |
| 2585 | ac_fn_c_check_decl () |
| 2586 | { |
| 2587 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2588 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5 |
| 2589 | $as_echo_n "checking whether $2 is declared... " >&6; } |
| 2590 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2591 | $as_echo_n "(cached) " >&6 |
| 2592 | else |
| 2593 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2594 | /* end confdefs.h. */ |
| 2595 | $4 |
| 2596 | int |
| 2597 | main () |
| 2598 | { |
| 2599 | #ifndef $2 |
| 2600 | (void) $2; |
| 2601 | #endif |
| 2602 | |
| 2603 | ; |
| 2604 | return 0; |
| 2605 | } |
| 2606 | _ACEOF |
| 2607 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2608 | eval "$3=yes" |
| 2609 | else |
| 2610 | eval "$3=no" |
| 2611 | fi |
| 2612 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2613 | fi |
| 2614 | eval ac_res=\$$3 |
| 2615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2616 | $as_echo "$ac_res" >&6; } |
| 2617 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2618 | |
| 2619 | } # ac_fn_c_check_decl |
| 2620 | |
| 2621 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 2622 | # ------------------------------------------- |
| 2623 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 2624 | # variable VAR accordingly. |
| 2625 | ac_fn_c_check_type () |
| 2626 | { |
| 2627 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2629 | $as_echo_n "checking for $2... " >&6; } |
| 2630 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2631 | $as_echo_n "(cached) " >&6 |
| 2632 | else |
| 2633 | eval "$3=no" |
| 2634 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2635 | /* end confdefs.h. */ |
| 2636 | $4 |
| 2637 | int |
| 2638 | main () |
| 2639 | { |
| 2640 | if (sizeof ($2)) |
| 2641 | return 0; |
| 2642 | ; |
| 2643 | return 0; |
| 2644 | } |
| 2645 | _ACEOF |
| 2646 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2647 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2648 | /* end confdefs.h. */ |
| 2649 | $4 |
| 2650 | int |
| 2651 | main () |
| 2652 | { |
| 2653 | if (sizeof (($2))) |
| 2654 | return 0; |
| 2655 | ; |
| 2656 | return 0; |
| 2657 | } |
| 2658 | _ACEOF |
| 2659 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2660 | |
| 2661 | else |
| 2662 | eval "$3=yes" |
| 2663 | fi |
| 2664 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2665 | fi |
| 2666 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2667 | fi |
| 2668 | eval ac_res=\$$3 |
| 2669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2670 | $as_echo "$ac_res" >&6; } |
| 2671 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2672 | |
| 2673 | } # ac_fn_c_check_type |
| 2674 | |
| 2675 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
| 2676 | # -------------------------------------------- |
| 2677 | # Tries to find the compile-time value of EXPR in a program that includes |
| 2678 | # INCLUDES, setting VAR accordingly. Returns whether the value could be |
| 2679 | # computed |
| 2680 | ac_fn_c_compute_int () |
| 2681 | { |
| 2682 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2683 | if test "$cross_compiling" = yes; then |
| 2684 | # Depending upon the size, compute the lo and hi bounds. |
| 2685 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2686 | /* end confdefs.h. */ |
| 2687 | $4 |
| 2688 | int |
| 2689 | main () |
| 2690 | { |
| 2691 | static int test_array [1 - 2 * !(($2) >= 0)]; |
| 2692 | test_array [0] = 0 |
| 2693 | |
| 2694 | ; |
| 2695 | return 0; |
| 2696 | } |
| 2697 | _ACEOF |
| 2698 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2699 | ac_lo=0 ac_mid=0 |
| 2700 | while :; do |
| 2701 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2702 | /* end confdefs.h. */ |
| 2703 | $4 |
| 2704 | int |
| 2705 | main () |
| 2706 | { |
| 2707 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2708 | test_array [0] = 0 |
| 2709 | |
| 2710 | ; |
| 2711 | return 0; |
| 2712 | } |
| 2713 | _ACEOF |
| 2714 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2715 | ac_hi=$ac_mid; break |
| 2716 | else |
| 2717 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
| 2718 | if test $ac_lo -le $ac_mid; then |
| 2719 | ac_lo= ac_hi= |
| 2720 | break |
| 2721 | fi |
| 2722 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
| 2723 | fi |
| 2724 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2725 | done |
| 2726 | else |
| 2727 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2728 | /* end confdefs.h. */ |
| 2729 | $4 |
| 2730 | int |
| 2731 | main () |
| 2732 | { |
| 2733 | static int test_array [1 - 2 * !(($2) < 0)]; |
| 2734 | test_array [0] = 0 |
| 2735 | |
| 2736 | ; |
| 2737 | return 0; |
| 2738 | } |
| 2739 | _ACEOF |
| 2740 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2741 | ac_hi=-1 ac_mid=-1 |
| 2742 | while :; do |
| 2743 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2744 | /* end confdefs.h. */ |
| 2745 | $4 |
| 2746 | int |
| 2747 | main () |
| 2748 | { |
| 2749 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
| 2750 | test_array [0] = 0 |
| 2751 | |
| 2752 | ; |
| 2753 | return 0; |
| 2754 | } |
| 2755 | _ACEOF |
| 2756 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2757 | ac_lo=$ac_mid; break |
| 2758 | else |
| 2759 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
| 2760 | if test $ac_mid -le $ac_hi; then |
| 2761 | ac_lo= ac_hi= |
| 2762 | break |
| 2763 | fi |
| 2764 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
| 2765 | fi |
| 2766 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2767 | done |
| 2768 | else |
| 2769 | ac_lo= ac_hi= |
| 2770 | fi |
| 2771 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2772 | fi |
| 2773 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2774 | # Binary search between lo and hi bounds. |
| 2775 | while test "x$ac_lo" != "x$ac_hi"; do |
| 2776 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
| 2777 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2778 | /* end confdefs.h. */ |
| 2779 | $4 |
| 2780 | int |
| 2781 | main () |
| 2782 | { |
| 2783 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2784 | test_array [0] = 0 |
| 2785 | |
| 2786 | ; |
| 2787 | return 0; |
| 2788 | } |
| 2789 | _ACEOF |
| 2790 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2791 | ac_hi=$ac_mid |
| 2792 | else |
| 2793 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
| 2794 | fi |
| 2795 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2796 | done |
| 2797 | case $ac_lo in #(( |
| 2798 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
| 2799 | '') ac_retval=1 ;; |
| 2800 | esac |
| 2801 | else |
| 2802 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2803 | /* end confdefs.h. */ |
| 2804 | $4 |
| 2805 | static long int longval () { return $2; } |
| 2806 | static unsigned long int ulongval () { return $2; } |
| 2807 | #include <stdio.h> |
| 2808 | #include <stdlib.h> |
| 2809 | int |
| 2810 | main () |
| 2811 | { |
| 2812 | |
| 2813 | FILE *f = fopen ("conftest.val", "w"); |
| 2814 | if (! f) |
| 2815 | return 1; |
| 2816 | if (($2) < 0) |
| 2817 | { |
| 2818 | long int i = longval (); |
| 2819 | if (i != ($2)) |
| 2820 | return 1; |
| 2821 | fprintf (f, "%ld", i); |
| 2822 | } |
| 2823 | else |
| 2824 | { |
| 2825 | unsigned long int i = ulongval (); |
| 2826 | if (i != ($2)) |
| 2827 | return 1; |
| 2828 | fprintf (f, "%lu", i); |
| 2829 | } |
| 2830 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 2831 | on some platforms. */ |
| 2832 | return ferror (f) || fclose (f) != 0; |
| 2833 | |
| 2834 | ; |
| 2835 | return 0; |
| 2836 | } |
| 2837 | _ACEOF |
| 2838 | if ac_fn_c_try_run "$LINENO"; then : |
| 2839 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
| 2840 | else |
| 2841 | ac_retval=1 |
| 2842 | fi |
| 2843 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 2844 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2845 | rm -f conftest.val |
| 2846 | |
| 2847 | fi |
| 2848 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2849 | return $ac_retval |
| 2850 | |
| 2851 | } # ac_fn_c_compute_int |
| 2852 | |
| 2853 | # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 2854 | # --------------------------------------------------------- |
| 2855 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 2856 | # the include files in INCLUDES and setting the cache variable VAR |
| 2857 | # accordingly. |
| 2858 | ac_fn_cxx_check_header_mongrel () |
| 2859 | { |
| 2860 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2861 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2863 | $as_echo_n "checking for $2... " >&6; } |
| 2864 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2865 | $as_echo_n "(cached) " >&6 |
| 2866 | fi |
| 2867 | eval ac_res=\$$3 |
| 2868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2869 | $as_echo "$ac_res" >&6; } |
| 2870 | else |
| 2871 | # Is the header compilable? |
| 2872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 2873 | $as_echo_n "checking $2 usability... " >&6; } |
| 2874 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2875 | /* end confdefs.h. */ |
| 2876 | $4 |
| 2877 | #include <$2> |
| 2878 | _ACEOF |
| 2879 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 2880 | ac_header_compiler=yes |
| 2881 | else |
| 2882 | ac_header_compiler=no |
| 2883 | fi |
| 2884 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 2886 | $as_echo "$ac_header_compiler" >&6; } |
| 2887 | |
| 2888 | # Is the header present? |
| 2889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 2890 | $as_echo_n "checking $2 presence... " >&6; } |
| 2891 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2892 | /* end confdefs.h. */ |
| 2893 | #include <$2> |
| 2894 | _ACEOF |
| 2895 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 2896 | ac_header_preproc=yes |
| 2897 | else |
| 2898 | ac_header_preproc=no |
| 2899 | fi |
| 2900 | rm -f conftest.err conftest.$ac_ext |
| 2901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 2902 | $as_echo "$ac_header_preproc" >&6; } |
| 2903 | |
| 2904 | # So? What about this header? |
| 2905 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( |
| 2906 | yes:no: ) |
| 2907 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 2908 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 2909 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 2910 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 2911 | ;; |
| 2912 | no:yes:* ) |
| 2913 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 2914 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 2915 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 2916 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 2917 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 2918 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 2919 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 2920 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 2921 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 2922 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 2923 | ( cat <<\_ASBOX |
| 2924 | ## ----------------------------------------- ## |
| 2925 | ## Report this to http://www.imagemagick.org ## |
| 2926 | ## ----------------------------------------- ## |
| 2927 | _ASBOX |
| 2928 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 2929 | ;; |
| 2930 | esac |
| 2931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2932 | $as_echo_n "checking for $2... " >&6; } |
| 2933 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2934 | $as_echo_n "(cached) " >&6 |
| 2935 | else |
| 2936 | eval "$3=\$ac_header_compiler" |
| 2937 | fi |
| 2938 | eval ac_res=\$$3 |
| 2939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2940 | $as_echo "$ac_res" >&6; } |
| 2941 | fi |
| 2942 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2943 | |
| 2944 | } # ac_fn_cxx_check_header_mongrel |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2945 | cat >config.log <<_ACEOF |
| 2946 | This file contains any messages produced by compilers while |
| 2947 | running configure, to aid debugging if configure makes a mistake. |
| 2948 | |
| cristy | d934d10 | 2009-10-10 12:55:13 +0000 | [diff] [blame] | 2949 | It was created by ImageMagick $as_me 6.5.7, which was |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 2950 | generated by GNU Autoconf 2.64. Invocation command line was |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2951 | |
| 2952 | $ $0 $@ |
| 2953 | |
| 2954 | _ACEOF |
| 2955 | exec 5>>config.log |
| 2956 | { |
| 2957 | cat <<_ASUNAME |
| 2958 | ## --------- ## |
| 2959 | ## Platform. ## |
| 2960 | ## --------- ## |
| 2961 | |
| 2962 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2963 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2964 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2965 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2966 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2967 | |
| 2968 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2969 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2970 | |
| 2971 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2972 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2973 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 2974 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| 2975 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2976 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2977 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2978 | |
| 2979 | _ASUNAME |
| 2980 | |
| 2981 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2982 | for as_dir in $PATH |
| 2983 | do |
| 2984 | IFS=$as_save_IFS |
| 2985 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 2986 | $as_echo "PATH: $as_dir" |
| 2987 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2988 | IFS=$as_save_IFS |
| 2989 | |
| 2990 | } >&5 |
| 2991 | |
| 2992 | cat >&5 <<_ACEOF |
| 2993 | |
| 2994 | |
| 2995 | ## ----------- ## |
| 2996 | ## Core tests. ## |
| 2997 | ## ----------- ## |
| 2998 | |
| 2999 | _ACEOF |
| 3000 | |
| 3001 | |
| 3002 | # Keep a trace of the command line. |
| 3003 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 3004 | # Strip out --silent because we don't want to record it for future runs. |
| 3005 | # Also quote any args containing shell meta-characters. |
| 3006 | # Make two passes to allow for proper duplicate-argument suppression. |
| 3007 | ac_configure_args= |
| 3008 | ac_configure_args0= |
| 3009 | ac_configure_args1= |
| 3010 | ac_must_keep_next=false |
| 3011 | for ac_pass in 1 2 |
| 3012 | do |
| 3013 | for ac_arg |
| 3014 | do |
| 3015 | case $ac_arg in |
| 3016 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 3017 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 3018 | | -silent | --silent | --silen | --sile | --sil) |
| 3019 | continue ;; |
| 3020 | *\'*) |
| 3021 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 3022 | esac |
| 3023 | case $ac_pass in |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3024 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3025 | 2) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3026 | as_fn_append ac_configure_args1 " '$ac_arg'" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3027 | if test $ac_must_keep_next = true; then |
| 3028 | ac_must_keep_next=false # Got value, back to normal. |
| 3029 | else |
| 3030 | case $ac_arg in |
| 3031 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 3032 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 3033 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 3034 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 3035 | case "$ac_configure_args0 " in |
| 3036 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 3037 | esac |
| 3038 | ;; |
| 3039 | -* ) ac_must_keep_next=true ;; |
| 3040 | esac |
| 3041 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3042 | as_fn_append ac_configure_args " '$ac_arg'" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3043 | ;; |
| 3044 | esac |
| 3045 | done |
| 3046 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3047 | { ac_configure_args0=; unset ac_configure_args0;} |
| 3048 | { ac_configure_args1=; unset ac_configure_args1;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3049 | |
| 3050 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 3051 | # config.log. We remove comments because anyway the quotes in there |
| 3052 | # would cause problems or look ugly. |
| 3053 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 3054 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
| 3055 | trap 'exit_status=$? |
| 3056 | # Save into config.log some information that might help in debugging. |
| 3057 | { |
| 3058 | echo |
| 3059 | |
| 3060 | cat <<\_ASBOX |
| 3061 | ## ---------------- ## |
| 3062 | ## Cache variables. ## |
| 3063 | ## ---------------- ## |
| 3064 | _ASBOX |
| 3065 | echo |
| 3066 | # The following way of writing the cache mishandles newlines in values, |
| 3067 | ( |
| 3068 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 3069 | eval ac_val=\$$ac_var |
| 3070 | case $ac_val in #( |
| 3071 | *${as_nl}*) |
| 3072 | case $ac_var in #( |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3073 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3074 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 3075 | esac |
| 3076 | case $ac_var in #( |
| 3077 | _ | IFS | as_nl) ;; #( |
| 3078 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3079 | *) { eval $ac_var=; unset $ac_var;} ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3080 | esac ;; |
| 3081 | esac |
| 3082 | done |
| 3083 | (set) 2>&1 | |
| 3084 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 3085 | *${as_nl}ac_space=\ *) |
| 3086 | sed -n \ |
| 3087 | "s/'\''/'\''\\\\'\'''\''/g; |
| 3088 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 3089 | ;; #( |
| 3090 | *) |
| 3091 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 3092 | ;; |
| 3093 | esac | |
| 3094 | sort |
| 3095 | ) |
| 3096 | echo |
| 3097 | |
| 3098 | cat <<\_ASBOX |
| 3099 | ## ----------------- ## |
| 3100 | ## Output variables. ## |
| 3101 | ## ----------------- ## |
| 3102 | _ASBOX |
| 3103 | echo |
| 3104 | for ac_var in $ac_subst_vars |
| 3105 | do |
| 3106 | eval ac_val=\$$ac_var |
| 3107 | case $ac_val in |
| 3108 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 3109 | esac |
| 3110 | $as_echo "$ac_var='\''$ac_val'\''" |
| 3111 | done | sort |
| 3112 | echo |
| 3113 | |
| 3114 | if test -n "$ac_subst_files"; then |
| 3115 | cat <<\_ASBOX |
| 3116 | ## ------------------- ## |
| 3117 | ## File substitutions. ## |
| 3118 | ## ------------------- ## |
| 3119 | _ASBOX |
| 3120 | echo |
| 3121 | for ac_var in $ac_subst_files |
| 3122 | do |
| 3123 | eval ac_val=\$$ac_var |
| 3124 | case $ac_val in |
| 3125 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 3126 | esac |
| 3127 | $as_echo "$ac_var='\''$ac_val'\''" |
| 3128 | done | sort |
| 3129 | echo |
| 3130 | fi |
| 3131 | |
| 3132 | if test -s confdefs.h; then |
| 3133 | cat <<\_ASBOX |
| 3134 | ## ----------- ## |
| 3135 | ## confdefs.h. ## |
| 3136 | ## ----------- ## |
| 3137 | _ASBOX |
| 3138 | echo |
| 3139 | cat confdefs.h |
| 3140 | echo |
| 3141 | fi |
| 3142 | test "$ac_signal" != 0 && |
| 3143 | $as_echo "$as_me: caught signal $ac_signal" |
| 3144 | $as_echo "$as_me: exit $exit_status" |
| 3145 | } >&5 |
| 3146 | rm -f core *.core core.conftest.* && |
| 3147 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
| 3148 | exit $exit_status |
| 3149 | ' 0 |
| 3150 | for ac_signal in 1 2 13 15; do |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3151 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3152 | done |
| 3153 | ac_signal=0 |
| 3154 | |
| 3155 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 3156 | rm -f -r conftest* confdefs.h |
| 3157 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3158 | $as_echo "/* confdefs.h */" > confdefs.h |
| 3159 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3160 | # Predefined preprocessor variables. |
| 3161 | |
| 3162 | cat >>confdefs.h <<_ACEOF |
| 3163 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 3164 | _ACEOF |
| 3165 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3166 | cat >>confdefs.h <<_ACEOF |
| 3167 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 3168 | _ACEOF |
| 3169 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3170 | cat >>confdefs.h <<_ACEOF |
| 3171 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 3172 | _ACEOF |
| 3173 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3174 | cat >>confdefs.h <<_ACEOF |
| 3175 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 3176 | _ACEOF |
| 3177 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3178 | cat >>confdefs.h <<_ACEOF |
| 3179 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 3180 | _ACEOF |
| 3181 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3182 | cat >>confdefs.h <<_ACEOF |
| 3183 | #define PACKAGE_URL "$PACKAGE_URL" |
| 3184 | _ACEOF |
| 3185 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3186 | |
| 3187 | # Let the site file select an alternate cache file if it wants to. |
| 3188 | # Prefer an explicitly selected file to automatically selected ones. |
| 3189 | ac_site_file1=NONE |
| 3190 | ac_site_file2=NONE |
| 3191 | if test -n "$CONFIG_SITE"; then |
| 3192 | ac_site_file1=$CONFIG_SITE |
| 3193 | elif test "x$prefix" != xNONE; then |
| 3194 | ac_site_file1=$prefix/share/config.site |
| 3195 | ac_site_file2=$prefix/etc/config.site |
| 3196 | else |
| 3197 | ac_site_file1=$ac_default_prefix/share/config.site |
| 3198 | ac_site_file2=$ac_default_prefix/etc/config.site |
| 3199 | fi |
| 3200 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
| 3201 | do |
| 3202 | test "x$ac_site_file" = xNONE && continue |
| 3203 | if test -r "$ac_site_file"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3204 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3205 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
| 3206 | sed 's/^/| /' "$ac_site_file" >&5 |
| 3207 | . "$ac_site_file" |
| 3208 | fi |
| 3209 | done |
| 3210 | |
| 3211 | if test -r "$cache_file"; then |
| 3212 | # Some versions of bash will fail to source /dev/null (special |
| 3213 | # files actually), so we avoid doing that. |
| 3214 | if test -f "$cache_file"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3215 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3216 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
| 3217 | case $cache_file in |
| 3218 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 3219 | *) . "./$cache_file";; |
| 3220 | esac |
| 3221 | fi |
| 3222 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3223 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3224 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
| 3225 | >$cache_file |
| 3226 | fi |
| 3227 | |
| 3228 | # Check that the precious variables saved in the cache have kept the same |
| 3229 | # value. |
| 3230 | ac_cache_corrupted=false |
| 3231 | for ac_var in $ac_precious_vars; do |
| 3232 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 3233 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 3234 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 3235 | eval ac_new_val=\$ac_env_${ac_var}_value |
| 3236 | case $ac_old_set,$ac_new_set in |
| 3237 | set,) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3238 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3239 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 3240 | ac_cache_corrupted=: ;; |
| 3241 | ,set) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3242 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3243 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 3244 | ac_cache_corrupted=: ;; |
| 3245 | ,);; |
| 3246 | *) |
| 3247 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 3248 | # differences in whitespace do not lead to failure. |
| 3249 | ac_old_val_w=`echo x $ac_old_val` |
| 3250 | ac_new_val_w=`echo x $ac_new_val` |
| 3251 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3252 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3253 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 3254 | ac_cache_corrupted=: |
| 3255 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3256 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3257 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 3258 | eval $ac_var=\$ac_old_val |
| 3259 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3260 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3261 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3262 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3263 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
| 3264 | fi;; |
| 3265 | esac |
| 3266 | # Pass precious variables to config.status. |
| 3267 | if test "$ac_new_set" = set; then |
| 3268 | case $ac_new_val in |
| 3269 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 3270 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 3271 | esac |
| 3272 | case " $ac_configure_args " in |
| 3273 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3274 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3275 | esac |
| 3276 | fi |
| 3277 | done |
| 3278 | if $ac_cache_corrupted; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3279 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3280 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3281 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3282 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3283 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3284 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3285 | ## -------------------- ## |
| 3286 | ## Main body of script. ## |
| 3287 | ## -------------------- ## |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3288 | |
| 3289 | ac_ext=c |
| 3290 | ac_cpp='$CPP $CPPFLAGS' |
| 3291 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3292 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3293 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3294 | |
| 3295 | |
| 3296 | |
| 3297 | ac_aux_dir= |
| 3298 | for ac_dir in config "$srcdir"/config; do |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3299 | for ac_t in install-sh install.sh shtool; do |
| 3300 | if test -f "$ac_dir/$ac_t"; then |
| 3301 | ac_aux_dir=$ac_dir |
| 3302 | ac_install_sh="$ac_aux_dir/$ac_t -c" |
| 3303 | break 2 |
| 3304 | fi |
| 3305 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3306 | done |
| 3307 | if test -z "$ac_aux_dir"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3308 | as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3309 | fi |
| 3310 | |
| 3311 | # These three variables are undocumented and unsupported, |
| 3312 | # and are intended to be withdrawn in a future Autoconf release. |
| 3313 | # They can cause serious problems if a builder's source tree is in a directory |
| 3314 | # whose full name contains unusual characters. |
| 3315 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 3316 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 3317 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 3318 | |
| 3319 | |
| 3320 | |
| 3321 | |
| 3322 | ac_config_headers="$ac_config_headers config/config.h" |
| 3323 | |
| 3324 | ac_config_commands="$ac_config_commands magick/magick-config.h" |
| 3325 | |
| 3326 | ac_config_files="$ac_config_files config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config magick/ImageMagick.pc Magick++/lib/ImageMagick++.pc Magick++/lib/Magick++.pc magick/Magick-config magick/MagickCore-config magick/MagickCore.pc magick/version.h Makefile magick.sh PerlMagick/Magick.pm PerlMagick/Makefile.PL PerlMagick/check.sh 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 wand/MagickWand-config wand/MagickWand.pc wand/Wand-config wand/Wand.pc" |
| 3327 | |
| 3328 | |
| 3329 | # |
| 3330 | # Save initial user-tunable values |
| 3331 | # |
| 3332 | USER_LIBS=$LIBS |
| 3333 | for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do |
| 3334 | eval isset=\${$var+set} |
| 3335 | if test "$isset" = 'set'; then |
| 3336 | eval val=$`echo $var` |
| 3337 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' " |
| 3338 | fi |
| 3339 | done |
| 3340 | |
| 3341 | |
| 3342 | CONFIGURE_ARGS="$0 ${ac_configure_args}" |
| 3343 | |
| 3344 | |
| 3345 | # Source file containing package/library versioning information. |
| 3346 | . ${srcdir}/version.sh |
| 3347 | |
| 3348 | echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_LIB_SUBVERSION}" |
| 3349 | # Make sure we can run config.sub. |
| 3350 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3351 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3352 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3354 | $as_echo_n "checking build system type... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3355 | if test "${ac_cv_build+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3356 | $as_echo_n "(cached) " >&6 |
| 3357 | else |
| 3358 | ac_build_alias=$build_alias |
| 3359 | test "x$ac_build_alias" = x && |
| 3360 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 3361 | test "x$ac_build_alias" = x && |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3362 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3363 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3364 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3365 | |
| 3366 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3368 | $as_echo "$ac_cv_build" >&6; } |
| 3369 | case $ac_cv_build in |
| 3370 | *-*-*) ;; |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3371 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3372 | esac |
| 3373 | build=$ac_cv_build |
| 3374 | ac_save_IFS=$IFS; IFS='-' |
| 3375 | set x $ac_cv_build |
| 3376 | shift |
| 3377 | build_cpu=$1 |
| 3378 | build_vendor=$2 |
| 3379 | shift; shift |
| 3380 | # Remember, the first character of IFS is used to create $*, |
| 3381 | # except with old shells: |
| 3382 | build_os=$* |
| 3383 | IFS=$ac_save_IFS |
| 3384 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 3385 | |
| 3386 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3388 | $as_echo_n "checking host system type... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3389 | if test "${ac_cv_host+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3390 | $as_echo_n "(cached) " >&6 |
| 3391 | else |
| 3392 | if test "x$host_alias" = x; then |
| 3393 | ac_cv_host=$ac_cv_build |
| 3394 | else |
| 3395 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3396 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3397 | fi |
| 3398 | |
| 3399 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3401 | $as_echo "$ac_cv_host" >&6; } |
| 3402 | case $ac_cv_host in |
| 3403 | *-*-*) ;; |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3404 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3405 | esac |
| 3406 | host=$ac_cv_host |
| 3407 | ac_save_IFS=$IFS; IFS='-' |
| 3408 | set x $ac_cv_host |
| 3409 | shift |
| 3410 | host_cpu=$1 |
| 3411 | host_vendor=$2 |
| 3412 | shift; shift |
| 3413 | # Remember, the first character of IFS is used to create $*, |
| 3414 | # except with old shells: |
| 3415 | host_os=$* |
| 3416 | IFS=$ac_save_IFS |
| 3417 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 3418 | |
| 3419 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3421 | $as_echo_n "checking target system type... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3422 | if test "${ac_cv_target+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3423 | $as_echo_n "(cached) " >&6 |
| 3424 | else |
| 3425 | if test "x$target_alias" = x; then |
| 3426 | ac_cv_target=$ac_cv_host |
| 3427 | else |
| 3428 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3429 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3430 | fi |
| 3431 | |
| 3432 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3434 | $as_echo "$ac_cv_target" >&6; } |
| 3435 | case $ac_cv_target in |
| 3436 | *-*-*) ;; |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3437 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3438 | esac |
| 3439 | target=$ac_cv_target |
| 3440 | ac_save_IFS=$IFS; IFS='-' |
| 3441 | set x $ac_cv_target |
| 3442 | shift |
| 3443 | target_cpu=$1 |
| 3444 | target_vendor=$2 |
| 3445 | shift; shift |
| 3446 | # Remember, the first character of IFS is used to create $*, |
| 3447 | # except with old shells: |
| 3448 | target_os=$* |
| 3449 | IFS=$ac_save_IFS |
| 3450 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac |
| 3451 | |
| 3452 | |
| 3453 | # The aliases save the names the user supplied, while $host etc. |
| 3454 | # will get canonicalized. |
| 3455 | test -n "$target_alias" && |
| 3456 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 3457 | NONENONEs,x,x, && |
| 3458 | program_prefix=${target_alias}- |
| 3459 | |
| 3460 | # Substitute library versioning |
| 3461 | |
| 3462 | |
| 3463 | # Ensure that make can run correctly |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3465 | $as_echo_n "checking whether build environment is sane... " >&6; } |
| 3466 | # Just in case |
| 3467 | sleep 1 |
| 3468 | echo timestamp > conftest.file |
| 3469 | # Reject unsafe characters in $srcdir or the absolute working directory |
| 3470 | # name. Accept space and tab only in the latter. |
| 3471 | am_lf=' |
| 3472 | ' |
| 3473 | case `pwd` in |
| 3474 | *[\\\"\#\$\&\'\`$am_lf]*) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3475 | as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3476 | esac |
| 3477 | case $srcdir in |
| 3478 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3479 | as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3480 | esac |
| 3481 | |
| 3482 | # Do `set' in a subshell so we don't clobber the current shell's |
| 3483 | # arguments. Must try -L first in case configure is actually a |
| 3484 | # symlink; some systems play weird games with the mod time of symlinks |
| 3485 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 3486 | # directory). |
| 3487 | if ( |
| 3488 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
| 3489 | if test "$*" = "X"; then |
| 3490 | # -L didn't work. |
| 3491 | set X `ls -t "$srcdir/configure" conftest.file` |
| 3492 | fi |
| 3493 | rm -f conftest.file |
| 3494 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 3495 | && test "$*" != "X conftest.file $srcdir/configure"; then |
| 3496 | |
| 3497 | # If neither matched, then we have a broken ls. This can happen |
| 3498 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 3499 | # broken ls alias from the environment. This has actually |
| 3500 | # happened. Such a system could not be considered "sane". |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3501 | as_fn_error "ls -t appears to fail. Make sure there is not a broken |
| 3502 | alias in your environment" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3503 | fi |
| 3504 | |
| 3505 | test "$2" = conftest.file |
| 3506 | ) |
| 3507 | then |
| 3508 | # Ok. |
| 3509 | : |
| 3510 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3511 | as_fn_error "newly created file is older than distributed files! |
| 3512 | Check your system clock" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3513 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3515 | $as_echo "yes" >&6; } |
| 3516 | |
| 3517 | am__api_version='1.11' |
| 3518 | |
| 3519 | # Find a good install program. We prefer a C program (faster), |
| 3520 | # so one script is as good as another. But avoid the broken or |
| 3521 | # incompatible versions: |
| 3522 | # SysV /etc/install, /usr/sbin/install |
| 3523 | # SunOS /usr/etc/install |
| 3524 | # IRIX /sbin/install |
| 3525 | # AIX /bin/install |
| 3526 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 3527 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 3528 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3529 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 3530 | # OS/2's system install, which has a completely different semantic |
| 3531 | # ./install, which can be erroneously created by make from ./install.sh. |
| 3532 | # Reject install programs that cannot install multiple files. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3534 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
| 3535 | if test -z "$INSTALL"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3536 | if test "${ac_cv_path_install+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3537 | $as_echo_n "(cached) " >&6 |
| 3538 | else |
| 3539 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3540 | for as_dir in $PATH |
| 3541 | do |
| 3542 | IFS=$as_save_IFS |
| 3543 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3544 | # Account for people who put trailing slashes in PATH elements. |
| 3545 | case $as_dir/ in #(( |
| 3546 | ./ | .// | /[cC]/* | \ |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3547 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3548 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3549 | /usr/ucb/* ) ;; |
| 3550 | *) |
| 3551 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 3552 | # Don't use installbsd from OSF since it installs stuff as root |
| 3553 | # by default. |
| 3554 | for ac_prog in ginstall scoinst install; do |
| 3555 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3556 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
| 3557 | if test $ac_prog = install && |
| 3558 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3559 | # AIX install. It has an incompatible calling convention. |
| 3560 | : |
| 3561 | elif test $ac_prog = install && |
| 3562 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3563 | # program-specific install script used by HP pwplus--don't use. |
| 3564 | : |
| 3565 | else |
| 3566 | rm -rf conftest.one conftest.two conftest.dir |
| 3567 | echo one > conftest.one |
| 3568 | echo two > conftest.two |
| 3569 | mkdir conftest.dir |
| 3570 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 3571 | test -s conftest.one && test -s conftest.two && |
| 3572 | test -s conftest.dir/conftest.one && |
| 3573 | test -s conftest.dir/conftest.two |
| 3574 | then |
| 3575 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 3576 | break 3 |
| 3577 | fi |
| 3578 | fi |
| 3579 | fi |
| 3580 | done |
| 3581 | done |
| 3582 | ;; |
| 3583 | esac |
| 3584 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3585 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3586 | IFS=$as_save_IFS |
| 3587 | |
| 3588 | rm -rf conftest.one conftest.two conftest.dir |
| 3589 | |
| 3590 | fi |
| 3591 | if test "${ac_cv_path_install+set}" = set; then |
| 3592 | INSTALL=$ac_cv_path_install |
| 3593 | else |
| 3594 | # As a last resort, use the slow shell script. Don't cache a |
| 3595 | # value for INSTALL within a source directory, because that will |
| 3596 | # break other packages using the cache if that directory is |
| 3597 | # removed, or if the value is a relative name. |
| 3598 | INSTALL=$ac_install_sh |
| 3599 | fi |
| 3600 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3602 | $as_echo "$INSTALL" >&6; } |
| 3603 | |
| 3604 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3605 | # It thinks the first close brace ends the variable substitution. |
| 3606 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 3607 | |
| 3608 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 3609 | |
| 3610 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 3611 | |
| 3612 | test "$program_prefix" != NONE && |
| 3613 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
| 3614 | # Use a double $ so make ignores it. |
| 3615 | test "$program_suffix" != NONE && |
| 3616 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
| 3617 | # Double any \ or $. |
| 3618 | # By default was `s,x,x', remove it if useless. |
| 3619 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
| 3620 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
| 3621 | |
| 3622 | # expand $ac_aux_dir to an absolute path |
| 3623 | am_aux_dir=`cd $ac_aux_dir && pwd` |
| 3624 | |
| 3625 | if test x"${MISSING+set}" != xset; then |
| 3626 | case $am_aux_dir in |
| 3627 | *\ * | *\ *) |
| 3628 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
| 3629 | *) |
| 3630 | MISSING="\${SHELL} $am_aux_dir/missing" ;; |
| 3631 | esac |
| 3632 | fi |
| 3633 | # Use eval to expand $SHELL |
| 3634 | if eval "$MISSING --run true"; then |
| 3635 | am_missing_run="$MISSING --run " |
| 3636 | else |
| 3637 | am_missing_run= |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3638 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3639 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
| 3640 | fi |
| 3641 | |
| 3642 | if test x"${install_sh}" != xset; then |
| 3643 | case $am_aux_dir in |
| 3644 | *\ * | *\ *) |
| 3645 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
| 3646 | *) |
| 3647 | install_sh="\${SHELL} $am_aux_dir/install-sh" |
| 3648 | esac |
| 3649 | fi |
| 3650 | |
| 3651 | # Installed binaries are usually stripped using `strip' when the user |
| 3652 | # run `make install-strip'. However `strip' might not be the right |
| 3653 | # tool to use in cross-compilation environments, therefore Automake |
| 3654 | # will honor the `STRIP' environment variable to overrule this program. |
| 3655 | if test "$cross_compiling" != no; then |
| 3656 | if test -n "$ac_tool_prefix"; then |
| 3657 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 3658 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3660 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3661 | if test "${ac_cv_prog_STRIP+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3662 | $as_echo_n "(cached) " >&6 |
| 3663 | else |
| 3664 | if test -n "$STRIP"; then |
| 3665 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 3666 | else |
| 3667 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3668 | for as_dir in $PATH |
| 3669 | do |
| 3670 | IFS=$as_save_IFS |
| 3671 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3672 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3673 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3674 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3675 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3676 | break 2 |
| 3677 | fi |
| 3678 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3679 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3680 | IFS=$as_save_IFS |
| 3681 | |
| 3682 | fi |
| 3683 | fi |
| 3684 | STRIP=$ac_cv_prog_STRIP |
| 3685 | if test -n "$STRIP"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3687 | $as_echo "$STRIP" >&6; } |
| 3688 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3690 | $as_echo "no" >&6; } |
| 3691 | fi |
| 3692 | |
| 3693 | |
| 3694 | fi |
| 3695 | if test -z "$ac_cv_prog_STRIP"; then |
| 3696 | ac_ct_STRIP=$STRIP |
| 3697 | # Extract the first word of "strip", so it can be a program name with args. |
| 3698 | set dummy strip; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3700 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3701 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3702 | $as_echo_n "(cached) " >&6 |
| 3703 | else |
| 3704 | if test -n "$ac_ct_STRIP"; then |
| 3705 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 3706 | else |
| 3707 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3708 | for as_dir in $PATH |
| 3709 | do |
| 3710 | IFS=$as_save_IFS |
| 3711 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3712 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3713 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3714 | ac_cv_prog_ac_ct_STRIP="strip" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3715 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3716 | break 2 |
| 3717 | fi |
| 3718 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3719 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3720 | IFS=$as_save_IFS |
| 3721 | |
| 3722 | fi |
| 3723 | fi |
| 3724 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 3725 | if test -n "$ac_ct_STRIP"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3727 | $as_echo "$ac_ct_STRIP" >&6; } |
| 3728 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3730 | $as_echo "no" >&6; } |
| 3731 | fi |
| 3732 | |
| 3733 | if test "x$ac_ct_STRIP" = x; then |
| 3734 | STRIP=":" |
| 3735 | else |
| 3736 | case $cross_compiling:$ac_tool_warned in |
| 3737 | yes:) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3738 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3739 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3740 | ac_tool_warned=yes ;; |
| 3741 | esac |
| 3742 | STRIP=$ac_ct_STRIP |
| 3743 | fi |
| 3744 | else |
| 3745 | STRIP="$ac_cv_prog_STRIP" |
| 3746 | fi |
| 3747 | |
| 3748 | fi |
| 3749 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
| 3750 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3752 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
| 3753 | if test -z "$MKDIR_P"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3754 | if test "${ac_cv_path_mkdir+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3755 | $as_echo_n "(cached) " >&6 |
| 3756 | else |
| 3757 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3758 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 3759 | do |
| 3760 | IFS=$as_save_IFS |
| 3761 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3762 | for ac_prog in mkdir gmkdir; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3763 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3764 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue |
| 3765 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 3766 | 'mkdir (GNU coreutils) '* | \ |
| 3767 | 'mkdir (coreutils) '* | \ |
| 3768 | 'mkdir (fileutils) '4.1*) |
| 3769 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
| 3770 | break 3;; |
| 3771 | esac |
| 3772 | done |
| 3773 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3774 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3775 | IFS=$as_save_IFS |
| 3776 | |
| 3777 | fi |
| 3778 | |
| 3779 | if test "${ac_cv_path_mkdir+set}" = set; then |
| 3780 | MKDIR_P="$ac_cv_path_mkdir -p" |
| 3781 | else |
| 3782 | # As a last resort, use the slow shell script. Don't cache a |
| 3783 | # value for MKDIR_P within a source directory, because that will |
| 3784 | # break other packages using the cache if that directory is |
| 3785 | # removed, or if the value is a relative name. |
| 3786 | test -d ./--version && rmdir ./--version |
| 3787 | MKDIR_P="$ac_install_sh -d" |
| 3788 | fi |
| 3789 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3791 | $as_echo "$MKDIR_P" >&6; } |
| 3792 | |
| 3793 | mkdir_p="$MKDIR_P" |
| 3794 | case $mkdir_p in |
| 3795 | [\\/$]* | ?:[\\/]*) ;; |
| 3796 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
| 3797 | esac |
| 3798 | |
| 3799 | for ac_prog in gawk mawk nawk awk |
| 3800 | do |
| 3801 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3802 | set dummy $ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3804 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3805 | if test "${ac_cv_prog_AWK+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3806 | $as_echo_n "(cached) " >&6 |
| 3807 | else |
| 3808 | if test -n "$AWK"; then |
| 3809 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 3810 | else |
| 3811 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3812 | for as_dir in $PATH |
| 3813 | do |
| 3814 | IFS=$as_save_IFS |
| 3815 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3816 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3817 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3818 | ac_cv_prog_AWK="$ac_prog" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3819 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3820 | break 2 |
| 3821 | fi |
| 3822 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3823 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3824 | IFS=$as_save_IFS |
| 3825 | |
| 3826 | fi |
| 3827 | fi |
| 3828 | AWK=$ac_cv_prog_AWK |
| 3829 | if test -n "$AWK"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3831 | $as_echo "$AWK" >&6; } |
| 3832 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3834 | $as_echo "no" >&6; } |
| 3835 | fi |
| 3836 | |
| 3837 | |
| 3838 | test -n "$AWK" && break |
| 3839 | done |
| 3840 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3842 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 3843 | set x ${MAKE-make} |
| 3844 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3845 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3846 | $as_echo_n "(cached) " >&6 |
| 3847 | else |
| 3848 | cat >conftest.make <<\_ACEOF |
| 3849 | SHELL = /bin/sh |
| 3850 | all: |
| 3851 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
| 3852 | _ACEOF |
| 3853 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 3854 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 3855 | *@@@%%%=?*=@@@%%%*) |
| 3856 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 3857 | *) |
| 3858 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 3859 | esac |
| 3860 | rm -f conftest.make |
| 3861 | fi |
| 3862 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3864 | $as_echo "yes" >&6; } |
| 3865 | SET_MAKE= |
| 3866 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3868 | $as_echo "no" >&6; } |
| 3869 | SET_MAKE="MAKE=${MAKE-make}" |
| 3870 | fi |
| 3871 | |
| 3872 | rm -rf .tst 2>/dev/null |
| 3873 | mkdir .tst 2>/dev/null |
| 3874 | if test -d .tst; then |
| 3875 | am__leading_dot=. |
| 3876 | else |
| 3877 | am__leading_dot=_ |
| 3878 | fi |
| 3879 | rmdir .tst 2>/dev/null |
| 3880 | |
| 3881 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
| 3882 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
| 3883 | # is not polluted with repeated "-I." |
| 3884 | am__isrc=' -I$(srcdir)' |
| 3885 | # test to see if srcdir already configured |
| 3886 | if test -f $srcdir/config.status; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3887 | as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3888 | fi |
| 3889 | fi |
| 3890 | |
| 3891 | # test whether we have cygpath |
| 3892 | if test -z "$CYGPATH_W"; then |
| 3893 | if (cygpath --version) >/dev/null 2>/dev/null; then |
| 3894 | CYGPATH_W='cygpath -w' |
| 3895 | else |
| 3896 | CYGPATH_W=echo |
| 3897 | fi |
| 3898 | fi |
| 3899 | |
| 3900 | |
| 3901 | # Define the identity of the package. |
| 3902 | PACKAGE=$PACKAGE_NAME |
| 3903 | VERSION="${PACKAGE_VERSION}${PACKAGE_LIB_SUBVERSION}" |
| 3904 | |
| 3905 | |
| 3906 | # Some tools Automake needs. |
| 3907 | |
| 3908 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 3909 | |
| 3910 | |
| 3911 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 3912 | |
| 3913 | |
| 3914 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 3915 | |
| 3916 | |
| 3917 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 3918 | |
| 3919 | |
| 3920 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 3921 | |
| 3922 | # We need awk for the "check" target. The system "awk" is bad on |
| 3923 | # some platforms. |
| 3924 | # Always define AMTAR for backward compatibility. |
| 3925 | |
| 3926 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
| 3927 | |
| 3928 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
| 3929 | |
| 3930 | |
| 3931 | |
| 3932 | |
| 3933 | |
| 3934 | |
| 3935 | # Enable support for silent build rules |
| 3936 | # Check whether --enable-silent-rules was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 3937 | if test "${enable_silent_rules+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3938 | enableval=$enable_silent_rules; |
| 3939 | fi |
| 3940 | |
| 3941 | case $enable_silent_rules in |
| 3942 | yes) AM_DEFAULT_VERBOSITY=0;; |
| 3943 | no) AM_DEFAULT_VERBOSITY=1;; |
| 3944 | *) AM_DEFAULT_VERBOSITY=0;; |
| 3945 | esac |
| 3946 | AM_BACKSLASH='\' |
| 3947 | |
| 3948 | |
| 3949 | MAGICK_LIB_VERSION="0x" |
| 3950 | if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then |
| 3951 | MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0 |
| 3952 | fi |
| 3953 | MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT} |
| 3954 | if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then |
| 3955 | MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0 |
| 3956 | fi |
| 3957 | MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE} |
| 3958 | if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then |
| 3959 | MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0 |
| 3960 | fi |
| 3961 | MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION} |
| 3962 | |
| 3963 | |
| 3964 | # Definition used to define MagickLibVersionText in version.h |
| 3965 | MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}" |
| 3966 | |
| 3967 | |
| 3968 | # Definition used to define MagickLibVersionNumber in version.h |
| 3969 | MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}" |
| 3970 | |
| 3971 | |
| 3972 | # Regenerate config.status if ChangeLog or version.sh is updated. |
| 3973 | CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh' |
| 3974 | |
| 3975 | |
| 3976 | PERLMAINCC=$CC |
| 3977 | |
| 3978 | MAGICK_CFLAGS='' |
| 3979 | MAGICK_CPPFLAGS=$CPPFLAGS_USER |
| 3980 | MAGICK_PCFLAGS=$CPPFLAGS_USER |
| 3981 | MAGICK_LDFLAGS='' |
| 3982 | MAGICK_LIBS='' |
| 3983 | |
| 3984 | # |
| 3985 | # Evaluate shell variable equivalents to Makefile directory variables |
| 3986 | # |
| 3987 | if test "x$prefix" = xNONE; then |
| 3988 | prefix=$ac_default_prefix |
| 3989 | fi |
| 3990 | # Let make expand exec_prefix. |
| 3991 | if test "x$exec_prefix" = xNONE; then |
| 3992 | exec_prefix='${prefix}' |
| 3993 | fi |
| 3994 | |
| 3995 | # |
| 3996 | eval "eval PREFIX_DIR=${prefix}" |
| 3997 | |
| 3998 | eval "eval EXEC_PREFIX_DIR=${exec_prefix}" |
| 3999 | |
| 4000 | eval "eval BIN_DIR=$bindir" |
| 4001 | |
| 4002 | eval "eval SBIN_DIR=$sbindir" |
| 4003 | |
| 4004 | eval "eval LIBEXEC_DIR=$libexecdir" |
| 4005 | |
| 4006 | eval "eval DATA_DIR=$datadir" |
| 4007 | |
| 4008 | eval "eval SYSCONF_DIR=$sysconfdir" |
| 4009 | |
| 4010 | eval "eval SHAREDSTATE_DIR=$sharedstatedir" |
| 4011 | |
| 4012 | eval "eval LOCALSTATE_DIR=$localstatedir" |
| 4013 | |
| 4014 | eval "eval LIB_DIR=$libdir" |
| 4015 | |
| 4016 | eval "eval INCLUDE_DIR=$includedir" |
| 4017 | |
| 4018 | eval "eval PERSISTINCLUDE_DIR=$oldincludedir" |
| 4019 | |
| 4020 | eval "eval INFO_DIR=$infodir" |
| 4021 | |
| 4022 | eval "eval MAN_DIR=$mandir" |
| 4023 | |
| 4024 | |
| 4025 | # Get full paths to source and build directories |
| 4026 | srcdirfull="`cd $srcdir && pwd`" |
| 4027 | builddir="`pwd`" |
| 4028 | |
| 4029 | # |
| 4030 | # Compute variables useful for running uninstalled software. |
| 4031 | # |
| 4032 | MAGICK_CODER_MODULE_PATH="${builddir}/coders" |
| 4033 | MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config" |
| 4034 | MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config" |
| 4035 | MAGICK_FILTER_MODULE_PATH="${builddir}/filters" |
| 4036 | DIRSEP=':' |
| 4037 | case "${build_os}" in |
| 4038 | mingw* ) |
| 4039 | MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0` |
| 4040 | MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0` |
| 4041 | MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0` |
| 4042 | MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0` |
| 4043 | DIRSEP=';' |
| 4044 | ;; |
| 4045 | esac |
| 4046 | case "${host_os}" in |
| 4047 | mingw* ) |
| 4048 | DIRSEP=';' |
| 4049 | ;; |
| 4050 | esac |
| 4051 | |
| 4052 | |
| 4053 | |
| 4054 | |
| 4055 | |
| 4056 | |
| 4057 | # Check for programs |
| 4058 | ac_ext=c |
| 4059 | ac_cpp='$CPP $CPPFLAGS' |
| 4060 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4061 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4062 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4063 | if test -n "$ac_tool_prefix"; then |
| 4064 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 4065 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4067 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4068 | if test "${ac_cv_prog_CC+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4069 | $as_echo_n "(cached) " >&6 |
| 4070 | else |
| 4071 | if test -n "$CC"; then |
| 4072 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4073 | else |
| 4074 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4075 | for as_dir in $PATH |
| 4076 | do |
| 4077 | IFS=$as_save_IFS |
| 4078 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4079 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4080 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4081 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4082 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4083 | break 2 |
| 4084 | fi |
| 4085 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4086 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4087 | IFS=$as_save_IFS |
| 4088 | |
| 4089 | fi |
| 4090 | fi |
| 4091 | CC=$ac_cv_prog_CC |
| 4092 | if test -n "$CC"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4094 | $as_echo "$CC" >&6; } |
| 4095 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4097 | $as_echo "no" >&6; } |
| 4098 | fi |
| 4099 | |
| 4100 | |
| 4101 | fi |
| 4102 | if test -z "$ac_cv_prog_CC"; then |
| 4103 | ac_ct_CC=$CC |
| 4104 | # Extract the first word of "gcc", so it can be a program name with args. |
| 4105 | set dummy gcc; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4107 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4108 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4109 | $as_echo_n "(cached) " >&6 |
| 4110 | else |
| 4111 | if test -n "$ac_ct_CC"; then |
| 4112 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4113 | else |
| 4114 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4115 | for as_dir in $PATH |
| 4116 | do |
| 4117 | IFS=$as_save_IFS |
| 4118 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4119 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4120 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4121 | ac_cv_prog_ac_ct_CC="gcc" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4122 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4123 | break 2 |
| 4124 | fi |
| 4125 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4126 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4127 | IFS=$as_save_IFS |
| 4128 | |
| 4129 | fi |
| 4130 | fi |
| 4131 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4132 | if test -n "$ac_ct_CC"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4134 | $as_echo "$ac_ct_CC" >&6; } |
| 4135 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4137 | $as_echo "no" >&6; } |
| 4138 | fi |
| 4139 | |
| 4140 | if test "x$ac_ct_CC" = x; then |
| 4141 | CC="" |
| 4142 | else |
| 4143 | case $cross_compiling:$ac_tool_warned in |
| 4144 | yes:) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4145 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4146 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4147 | ac_tool_warned=yes ;; |
| 4148 | esac |
| 4149 | CC=$ac_ct_CC |
| 4150 | fi |
| 4151 | else |
| 4152 | CC="$ac_cv_prog_CC" |
| 4153 | fi |
| 4154 | |
| 4155 | if test -z "$CC"; then |
| 4156 | if test -n "$ac_tool_prefix"; then |
| 4157 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 4158 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4160 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4161 | if test "${ac_cv_prog_CC+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4162 | $as_echo_n "(cached) " >&6 |
| 4163 | else |
| 4164 | if test -n "$CC"; then |
| 4165 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4166 | else |
| 4167 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4168 | for as_dir in $PATH |
| 4169 | do |
| 4170 | IFS=$as_save_IFS |
| 4171 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4172 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4173 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4174 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4175 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4176 | break 2 |
| 4177 | fi |
| 4178 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4179 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4180 | IFS=$as_save_IFS |
| 4181 | |
| 4182 | fi |
| 4183 | fi |
| 4184 | CC=$ac_cv_prog_CC |
| 4185 | if test -n "$CC"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4187 | $as_echo "$CC" >&6; } |
| 4188 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4190 | $as_echo "no" >&6; } |
| 4191 | fi |
| 4192 | |
| 4193 | |
| 4194 | fi |
| 4195 | fi |
| 4196 | if test -z "$CC"; then |
| 4197 | # Extract the first word of "cc", so it can be a program name with args. |
| 4198 | set dummy cc; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4200 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4201 | if test "${ac_cv_prog_CC+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4202 | $as_echo_n "(cached) " >&6 |
| 4203 | else |
| 4204 | if test -n "$CC"; then |
| 4205 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4206 | else |
| 4207 | ac_prog_rejected=no |
| 4208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4209 | for as_dir in $PATH |
| 4210 | do |
| 4211 | IFS=$as_save_IFS |
| 4212 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4213 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4214 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4215 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 4216 | ac_prog_rejected=yes |
| 4217 | continue |
| 4218 | fi |
| 4219 | ac_cv_prog_CC="cc" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4220 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4221 | break 2 |
| 4222 | fi |
| 4223 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4224 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4225 | IFS=$as_save_IFS |
| 4226 | |
| 4227 | if test $ac_prog_rejected = yes; then |
| 4228 | # We found a bogon in the path, so make sure we never use it. |
| 4229 | set dummy $ac_cv_prog_CC |
| 4230 | shift |
| 4231 | if test $# != 0; then |
| 4232 | # We chose a different compiler from the bogus one. |
| 4233 | # However, it has the same basename, so the bogon will be chosen |
| 4234 | # first if we set CC to just the basename; use the full file name. |
| 4235 | shift |
| 4236 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 4237 | fi |
| 4238 | fi |
| 4239 | fi |
| 4240 | fi |
| 4241 | CC=$ac_cv_prog_CC |
| 4242 | if test -n "$CC"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4244 | $as_echo "$CC" >&6; } |
| 4245 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4247 | $as_echo "no" >&6; } |
| 4248 | fi |
| 4249 | |
| 4250 | |
| 4251 | fi |
| 4252 | if test -z "$CC"; then |
| 4253 | if test -n "$ac_tool_prefix"; then |
| 4254 | for ac_prog in cl.exe |
| 4255 | do |
| 4256 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4257 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4259 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4260 | if test "${ac_cv_prog_CC+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4261 | $as_echo_n "(cached) " >&6 |
| 4262 | else |
| 4263 | if test -n "$CC"; then |
| 4264 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4265 | else |
| 4266 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4267 | for as_dir in $PATH |
| 4268 | do |
| 4269 | IFS=$as_save_IFS |
| 4270 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4271 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4272 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4273 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4274 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4275 | break 2 |
| 4276 | fi |
| 4277 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4278 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4279 | IFS=$as_save_IFS |
| 4280 | |
| 4281 | fi |
| 4282 | fi |
| 4283 | CC=$ac_cv_prog_CC |
| 4284 | if test -n "$CC"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4286 | $as_echo "$CC" >&6; } |
| 4287 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4289 | $as_echo "no" >&6; } |
| 4290 | fi |
| 4291 | |
| 4292 | |
| 4293 | test -n "$CC" && break |
| 4294 | done |
| 4295 | fi |
| 4296 | if test -z "$CC"; then |
| 4297 | ac_ct_CC=$CC |
| 4298 | for ac_prog in cl.exe |
| 4299 | do |
| 4300 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4301 | set dummy $ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4303 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4304 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4305 | $as_echo_n "(cached) " >&6 |
| 4306 | else |
| 4307 | if test -n "$ac_ct_CC"; then |
| 4308 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4309 | else |
| 4310 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4311 | for as_dir in $PATH |
| 4312 | do |
| 4313 | IFS=$as_save_IFS |
| 4314 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4315 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4316 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4317 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4318 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4319 | break 2 |
| 4320 | fi |
| 4321 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4322 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4323 | IFS=$as_save_IFS |
| 4324 | |
| 4325 | fi |
| 4326 | fi |
| 4327 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4328 | if test -n "$ac_ct_CC"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4330 | $as_echo "$ac_ct_CC" >&6; } |
| 4331 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4333 | $as_echo "no" >&6; } |
| 4334 | fi |
| 4335 | |
| 4336 | |
| 4337 | test -n "$ac_ct_CC" && break |
| 4338 | done |
| 4339 | |
| 4340 | if test "x$ac_ct_CC" = x; then |
| 4341 | CC="" |
| 4342 | else |
| 4343 | case $cross_compiling:$ac_tool_warned in |
| 4344 | yes:) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4345 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4346 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4347 | ac_tool_warned=yes ;; |
| 4348 | esac |
| 4349 | CC=$ac_ct_CC |
| 4350 | fi |
| 4351 | fi |
| 4352 | |
| 4353 | fi |
| 4354 | |
| 4355 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4356 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4357 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4358 | as_fn_error "no acceptable C compiler found in \$PATH |
| 4359 | See \`config.log' for more details." "$LINENO" 5; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4360 | |
| 4361 | # Provide some information about the compiler. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4362 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4363 | set X $ac_compile |
| 4364 | ac_compiler=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4365 | for ac_option in --version -v -V -qversion; do |
| 4366 | { { ac_try="$ac_compiler $ac_option >&5" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4367 | case "(($ac_try" in |
| 4368 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4369 | *) ac_try_echo=$ac_try;; |
| 4370 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4371 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4372 | $as_echo "$ac_try_echo"; } >&5 |
| 4373 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4374 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4375 | if test -s conftest.err; then |
| 4376 | sed '10a\ |
| 4377 | ... rest of stderr output deleted ... |
| 4378 | 10q' conftest.err >conftest.er1 |
| 4379 | cat conftest.er1 >&5 |
| 4380 | rm -f conftest.er1 conftest.err |
| 4381 | fi |
| 4382 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4383 | test $ac_status = 0; } |
| 4384 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4385 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4386 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4387 | /* end confdefs.h. */ |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4388 | #include <stdio.h> |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4389 | int |
| 4390 | main () |
| 4391 | { |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4392 | FILE *f = fopen ("conftest.out", "w"); |
| 4393 | return ferror (f) || fclose (f) != 0; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4394 | |
| 4395 | ; |
| 4396 | return 0; |
| 4397 | } |
| 4398 | _ACEOF |
| 4399 | ac_clean_files_save=$ac_clean_files |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4400 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4401 | # Try to create an executable without -o first, disregard a.out. |
| 4402 | # It will help us diagnose broken compilers, and finding out an intuition |
| 4403 | # of exeext. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4405 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 4406 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 4407 | |
| 4408 | # The possible output files: |
| 4409 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 4410 | |
| 4411 | ac_rmfiles= |
| 4412 | for ac_file in $ac_files |
| 4413 | do |
| 4414 | case $ac_file in |
| 4415 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 4416 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 4417 | esac |
| 4418 | done |
| 4419 | rm -f $ac_rmfiles |
| 4420 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4421 | if { { ac_try="$ac_link_default" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4422 | case "(($ac_try" in |
| 4423 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4424 | *) ac_try_echo=$ac_try;; |
| 4425 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4426 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4427 | $as_echo "$ac_try_echo"; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4428 | (eval "$ac_link_default") 2>&5 |
| 4429 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4430 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4431 | test $ac_status = 0; }; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4432 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 4433 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 4434 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 4435 | # so that the user can short-circuit this test for compilers unknown to |
| 4436 | # Autoconf. |
| 4437 | for ac_file in $ac_files '' |
| 4438 | do |
| 4439 | test -f "$ac_file" || continue |
| 4440 | case $ac_file in |
| 4441 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
| 4442 | ;; |
| 4443 | [ab].out ) |
| 4444 | # We found the default executable, but exeext='' is most |
| 4445 | # certainly right. |
| 4446 | break;; |
| 4447 | *.* ) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4448 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4449 | then :; else |
| 4450 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 4451 | fi |
| 4452 | # We set ac_cv_exeext here because the later test for it is not |
| 4453 | # safe: cross compilers may not add the suffix if given an `-o' |
| 4454 | # argument, so we may need to know it at that point already. |
| 4455 | # Even if this section looks crufty: it has the advantage of |
| 4456 | # actually working. |
| 4457 | break;; |
| 4458 | * ) |
| 4459 | break;; |
| 4460 | esac |
| 4461 | done |
| 4462 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 4463 | |
| 4464 | else |
| 4465 | ac_file='' |
| 4466 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4468 | $as_echo "$ac_file" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4469 | if test -z "$ac_file"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4470 | $as_echo "$as_me: failed program was:" >&5 |
| 4471 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4472 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4473 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4474 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4475 | { as_fn_set_status 77 |
| 4476 | as_fn_error "C compiler cannot create executables |
| 4477 | See \`config.log' for more details." "$LINENO" 5; }; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4478 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4479 | ac_exeext=$ac_cv_exeext |
| 4480 | |
| 4481 | # Check that the compiler produces executables we can run. If not, either |
| 4482 | # the compiler is broken, or we cross compile. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4484 | $as_echo_n "checking whether the C compiler works... " >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4485 | # If not cross compiling, check that we can run a simple program. |
| 4486 | if test "$cross_compiling" != yes; then |
| 4487 | if { ac_try='./$ac_file' |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4488 | { { case "(($ac_try" in |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4490 | *) ac_try_echo=$ac_try;; |
| 4491 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4492 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4493 | $as_echo "$ac_try_echo"; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4494 | (eval "$ac_try") 2>&5 |
| 4495 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4496 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4497 | test $ac_status = 0; }; }; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4498 | cross_compiling=no |
| 4499 | else |
| 4500 | if test "$cross_compiling" = maybe; then |
| 4501 | cross_compiling=yes |
| 4502 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4503 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4504 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4505 | as_fn_error "cannot run C compiled programs. |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4506 | If you meant to cross compile, use \`--host'. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4507 | See \`config.log' for more details." "$LINENO" 5; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4508 | fi |
| 4509 | fi |
| 4510 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4512 | $as_echo "yes" >&6; } |
| 4513 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4514 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4515 | ac_clean_files=$ac_clean_files_save |
| 4516 | # Check that the compiler produces executables we can run. If not, either |
| 4517 | # the compiler is broken, or we cross compile. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4519 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4521 | $as_echo "$cross_compiling" >&6; } |
| 4522 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4523 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4524 | $as_echo_n "checking for suffix of executables... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4525 | if { { ac_try="$ac_link" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4526 | case "(($ac_try" in |
| 4527 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4528 | *) ac_try_echo=$ac_try;; |
| 4529 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4530 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4531 | $as_echo "$ac_try_echo"; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4532 | (eval "$ac_link") 2>&5 |
| 4533 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4534 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4535 | test $ac_status = 0; }; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4536 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 4537 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 4538 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 4539 | # `rm'. |
| 4540 | for ac_file in conftest.exe conftest conftest.*; do |
| 4541 | test -f "$ac_file" || continue |
| 4542 | case $ac_file in |
| 4543 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 4544 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 4545 | break;; |
| 4546 | * ) break;; |
| 4547 | esac |
| 4548 | done |
| 4549 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4550 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4551 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4552 | as_fn_error "cannot compute suffix of executables: cannot compile and link |
| 4553 | See \`config.log' for more details." "$LINENO" 5; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4554 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4555 | rm -f conftest$ac_cv_exeext |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4557 | $as_echo "$ac_cv_exeext" >&6; } |
| 4558 | |
| 4559 | rm -f conftest.$ac_ext |
| 4560 | EXEEXT=$ac_cv_exeext |
| 4561 | ac_exeext=$EXEEXT |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4563 | $as_echo_n "checking for suffix of object files... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4564 | if test "${ac_cv_objext+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4565 | $as_echo_n "(cached) " >&6 |
| 4566 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4567 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4568 | /* end confdefs.h. */ |
| 4569 | |
| 4570 | int |
| 4571 | main () |
| 4572 | { |
| 4573 | |
| 4574 | ; |
| 4575 | return 0; |
| 4576 | } |
| 4577 | _ACEOF |
| 4578 | rm -f conftest.o conftest.obj |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4579 | if { { ac_try="$ac_compile" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4580 | case "(($ac_try" in |
| 4581 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4582 | *) ac_try_echo=$ac_try;; |
| 4583 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4584 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4585 | $as_echo "$ac_try_echo"; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4586 | (eval "$ac_compile") 2>&5 |
| 4587 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4588 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4589 | test $ac_status = 0; }; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4590 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 4591 | test -f "$ac_file" || continue; |
| 4592 | case $ac_file in |
| 4593 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
| 4594 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 4595 | break;; |
| 4596 | esac |
| 4597 | done |
| 4598 | else |
| 4599 | $as_echo "$as_me: failed program was:" >&5 |
| 4600 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4601 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4602 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4603 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4604 | as_fn_error "cannot compute suffix of object files: cannot compile |
| 4605 | See \`config.log' for more details." "$LINENO" 5; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4606 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4607 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 4608 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4610 | $as_echo "$ac_cv_objext" >&6; } |
| 4611 | OBJEXT=$ac_cv_objext |
| 4612 | ac_objext=$OBJEXT |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4614 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4615 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4616 | $as_echo_n "(cached) " >&6 |
| 4617 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4618 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4619 | /* end confdefs.h. */ |
| 4620 | |
| 4621 | int |
| 4622 | main () |
| 4623 | { |
| 4624 | #ifndef __GNUC__ |
| 4625 | choke me |
| 4626 | #endif |
| 4627 | |
| 4628 | ; |
| 4629 | return 0; |
| 4630 | } |
| 4631 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4632 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4633 | ac_compiler_gnu=yes |
| 4634 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4635 | ac_compiler_gnu=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4636 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4637 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4638 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 4639 | |
| 4640 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4642 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 4643 | if test $ac_compiler_gnu = yes; then |
| 4644 | GCC=yes |
| 4645 | else |
| 4646 | GCC= |
| 4647 | fi |
| 4648 | ac_test_CFLAGS=${CFLAGS+set} |
| 4649 | ac_save_CFLAGS=$CFLAGS |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4651 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4652 | if test "${ac_cv_prog_cc_g+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4653 | $as_echo_n "(cached) " >&6 |
| 4654 | else |
| 4655 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 4656 | ac_c_werror_flag=yes |
| 4657 | ac_cv_prog_cc_g=no |
| 4658 | CFLAGS="-g" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4659 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4660 | /* end confdefs.h. */ |
| 4661 | |
| 4662 | int |
| 4663 | main () |
| 4664 | { |
| 4665 | |
| 4666 | ; |
| 4667 | return 0; |
| 4668 | } |
| 4669 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4670 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4671 | ac_cv_prog_cc_g=yes |
| 4672 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4673 | CFLAGS="" |
| 4674 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4675 | /* end confdefs.h. */ |
| 4676 | |
| 4677 | int |
| 4678 | main () |
| 4679 | { |
| 4680 | |
| 4681 | ; |
| 4682 | return 0; |
| 4683 | } |
| 4684 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4685 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4686 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4687 | else |
| 4688 | ac_c_werror_flag=$ac_save_c_werror_flag |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4689 | CFLAGS="-g" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4690 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4691 | /* end confdefs.h. */ |
| 4692 | |
| 4693 | int |
| 4694 | main () |
| 4695 | { |
| 4696 | |
| 4697 | ; |
| 4698 | return 0; |
| 4699 | } |
| 4700 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4701 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4702 | ac_cv_prog_cc_g=yes |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4703 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4704 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4705 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4706 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4707 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4708 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4709 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4710 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4712 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
| 4713 | if test "$ac_test_CFLAGS" = set; then |
| 4714 | CFLAGS=$ac_save_CFLAGS |
| 4715 | elif test $ac_cv_prog_cc_g = yes; then |
| 4716 | if test "$GCC" = yes; then |
| 4717 | CFLAGS="-g -O2" |
| 4718 | else |
| 4719 | CFLAGS="-g" |
| 4720 | fi |
| 4721 | else |
| 4722 | if test "$GCC" = yes; then |
| 4723 | CFLAGS="-O2" |
| 4724 | else |
| 4725 | CFLAGS= |
| 4726 | fi |
| 4727 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4729 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4730 | if test "${ac_cv_prog_cc_c89+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4731 | $as_echo_n "(cached) " >&6 |
| 4732 | else |
| 4733 | ac_cv_prog_cc_c89=no |
| 4734 | ac_save_CC=$CC |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4735 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4736 | /* end confdefs.h. */ |
| 4737 | #include <stdarg.h> |
| 4738 | #include <stdio.h> |
| 4739 | #include <sys/types.h> |
| 4740 | #include <sys/stat.h> |
| 4741 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 4742 | struct buf { int x; }; |
| 4743 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 4744 | static char *e (p, i) |
| 4745 | char **p; |
| 4746 | int i; |
| 4747 | { |
| 4748 | return p[i]; |
| 4749 | } |
| 4750 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 4751 | { |
| 4752 | char *s; |
| 4753 | va_list v; |
| 4754 | va_start (v,p); |
| 4755 | s = g (p, va_arg (v,int)); |
| 4756 | va_end (v); |
| 4757 | return s; |
| 4758 | } |
| 4759 | |
| 4760 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 4761 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 4762 | These don't provoke an error unfortunately, instead are silently treated |
| 4763 | as 'x'. The following induces an error, until -std is added to get |
| 4764 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 4765 | array size at least. It's necessary to write '\x00'==0 to get something |
| 4766 | that's true only with -std. */ |
| 4767 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 4768 | |
| 4769 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 4770 | inside strings and character constants. */ |
| 4771 | #define FOO(x) 'x' |
| 4772 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 4773 | |
| 4774 | int test (int i, double x); |
| 4775 | struct s1 {int (*f) (int a);}; |
| 4776 | struct s2 {int (*f) (double a);}; |
| 4777 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 4778 | int argc; |
| 4779 | char **argv; |
| 4780 | int |
| 4781 | main () |
| 4782 | { |
| 4783 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 4784 | ; |
| 4785 | return 0; |
| 4786 | } |
| 4787 | _ACEOF |
| 4788 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 4789 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 4790 | do |
| 4791 | CC="$ac_save_CC $ac_arg" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4792 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4793 | ac_cv_prog_cc_c89=$ac_arg |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4794 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4795 | rm -f core conftest.err conftest.$ac_objext |
| 4796 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 4797 | done |
| 4798 | rm -f conftest.$ac_ext |
| 4799 | CC=$ac_save_CC |
| 4800 | |
| 4801 | fi |
| 4802 | # AC_CACHE_VAL |
| 4803 | case "x$ac_cv_prog_cc_c89" in |
| 4804 | x) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4806 | $as_echo "none needed" >&6; } ;; |
| 4807 | xno) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4809 | $as_echo "unsupported" >&6; } ;; |
| 4810 | *) |
| 4811 | CC="$CC $ac_cv_prog_cc_c89" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4813 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 4814 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4815 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4816 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4817 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4818 | |
| 4819 | ac_ext=c |
| 4820 | ac_cpp='$CPP $CPPFLAGS' |
| 4821 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4822 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4823 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4824 | DEPDIR="${am__leading_dot}deps" |
| 4825 | |
| 4826 | ac_config_commands="$ac_config_commands depfiles" |
| 4827 | |
| 4828 | |
| 4829 | am_make=${MAKE-make} |
| 4830 | cat > confinc << 'END' |
| 4831 | am__doit: |
| 4832 | @echo this is the am__doit target |
| 4833 | .PHONY: am__doit |
| 4834 | END |
| 4835 | # If we don't find an include directive, just comment out the code. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4837 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
| 4838 | am__include="#" |
| 4839 | am__quote= |
| 4840 | _am_result=none |
| 4841 | # First try GNU make style include. |
| 4842 | echo "include confinc" > confmf |
| 4843 | # Ignore all kinds of additional output from `make'. |
| 4844 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 4845 | *the\ am__doit\ target*) |
| 4846 | am__include=include |
| 4847 | am__quote= |
| 4848 | _am_result=GNU |
| 4849 | ;; |
| 4850 | esac |
| 4851 | # Now try BSD make style include. |
| 4852 | if test "$am__include" = "#"; then |
| 4853 | echo '.include "confinc"' > confmf |
| 4854 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 4855 | *the\ am__doit\ target*) |
| 4856 | am__include=.include |
| 4857 | am__quote="\"" |
| 4858 | _am_result=BSD |
| 4859 | ;; |
| 4860 | esac |
| 4861 | fi |
| 4862 | |
| 4863 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4865 | $as_echo "$_am_result" >&6; } |
| 4866 | rm -f confinc confmf |
| 4867 | |
| 4868 | # Check whether --enable-dependency-tracking was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4869 | if test "${enable_dependency_tracking+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4870 | enableval=$enable_dependency_tracking; |
| 4871 | fi |
| 4872 | |
| 4873 | if test "x$enable_dependency_tracking" != xno; then |
| 4874 | am_depcomp="$ac_aux_dir/depcomp" |
| 4875 | AMDEPBACKSLASH='\' |
| 4876 | fi |
| 4877 | if test "x$enable_dependency_tracking" != xno; then |
| 4878 | AMDEP_TRUE= |
| 4879 | AMDEP_FALSE='#' |
| 4880 | else |
| 4881 | AMDEP_TRUE='#' |
| 4882 | AMDEP_FALSE= |
| 4883 | fi |
| 4884 | |
| 4885 | |
| 4886 | |
| 4887 | depcc="$CC" am_compiler_list= |
| 4888 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4890 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4891 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4892 | $as_echo_n "(cached) " >&6 |
| 4893 | else |
| 4894 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 4895 | # We make a subdir and do the tests there. Otherwise we can end up |
| 4896 | # making bogus files that we don't know about and never remove. For |
| 4897 | # instance it was reported that on HP-UX the gcc test will end up |
| 4898 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 4899 | # in D'. |
| 4900 | mkdir conftest.dir |
| 4901 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 4902 | # using a relative directory. |
| 4903 | cp "$am_depcomp" conftest.dir |
| 4904 | cd conftest.dir |
| 4905 | # We will build objects and dependencies in a subdirectory because |
| 4906 | # it helps to detect inapplicable dependency modes. For instance |
| 4907 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 4908 | # side effect of compilation, but ICC will put the dependencies in |
| 4909 | # the current directory while Tru64 will put them in the object |
| 4910 | # directory. |
| 4911 | mkdir sub |
| 4912 | |
| 4913 | am_cv_CC_dependencies_compiler_type=none |
| 4914 | if test "$am_compiler_list" = ""; then |
| 4915 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 4916 | fi |
| 4917 | am__universal=false |
| 4918 | case " $depcc " in #( |
| 4919 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 4920 | esac |
| 4921 | |
| 4922 | for depmode in $am_compiler_list; do |
| 4923 | # Setup a source with many dependencies, because some compilers |
| 4924 | # like to wrap large dependency lists on column 80 (with \), and |
| 4925 | # we should not choose a depcomp mode which is confused by this. |
| 4926 | # |
| 4927 | # We need to recreate these files for each test, as the compiler may |
| 4928 | # overwrite some of them when testing with obscure command lines. |
| 4929 | # This happens at least with the AIX C compiler. |
| 4930 | : > sub/conftest.c |
| 4931 | for i in 1 2 3 4 5 6; do |
| 4932 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 4933 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 4934 | # Solaris 8's {/usr,}/bin/sh. |
| 4935 | touch sub/conftst$i.h |
| 4936 | done |
| 4937 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 4938 | |
| 4939 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 4940 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 4941 | # handle `-M -o', and we need to detect this. Also, some Intel |
| 4942 | # versions had trouble with output in subdirs |
| 4943 | am__obj=sub/conftest.${OBJEXT-o} |
| 4944 | am__minus_obj="-o $am__obj" |
| 4945 | case $depmode in |
| 4946 | gcc) |
| 4947 | # This depmode causes a compiler race in universal mode. |
| 4948 | test "$am__universal" = false || continue |
| 4949 | ;; |
| 4950 | nosideeffect) |
| 4951 | # after this tag, mechanisms are not by side-effect, so they'll |
| 4952 | # only be used when explicitly requested |
| 4953 | if test "x$enable_dependency_tracking" = xyes; then |
| 4954 | continue |
| 4955 | else |
| 4956 | break |
| 4957 | fi |
| 4958 | ;; |
| 4959 | msvisualcpp | msvcmsys) |
| 4960 | # This compiler won't grok `-c -o', but also, the minuso test has |
| 4961 | # not run yet. These depmodes are late enough in the game, and |
| 4962 | # so weak that their functioning should not be impacted. |
| 4963 | am__obj=conftest.${OBJEXT-o} |
| 4964 | am__minus_obj= |
| 4965 | ;; |
| 4966 | none) break ;; |
| 4967 | esac |
| 4968 | if depmode=$depmode \ |
| 4969 | source=sub/conftest.c object=$am__obj \ |
| 4970 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 4971 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 4972 | >/dev/null 2>conftest.err && |
| 4973 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 4974 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 4975 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 4976 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 4977 | # icc doesn't choke on unknown options, it will just issue warnings |
| 4978 | # or remarks (even with -Werror). So we grep stderr for any message |
| 4979 | # that says an option was ignored or not supported. |
| 4980 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 4981 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 4982 | # The diagnosis changed in icc 8.0: |
| 4983 | # icc: Command line remark: option '-MP' not supported |
| 4984 | if (grep 'ignoring option' conftest.err || |
| 4985 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 4986 | am_cv_CC_dependencies_compiler_type=$depmode |
| 4987 | break |
| 4988 | fi |
| 4989 | fi |
| 4990 | done |
| 4991 | |
| 4992 | cd .. |
| 4993 | rm -rf conftest.dir |
| 4994 | else |
| 4995 | am_cv_CC_dependencies_compiler_type=none |
| 4996 | fi |
| 4997 | |
| 4998 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 4999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5000 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
| 5001 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 5002 | |
| 5003 | if |
| 5004 | test "x$enable_dependency_tracking" != xno \ |
| 5005 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 5006 | am__fastdepCC_TRUE= |
| 5007 | am__fastdepCC_FALSE='#' |
| 5008 | else |
| 5009 | am__fastdepCC_TRUE='#' |
| 5010 | am__fastdepCC_FALSE= |
| 5011 | fi |
| 5012 | |
| 5013 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5014 | case $ac_cv_prog_cc_stdc in #( |
| 5015 | no) : |
| 5016 | ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( |
| 5017 | *) : |
| 5018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5019 | $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5020 | if test "${ac_cv_prog_cc_c99+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5021 | $as_echo_n "(cached) " >&6 |
| 5022 | else |
| 5023 | ac_cv_prog_cc_c99=no |
| 5024 | ac_save_CC=$CC |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5025 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5026 | /* end confdefs.h. */ |
| 5027 | #include <stdarg.h> |
| 5028 | #include <stdbool.h> |
| 5029 | #include <stdlib.h> |
| 5030 | #include <wchar.h> |
| 5031 | #include <stdio.h> |
| 5032 | |
| 5033 | // Check varargs macros. These examples are taken from C99 6.10.3.5. |
| 5034 | #define debug(...) fprintf (stderr, __VA_ARGS__) |
| 5035 | #define showlist(...) puts (#__VA_ARGS__) |
| 5036 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
| 5037 | static void |
| 5038 | test_varargs_macros (void) |
| 5039 | { |
| 5040 | int x = 1234; |
| 5041 | int y = 5678; |
| 5042 | debug ("Flag"); |
| 5043 | debug ("X = %d\n", x); |
| 5044 | showlist (The first, second, and third items.); |
| 5045 | report (x>y, "x is %d but y is %d", x, y); |
| 5046 | } |
| 5047 | |
| 5048 | // Check long long types. |
| 5049 | #define BIG64 18446744073709551615ull |
| 5050 | #define BIG32 4294967295ul |
| 5051 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
| 5052 | #if !BIG_OK |
| 5053 | your preprocessor is broken; |
| 5054 | #endif |
| 5055 | #if BIG_OK |
| 5056 | #else |
| 5057 | your preprocessor is broken; |
| 5058 | #endif |
| 5059 | static long long int bignum = -9223372036854775807LL; |
| 5060 | static unsigned long long int ubignum = BIG64; |
| 5061 | |
| 5062 | struct incomplete_array |
| 5063 | { |
| 5064 | int datasize; |
| 5065 | double data[]; |
| 5066 | }; |
| 5067 | |
| 5068 | struct named_init { |
| 5069 | int number; |
| 5070 | const wchar_t *name; |
| 5071 | double average; |
| 5072 | }; |
| 5073 | |
| 5074 | typedef const char *ccp; |
| 5075 | |
| 5076 | static inline int |
| 5077 | test_restrict (ccp restrict text) |
| 5078 | { |
| 5079 | // See if C++-style comments work. |
| 5080 | // Iterate through items via the restricted pointer. |
| 5081 | // Also check for declarations in for loops. |
| 5082 | for (unsigned int i = 0; *(text+i) != '\0'; ++i) |
| 5083 | continue; |
| 5084 | return 0; |
| 5085 | } |
| 5086 | |
| 5087 | // Check varargs and va_copy. |
| 5088 | static void |
| 5089 | test_varargs (const char *format, ...) |
| 5090 | { |
| 5091 | va_list args; |
| 5092 | va_start (args, format); |
| 5093 | va_list args_copy; |
| 5094 | va_copy (args_copy, args); |
| 5095 | |
| 5096 | const char *str; |
| 5097 | int number; |
| 5098 | float fnumber; |
| 5099 | |
| 5100 | while (*format) |
| 5101 | { |
| 5102 | switch (*format++) |
| 5103 | { |
| 5104 | case 's': // string |
| 5105 | str = va_arg (args_copy, const char *); |
| 5106 | break; |
| 5107 | case 'd': // int |
| 5108 | number = va_arg (args_copy, int); |
| 5109 | break; |
| 5110 | case 'f': // float |
| 5111 | fnumber = va_arg (args_copy, double); |
| 5112 | break; |
| 5113 | default: |
| 5114 | break; |
| 5115 | } |
| 5116 | } |
| 5117 | va_end (args_copy); |
| 5118 | va_end (args); |
| 5119 | } |
| 5120 | |
| 5121 | int |
| 5122 | main () |
| 5123 | { |
| 5124 | |
| 5125 | // Check bool. |
| 5126 | _Bool success = false; |
| 5127 | |
| 5128 | // Check restrict. |
| 5129 | if (test_restrict ("String literal") == 0) |
| 5130 | success = true; |
| 5131 | char *restrict newvar = "Another string"; |
| 5132 | |
| 5133 | // Check varargs. |
| 5134 | test_varargs ("s, d' f .", "string", 65, 34.234); |
| 5135 | test_varargs_macros (); |
| 5136 | |
| 5137 | // Check flexible array members. |
| 5138 | struct incomplete_array *ia = |
| 5139 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
| 5140 | ia->datasize = 10; |
| 5141 | for (int i = 0; i < ia->datasize; ++i) |
| 5142 | ia->data[i] = i * 1.234; |
| 5143 | |
| 5144 | // Check named initializers. |
| 5145 | struct named_init ni = { |
| 5146 | .number = 34, |
| 5147 | .name = L"Test wide string", |
| 5148 | .average = 543.34343, |
| 5149 | }; |
| 5150 | |
| 5151 | ni.number = 58; |
| 5152 | |
| 5153 | int dynamic_array[ni.number]; |
| 5154 | dynamic_array[ni.number - 1] = 543; |
| 5155 | |
| 5156 | // work around unused variable warnings |
| 5157 | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' |
| 5158 | || dynamic_array[ni.number - 1] != 543); |
| 5159 | |
| 5160 | ; |
| 5161 | return 0; |
| 5162 | } |
| 5163 | _ACEOF |
| 5164 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 |
| 5165 | do |
| 5166 | CC="$ac_save_CC $ac_arg" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5167 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5168 | ac_cv_prog_cc_c99=$ac_arg |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5169 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5170 | rm -f core conftest.err conftest.$ac_objext |
| 5171 | test "x$ac_cv_prog_cc_c99" != "xno" && break |
| 5172 | done |
| 5173 | rm -f conftest.$ac_ext |
| 5174 | CC=$ac_save_CC |
| 5175 | |
| 5176 | fi |
| 5177 | # AC_CACHE_VAL |
| 5178 | case "x$ac_cv_prog_cc_c99" in |
| 5179 | x) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5181 | $as_echo "none needed" >&6; } ;; |
| 5182 | xno) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5184 | $as_echo "unsupported" >&6; } ;; |
| 5185 | *) |
| 5186 | CC="$CC $ac_cv_prog_cc_c99" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5188 | $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; |
| 5189 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5190 | if test "x$ac_cv_prog_cc_c99" != xno; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5191 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 |
| 5192 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5194 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5195 | if test "${ac_cv_prog_cc_c89+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5196 | $as_echo_n "(cached) " >&6 |
| 5197 | else |
| 5198 | ac_cv_prog_cc_c89=no |
| 5199 | ac_save_CC=$CC |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5200 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5201 | /* end confdefs.h. */ |
| 5202 | #include <stdarg.h> |
| 5203 | #include <stdio.h> |
| 5204 | #include <sys/types.h> |
| 5205 | #include <sys/stat.h> |
| 5206 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 5207 | struct buf { int x; }; |
| 5208 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 5209 | static char *e (p, i) |
| 5210 | char **p; |
| 5211 | int i; |
| 5212 | { |
| 5213 | return p[i]; |
| 5214 | } |
| 5215 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 5216 | { |
| 5217 | char *s; |
| 5218 | va_list v; |
| 5219 | va_start (v,p); |
| 5220 | s = g (p, va_arg (v,int)); |
| 5221 | va_end (v); |
| 5222 | return s; |
| 5223 | } |
| 5224 | |
| 5225 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 5226 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 5227 | These don't provoke an error unfortunately, instead are silently treated |
| 5228 | as 'x'. The following induces an error, until -std is added to get |
| 5229 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 5230 | array size at least. It's necessary to write '\x00'==0 to get something |
| 5231 | that's true only with -std. */ |
| 5232 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 5233 | |
| 5234 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 5235 | inside strings and character constants. */ |
| 5236 | #define FOO(x) 'x' |
| 5237 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 5238 | |
| 5239 | int test (int i, double x); |
| 5240 | struct s1 {int (*f) (int a);}; |
| 5241 | struct s2 {int (*f) (double a);}; |
| 5242 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 5243 | int argc; |
| 5244 | char **argv; |
| 5245 | int |
| 5246 | main () |
| 5247 | { |
| 5248 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 5249 | ; |
| 5250 | return 0; |
| 5251 | } |
| 5252 | _ACEOF |
| 5253 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 5254 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 5255 | do |
| 5256 | CC="$ac_save_CC $ac_arg" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5257 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5258 | ac_cv_prog_cc_c89=$ac_arg |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5259 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5260 | rm -f core conftest.err conftest.$ac_objext |
| 5261 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 5262 | done |
| 5263 | rm -f conftest.$ac_ext |
| 5264 | CC=$ac_save_CC |
| 5265 | |
| 5266 | fi |
| 5267 | # AC_CACHE_VAL |
| 5268 | case "x$ac_cv_prog_cc_c89" in |
| 5269 | x) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5271 | $as_echo "none needed" >&6; } ;; |
| 5272 | xno) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5274 | $as_echo "unsupported" >&6; } ;; |
| 5275 | *) |
| 5276 | CC="$CC $ac_cv_prog_cc_c89" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5278 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 5279 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5280 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5281 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 |
| 5282 | else |
| 5283 | ac_cv_prog_cc_stdc=no |
| 5284 | fi |
| 5285 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5286 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5287 | ;; |
| 5288 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5289 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5290 | $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5291 | if test "${ac_cv_prog_cc_stdc+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5292 | $as_echo_n "(cached) " >&6 |
| 5293 | fi |
| 5294 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5295 | case $ac_cv_prog_cc_stdc in #( |
| 5296 | no) : |
| 5297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 5298 | $as_echo "unsupported" >&6; } ;; #( |
| 5299 | '') : |
| 5300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 5301 | $as_echo "none needed" >&6; } ;; #( |
| 5302 | *) : |
| 5303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5304 | $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; |
| 5305 | esac |
| 5306 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5307 | ac_ext=c |
| 5308 | ac_cpp='$CPP $CPPFLAGS' |
| 5309 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5310 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5311 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5313 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
| 5314 | # On Suns, sometimes $CPP names a directory. |
| 5315 | if test -n "$CPP" && test -d "$CPP"; then |
| 5316 | CPP= |
| 5317 | fi |
| 5318 | if test -z "$CPP"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5319 | if test "${ac_cv_prog_CPP+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5320 | $as_echo_n "(cached) " >&6 |
| 5321 | else |
| 5322 | # Double quotes because CPP needs to be expanded |
| 5323 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 5324 | do |
| 5325 | ac_preproc_ok=false |
| 5326 | for ac_c_preproc_warn_flag in '' yes |
| 5327 | do |
| 5328 | # Use a header file that comes with gcc, so configuring glibc |
| 5329 | # with a fresh cross-compiler works. |
| 5330 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5331 | # <limits.h> exists even on freestanding compilers. |
| 5332 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5333 | # not just through cpp. "Syntax error" is here to catch this case. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5334 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5335 | /* end confdefs.h. */ |
| 5336 | #ifdef __STDC__ |
| 5337 | # include <limits.h> |
| 5338 | #else |
| 5339 | # include <assert.h> |
| 5340 | #endif |
| 5341 | Syntax error |
| 5342 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5343 | if ac_fn_c_try_cpp "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5344 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5345 | else |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5346 | # Broken: fails on valid input. |
| 5347 | continue |
| 5348 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5349 | rm -f conftest.err conftest.$ac_ext |
| 5350 | |
| 5351 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5352 | # can be detected and how. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5353 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5354 | /* end confdefs.h. */ |
| 5355 | #include <ac_nonexistent.h> |
| 5356 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5357 | if ac_fn_c_try_cpp "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5358 | # Broken: success on invalid input. |
| 5359 | continue |
| 5360 | else |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5361 | # Passes both tests. |
| 5362 | ac_preproc_ok=: |
| 5363 | break |
| 5364 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5365 | rm -f conftest.err conftest.$ac_ext |
| 5366 | |
| 5367 | done |
| 5368 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5369 | rm -f conftest.err conftest.$ac_ext |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5370 | if $ac_preproc_ok; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5371 | break |
| 5372 | fi |
| 5373 | |
| 5374 | done |
| 5375 | ac_cv_prog_CPP=$CPP |
| 5376 | |
| 5377 | fi |
| 5378 | CPP=$ac_cv_prog_CPP |
| 5379 | else |
| 5380 | ac_cv_prog_CPP=$CPP |
| 5381 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5383 | $as_echo "$CPP" >&6; } |
| 5384 | ac_preproc_ok=false |
| 5385 | for ac_c_preproc_warn_flag in '' yes |
| 5386 | do |
| 5387 | # Use a header file that comes with gcc, so configuring glibc |
| 5388 | # with a fresh cross-compiler works. |
| 5389 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5390 | # <limits.h> exists even on freestanding compilers. |
| 5391 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5392 | # not just through cpp. "Syntax error" is here to catch this case. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5393 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5394 | /* end confdefs.h. */ |
| 5395 | #ifdef __STDC__ |
| 5396 | # include <limits.h> |
| 5397 | #else |
| 5398 | # include <assert.h> |
| 5399 | #endif |
| 5400 | Syntax error |
| 5401 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5402 | if ac_fn_c_try_cpp "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5403 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5404 | else |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5405 | # Broken: fails on valid input. |
| 5406 | continue |
| 5407 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5408 | rm -f conftest.err conftest.$ac_ext |
| 5409 | |
| 5410 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5411 | # can be detected and how. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5412 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5413 | /* end confdefs.h. */ |
| 5414 | #include <ac_nonexistent.h> |
| 5415 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5416 | if ac_fn_c_try_cpp "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5417 | # Broken: success on invalid input. |
| 5418 | continue |
| 5419 | else |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5420 | # Passes both tests. |
| 5421 | ac_preproc_ok=: |
| 5422 | break |
| 5423 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5424 | rm -f conftest.err conftest.$ac_ext |
| 5425 | |
| 5426 | done |
| 5427 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5428 | rm -f conftest.err conftest.$ac_ext |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5429 | if $ac_preproc_ok; then : |
| 5430 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5431 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5432 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5433 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5434 | as_fn_error "C preprocessor \"$CPP\" fails sanity check |
| 5435 | See \`config.log' for more details." "$LINENO" 5; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5436 | fi |
| 5437 | |
| 5438 | ac_ext=c |
| 5439 | ac_cpp='$CPP $CPPFLAGS' |
| 5440 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5441 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5442 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5443 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5445 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5446 | if test "${ac_cv_path_SED+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5447 | $as_echo_n "(cached) " >&6 |
| 5448 | else |
| 5449 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
| 5450 | for ac_i in 1 2 3 4 5 6 7; do |
| 5451 | ac_script="$ac_script$as_nl$ac_script" |
| 5452 | done |
| 5453 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5454 | { ac_script=; unset ac_script;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5455 | if test -z "$SED"; then |
| 5456 | ac_path_SED_found=false |
| 5457 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 5458 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5459 | for as_dir in $PATH |
| 5460 | do |
| 5461 | IFS=$as_save_IFS |
| 5462 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5463 | for ac_prog in sed gsed; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5464 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5465 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
| 5466 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue |
| 5467 | # Check for GNU ac_path_SED and select it if it is found. |
| 5468 | # Check for GNU $ac_path_SED |
| 5469 | case `"$ac_path_SED" --version 2>&1` in |
| 5470 | *GNU*) |
| 5471 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
| 5472 | *) |
| 5473 | ac_count=0 |
| 5474 | $as_echo_n 0123456789 >"conftest.in" |
| 5475 | while : |
| 5476 | do |
| 5477 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5478 | mv "conftest.tmp" "conftest.in" |
| 5479 | cp "conftest.in" "conftest.nl" |
| 5480 | $as_echo '' >> "conftest.nl" |
| 5481 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5482 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5483 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5484 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
| 5485 | # Best one so far, save it but keep looking for a better one |
| 5486 | ac_cv_path_SED="$ac_path_SED" |
| 5487 | ac_path_SED_max=$ac_count |
| 5488 | fi |
| 5489 | # 10*(2^10) chars as input seems more than enough |
| 5490 | test $ac_count -gt 10 && break |
| 5491 | done |
| 5492 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5493 | esac |
| 5494 | |
| 5495 | $ac_path_SED_found && break 3 |
| 5496 | done |
| 5497 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5498 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5499 | IFS=$as_save_IFS |
| 5500 | if test -z "$ac_cv_path_SED"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5501 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5502 | fi |
| 5503 | else |
| 5504 | ac_cv_path_SED=$SED |
| 5505 | fi |
| 5506 | |
| 5507 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5509 | $as_echo "$ac_cv_path_SED" >&6; } |
| 5510 | SED="$ac_cv_path_SED" |
| 5511 | rm -f conftest.sed |
| 5512 | |
| 5513 | test -z "$SED" && SED=sed |
| 5514 | Xsed="$SED -e 1s/^X//" |
| 5515 | |
| 5516 | |
| 5517 | |
| 5518 | |
| 5519 | |
| 5520 | |
| 5521 | |
| 5522 | |
| 5523 | |
| 5524 | |
| 5525 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5527 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5528 | if test "${ac_cv_path_GREP+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5529 | $as_echo_n "(cached) " >&6 |
| 5530 | else |
| 5531 | if test -z "$GREP"; then |
| 5532 | ac_path_GREP_found=false |
| 5533 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 5534 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5535 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 5536 | do |
| 5537 | IFS=$as_save_IFS |
| 5538 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5539 | for ac_prog in grep ggrep; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5540 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5541 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 5542 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 5543 | # Check for GNU ac_path_GREP and select it if it is found. |
| 5544 | # Check for GNU $ac_path_GREP |
| 5545 | case `"$ac_path_GREP" --version 2>&1` in |
| 5546 | *GNU*) |
| 5547 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 5548 | *) |
| 5549 | ac_count=0 |
| 5550 | $as_echo_n 0123456789 >"conftest.in" |
| 5551 | while : |
| 5552 | do |
| 5553 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5554 | mv "conftest.tmp" "conftest.in" |
| 5555 | cp "conftest.in" "conftest.nl" |
| 5556 | $as_echo 'GREP' >> "conftest.nl" |
| 5557 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5558 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5559 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5560 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 5561 | # Best one so far, save it but keep looking for a better one |
| 5562 | ac_cv_path_GREP="$ac_path_GREP" |
| 5563 | ac_path_GREP_max=$ac_count |
| 5564 | fi |
| 5565 | # 10*(2^10) chars as input seems more than enough |
| 5566 | test $ac_count -gt 10 && break |
| 5567 | done |
| 5568 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5569 | esac |
| 5570 | |
| 5571 | $ac_path_GREP_found && break 3 |
| 5572 | done |
| 5573 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5574 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5575 | IFS=$as_save_IFS |
| 5576 | if test -z "$ac_cv_path_GREP"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5577 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5578 | fi |
| 5579 | else |
| 5580 | ac_cv_path_GREP=$GREP |
| 5581 | fi |
| 5582 | |
| 5583 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5585 | $as_echo "$ac_cv_path_GREP" >&6; } |
| 5586 | GREP="$ac_cv_path_GREP" |
| 5587 | |
| 5588 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5589 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5590 | $as_echo_n "checking for egrep... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5591 | if test "${ac_cv_path_EGREP+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5592 | $as_echo_n "(cached) " >&6 |
| 5593 | else |
| 5594 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 5595 | then ac_cv_path_EGREP="$GREP -E" |
| 5596 | else |
| 5597 | if test -z "$EGREP"; then |
| 5598 | ac_path_EGREP_found=false |
| 5599 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 5600 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5601 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 5602 | do |
| 5603 | IFS=$as_save_IFS |
| 5604 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5605 | for ac_prog in egrep; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5606 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5607 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 5608 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 5609 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 5610 | # Check for GNU $ac_path_EGREP |
| 5611 | case `"$ac_path_EGREP" --version 2>&1` in |
| 5612 | *GNU*) |
| 5613 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 5614 | *) |
| 5615 | ac_count=0 |
| 5616 | $as_echo_n 0123456789 >"conftest.in" |
| 5617 | while : |
| 5618 | do |
| 5619 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5620 | mv "conftest.tmp" "conftest.in" |
| 5621 | cp "conftest.in" "conftest.nl" |
| 5622 | $as_echo 'EGREP' >> "conftest.nl" |
| 5623 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5624 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5625 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5626 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 5627 | # Best one so far, save it but keep looking for a better one |
| 5628 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 5629 | ac_path_EGREP_max=$ac_count |
| 5630 | fi |
| 5631 | # 10*(2^10) chars as input seems more than enough |
| 5632 | test $ac_count -gt 10 && break |
| 5633 | done |
| 5634 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5635 | esac |
| 5636 | |
| 5637 | $ac_path_EGREP_found && break 3 |
| 5638 | done |
| 5639 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5640 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5641 | IFS=$as_save_IFS |
| 5642 | if test -z "$ac_cv_path_EGREP"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5643 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5644 | fi |
| 5645 | else |
| 5646 | ac_cv_path_EGREP=$EGREP |
| 5647 | fi |
| 5648 | |
| 5649 | fi |
| 5650 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5652 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 5653 | EGREP="$ac_cv_path_EGREP" |
| 5654 | |
| 5655 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5657 | $as_echo_n "checking for fgrep... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5658 | if test "${ac_cv_path_FGREP+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5659 | $as_echo_n "(cached) " >&6 |
| 5660 | else |
| 5661 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
| 5662 | then ac_cv_path_FGREP="$GREP -F" |
| 5663 | else |
| 5664 | if test -z "$FGREP"; then |
| 5665 | ac_path_FGREP_found=false |
| 5666 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 5667 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5668 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 5669 | do |
| 5670 | IFS=$as_save_IFS |
| 5671 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5672 | for ac_prog in fgrep; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5673 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5674 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 5675 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue |
| 5676 | # Check for GNU ac_path_FGREP and select it if it is found. |
| 5677 | # Check for GNU $ac_path_FGREP |
| 5678 | case `"$ac_path_FGREP" --version 2>&1` in |
| 5679 | *GNU*) |
| 5680 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; |
| 5681 | *) |
| 5682 | ac_count=0 |
| 5683 | $as_echo_n 0123456789 >"conftest.in" |
| 5684 | while : |
| 5685 | do |
| 5686 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5687 | mv "conftest.tmp" "conftest.in" |
| 5688 | cp "conftest.in" "conftest.nl" |
| 5689 | $as_echo 'FGREP' >> "conftest.nl" |
| 5690 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5691 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5692 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5693 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
| 5694 | # Best one so far, save it but keep looking for a better one |
| 5695 | ac_cv_path_FGREP="$ac_path_FGREP" |
| 5696 | ac_path_FGREP_max=$ac_count |
| 5697 | fi |
| 5698 | # 10*(2^10) chars as input seems more than enough |
| 5699 | test $ac_count -gt 10 && break |
| 5700 | done |
| 5701 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5702 | esac |
| 5703 | |
| 5704 | $ac_path_FGREP_found && break 3 |
| 5705 | done |
| 5706 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5707 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5708 | IFS=$as_save_IFS |
| 5709 | if test -z "$ac_cv_path_FGREP"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5710 | as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5711 | fi |
| 5712 | else |
| 5713 | ac_cv_path_FGREP=$FGREP |
| 5714 | fi |
| 5715 | |
| 5716 | fi |
| 5717 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5719 | $as_echo "$ac_cv_path_FGREP" >&6; } |
| 5720 | FGREP="$ac_cv_path_FGREP" |
| 5721 | |
| 5722 | |
| 5723 | test -z "$GREP" && GREP=grep |
| 5724 | |
| 5725 | |
| 5726 | |
| 5727 | |
| 5728 | |
| 5729 | |
| 5730 | |
| 5731 | |
| 5732 | |
| 5733 | |
| 5734 | |
| 5735 | |
| 5736 | |
| 5737 | |
| 5738 | |
| 5739 | |
| 5740 | |
| 5741 | |
| 5742 | |
| 5743 | # Check whether --with-gnu-ld was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5744 | if test "${with_gnu_ld+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5745 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
| 5746 | else |
| 5747 | with_gnu_ld=no |
| 5748 | fi |
| 5749 | |
| 5750 | ac_prog=ld |
| 5751 | if test "$GCC" = yes; then |
| 5752 | # Check if gcc -print-prog-name=ld gives a path. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5753 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5754 | $as_echo_n "checking for ld used by $CC... " >&6; } |
| 5755 | case $host in |
| 5756 | *-*-mingw*) |
| 5757 | # gcc leaves a trailing carriage return which upsets mingw |
| 5758 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 5759 | *) |
| 5760 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 5761 | esac |
| 5762 | case $ac_prog in |
| 5763 | # Accept absolute paths. |
| 5764 | [\\/]* | ?:[\\/]*) |
| 5765 | re_direlt='/[^/][^/]*/\.\./' |
| 5766 | # Canonicalize the pathname of ld |
| 5767 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 5768 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 5769 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
| 5770 | done |
| 5771 | test -z "$LD" && LD="$ac_prog" |
| 5772 | ;; |
| 5773 | "") |
| 5774 | # If it fails, then pretend we aren't using GCC. |
| 5775 | ac_prog=ld |
| 5776 | ;; |
| 5777 | *) |
| 5778 | # If it is relative, then search for the first ld in PATH. |
| 5779 | with_gnu_ld=unknown |
| 5780 | ;; |
| 5781 | esac |
| 5782 | elif test "$with_gnu_ld" = yes; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5784 | $as_echo_n "checking for GNU ld... " >&6; } |
| 5785 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5787 | $as_echo_n "checking for non-GNU ld... " >&6; } |
| 5788 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5789 | if test "${lt_cv_path_LD+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5790 | $as_echo_n "(cached) " >&6 |
| 5791 | else |
| 5792 | if test -z "$LD"; then |
| 5793 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 5794 | for ac_dir in $PATH; do |
| 5795 | IFS="$lt_save_ifs" |
| 5796 | test -z "$ac_dir" && ac_dir=. |
| 5797 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 5798 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 5799 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 5800 | # but apparently some variants of GNU ld only accept -v. |
| 5801 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 5802 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 5803 | *GNU* | *'with BFD'*) |
| 5804 | test "$with_gnu_ld" != no && break |
| 5805 | ;; |
| 5806 | *) |
| 5807 | test "$with_gnu_ld" != yes && break |
| 5808 | ;; |
| 5809 | esac |
| 5810 | fi |
| 5811 | done |
| 5812 | IFS="$lt_save_ifs" |
| 5813 | else |
| 5814 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 5815 | fi |
| 5816 | fi |
| 5817 | |
| 5818 | LD="$lt_cv_path_LD" |
| 5819 | if test -n "$LD"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5821 | $as_echo "$LD" >&6; } |
| 5822 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5824 | $as_echo "no" >&6; } |
| 5825 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5826 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 |
| 5827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5828 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5829 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5830 | $as_echo_n "(cached) " >&6 |
| 5831 | else |
| 5832 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 5833 | case `$LD -v 2>&1 </dev/null` in |
| 5834 | *GNU* | *'with BFD'*) |
| 5835 | lt_cv_prog_gnu_ld=yes |
| 5836 | ;; |
| 5837 | *) |
| 5838 | lt_cv_prog_gnu_ld=no |
| 5839 | ;; |
| 5840 | esac |
| 5841 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5843 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
| 5844 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 5845 | |
| 5846 | |
| 5847 | |
| 5848 | |
| 5849 | |
| 5850 | |
| 5851 | |
| 5852 | |
| 5853 | |
| 5854 | if test -n "$ac_tool_prefix"; then |
| 5855 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 5856 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5858 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5859 | if test "${ac_cv_prog_RANLIB+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5860 | $as_echo_n "(cached) " >&6 |
| 5861 | else |
| 5862 | if test -n "$RANLIB"; then |
| 5863 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 5864 | else |
| 5865 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5866 | for as_dir in $PATH |
| 5867 | do |
| 5868 | IFS=$as_save_IFS |
| 5869 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5870 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5871 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5872 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5873 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5874 | break 2 |
| 5875 | fi |
| 5876 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5877 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5878 | IFS=$as_save_IFS |
| 5879 | |
| 5880 | fi |
| 5881 | fi |
| 5882 | RANLIB=$ac_cv_prog_RANLIB |
| 5883 | if test -n "$RANLIB"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5885 | $as_echo "$RANLIB" >&6; } |
| 5886 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5888 | $as_echo "no" >&6; } |
| 5889 | fi |
| 5890 | |
| 5891 | |
| 5892 | fi |
| 5893 | if test -z "$ac_cv_prog_RANLIB"; then |
| 5894 | ac_ct_RANLIB=$RANLIB |
| 5895 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 5896 | set dummy ranlib; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5898 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5899 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5900 | $as_echo_n "(cached) " >&6 |
| 5901 | else |
| 5902 | if test -n "$ac_ct_RANLIB"; then |
| 5903 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 5904 | else |
| 5905 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5906 | for as_dir in $PATH |
| 5907 | do |
| 5908 | IFS=$as_save_IFS |
| 5909 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5910 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5911 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5912 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5913 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5914 | break 2 |
| 5915 | fi |
| 5916 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5917 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5918 | IFS=$as_save_IFS |
| 5919 | |
| 5920 | fi |
| 5921 | fi |
| 5922 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 5923 | if test -n "$ac_ct_RANLIB"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5925 | $as_echo "$ac_ct_RANLIB" >&6; } |
| 5926 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5928 | $as_echo "no" >&6; } |
| 5929 | fi |
| 5930 | |
| 5931 | if test "x$ac_ct_RANLIB" = x; then |
| 5932 | RANLIB=":" |
| 5933 | else |
| 5934 | case $cross_compiling:$ac_tool_warned in |
| 5935 | yes:) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5936 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5937 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5938 | ac_tool_warned=yes ;; |
| 5939 | esac |
| 5940 | RANLIB=$ac_ct_RANLIB |
| 5941 | fi |
| 5942 | else |
| 5943 | RANLIB="$ac_cv_prog_RANLIB" |
| 5944 | fi |
| 5945 | |
| 5946 | |
| 5947 | if test "x$CC" != xcc; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5949 | $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } |
| 5950 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5951 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5952 | $as_echo_n "checking whether cc understands -c and -o together... " >&6; } |
| 5953 | fi |
| 5954 | set dummy $CC; ac_cc=`$as_echo "$2" | |
| 5955 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5956 | if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5957 | $as_echo_n "(cached) " >&6 |
| 5958 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5959 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5960 | /* end confdefs.h. */ |
| 5961 | |
| 5962 | int |
| 5963 | main () |
| 5964 | { |
| 5965 | |
| 5966 | ; |
| 5967 | return 0; |
| 5968 | } |
| 5969 | _ACEOF |
| 5970 | # Make sure it works both with $CC and with simple cc. |
| 5971 | # We do the test twice because some compilers refuse to overwrite an |
| 5972 | # existing .o file with -o, though they will create one. |
| 5973 | ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' |
| 5974 | rm -f conftest2.* |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5975 | if { { case "(($ac_try" in |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5976 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5977 | *) ac_try_echo=$ac_try;; |
| 5978 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5979 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 5980 | $as_echo "$ac_try_echo"; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5981 | (eval "$ac_try") 2>&5 |
| 5982 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5983 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5984 | test $ac_status = 0; } && |
| 5985 | test -f conftest2.$ac_objext && { { case "(($ac_try" in |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5986 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5987 | *) ac_try_echo=$ac_try;; |
| 5988 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5989 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 5990 | $as_echo "$ac_try_echo"; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5991 | (eval "$ac_try") 2>&5 |
| 5992 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 5993 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5994 | test $ac_status = 0; }; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5995 | then |
| 5996 | eval ac_cv_prog_cc_${ac_cc}_c_o=yes |
| 5997 | if test "x$CC" != xcc; then |
| 5998 | # Test first that cc exists at all. |
| 5999 | if { ac_try='cc -c conftest.$ac_ext >&5' |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6000 | { { case "(($ac_try" in |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6002 | *) ac_try_echo=$ac_try;; |
| 6003 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6004 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 6005 | $as_echo "$ac_try_echo"; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6006 | (eval "$ac_try") 2>&5 |
| 6007 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6008 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6009 | test $ac_status = 0; }; }; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6010 | ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' |
| 6011 | rm -f conftest2.* |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6012 | if { { case "(($ac_try" in |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6013 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6014 | *) ac_try_echo=$ac_try;; |
| 6015 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6016 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 6017 | $as_echo "$ac_try_echo"; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6018 | (eval "$ac_try") 2>&5 |
| 6019 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6020 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6021 | test $ac_status = 0; } && |
| 6022 | test -f conftest2.$ac_objext && { { case "(($ac_try" in |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6023 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6024 | *) ac_try_echo=$ac_try;; |
| 6025 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6026 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 6027 | $as_echo "$ac_try_echo"; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6028 | (eval "$ac_try") 2>&5 |
| 6029 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6030 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6031 | test $ac_status = 0; }; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6032 | then |
| 6033 | # cc works too. |
| 6034 | : |
| 6035 | else |
| 6036 | # cc exists but doesn't like -o. |
| 6037 | eval ac_cv_prog_cc_${ac_cc}_c_o=no |
| 6038 | fi |
| 6039 | fi |
| 6040 | fi |
| 6041 | else |
| 6042 | eval ac_cv_prog_cc_${ac_cc}_c_o=no |
| 6043 | fi |
| 6044 | rm -f core conftest* |
| 6045 | |
| 6046 | fi |
| 6047 | if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6049 | $as_echo "yes" >&6; } |
| 6050 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6052 | $as_echo "no" >&6; } |
| 6053 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6054 | $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6055 | |
| 6056 | fi |
| 6057 | |
| 6058 | # FIXME: we rely on the cache variable name because |
| 6059 | # there is no other way. |
| 6060 | set dummy $CC |
| 6061 | am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` |
| 6062 | eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o |
| 6063 | if test "$am_t" != yes; then |
| 6064 | # Losing compiler, so override with the script. |
| 6065 | # FIXME: It is wrong to rewrite CC. |
| 6066 | # But if we don't then we get into trouble of one sort or another. |
| 6067 | # A longer-term fix would be to have automake use am__CC in this case, |
| 6068 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
| 6069 | CC="$am_aux_dir/compile $CC" |
| 6070 | fi |
| 6071 | |
| 6072 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6073 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6075 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 6076 | set x ${MAKE-make} |
| 6077 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6078 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6079 | $as_echo_n "(cached) " >&6 |
| 6080 | else |
| 6081 | cat >conftest.make <<\_ACEOF |
| 6082 | SHELL = /bin/sh |
| 6083 | all: |
| 6084 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
| 6085 | _ACEOF |
| 6086 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 6087 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 6088 | *@@@%%%=?*=@@@%%%*) |
| 6089 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 6090 | *) |
| 6091 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 6092 | esac |
| 6093 | rm -f conftest.make |
| 6094 | fi |
| 6095 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6097 | $as_echo "yes" >&6; } |
| 6098 | SET_MAKE= |
| 6099 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6101 | $as_echo "no" >&6; } |
| 6102 | SET_MAKE="MAKE=${MAKE-make}" |
| 6103 | fi |
| 6104 | |
| 6105 | ac_ext=cpp |
| 6106 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 6107 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6108 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6109 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 6110 | if test -z "$CXX"; then |
| 6111 | if test -n "$CCC"; then |
| 6112 | CXX=$CCC |
| 6113 | else |
| 6114 | if test -n "$ac_tool_prefix"; then |
| 6115 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 6116 | do |
| 6117 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 6118 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6120 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6121 | if test "${ac_cv_prog_CXX+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6122 | $as_echo_n "(cached) " >&6 |
| 6123 | else |
| 6124 | if test -n "$CXX"; then |
| 6125 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 6126 | else |
| 6127 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6128 | for as_dir in $PATH |
| 6129 | do |
| 6130 | IFS=$as_save_IFS |
| 6131 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6132 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6133 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6134 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6135 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6136 | break 2 |
| 6137 | fi |
| 6138 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6139 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6140 | IFS=$as_save_IFS |
| 6141 | |
| 6142 | fi |
| 6143 | fi |
| 6144 | CXX=$ac_cv_prog_CXX |
| 6145 | if test -n "$CXX"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6147 | $as_echo "$CXX" >&6; } |
| 6148 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6150 | $as_echo "no" >&6; } |
| 6151 | fi |
| 6152 | |
| 6153 | |
| 6154 | test -n "$CXX" && break |
| 6155 | done |
| 6156 | fi |
| 6157 | if test -z "$CXX"; then |
| 6158 | ac_ct_CXX=$CXX |
| 6159 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 6160 | do |
| 6161 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6162 | set dummy $ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6163 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6164 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6165 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6166 | $as_echo_n "(cached) " >&6 |
| 6167 | else |
| 6168 | if test -n "$ac_ct_CXX"; then |
| 6169 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 6170 | else |
| 6171 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6172 | for as_dir in $PATH |
| 6173 | do |
| 6174 | IFS=$as_save_IFS |
| 6175 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6176 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6177 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6178 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6179 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6180 | break 2 |
| 6181 | fi |
| 6182 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6183 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6184 | IFS=$as_save_IFS |
| 6185 | |
| 6186 | fi |
| 6187 | fi |
| 6188 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 6189 | if test -n "$ac_ct_CXX"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6191 | $as_echo "$ac_ct_CXX" >&6; } |
| 6192 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6194 | $as_echo "no" >&6; } |
| 6195 | fi |
| 6196 | |
| 6197 | |
| 6198 | test -n "$ac_ct_CXX" && break |
| 6199 | done |
| 6200 | |
| 6201 | if test "x$ac_ct_CXX" = x; then |
| 6202 | CXX="g++" |
| 6203 | else |
| 6204 | case $cross_compiling:$ac_tool_warned in |
| 6205 | yes:) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6206 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6207 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6208 | ac_tool_warned=yes ;; |
| 6209 | esac |
| 6210 | CXX=$ac_ct_CXX |
| 6211 | fi |
| 6212 | fi |
| 6213 | |
| 6214 | fi |
| 6215 | fi |
| 6216 | # Provide some information about the compiler. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6217 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6218 | set X $ac_compile |
| 6219 | ac_compiler=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6220 | for ac_option in --version -v -V -qversion; do |
| 6221 | { { ac_try="$ac_compiler $ac_option >&5" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6222 | case "(($ac_try" in |
| 6223 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6224 | *) ac_try_echo=$ac_try;; |
| 6225 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6226 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 6227 | $as_echo "$ac_try_echo"; } >&5 |
| 6228 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6229 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6230 | if test -s conftest.err; then |
| 6231 | sed '10a\ |
| 6232 | ... rest of stderr output deleted ... |
| 6233 | 10q' conftest.err >conftest.er1 |
| 6234 | cat conftest.er1 >&5 |
| 6235 | rm -f conftest.er1 conftest.err |
| 6236 | fi |
| 6237 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6238 | test $ac_status = 0; } |
| 6239 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6240 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6242 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6243 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6244 | $as_echo_n "(cached) " >&6 |
| 6245 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6246 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6247 | /* end confdefs.h. */ |
| 6248 | |
| 6249 | int |
| 6250 | main () |
| 6251 | { |
| 6252 | #ifndef __GNUC__ |
| 6253 | choke me |
| 6254 | #endif |
| 6255 | |
| 6256 | ; |
| 6257 | return 0; |
| 6258 | } |
| 6259 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6260 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6261 | ac_compiler_gnu=yes |
| 6262 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6263 | ac_compiler_gnu=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6264 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6265 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6266 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 6267 | |
| 6268 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6270 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
| 6271 | if test $ac_compiler_gnu = yes; then |
| 6272 | GXX=yes |
| 6273 | else |
| 6274 | GXX= |
| 6275 | fi |
| 6276 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 6277 | ac_save_CXXFLAGS=$CXXFLAGS |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6278 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6279 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6280 | if test "${ac_cv_prog_cxx_g+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6281 | $as_echo_n "(cached) " >&6 |
| 6282 | else |
| 6283 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 6284 | ac_cxx_werror_flag=yes |
| 6285 | ac_cv_prog_cxx_g=no |
| 6286 | CXXFLAGS="-g" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6287 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6288 | /* end confdefs.h. */ |
| 6289 | |
| 6290 | int |
| 6291 | main () |
| 6292 | { |
| 6293 | |
| 6294 | ; |
| 6295 | return 0; |
| 6296 | } |
| 6297 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6298 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6299 | ac_cv_prog_cxx_g=yes |
| 6300 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6301 | CXXFLAGS="" |
| 6302 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6303 | /* end confdefs.h. */ |
| 6304 | |
| 6305 | int |
| 6306 | main () |
| 6307 | { |
| 6308 | |
| 6309 | ; |
| 6310 | return 0; |
| 6311 | } |
| 6312 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6313 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6314 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6315 | else |
| 6316 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6317 | CXXFLAGS="-g" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6318 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6319 | /* end confdefs.h. */ |
| 6320 | |
| 6321 | int |
| 6322 | main () |
| 6323 | { |
| 6324 | |
| 6325 | ; |
| 6326 | return 0; |
| 6327 | } |
| 6328 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6329 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6330 | ac_cv_prog_cxx_g=yes |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6331 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6332 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6333 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6334 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6335 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6336 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6337 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 6338 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6340 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
| 6341 | if test "$ac_test_CXXFLAGS" = set; then |
| 6342 | CXXFLAGS=$ac_save_CXXFLAGS |
| 6343 | elif test $ac_cv_prog_cxx_g = yes; then |
| 6344 | if test "$GXX" = yes; then |
| 6345 | CXXFLAGS="-g -O2" |
| 6346 | else |
| 6347 | CXXFLAGS="-g" |
| 6348 | fi |
| 6349 | else |
| 6350 | if test "$GXX" = yes; then |
| 6351 | CXXFLAGS="-O2" |
| 6352 | else |
| 6353 | CXXFLAGS= |
| 6354 | fi |
| 6355 | fi |
| 6356 | ac_ext=c |
| 6357 | ac_cpp='$CPP $CPPFLAGS' |
| 6358 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6359 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6360 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6361 | |
| 6362 | depcc="$CXX" am_compiler_list= |
| 6363 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6365 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6366 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6367 | $as_echo_n "(cached) " >&6 |
| 6368 | else |
| 6369 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 6370 | # We make a subdir and do the tests there. Otherwise we can end up |
| 6371 | # making bogus files that we don't know about and never remove. For |
| 6372 | # instance it was reported that on HP-UX the gcc test will end up |
| 6373 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 6374 | # in D'. |
| 6375 | mkdir conftest.dir |
| 6376 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 6377 | # using a relative directory. |
| 6378 | cp "$am_depcomp" conftest.dir |
| 6379 | cd conftest.dir |
| 6380 | # We will build objects and dependencies in a subdirectory because |
| 6381 | # it helps to detect inapplicable dependency modes. For instance |
| 6382 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 6383 | # side effect of compilation, but ICC will put the dependencies in |
| 6384 | # the current directory while Tru64 will put them in the object |
| 6385 | # directory. |
| 6386 | mkdir sub |
| 6387 | |
| 6388 | am_cv_CXX_dependencies_compiler_type=none |
| 6389 | if test "$am_compiler_list" = ""; then |
| 6390 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 6391 | fi |
| 6392 | am__universal=false |
| 6393 | case " $depcc " in #( |
| 6394 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 6395 | esac |
| 6396 | |
| 6397 | for depmode in $am_compiler_list; do |
| 6398 | # Setup a source with many dependencies, because some compilers |
| 6399 | # like to wrap large dependency lists on column 80 (with \), and |
| 6400 | # we should not choose a depcomp mode which is confused by this. |
| 6401 | # |
| 6402 | # We need to recreate these files for each test, as the compiler may |
| 6403 | # overwrite some of them when testing with obscure command lines. |
| 6404 | # This happens at least with the AIX C compiler. |
| 6405 | : > sub/conftest.c |
| 6406 | for i in 1 2 3 4 5 6; do |
| 6407 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 6408 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 6409 | # Solaris 8's {/usr,}/bin/sh. |
| 6410 | touch sub/conftst$i.h |
| 6411 | done |
| 6412 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 6413 | |
| 6414 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 6415 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 6416 | # handle `-M -o', and we need to detect this. Also, some Intel |
| 6417 | # versions had trouble with output in subdirs |
| 6418 | am__obj=sub/conftest.${OBJEXT-o} |
| 6419 | am__minus_obj="-o $am__obj" |
| 6420 | case $depmode in |
| 6421 | gcc) |
| 6422 | # This depmode causes a compiler race in universal mode. |
| 6423 | test "$am__universal" = false || continue |
| 6424 | ;; |
| 6425 | nosideeffect) |
| 6426 | # after this tag, mechanisms are not by side-effect, so they'll |
| 6427 | # only be used when explicitly requested |
| 6428 | if test "x$enable_dependency_tracking" = xyes; then |
| 6429 | continue |
| 6430 | else |
| 6431 | break |
| 6432 | fi |
| 6433 | ;; |
| 6434 | msvisualcpp | msvcmsys) |
| 6435 | # This compiler won't grok `-c -o', but also, the minuso test has |
| 6436 | # not run yet. These depmodes are late enough in the game, and |
| 6437 | # so weak that their functioning should not be impacted. |
| 6438 | am__obj=conftest.${OBJEXT-o} |
| 6439 | am__minus_obj= |
| 6440 | ;; |
| 6441 | none) break ;; |
| 6442 | esac |
| 6443 | if depmode=$depmode \ |
| 6444 | source=sub/conftest.c object=$am__obj \ |
| 6445 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 6446 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 6447 | >/dev/null 2>conftest.err && |
| 6448 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 6449 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 6450 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 6451 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 6452 | # icc doesn't choke on unknown options, it will just issue warnings |
| 6453 | # or remarks (even with -Werror). So we grep stderr for any message |
| 6454 | # that says an option was ignored or not supported. |
| 6455 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 6456 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 6457 | # The diagnosis changed in icc 8.0: |
| 6458 | # icc: Command line remark: option '-MP' not supported |
| 6459 | if (grep 'ignoring option' conftest.err || |
| 6460 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 6461 | am_cv_CXX_dependencies_compiler_type=$depmode |
| 6462 | break |
| 6463 | fi |
| 6464 | fi |
| 6465 | done |
| 6466 | |
| 6467 | cd .. |
| 6468 | rm -rf conftest.dir |
| 6469 | else |
| 6470 | am_cv_CXX_dependencies_compiler_type=none |
| 6471 | fi |
| 6472 | |
| 6473 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6475 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } |
| 6476 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| 6477 | |
| 6478 | if |
| 6479 | test "x$enable_dependency_tracking" != xno \ |
| 6480 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| 6481 | am__fastdepCXX_TRUE= |
| 6482 | am__fastdepCXX_FALSE='#' |
| 6483 | else |
| 6484 | am__fastdepCXX_TRUE='#' |
| 6485 | am__fastdepCXX_FALSE= |
| 6486 | fi |
| 6487 | |
| 6488 | |
| 6489 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking maximum warning verbosity option" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6491 | $as_echo_n "checking maximum warning verbosity option... " >&6; } |
| 6492 | |
| 6493 | |
| 6494 | |
| 6495 | |
| 6496 | # Check whether --with-maximum-compile-warnings was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6497 | if test "${with_maximum_compile_warnings+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6498 | withval=$with_maximum_compile_warnings; ac_compile_warnings_on="$withval" |
| 6499 | else |
| 6500 | ac_compile_warnings_on="" |
| 6501 | fi |
| 6502 | |
| 6503 | |
| 6504 | if test x"$ac_compile_warnings_on" = xno |
| 6505 | then |
| 6506 | ac_compile_warnings_msg=no |
| 6507 | else |
| 6508 | if test -n "$CXX" |
| 6509 | then |
| 6510 | if test "$GXX" = "yes" |
| 6511 | then |
| 6512 | ac_compile_warnings_opt='-Wall -W' |
| 6513 | fi |
| 6514 | CXXFLAGS="$CXXFLAGS $ac_compile_warnings_opt" |
| 6515 | ac_compile_warnings_msg="$ac_compile_warnings_opt for C++" |
| 6516 | fi |
| 6517 | |
| 6518 | if test -n "$CC" |
| 6519 | then |
| 6520 | if test "$GCC" = "yes" |
| 6521 | then |
| 6522 | ac_compile_warnings_opt='-Wall -W' |
| 6523 | fi |
| 6524 | CFLAGS="$CFLAGS $ac_compile_warnings_opt" |
| 6525 | ac_compile_warnings_msg="$ac_compile_warnings_msg $ac_compile_warnings_opt for C" |
| 6526 | fi |
| 6527 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_compile_warnings_msg" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6529 | $as_echo "$ac_compile_warnings_msg" >&6; } |
| 6530 | unset ac_compile_warnings_msg |
| 6531 | unset ac_compile_warnings_opt |
| 6532 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6534 | $as_echo_n "checking whether ln -s works... " >&6; } |
| 6535 | LN_S=$as_ln_s |
| 6536 | if test "$LN_S" = "ln -s"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6538 | $as_echo "yes" >&6; } |
| 6539 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6541 | $as_echo "no, using $LN_S" >&6; } |
| 6542 | fi |
| 6543 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6545 | $as_echo_n "checking if malloc debugging is wanted... " >&6; } |
| 6546 | |
| 6547 | # Check whether --with-dmalloc was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6548 | if test "${with_dmalloc+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6549 | withval=$with_dmalloc; if test "$withval" = yes; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6551 | $as_echo "yes" >&6; } |
| 6552 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6553 | $as_echo "#define WITH_DMALLOC 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6554 | |
| 6555 | LIBS="$LIBS -ldmalloc" |
| 6556 | LDFLAGS="$LDFLAGS -g" |
| 6557 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6559 | $as_echo "no" >&6; } |
| 6560 | fi |
| 6561 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6563 | $as_echo "no" >&6; } |
| 6564 | fi |
| 6565 | |
| 6566 | |
| 6567 | |
| 6568 | |
| 6569 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 6570 | if test -n "$ac_tool_prefix"; then |
| 6571 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 6572 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6574 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6575 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6576 | $as_echo_n "(cached) " >&6 |
| 6577 | else |
| 6578 | case $PKG_CONFIG in |
| 6579 | [\\/]* | ?:[\\/]*) |
| 6580 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 6581 | ;; |
| 6582 | *) |
| 6583 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6584 | for as_dir in $PATH |
| 6585 | do |
| 6586 | IFS=$as_save_IFS |
| 6587 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6588 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6589 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6590 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6591 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6592 | break 2 |
| 6593 | fi |
| 6594 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6595 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6596 | IFS=$as_save_IFS |
| 6597 | |
| 6598 | ;; |
| 6599 | esac |
| 6600 | fi |
| 6601 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 6602 | if test -n "$PKG_CONFIG"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6604 | $as_echo "$PKG_CONFIG" >&6; } |
| 6605 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6607 | $as_echo "no" >&6; } |
| 6608 | fi |
| 6609 | |
| 6610 | |
| 6611 | fi |
| 6612 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 6613 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 6614 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 6615 | set dummy pkg-config; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6617 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6618 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6619 | $as_echo_n "(cached) " >&6 |
| 6620 | else |
| 6621 | case $ac_pt_PKG_CONFIG in |
| 6622 | [\\/]* | ?:[\\/]*) |
| 6623 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 6624 | ;; |
| 6625 | *) |
| 6626 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6627 | for as_dir in $PATH |
| 6628 | do |
| 6629 | IFS=$as_save_IFS |
| 6630 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6631 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6632 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6633 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6634 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6635 | break 2 |
| 6636 | fi |
| 6637 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6638 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6639 | IFS=$as_save_IFS |
| 6640 | |
| 6641 | ;; |
| 6642 | esac |
| 6643 | fi |
| 6644 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 6645 | if test -n "$ac_pt_PKG_CONFIG"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6647 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
| 6648 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6650 | $as_echo "no" >&6; } |
| 6651 | fi |
| 6652 | |
| 6653 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 6654 | PKG_CONFIG="" |
| 6655 | else |
| 6656 | case $cross_compiling:$ac_tool_warned in |
| 6657 | yes:) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6658 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6659 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6660 | ac_tool_warned=yes ;; |
| 6661 | esac |
| 6662 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 6663 | fi |
| 6664 | else |
| 6665 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 6666 | fi |
| 6667 | |
| 6668 | fi |
| 6669 | if test -n "$PKG_CONFIG"; then |
| 6670 | _pkg_min_version=0.9.0 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6672 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
| 6673 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6675 | $as_echo "yes" >&6; } |
| 6676 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6678 | $as_echo "no" >&6; } |
| 6679 | PKG_CONFIG="" |
| 6680 | fi |
| 6681 | |
| 6682 | fi |
| 6683 | |
| 6684 | # |
| 6685 | # Enable OS features. |
| 6686 | # |
| 6687 | |
| 6688 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6690 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6691 | if test "${ac_cv_header_stdc+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6692 | $as_echo_n "(cached) " >&6 |
| 6693 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6694 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6695 | /* end confdefs.h. */ |
| 6696 | #include <stdlib.h> |
| 6697 | #include <stdarg.h> |
| 6698 | #include <string.h> |
| 6699 | #include <float.h> |
| 6700 | |
| 6701 | int |
| 6702 | main () |
| 6703 | { |
| 6704 | |
| 6705 | ; |
| 6706 | return 0; |
| 6707 | } |
| 6708 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6709 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6710 | ac_cv_header_stdc=yes |
| 6711 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6712 | ac_cv_header_stdc=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6713 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6714 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6715 | |
| 6716 | if test $ac_cv_header_stdc = yes; then |
| 6717 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6718 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6719 | /* end confdefs.h. */ |
| 6720 | #include <string.h> |
| 6721 | |
| 6722 | _ACEOF |
| 6723 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6724 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 6725 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6726 | else |
| 6727 | ac_cv_header_stdc=no |
| 6728 | fi |
| 6729 | rm -f conftest* |
| 6730 | |
| 6731 | fi |
| 6732 | |
| 6733 | if test $ac_cv_header_stdc = yes; then |
| 6734 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6735 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6736 | /* end confdefs.h. */ |
| 6737 | #include <stdlib.h> |
| 6738 | |
| 6739 | _ACEOF |
| 6740 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6741 | $EGREP "free" >/dev/null 2>&1; then : |
| 6742 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6743 | else |
| 6744 | ac_cv_header_stdc=no |
| 6745 | fi |
| 6746 | rm -f conftest* |
| 6747 | |
| 6748 | fi |
| 6749 | |
| 6750 | if test $ac_cv_header_stdc = yes; then |
| 6751 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6752 | if test "$cross_compiling" = yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6753 | : |
| 6754 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6755 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6756 | /* end confdefs.h. */ |
| 6757 | #include <ctype.h> |
| 6758 | #include <stdlib.h> |
| 6759 | #if ((' ' & 0x0FF) == 0x020) |
| 6760 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 6761 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 6762 | #else |
| 6763 | # define ISLOWER(c) \ |
| 6764 | (('a' <= (c) && (c) <= 'i') \ |
| 6765 | || ('j' <= (c) && (c) <= 'r') \ |
| 6766 | || ('s' <= (c) && (c) <= 'z')) |
| 6767 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 6768 | #endif |
| 6769 | |
| 6770 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 6771 | int |
| 6772 | main () |
| 6773 | { |
| 6774 | int i; |
| 6775 | for (i = 0; i < 256; i++) |
| 6776 | if (XOR (islower (i), ISLOWER (i)) |
| 6777 | || toupper (i) != TOUPPER (i)) |
| 6778 | return 2; |
| 6779 | return 0; |
| 6780 | } |
| 6781 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6782 | if ac_fn_c_try_run "$LINENO"; then : |
| 6783 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6784 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6785 | ac_cv_header_stdc=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6786 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6787 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 6788 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6789 | fi |
| 6790 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6791 | fi |
| 6792 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6794 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 6795 | if test $ac_cv_header_stdc = yes; then |
| 6796 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6797 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6798 | |
| 6799 | fi |
| 6800 | |
| 6801 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6802 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 6803 | inttypes.h stdint.h unistd.h |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6804 | do : |
| 6805 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6806 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 6807 | " |
| 6808 | eval as_val=\$$as_ac_Header |
| 6809 | if test "x$as_val" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6810 | cat >>confdefs.h <<_ACEOF |
| 6811 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6812 | _ACEOF |
| 6813 | |
| 6814 | fi |
| 6815 | |
| 6816 | done |
| 6817 | |
| 6818 | |
| 6819 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6820 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
| 6821 | if test "x$ac_cv_header_minix_config_h" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6822 | MINIX=yes |
| 6823 | else |
| 6824 | MINIX= |
| 6825 | fi |
| 6826 | |
| 6827 | |
| 6828 | if test "$MINIX" = yes; then |
| 6829 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6830 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6831 | |
| 6832 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6833 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6834 | |
| 6835 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6836 | $as_echo "#define _MINIX 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6837 | |
| 6838 | fi |
| 6839 | |
| 6840 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6842 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6843 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6844 | $as_echo_n "(cached) " >&6 |
| 6845 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6846 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6847 | /* end confdefs.h. */ |
| 6848 | |
| 6849 | # define __EXTENSIONS__ 1 |
| 6850 | $ac_includes_default |
| 6851 | int |
| 6852 | main () |
| 6853 | { |
| 6854 | |
| 6855 | ; |
| 6856 | return 0; |
| 6857 | } |
| 6858 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6859 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6860 | ac_cv_safe_to_define___extensions__=yes |
| 6861 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6862 | ac_cv_safe_to_define___extensions__=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6863 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6864 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6865 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6867 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } |
| 6868 | test $ac_cv_safe_to_define___extensions__ = yes && |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6869 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6870 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6871 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6872 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6873 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6874 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6875 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6876 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6877 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
| 6878 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6879 | |
| 6880 | |
| 6881 | |
| 6882 | # |
| 6883 | # Enable run-time checking. |
| 6884 | # |
| 6885 | # Check whether --enable-bounds-checking was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6886 | if test "${enable_bounds_checking+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6887 | enableval=$enable_bounds_checking; enable_bounds_checking=$enableval |
| 6888 | else |
| 6889 | enable_bounds_checking='no' |
| 6890 | fi |
| 6891 | |
| 6892 | |
| 6893 | if test "$enable_bounds_checking" = yes; then |
| 6894 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6895 | $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6896 | |
| 6897 | fi |
| 6898 | |
| 6899 | # |
| 6900 | # Tests for Windows |
| 6901 | # |
| 6902 | |
| 6903 | |
| 6904 | |
| 6905 | GDI32_LIBS='' |
| 6906 | StaticCplusPlusLibraries='no' |
| 6907 | native_win32_build='no' |
| 6908 | cygwin_build='no' |
| 6909 | case "${host_os}" in |
| 6910 | cygwin* ) |
| 6911 | StaticCplusPlusLibraries='yes' |
| 6912 | cygwin_build='yes' |
| 6913 | GDI32_LIBS='-lgdi32' |
| 6914 | ;; |
| 6915 | mingw* ) |
| 6916 | StaticCplusPlusLibraries='yes' |
| 6917 | native_win32_build='yes' |
| 6918 | GDI32_LIBS='-lgdi32' |
| 6919 | ;; |
| 6920 | esac |
| 6921 | if test "${GDI32_LIBS}x" != 'x'; then |
| 6922 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6923 | $as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6924 | |
| 6925 | fi |
| 6926 | |
| 6927 | if test "${GDI32_LIBS}x" != 'x' ; then |
| 6928 | WINGDI32_DELEGATE_TRUE= |
| 6929 | WINGDI32_DELEGATE_FALSE='#' |
| 6930 | else |
| 6931 | WINGDI32_DELEGATE_TRUE='#' |
| 6932 | WINGDI32_DELEGATE_FALSE= |
| 6933 | fi |
| 6934 | |
| 6935 | if test "${native_win32_build}" = 'yes' ; then |
| 6936 | WIN32_NATIVE_BUILD_TRUE= |
| 6937 | WIN32_NATIVE_BUILD_FALSE='#' |
| 6938 | else |
| 6939 | WIN32_NATIVE_BUILD_TRUE='#' |
| 6940 | WIN32_NATIVE_BUILD_FALSE= |
| 6941 | fi |
| 6942 | |
| 6943 | if test "${cygwin_build}" = 'yes' ; then |
| 6944 | CYGWIN_BUILD_TRUE= |
| 6945 | CYGWIN_BUILD_FALSE='#' |
| 6946 | else |
| 6947 | CYGWIN_BUILD_TRUE='#' |
| 6948 | CYGWIN_BUILD_FALSE= |
| 6949 | fi |
| 6950 | |
| 6951 | if test "x${CC}" = 'xcl.exe' ; then |
| 6952 | USING_CL_TRUE= |
| 6953 | USING_CL_FALSE='#' |
| 6954 | else |
| 6955 | USING_CL_TRUE='#' |
| 6956 | USING_CL_FALSE= |
| 6957 | fi |
| 6958 | |
| 6959 | |
| 6960 | WinPathScript="${srcdirfull}/winpath.sh" |
| 6961 | |
| 6962 | |
| 6963 | # |
| 6964 | # Compiler flags tweaks |
| 6965 | # |
| 6966 | if test "${GCC}" != "yes"; then |
| 6967 | case "${host}" in |
| 6968 | *-*-hpux* ) |
| 6969 | # aCC: HP ANSI C++ B3910B A.03.34 |
| 6970 | CFLAGS="${CFLAGS} -Wp,-H30000" |
| 6971 | if test -n "${CXXFLAGS}"; then |
| 6972 | CXXFLAGS='-AA' |
| 6973 | else |
| 6974 | CXXFLAGS="${CXXFLAGS} -AA" |
| 6975 | fi |
| 6976 | ;; |
| 6977 | *-dec-osf5.* ) |
| 6978 | # Compaq alphaev68-dec-osf5.1 compiler |
| 6979 | if test -n "${CXXFLAGS}"; then |
| 6980 | CXXFLAGS='-std strict_ansi -noimplicit_include' |
| 6981 | else |
| 6982 | CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include" |
| 6983 | fi |
| 6984 | esac |
| 6985 | fi |
| 6986 | |
| 6987 | # Check for lazy-loading. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6989 | $as_echo_n "checking for linker lazyload option... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 6990 | if test "${im_cv_ld_lazyload+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6991 | $as_echo_n "(cached) " >&6 |
| 6992 | else |
| 6993 | |
| 6994 | im_cv_ld_lazyload='none' |
| 6995 | case "${host}" in |
| 6996 | *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? ) |
| 6997 | if test "$lt_cv_prog_gnu_ld" != 'yes' ; then |
| 6998 | im_cv_ld_lazyload='-Wl,-zlazyload' |
| 6999 | fi |
| 7000 | ;; |
| 7001 | esac |
| 7002 | |
| 7003 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7005 | $as_echo "$im_cv_ld_lazyload" >&6; } |
| 7006 | if test "${im_cv_ld_lazyload}" != 'none' ; then |
| 7007 | if test -z "${LDFLAGS}" ; then |
| 7008 | LDFLAGS="${im_cv_ld_lazyload}" |
| 7009 | else |
| 7010 | LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}" |
| 7011 | fi |
| 7012 | fi |
| 7013 | |
| 7014 | case "$host" in |
| 7015 | *darwin* | *-macos10*) |
| 7016 | if test -d /opt/local ; then |
| 7017 | CPPFLAGS="$CPPFLAGS -I/opt/local/include" |
| 7018 | LDFLAGS="$LDFLAGS -L/opt/local/lib" |
| 7019 | elif test -d /sw ; then |
| 7020 | CPPFLAGS="$CPPFLAGS -I/sw/include" |
| 7021 | LDFLAGS="$LDFLAGS -L/sw/lib" |
| 7022 | fi |
| 7023 | # Check whether --enable-osx-universal-binary was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7024 | if test "${enable_osx_universal_binary+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7025 | enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}" |
| 7026 | else |
| 7027 | build_osxuniversal=no |
| 7028 | fi |
| 7029 | |
| 7030 | |
| 7031 | if test "${build_osxuniversal}" != no ; then |
| 7032 | if test "$enable_dependency_tracking" != no ; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7033 | as_fn_error "--enable-osx-universal-binary requires --disable-dependency-tracking. |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7034 | Please re-run configure with these options: |
| 7035 | --disable-dependency-tracking --enable-osx-universal-binary |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7036 | " "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7037 | fi |
| 7038 | CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386" |
| 7039 | CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386" |
| 7040 | LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386" |
| 7041 | fi |
| 7042 | ;; |
| 7043 | esac |
| 7044 | |
| 7045 | # Enable support for threads |
| 7046 | |
| 7047 | # Check whether --with-threads was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7048 | if test "${with_threads+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7049 | withval=$with_threads; with_threads=$withval |
| 7050 | else |
| 7051 | with_threads='yes' |
| 7052 | fi |
| 7053 | |
| 7054 | |
| 7055 | have_threads=no |
| 7056 | if test "$with_threads" != 'no'; then |
| 7057 | |
| 7058 | |
| 7059 | |
| 7060 | ac_ext=c |
| 7061 | ac_cpp='$CPP $CPPFLAGS' |
| 7062 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7063 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7064 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7065 | |
| 7066 | acx_pthread_ok=no |
| 7067 | |
| 7068 | # We used to check for pthread.h first, but this fails if pthread.h |
| 7069 | # requires special compiler flags (e.g. on True64 or Sequent). |
| 7070 | # It gets checked for in the link test anyway. |
| 7071 | |
| 7072 | # First of all, check if the user has set any of the PTHREAD_LIBS, |
| 7073 | # etcetera environment variables, and if threads linking works using |
| 7074 | # them: |
| 7075 | if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then |
| 7076 | save_CFLAGS="$CFLAGS" |
| 7077 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 7078 | save_LIBS="$LIBS" |
| 7079 | LIBS="$PTHREAD_LIBS $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7081 | $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7082 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7083 | /* end confdefs.h. */ |
| 7084 | |
| 7085 | /* Override any GCC internal prototype to avoid an error. |
| 7086 | Use char because int might match the return type of a GCC |
| 7087 | builtin and then its argument prototype would still apply. */ |
| 7088 | #ifdef __cplusplus |
| 7089 | extern "C" |
| 7090 | #endif |
| 7091 | char pthread_join (); |
| 7092 | int |
| 7093 | main () |
| 7094 | { |
| 7095 | return pthread_join (); |
| 7096 | ; |
| 7097 | return 0; |
| 7098 | } |
| 7099 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7100 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7101 | acx_pthread_ok=yes |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7102 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7103 | rm -f core conftest.err conftest.$ac_objext \ |
| 7104 | conftest$ac_exeext conftest.$ac_ext |
| 7105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7106 | $as_echo "$acx_pthread_ok" >&6; } |
| 7107 | if test x"$acx_pthread_ok" = xno; then |
| 7108 | PTHREAD_LIBS="" |
| 7109 | PTHREAD_CFLAGS="" |
| 7110 | fi |
| 7111 | LIBS="$save_LIBS" |
| 7112 | CFLAGS="$save_CFLAGS" |
| 7113 | fi |
| 7114 | |
| 7115 | # We must check for the threads library under a number of different |
| 7116 | # names; the ordering is very important because some systems |
| 7117 | # (e.g. DEC) have both -lpthread and -lpthreads, where one of the |
| 7118 | # libraries is broken (non-POSIX). |
| 7119 | |
| 7120 | # Create a list of thread flags to try. Items starting with a "-" are |
| 7121 | # C compiler flags, and other items are library names, except for "none" |
| 7122 | # which indicates that we try without any flags at all, and "pthread-config" |
| 7123 | # which is a program returning the flags for the Pth emulation library. |
| 7124 | |
| 7125 | acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" |
| 7126 | |
| 7127 | # The ordering *is* (sometimes) important. Some notes on the |
| 7128 | # individual items follow: |
| 7129 | |
| 7130 | # pthreads: AIX (must check this before -lpthread) |
| 7131 | # none: in case threads are in libc; should be tried before -Kthread and |
| 7132 | # other compiler flags to prevent continual compiler warnings |
| 7133 | # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) |
| 7134 | # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) |
| 7135 | # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) |
| 7136 | # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) |
| 7137 | # -pthreads: Solaris/gcc |
| 7138 | # -mthreads: Mingw32/gcc, Lynx/gcc |
| 7139 | # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it |
| 7140 | # doesn't hurt to check since this sometimes defines pthreads too; |
| 7141 | # also defines -D_REENTRANT) |
| 7142 | # ... -mt is also the pthreads flag for HP/aCC |
| 7143 | # pthread: Linux, etcetera |
| 7144 | # --thread-safe: KAI C++ |
| 7145 | # pthread-config: use pthread-config program (for GNU Pth library) |
| 7146 | |
| 7147 | case "${host_cpu}-${host_os}" in |
| 7148 | *solaris*) |
| 7149 | |
| 7150 | # On Solaris (at least, for some versions), libc contains stubbed |
| 7151 | # (non-functional) versions of the pthreads routines, so link-based |
| 7152 | # tests will erroneously succeed. (We need to link with -pthreads/-mt/ |
| 7153 | # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather |
| 7154 | # a function called by this macro, so we could check for that, but |
| 7155 | # who knows whether they'll stub that too in a future libc.) So, |
| 7156 | # we'll just look for -pthreads and -lpthread first: |
| 7157 | |
| 7158 | acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags" |
| 7159 | ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7160 | esac |
| 7161 | |
| 7162 | if test x"$acx_pthread_ok" = xno; then |
| 7163 | for flag in $acx_pthread_flags; do |
| 7164 | |
| 7165 | case $flag in |
| 7166 | none) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7168 | $as_echo_n "checking whether pthreads work without any flags... " >&6; } |
| 7169 | ;; |
| 7170 | |
| 7171 | -*) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7173 | $as_echo_n "checking whether pthreads work with $flag... " >&6; } |
| 7174 | PTHREAD_CFLAGS="$flag" |
| 7175 | ;; |
| 7176 | |
| 7177 | pthread-config) |
| 7178 | # Extract the first word of "pthread-config", so it can be a program name with args. |
| 7179 | set dummy pthread-config; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7181 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7182 | if test "${ac_cv_prog_acx_pthread_config+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7183 | $as_echo_n "(cached) " >&6 |
| 7184 | else |
| 7185 | if test -n "$acx_pthread_config"; then |
| 7186 | ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test. |
| 7187 | else |
| 7188 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7189 | for as_dir in $PATH |
| 7190 | do |
| 7191 | IFS=$as_save_IFS |
| 7192 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7193 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7194 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7195 | ac_cv_prog_acx_pthread_config="yes" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7196 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7197 | break 2 |
| 7198 | fi |
| 7199 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7200 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7201 | IFS=$as_save_IFS |
| 7202 | |
| 7203 | test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no" |
| 7204 | fi |
| 7205 | fi |
| 7206 | acx_pthread_config=$ac_cv_prog_acx_pthread_config |
| 7207 | if test -n "$acx_pthread_config"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7209 | $as_echo "$acx_pthread_config" >&6; } |
| 7210 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7212 | $as_echo "no" >&6; } |
| 7213 | fi |
| 7214 | |
| 7215 | |
| 7216 | if test x"$acx_pthread_config" = xno; then continue; fi |
| 7217 | PTHREAD_CFLAGS="`pthread-config --cflags`" |
| 7218 | PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" |
| 7219 | ;; |
| 7220 | |
| 7221 | *) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7223 | $as_echo_n "checking for the pthreads library -l$flag... " >&6; } |
| 7224 | PTHREAD_LIBS="-l$flag" |
| 7225 | ;; |
| 7226 | esac |
| 7227 | |
| 7228 | save_LIBS="$LIBS" |
| 7229 | save_CFLAGS="$CFLAGS" |
| 7230 | LIBS="$PTHREAD_LIBS $LIBS" |
| 7231 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 7232 | |
| 7233 | # Check for various functions. We must include pthread.h, |
| 7234 | # since some functions may be macros. (On the Sequent, we |
| 7235 | # need a special flag -Kthread to make this header compile.) |
| 7236 | # We check for pthread_join because it is in -lpthread on IRIX |
| 7237 | # while pthread_create is in libc. We check for pthread_attr_init |
| 7238 | # due to DEC craziness with -lpthreads. We check for |
| 7239 | # pthread_cleanup_push because it is one of the few pthread |
| 7240 | # functions on Solaris that doesn't have a non-functional libc stub. |
| 7241 | # We try pthread_create on general principles. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7242 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7243 | /* end confdefs.h. */ |
| 7244 | #include <pthread.h> |
| 7245 | int |
| 7246 | main () |
| 7247 | { |
| 7248 | pthread_t th; pthread_join(th, 0); |
| 7249 | pthread_attr_init(0); pthread_cleanup_push(0, 0); |
| 7250 | pthread_create(0,0,0,0); pthread_cleanup_pop(0); |
| 7251 | ; |
| 7252 | return 0; |
| 7253 | } |
| 7254 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7255 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7256 | acx_pthread_ok=yes |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7257 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7258 | rm -f core conftest.err conftest.$ac_objext \ |
| 7259 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7260 | |
| 7261 | LIBS="$save_LIBS" |
| 7262 | CFLAGS="$save_CFLAGS" |
| 7263 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7265 | $as_echo "$acx_pthread_ok" >&6; } |
| 7266 | if test "x$acx_pthread_ok" = xyes; then |
| 7267 | break; |
| 7268 | fi |
| 7269 | |
| 7270 | PTHREAD_LIBS="" |
| 7271 | PTHREAD_CFLAGS="" |
| 7272 | done |
| 7273 | fi |
| 7274 | |
| 7275 | # Various other checks: |
| 7276 | if test "x$acx_pthread_ok" = xyes; then |
| 7277 | save_LIBS="$LIBS" |
| 7278 | LIBS="$PTHREAD_LIBS $LIBS" |
| 7279 | save_CFLAGS="$CFLAGS" |
| 7280 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 7281 | |
| 7282 | # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7284 | $as_echo_n "checking for joinable pthread attribute... " >&6; } |
| 7285 | attr_name=unknown |
| 7286 | for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7287 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7288 | /* end confdefs.h. */ |
| 7289 | #include <pthread.h> |
| 7290 | int |
| 7291 | main () |
| 7292 | { |
| 7293 | int attr=$attr; return attr; |
| 7294 | ; |
| 7295 | return 0; |
| 7296 | } |
| 7297 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7298 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7299 | attr_name=$attr; break |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7300 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7301 | rm -f core conftest.err conftest.$ac_objext \ |
| 7302 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7303 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7305 | $as_echo "$attr_name" >&6; } |
| 7306 | if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then |
| 7307 | |
| 7308 | cat >>confdefs.h <<_ACEOF |
| 7309 | #define PTHREAD_CREATE_JOINABLE $attr_name |
| 7310 | _ACEOF |
| 7311 | |
| 7312 | fi |
| 7313 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7314 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7315 | $as_echo_n "checking if more special flags are required for pthreads... " >&6; } |
| 7316 | flag=no |
| 7317 | case "${host_cpu}-${host_os}" in |
| 7318 | *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; |
| 7319 | *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; |
| 7320 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7322 | $as_echo "${flag}" >&6; } |
| 7323 | if test "x$flag" != xno; then |
| 7324 | PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" |
| 7325 | fi |
| 7326 | |
| 7327 | LIBS="$save_LIBS" |
| 7328 | CFLAGS="$save_CFLAGS" |
| 7329 | |
| 7330 | # More AIX lossage: must compile with xlc_r or cc_r |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7331 | if test x"$GCC" != xyes; then |
| 7332 | for ac_prog in xlc_r cc_r |
| 7333 | do |
| 7334 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7335 | set dummy $ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7336 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7337 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7338 | if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7339 | $as_echo_n "(cached) " >&6 |
| 7340 | else |
| 7341 | if test -n "$PTHREAD_CC"; then |
| 7342 | ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. |
| 7343 | else |
| 7344 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7345 | for as_dir in $PATH |
| 7346 | do |
| 7347 | IFS=$as_save_IFS |
| 7348 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7349 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7350 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7351 | ac_cv_prog_PTHREAD_CC="$ac_prog" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7352 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7353 | break 2 |
| 7354 | fi |
| 7355 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7356 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7357 | IFS=$as_save_IFS |
| 7358 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7359 | fi |
| 7360 | fi |
| 7361 | PTHREAD_CC=$ac_cv_prog_PTHREAD_CC |
| 7362 | if test -n "$PTHREAD_CC"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7364 | $as_echo "$PTHREAD_CC" >&6; } |
| 7365 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7367 | $as_echo "no" >&6; } |
| 7368 | fi |
| 7369 | |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7370 | |
| 7371 | test -n "$PTHREAD_CC" && break |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7372 | done |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7373 | test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7374 | |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7375 | else |
| 7376 | PTHREAD_CC=$CC |
| 7377 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7378 | else |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7379 | PTHREAD_CC="$CC" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7380 | fi |
| 7381 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7382 | |
| 7383 | |
| 7384 | |
| 7385 | |
| 7386 | # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: |
| 7387 | if test x"$acx_pthread_ok" = xyes; then |
| 7388 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7389 | $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7390 | |
| 7391 | : |
| 7392 | else |
| 7393 | acx_pthread_ok=no |
| 7394 | |
| 7395 | fi |
| 7396 | ac_ext=c |
| 7397 | ac_cpp='$CPP $CPPFLAGS' |
| 7398 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7399 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7400 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7401 | |
| 7402 | |
| 7403 | if test "$acx_pthread_ok" = yes; then |
| 7404 | have_threads=yes |
| 7405 | DEF_THREAD="$PTHREAD_CFLAGS" |
| 7406 | CFLAGS="$CFLAGS $DEF_THREAD" |
| 7407 | CXXFLAGS="$CXXFLAGS $DEF_THREAD" |
| 7408 | if test "$CC" != "$PTHREAD_CC"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7409 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7410 | $as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;} |
| 7411 | CC="$PTHREAD_CC" |
| 7412 | fi |
| 7413 | fi |
| 7414 | fi |
| 7415 | |
| 7416 | # Enable support for OpenMP |
| 7417 | if test "$have_threads" != 'yes'; then |
| 7418 | ac_cv_prog_c_openmp=unsupported |
| 7419 | fi |
| 7420 | |
| 7421 | OPENMP_CFLAGS= |
| 7422 | # Check whether --enable-openmp was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7423 | if test "${enable_openmp+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7424 | enableval=$enable_openmp; |
| 7425 | fi |
| 7426 | |
| 7427 | if test "$enable_openmp" != no; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7429 | $as_echo_n "checking for $CC option to support OpenMP... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7430 | if test "${ac_cv_prog_c_openmp+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7431 | $as_echo_n "(cached) " >&6 |
| 7432 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7433 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7434 | /* end confdefs.h. */ |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7435 | |
| 7436 | #ifndef _OPENMP |
| 7437 | choke me |
| 7438 | #endif |
| 7439 | #include <omp.h> |
| 7440 | int main () { return omp_get_num_threads (); } |
| 7441 | |
| 7442 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7443 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7444 | ac_cv_prog_c_openmp='none needed' |
| 7445 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7446 | ac_cv_prog_c_openmp='unsupported' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7447 | for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do |
| 7448 | ac_save_CFLAGS=$CFLAGS |
| 7449 | CFLAGS="$CFLAGS $ac_option" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7450 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7451 | /* end confdefs.h. */ |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7452 | |
| 7453 | #ifndef _OPENMP |
| 7454 | choke me |
| 7455 | #endif |
| 7456 | #include <omp.h> |
| 7457 | int main () { return omp_get_num_threads (); } |
| 7458 | |
| 7459 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7460 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7461 | ac_cv_prog_c_openmp=$ac_option |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7462 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7463 | rm -f core conftest.err conftest.$ac_objext \ |
| 7464 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7465 | CFLAGS=$ac_save_CFLAGS |
| 7466 | if test "$ac_cv_prog_c_openmp" != unsupported; then |
| 7467 | break |
| 7468 | fi |
| 7469 | done |
| 7470 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7471 | rm -f core conftest.err conftest.$ac_objext \ |
| 7472 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7473 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7475 | $as_echo "$ac_cv_prog_c_openmp" >&6; } |
| 7476 | case $ac_cv_prog_c_openmp in #( |
| 7477 | "none needed" | unsupported) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7478 | ;; #( |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7479 | *) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7480 | OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7481 | esac |
| 7482 | fi |
| 7483 | |
| 7484 | |
| 7485 | CFLAGS="$OPENMP_CFLAGS $CFLAGS" |
| 7486 | MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS" |
| 7487 | |
| 7488 | |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7489 | # Enable support for OpenCL |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7490 | |
| 7491 | ac_ext=c |
| 7492 | ac_cpp='$CPP $CPPFLAGS' |
| 7493 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7494 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7495 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7496 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5 |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7498 | $as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7499 | if test "${ax_cv_c_compiler_ms+set}" = set; then : |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7500 | $as_echo_n "(cached) " >&6 |
| 7501 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7502 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7503 | /* end confdefs.h. */ |
| 7504 | |
| 7505 | int |
| 7506 | main () |
| 7507 | { |
| 7508 | #ifndef _MSC_VER |
| 7509 | choke me |
| 7510 | #endif |
| 7511 | |
| 7512 | ; |
| 7513 | return 0; |
| 7514 | } |
| 7515 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7516 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7517 | ax_compiler_ms=yes |
| 7518 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7519 | ax_compiler_ms=no |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7520 | fi |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7521 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7522 | ax_cv_c_compiler_ms=$ax_compiler_ms |
| 7523 | |
| 7524 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5 |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7526 | $as_echo "$ax_cv_c_compiler_ms" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7527 | if test X$ax_compiler_ms = Xno; then : |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7528 | CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm" |
| 7529 | fi |
| 7530 | |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7531 | ax_save_CPPFLAGS=$CPPFLAGS |
| 7532 | CPPFLAGS="$CL_CFLAGS $CPPFLAGS" |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 7533 | for ac_header in CL/opencl.h OpenCL/OpenCL.h |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7534 | do : |
| 7535 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7536 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 7537 | eval as_val=\$$as_ac_Header |
| 7538 | if test "x$as_val" = x""yes; then : |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7539 | cat >>confdefs.h <<_ACEOF |
| 7540 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7541 | _ACEOF |
| 7542 | |
| 7543 | fi |
| 7544 | |
| 7545 | done |
| 7546 | |
| 7547 | CPPFLAGS=$ax_save_CPPFLAGS |
| 7548 | |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7549 | for ac_header in windows.h |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7550 | do : |
| 7551 | ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" |
| 7552 | if test "x$ac_cv_header_windows_h" = x""yes; then : |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7553 | cat >>confdefs.h <<_ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7554 | #define HAVE_WINDOWS_H 1 |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7555 | _ACEOF |
| 7556 | |
| 7557 | fi |
| 7558 | |
| 7559 | done |
| 7560 | |
| 7561 | |
| 7562 | |
| 7563 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7564 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5 |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7565 | $as_echo_n "checking for OpenCL library... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7566 | if test "${ax_cv_check_cl_libcl+set}" = set; then : |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7567 | $as_echo_n "(cached) " >&6 |
| 7568 | else |
| 7569 | ax_cv_check_cl_libcl=no |
| 7570 | case $host_cpu in |
| 7571 | x86_64) ax_check_cl_libdir=lib64 ;; |
| 7572 | *) ax_check_cl_libdir=lib ;; |
| 7573 | esac |
| 7574 | ax_save_CPPFLAGS=$CPPFLAGS |
| 7575 | CPPFLAGS="$CL_CFLAGS $CPPFLAGS" |
| 7576 | ax_save_LIBS=$LIBS |
| 7577 | LIBS="" |
| cristy | a49aa42 | 2009-09-20 23:40:10 +0000 | [diff] [blame] | 7578 | ax_check_libs="-lOpenCL -lCL" |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7579 | for ax_lib in $ax_check_libs; do |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7580 | if test X$ax_compiler_ms = Xyes; then : |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7581 | ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'` |
| 7582 | else |
| 7583 | ax_try_lib=$ax_lib |
| 7584 | fi |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7585 | LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7586 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7587 | /* end confdefs.h. */ |
| 7588 | |
| 7589 | # if defined(HAVE_WINDOWS_H) && defined(_WIN32) |
| 7590 | # include <windows.h> |
| 7591 | # endif |
| cristy | a03a085 | 2009-10-13 02:02:39 +0000 | [diff] [blame] | 7592 | # ifdef HAVE_CL_OPENCL_H |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 7593 | # include <CL/opencl.h> |
| cristy | a03a085 | 2009-10-13 02:02:39 +0000 | [diff] [blame] | 7594 | # elif defined(HAVE_OPENCL_OPENCL_H) |
| 7595 | # include <OpenCL/OpenCL.h> |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7596 | # else |
| cristy | a03a085 | 2009-10-13 02:02:39 +0000 | [diff] [blame] | 7597 | # error no OpenCL.h |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7598 | # endif |
| 7599 | int |
| 7600 | main () |
| 7601 | { |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 7602 | clCreateContextFromType(0,0,0,0,0) |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7603 | ; |
| 7604 | return 0; |
| 7605 | } |
| 7606 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7607 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7608 | ax_cv_check_cl_libcl=$ax_try_lib; break |
| 7609 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7610 | 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" |
| 7611 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7612 | /* end confdefs.h. */ |
| 7613 | |
| 7614 | # if defined(HAVE_WINDOWS_H) && defined(_WIN32) |
| 7615 | # include <windows.h> |
| 7616 | # endif |
| cristy | a03a085 | 2009-10-13 02:02:39 +0000 | [diff] [blame] | 7617 | # ifdef HAVE_CL_OPENCL_H |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 7618 | # include <CL/opencl.h> |
| cristy | a03a085 | 2009-10-13 02:02:39 +0000 | [diff] [blame] | 7619 | # elif defined(HAVE_OPENCL_OPENCL_H) |
| 7620 | # include <OpenCL/OpenCL.h> |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7621 | # else |
| cristy | a03a085 | 2009-10-13 02:02:39 +0000 | [diff] [blame] | 7622 | # error no OpenCL.h |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7623 | # endif |
| 7624 | int |
| 7625 | main () |
| 7626 | { |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 7627 | clCreateContextFromType(0,0,0,0,0) |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7628 | ; |
| 7629 | return 0; |
| 7630 | } |
| 7631 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7632 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7633 | ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break |
| 7634 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7635 | ax_check_cl_dylib_flag='-dylib_file /System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/libCL.dylib:/System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/libCL.dylib' LIBS="$ax_try_lib $ax_check_cl_dylib_flag $CL_LIBS $ax_save_LIBS" |
| 7636 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7637 | /* end confdefs.h. */ |
| 7638 | |
| 7639 | # if defined(HAVE_WINDOWS_H) && defined(_WIN32) |
| 7640 | # include <windows.h> |
| 7641 | # endif |
| cristy | a03a085 | 2009-10-13 02:02:39 +0000 | [diff] [blame] | 7642 | # ifdef HAVE_CL_OPENCL_H |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 7643 | # include <CL/opencl.h> |
| cristy | a03a085 | 2009-10-13 02:02:39 +0000 | [diff] [blame] | 7644 | # elif defined(HAVE_OPENCL_OPENCL_H) |
| 7645 | # include <OpenCL/OpenCL.h> |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7646 | # else |
| cristy | a03a085 | 2009-10-13 02:02:39 +0000 | [diff] [blame] | 7647 | # error no OpenCL.h |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7648 | # endif |
| 7649 | int |
| 7650 | main () |
| 7651 | { |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 7652 | clCreateContextFromType(0,0,0,0,0) |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7653 | ; |
| 7654 | return 0; |
| 7655 | } |
| 7656 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7657 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7658 | ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7659 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7660 | rm -f core conftest.err conftest.$ac_objext \ |
| 7661 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7662 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7663 | rm -f core conftest.err conftest.$ac_objext \ |
| 7664 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7665 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7666 | rm -f core conftest.err conftest.$ac_objext \ |
| 7667 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7668 | done |
| 7669 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7670 | if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then : |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7671 | LIBS='-framework OpenCL' |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7672 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7673 | /* end confdefs.h. */ |
| 7674 | |
| 7675 | # if defined(HAVE_WINDOWS_H) && defined(_WIN32) |
| 7676 | # include <windows.h> |
| 7677 | # endif |
| cristy | a03a085 | 2009-10-13 02:02:39 +0000 | [diff] [blame] | 7678 | # ifdef HAVE_CL_OPENCL_H |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 7679 | # include <CL/opencl.h> |
| cristy | a03a085 | 2009-10-13 02:02:39 +0000 | [diff] [blame] | 7680 | # elif defined(HAVE_OPENCL_OPENCL_H) |
| 7681 | # include <OpenCL/OpenCL.h> |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7682 | # else |
| cristy | a03a085 | 2009-10-13 02:02:39 +0000 | [diff] [blame] | 7683 | # error no OpenCL.h |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7684 | # endif |
| 7685 | int |
| 7686 | main () |
| 7687 | { |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 7688 | clCreateContextFromType(0,0,0,0,0) |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7689 | ; |
| 7690 | return 0; |
| 7691 | } |
| 7692 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7693 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7694 | ax_cv_check_cl_libcl=$LIBS |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7695 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7696 | rm -f core conftest.err conftest.$ac_objext \ |
| 7697 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7698 | fi |
| 7699 | |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7700 | LIBS=$ax_save_LIBS |
| 7701 | CPPFLAGS=$ax_save_CPPFLAGS |
| 7702 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5 |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7704 | $as_echo "$ax_cv_check_cl_libcl" >&6; } |
| 7705 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7706 | if test "X$ax_cv_check_cl_libcl" = Xno; then : |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7707 | no_cl=yes; CL_CFLAGS=""; CL_LIBS="" |
| 7708 | else |
| 7709 | CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS" |
| 7710 | fi |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7711 | ac_ext=c |
| 7712 | ac_cpp='$CPP $CPPFLAGS' |
| 7713 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7714 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7715 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7716 | |
| 7717 | |
| 7718 | |
| 7719 | |
| 7720 | |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 7721 | CFLAGS="$CL_CFLAGS $CFLAGS" |
| 7722 | LIBS="$CL_LIBS $LIBS" |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7723 | |
| cristy | 2e8b51d | 2009-10-17 18:26:15 +0000 | [diff] [blame] | 7724 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7725 | ######## |
| 7726 | # |
| 7727 | # Check for large file support |
| 7728 | # |
| 7729 | ######## |
| 7730 | # Check whether --enable-largefile was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7731 | if test "${enable_largefile+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7732 | enableval=$enable_largefile; |
| 7733 | fi |
| 7734 | |
| 7735 | if test "$enable_largefile" != no; then |
| 7736 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7738 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7739 | if test "${ac_cv_sys_largefile_CC+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7740 | $as_echo_n "(cached) " >&6 |
| 7741 | else |
| 7742 | ac_cv_sys_largefile_CC=no |
| 7743 | if test "$GCC" != yes; then |
| 7744 | ac_save_CC=$CC |
| 7745 | while :; do |
| 7746 | # IRIX 6.2 and later do not support large files by default, |
| 7747 | # so use the C compiler's -n32 option if that helps. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7748 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7749 | /* end confdefs.h. */ |
| 7750 | #include <sys/types.h> |
| 7751 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 7752 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 7753 | since some C++ compilers masquerading as C compilers |
| 7754 | incorrectly reject 9223372036854775807. */ |
| 7755 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 7756 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 7757 | && LARGE_OFF_T % 2147483647 == 1) |
| 7758 | ? 1 : -1]; |
| 7759 | int |
| 7760 | main () |
| 7761 | { |
| 7762 | |
| 7763 | ; |
| 7764 | return 0; |
| 7765 | } |
| 7766 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7767 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7768 | break |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7769 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7770 | rm -f core conftest.err conftest.$ac_objext |
| 7771 | CC="$CC -n32" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7772 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7773 | ac_cv_sys_largefile_CC=' -n32'; break |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7774 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7775 | rm -f core conftest.err conftest.$ac_objext |
| 7776 | break |
| 7777 | done |
| 7778 | CC=$ac_save_CC |
| 7779 | rm -f conftest.$ac_ext |
| 7780 | fi |
| 7781 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7783 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } |
| 7784 | if test "$ac_cv_sys_largefile_CC" != no; then |
| 7785 | CC=$CC$ac_cv_sys_largefile_CC |
| 7786 | fi |
| 7787 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7789 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7790 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7791 | $as_echo_n "(cached) " >&6 |
| 7792 | else |
| 7793 | while :; do |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7794 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7795 | /* end confdefs.h. */ |
| 7796 | #include <sys/types.h> |
| 7797 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 7798 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 7799 | since some C++ compilers masquerading as C compilers |
| 7800 | incorrectly reject 9223372036854775807. */ |
| 7801 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 7802 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 7803 | && LARGE_OFF_T % 2147483647 == 1) |
| 7804 | ? 1 : -1]; |
| 7805 | int |
| 7806 | main () |
| 7807 | { |
| 7808 | |
| 7809 | ; |
| 7810 | return 0; |
| 7811 | } |
| 7812 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7813 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7814 | ac_cv_sys_file_offset_bits=no; break |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7815 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7816 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7817 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7818 | /* end confdefs.h. */ |
| 7819 | #define _FILE_OFFSET_BITS 64 |
| 7820 | #include <sys/types.h> |
| 7821 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 7822 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 7823 | since some C++ compilers masquerading as C compilers |
| 7824 | incorrectly reject 9223372036854775807. */ |
| 7825 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 7826 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 7827 | && LARGE_OFF_T % 2147483647 == 1) |
| 7828 | ? 1 : -1]; |
| 7829 | int |
| 7830 | main () |
| 7831 | { |
| 7832 | |
| 7833 | ; |
| 7834 | return 0; |
| 7835 | } |
| 7836 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7837 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7838 | ac_cv_sys_file_offset_bits=64; break |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7839 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7840 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7841 | ac_cv_sys_file_offset_bits=unknown |
| 7842 | break |
| 7843 | done |
| 7844 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7846 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } |
| 7847 | case $ac_cv_sys_file_offset_bits in #( |
| 7848 | no | unknown) ;; |
| 7849 | *) |
| 7850 | cat >>confdefs.h <<_ACEOF |
| 7851 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
| 7852 | _ACEOF |
| 7853 | ;; |
| 7854 | esac |
| 7855 | rm -rf conftest* |
| 7856 | if test $ac_cv_sys_file_offset_bits = unknown; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7858 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7859 | if test "${ac_cv_sys_large_files+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7860 | $as_echo_n "(cached) " >&6 |
| 7861 | else |
| 7862 | while :; do |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7863 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7864 | /* end confdefs.h. */ |
| 7865 | #include <sys/types.h> |
| 7866 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 7867 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 7868 | since some C++ compilers masquerading as C compilers |
| 7869 | incorrectly reject 9223372036854775807. */ |
| 7870 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 7871 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 7872 | && LARGE_OFF_T % 2147483647 == 1) |
| 7873 | ? 1 : -1]; |
| 7874 | int |
| 7875 | main () |
| 7876 | { |
| 7877 | |
| 7878 | ; |
| 7879 | return 0; |
| 7880 | } |
| 7881 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7882 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7883 | ac_cv_sys_large_files=no; break |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7884 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7885 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7886 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7887 | /* end confdefs.h. */ |
| 7888 | #define _LARGE_FILES 1 |
| 7889 | #include <sys/types.h> |
| 7890 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 7891 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 7892 | since some C++ compilers masquerading as C compilers |
| 7893 | incorrectly reject 9223372036854775807. */ |
| 7894 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 7895 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 7896 | && LARGE_OFF_T % 2147483647 == 1) |
| 7897 | ? 1 : -1]; |
| 7898 | int |
| 7899 | main () |
| 7900 | { |
| 7901 | |
| 7902 | ; |
| 7903 | return 0; |
| 7904 | } |
| 7905 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7906 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7907 | ac_cv_sys_large_files=1; break |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7908 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7909 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7910 | ac_cv_sys_large_files=unknown |
| 7911 | break |
| 7912 | done |
| 7913 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7915 | $as_echo "$ac_cv_sys_large_files" >&6; } |
| 7916 | case $ac_cv_sys_large_files in #( |
| 7917 | no | unknown) ;; |
| 7918 | *) |
| 7919 | cat >>confdefs.h <<_ACEOF |
| 7920 | #define _LARGE_FILES $ac_cv_sys_large_files |
| 7921 | _ACEOF |
| 7922 | ;; |
| 7923 | esac |
| 7924 | rm -rf conftest* |
| 7925 | fi |
| 7926 | fi |
| 7927 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7929 | $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7930 | if test "${ac_cv_sys_largefile_source+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7931 | $as_echo_n "(cached) " >&6 |
| 7932 | else |
| 7933 | while :; do |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7934 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7935 | /* end confdefs.h. */ |
| 7936 | #include <sys/types.h> /* for off_t */ |
| 7937 | #include <stdio.h> |
| 7938 | int |
| 7939 | main () |
| 7940 | { |
| 7941 | int (*fp) (FILE *, off_t, int) = fseeko; |
| 7942 | return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); |
| 7943 | ; |
| 7944 | return 0; |
| 7945 | } |
| 7946 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7947 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7948 | ac_cv_sys_largefile_source=no; break |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7949 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7950 | rm -f core conftest.err conftest.$ac_objext \ |
| 7951 | conftest$ac_exeext conftest.$ac_ext |
| 7952 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7953 | /* end confdefs.h. */ |
| 7954 | #define _LARGEFILE_SOURCE 1 |
| 7955 | #include <sys/types.h> /* for off_t */ |
| 7956 | #include <stdio.h> |
| 7957 | int |
| 7958 | main () |
| 7959 | { |
| 7960 | int (*fp) (FILE *, off_t, int) = fseeko; |
| 7961 | return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); |
| 7962 | ; |
| 7963 | return 0; |
| 7964 | } |
| 7965 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7966 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7967 | ac_cv_sys_largefile_source=1; break |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7968 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7969 | rm -f core conftest.err conftest.$ac_objext \ |
| 7970 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7971 | ac_cv_sys_largefile_source=unknown |
| 7972 | break |
| 7973 | done |
| 7974 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7976 | $as_echo "$ac_cv_sys_largefile_source" >&6; } |
| 7977 | case $ac_cv_sys_largefile_source in #( |
| 7978 | no | unknown) ;; |
| 7979 | *) |
| 7980 | cat >>confdefs.h <<_ACEOF |
| 7981 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source |
| 7982 | _ACEOF |
| 7983 | ;; |
| 7984 | esac |
| 7985 | rm -rf conftest* |
| 7986 | |
| 7987 | # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug |
| 7988 | # in glibc 2.1.3, but that breaks too many other things. |
| 7989 | # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. |
| 7990 | if test $ac_cv_sys_largefile_source != unknown; then |
| 7991 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 7992 | $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7993 | |
| 7994 | fi |
| 7995 | |
| 7996 | LFS_CPPFLAGS='' |
| 7997 | if test "$enable_largefile" != no; then |
| 7998 | if test "$ac_cv_sys_file_offset_bits" != 'no'; then |
| 7999 | LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits" |
| 8000 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8002 | $as_echo_n "checking for native large file support... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8003 | if test "$cross_compiling" = yes; then : |
| 8004 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8005 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8006 | as_fn_error "cannot run test program while cross compiling |
| 8007 | See \`config.log' for more details." "$LINENO" 5; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8008 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8009 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8010 | /* end confdefs.h. */ |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8011 | #include <unistd.h> |
| 8012 | main () { |
| 8013 | exit(!(sizeof(off_t) == 8)); |
| 8014 | } |
| 8015 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8016 | if ac_fn_c_try_run "$LINENO"; then : |
| 8017 | ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8018 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8020 | $as_echo "yes" >&6; } |
| 8021 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8023 | $as_echo "no" >&6; } |
| 8024 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8025 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 8026 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8027 | fi |
| 8028 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8029 | fi |
| 8030 | if test "$ac_cv_sys_large_files" != 'no'; then |
| 8031 | LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1" |
| 8032 | fi |
| 8033 | if test "$ac_cv_sys_largefile_source" != 'no'; then |
| 8034 | LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1" |
| 8035 | fi |
| 8036 | fi |
| 8037 | |
| 8038 | |
| 8039 | # |
| 8040 | # Configure libtool & libltdl |
| 8041 | # |
| 8042 | # Configure libtool |
| 8043 | enable_dlopen=yes |
| 8044 | |
| 8045 | |
| 8046 | |
| 8047 | case `pwd` in |
| 8048 | *\ * | *\ *) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8049 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8050 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
| 8051 | esac |
| 8052 | |
| 8053 | |
| 8054 | |
| 8055 | macro_version='2.2.6' |
| 8056 | macro_revision='1.3012' |
| 8057 | |
| 8058 | |
| 8059 | |
| 8060 | |
| 8061 | |
| 8062 | |
| 8063 | |
| 8064 | |
| 8065 | |
| 8066 | |
| 8067 | |
| 8068 | |
| 8069 | |
| 8070 | ltmain="$ac_aux_dir/ltmain.sh" |
| 8071 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8073 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8074 | if test "${lt_cv_path_NM+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8075 | $as_echo_n "(cached) " >&6 |
| 8076 | else |
| 8077 | if test -n "$NM"; then |
| 8078 | # Let the user override the test. |
| 8079 | lt_cv_path_NM="$NM" |
| 8080 | else |
| 8081 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 8082 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 8083 | lt_nm_to_check="$lt_nm_to_check nm" |
| 8084 | fi |
| 8085 | for lt_tmp_nm in $lt_nm_to_check; do |
| 8086 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 8087 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 8088 | IFS="$lt_save_ifs" |
| 8089 | test -z "$ac_dir" && ac_dir=. |
| 8090 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 8091 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 8092 | # Check to see if the nm accepts a BSD-compat flag. |
| 8093 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 8094 | # nm: unknown option "B" ignored |
| 8095 | # Tru64's nm complains that /dev/null is an invalid object file |
| 8096 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 8097 | */dev/null* | *'Invalid file or object type'*) |
| 8098 | lt_cv_path_NM="$tmp_nm -B" |
| 8099 | break |
| 8100 | ;; |
| 8101 | *) |
| 8102 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 8103 | */dev/null*) |
| 8104 | lt_cv_path_NM="$tmp_nm -p" |
| 8105 | break |
| 8106 | ;; |
| 8107 | *) |
| 8108 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 8109 | continue # so that we can try to find one that supports BSD flags |
| 8110 | ;; |
| 8111 | esac |
| 8112 | ;; |
| 8113 | esac |
| 8114 | fi |
| 8115 | done |
| 8116 | IFS="$lt_save_ifs" |
| 8117 | done |
| 8118 | : ${lt_cv_path_NM=no} |
| 8119 | fi |
| 8120 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8122 | $as_echo "$lt_cv_path_NM" >&6; } |
| 8123 | if test "$lt_cv_path_NM" != "no"; then |
| 8124 | NM="$lt_cv_path_NM" |
| 8125 | else |
| 8126 | # Didn't find any BSD compatible name lister, look for dumpbin. |
| 8127 | if test -n "$ac_tool_prefix"; then |
| 8128 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" |
| 8129 | do |
| 8130 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 8131 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8132 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8133 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8134 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8135 | $as_echo_n "(cached) " >&6 |
| 8136 | else |
| 8137 | if test -n "$DUMPBIN"; then |
| 8138 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. |
| 8139 | else |
| 8140 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8141 | for as_dir in $PATH |
| 8142 | do |
| 8143 | IFS=$as_save_IFS |
| 8144 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8145 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8146 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8147 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8148 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8149 | break 2 |
| 8150 | fi |
| 8151 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8152 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8153 | IFS=$as_save_IFS |
| 8154 | |
| 8155 | fi |
| 8156 | fi |
| 8157 | DUMPBIN=$ac_cv_prog_DUMPBIN |
| 8158 | if test -n "$DUMPBIN"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8160 | $as_echo "$DUMPBIN" >&6; } |
| 8161 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8163 | $as_echo "no" >&6; } |
| 8164 | fi |
| 8165 | |
| 8166 | |
| 8167 | test -n "$DUMPBIN" && break |
| 8168 | done |
| 8169 | fi |
| 8170 | if test -z "$DUMPBIN"; then |
| 8171 | ac_ct_DUMPBIN=$DUMPBIN |
| 8172 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" |
| 8173 | do |
| 8174 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8175 | set dummy $ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8177 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8178 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8179 | $as_echo_n "(cached) " >&6 |
| 8180 | else |
| 8181 | if test -n "$ac_ct_DUMPBIN"; then |
| 8182 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. |
| 8183 | else |
| 8184 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8185 | for as_dir in $PATH |
| 8186 | do |
| 8187 | IFS=$as_save_IFS |
| 8188 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8189 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8190 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8191 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8192 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8193 | break 2 |
| 8194 | fi |
| 8195 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8196 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8197 | IFS=$as_save_IFS |
| 8198 | |
| 8199 | fi |
| 8200 | fi |
| 8201 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
| 8202 | if test -n "$ac_ct_DUMPBIN"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8204 | $as_echo "$ac_ct_DUMPBIN" >&6; } |
| 8205 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8207 | $as_echo "no" >&6; } |
| 8208 | fi |
| 8209 | |
| 8210 | |
| 8211 | test -n "$ac_ct_DUMPBIN" && break |
| 8212 | done |
| 8213 | |
| 8214 | if test "x$ac_ct_DUMPBIN" = x; then |
| 8215 | DUMPBIN=":" |
| 8216 | else |
| 8217 | case $cross_compiling:$ac_tool_warned in |
| 8218 | yes:) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8219 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8220 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 8221 | ac_tool_warned=yes ;; |
| 8222 | esac |
| 8223 | DUMPBIN=$ac_ct_DUMPBIN |
| 8224 | fi |
| 8225 | fi |
| 8226 | |
| 8227 | |
| 8228 | if test "$DUMPBIN" != ":"; then |
| 8229 | NM="$DUMPBIN" |
| 8230 | fi |
| 8231 | fi |
| 8232 | test -z "$NM" && NM=nm |
| 8233 | |
| 8234 | |
| 8235 | |
| 8236 | |
| 8237 | |
| 8238 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8240 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8241 | if test "${lt_cv_nm_interface+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8242 | $as_echo_n "(cached) " >&6 |
| 8243 | else |
| 8244 | lt_cv_nm_interface="BSD nm" |
| 8245 | echo "int some_variable = 0;" > conftest.$ac_ext |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8246 | (eval echo "\"\$as_me:8246: $ac_compile\"" >&5) |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8247 | (eval "$ac_compile" 2>conftest.err) |
| 8248 | cat conftest.err >&5 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8249 | (eval echo "\"\$as_me:8249: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8250 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
| 8251 | cat conftest.err >&5 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8252 | (eval echo "\"\$as_me:8252: output\"" >&5) |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8253 | cat conftest.out >&5 |
| 8254 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
| 8255 | lt_cv_nm_interface="MS dumpbin" |
| 8256 | fi |
| 8257 | rm -f conftest* |
| 8258 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8260 | $as_echo "$lt_cv_nm_interface" >&6; } |
| 8261 | |
| 8262 | # find the maximum length of command line arguments |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8264 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8265 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8266 | $as_echo_n "(cached) " >&6 |
| 8267 | else |
| 8268 | i=0 |
| 8269 | teststring="ABCD" |
| 8270 | |
| 8271 | case $build_os in |
| 8272 | msdosdjgpp*) |
| 8273 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 8274 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 8275 | # during glob expansion). Even if it were fixed, the result of this |
| 8276 | # check would be larger than it should be. |
| 8277 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 8278 | ;; |
| 8279 | |
| 8280 | gnu*) |
| 8281 | # Under GNU Hurd, this test is not required because there is |
| 8282 | # no limit to the length of command line arguments. |
| 8283 | # Libtool will interpret -1 as no limit whatsoever |
| 8284 | lt_cv_sys_max_cmd_len=-1; |
| 8285 | ;; |
| 8286 | |
| 8287 | cygwin* | mingw* | cegcc*) |
| 8288 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 8289 | # about 5 minutes as the teststring grows exponentially. |
| 8290 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 8291 | # you end up with a "frozen" computer, even though with patience |
| 8292 | # the test eventually succeeds (with a max line length of 256k). |
| 8293 | # Instead, let's just punt: use the minimum linelength reported by |
| 8294 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 8295 | lt_cv_sys_max_cmd_len=8192; |
| 8296 | ;; |
| 8297 | |
| 8298 | amigaos*) |
| 8299 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 8300 | # So we just punt and use a minimum line length of 8192. |
| 8301 | lt_cv_sys_max_cmd_len=8192; |
| 8302 | ;; |
| 8303 | |
| 8304 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
| 8305 | # This has been around since 386BSD, at least. Likely further. |
| 8306 | if test -x /sbin/sysctl; then |
| 8307 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 8308 | elif test -x /usr/sbin/sysctl; then |
| 8309 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 8310 | else |
| 8311 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 8312 | fi |
| 8313 | # And add a safety zone |
| 8314 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 8315 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 8316 | ;; |
| 8317 | |
| 8318 | interix*) |
| 8319 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 8320 | lt_cv_sys_max_cmd_len=196608 |
| 8321 | ;; |
| 8322 | |
| 8323 | osf*) |
| 8324 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 8325 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 8326 | # nice to cause kernel panics so lets avoid the loop below. |
| 8327 | # First set a reasonable default. |
| 8328 | lt_cv_sys_max_cmd_len=16384 |
| 8329 | # |
| 8330 | if test -x /sbin/sysconfig; then |
| 8331 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 8332 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 8333 | esac |
| 8334 | fi |
| 8335 | ;; |
| 8336 | sco3.2v5*) |
| 8337 | lt_cv_sys_max_cmd_len=102400 |
| 8338 | ;; |
| 8339 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 8340 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 8341 | if test -n "$kargmax"; then |
| 8342 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 8343 | else |
| 8344 | lt_cv_sys_max_cmd_len=32768 |
| 8345 | fi |
| 8346 | ;; |
| 8347 | *) |
| 8348 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
| 8349 | if test -n "$lt_cv_sys_max_cmd_len"; then |
| 8350 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 8351 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 8352 | else |
| 8353 | # Make teststring a little bigger before we do anything with it. |
| 8354 | # a 1K string should be a reasonable start. |
| 8355 | for i in 1 2 3 4 5 6 7 8 ; do |
| 8356 | teststring=$teststring$teststring |
| 8357 | done |
| 8358 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 8359 | # If test is not a shell built-in, we'll probably end up computing a |
| 8360 | # maximum length that is only half of the actual maximum length, but |
| 8361 | # we can't tell. |
| 8362 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ |
| 8363 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && |
| 8364 | test $i != 17 # 1/2 MB should be enough |
| 8365 | do |
| 8366 | i=`expr $i + 1` |
| 8367 | teststring=$teststring$teststring |
| 8368 | done |
| 8369 | # Only check the string length outside the loop. |
| 8370 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
| 8371 | teststring= |
| 8372 | # Add a significant safety factor because C++ compilers can tack on |
| 8373 | # massive amounts of additional arguments before passing them to the |
| 8374 | # linker. It appears as though 1/2 is a usable value. |
| 8375 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 8376 | fi |
| 8377 | ;; |
| 8378 | esac |
| 8379 | |
| 8380 | fi |
| 8381 | |
| 8382 | if test -n $lt_cv_sys_max_cmd_len ; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8384 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
| 8385 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8387 | $as_echo "none" >&6; } |
| 8388 | fi |
| 8389 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 8390 | |
| 8391 | |
| 8392 | |
| 8393 | |
| 8394 | |
| 8395 | |
| 8396 | : ${CP="cp -f"} |
| 8397 | : ${MV="mv -f"} |
| 8398 | : ${RM="rm -f"} |
| 8399 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8401 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } |
| 8402 | # Try some XSI features |
| 8403 | xsi_shell=no |
| 8404 | ( _lt_dummy="a/b/c" |
| 8405 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ |
| 8406 | = c,a/b,, \ |
| 8407 | && eval 'test $(( 1 + 1 )) -eq 2 \ |
| 8408 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ |
| 8409 | && xsi_shell=yes |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8411 | $as_echo "$xsi_shell" >&6; } |
| 8412 | |
| 8413 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8415 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } |
| 8416 | lt_shell_append=no |
| 8417 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ |
| 8418 | >/dev/null 2>&1 \ |
| 8419 | && lt_shell_append=yes |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8421 | $as_echo "$lt_shell_append" >&6; } |
| 8422 | |
| 8423 | |
| 8424 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 8425 | lt_unset=unset |
| 8426 | else |
| 8427 | lt_unset=false |
| 8428 | fi |
| 8429 | |
| 8430 | |
| 8431 | |
| 8432 | |
| 8433 | |
| 8434 | # test EBCDIC or ASCII |
| 8435 | case `echo X|tr X '\101'` in |
| 8436 | A) # ASCII based system |
| 8437 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
| 8438 | lt_SP2NL='tr \040 \012' |
| 8439 | lt_NL2SP='tr \015\012 \040\040' |
| 8440 | ;; |
| 8441 | *) # EBCDIC based system |
| 8442 | lt_SP2NL='tr \100 \n' |
| 8443 | lt_NL2SP='tr \r\n \100\100' |
| 8444 | ;; |
| 8445 | esac |
| 8446 | |
| 8447 | |
| 8448 | |
| 8449 | |
| 8450 | |
| 8451 | |
| 8452 | |
| 8453 | |
| 8454 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8456 | $as_echo_n "checking for $LD option to reload object files... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8457 | if test "${lt_cv_ld_reload_flag+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8458 | $as_echo_n "(cached) " >&6 |
| 8459 | else |
| 8460 | lt_cv_ld_reload_flag='-r' |
| 8461 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8463 | $as_echo "$lt_cv_ld_reload_flag" >&6; } |
| 8464 | reload_flag=$lt_cv_ld_reload_flag |
| 8465 | case $reload_flag in |
| 8466 | "" | " "*) ;; |
| 8467 | *) reload_flag=" $reload_flag" ;; |
| 8468 | esac |
| 8469 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 8470 | case $host_os in |
| 8471 | darwin*) |
| 8472 | if test "$GCC" = yes; then |
| 8473 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
| 8474 | else |
| 8475 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 8476 | fi |
| 8477 | ;; |
| 8478 | esac |
| 8479 | |
| 8480 | |
| 8481 | |
| 8482 | |
| 8483 | |
| 8484 | |
| 8485 | |
| 8486 | |
| 8487 | |
| 8488 | if test -n "$ac_tool_prefix"; then |
| 8489 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
| 8490 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8491 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8492 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8493 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8494 | $as_echo_n "(cached) " >&6 |
| 8495 | else |
| 8496 | if test -n "$OBJDUMP"; then |
| 8497 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
| 8498 | else |
| 8499 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8500 | for as_dir in $PATH |
| 8501 | do |
| 8502 | IFS=$as_save_IFS |
| 8503 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8504 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8505 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8506 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8507 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8508 | break 2 |
| 8509 | fi |
| 8510 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8511 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8512 | IFS=$as_save_IFS |
| 8513 | |
| 8514 | fi |
| 8515 | fi |
| 8516 | OBJDUMP=$ac_cv_prog_OBJDUMP |
| 8517 | if test -n "$OBJDUMP"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8519 | $as_echo "$OBJDUMP" >&6; } |
| 8520 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8522 | $as_echo "no" >&6; } |
| 8523 | fi |
| 8524 | |
| 8525 | |
| 8526 | fi |
| 8527 | if test -z "$ac_cv_prog_OBJDUMP"; then |
| 8528 | ac_ct_OBJDUMP=$OBJDUMP |
| 8529 | # Extract the first word of "objdump", so it can be a program name with args. |
| 8530 | set dummy objdump; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8531 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8532 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8533 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8534 | $as_echo_n "(cached) " >&6 |
| 8535 | else |
| 8536 | if test -n "$ac_ct_OBJDUMP"; then |
| 8537 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
| 8538 | else |
| 8539 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8540 | for as_dir in $PATH |
| 8541 | do |
| 8542 | IFS=$as_save_IFS |
| 8543 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8544 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8545 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8546 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8547 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8548 | break 2 |
| 8549 | fi |
| 8550 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8551 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8552 | IFS=$as_save_IFS |
| 8553 | |
| 8554 | fi |
| 8555 | fi |
| 8556 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
| 8557 | if test -n "$ac_ct_OBJDUMP"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8559 | $as_echo "$ac_ct_OBJDUMP" >&6; } |
| 8560 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8562 | $as_echo "no" >&6; } |
| 8563 | fi |
| 8564 | |
| 8565 | if test "x$ac_ct_OBJDUMP" = x; then |
| 8566 | OBJDUMP="false" |
| 8567 | else |
| 8568 | case $cross_compiling:$ac_tool_warned in |
| 8569 | yes:) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8570 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8571 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 8572 | ac_tool_warned=yes ;; |
| 8573 | esac |
| 8574 | OBJDUMP=$ac_ct_OBJDUMP |
| 8575 | fi |
| 8576 | else |
| 8577 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
| 8578 | fi |
| 8579 | |
| 8580 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 8581 | |
| 8582 | |
| 8583 | |
| 8584 | |
| 8585 | |
| 8586 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8588 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8589 | if test "${lt_cv_deplibs_check_method+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8590 | $as_echo_n "(cached) " >&6 |
| 8591 | else |
| 8592 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 8593 | lt_cv_file_magic_test_file= |
| 8594 | lt_cv_deplibs_check_method='unknown' |
| 8595 | # Need to set the preceding variable on all platforms that support |
| 8596 | # interlibrary dependencies. |
| 8597 | # 'none' -- dependencies not supported. |
| 8598 | # `unknown' -- same as none, but documents that we really don't know. |
| 8599 | # 'pass_all' -- all dependencies passed with no checks. |
| 8600 | # 'test_compile' -- check by making test program. |
| 8601 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 8602 | # which responds to the $file_magic_cmd with a given extended regex. |
| 8603 | # If you have `file' or equivalent on your system and you're not sure |
| 8604 | # whether `pass_all' will *always* work, you probably want this one. |
| 8605 | |
| 8606 | case $host_os in |
| 8607 | aix[4-9]*) |
| 8608 | lt_cv_deplibs_check_method=pass_all |
| 8609 | ;; |
| 8610 | |
| 8611 | beos*) |
| 8612 | lt_cv_deplibs_check_method=pass_all |
| 8613 | ;; |
| 8614 | |
| 8615 | bsdi[45]*) |
| 8616 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 8617 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 8618 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 8619 | ;; |
| 8620 | |
| 8621 | cygwin*) |
| 8622 | # func_win32_libid is a shell function defined in ltmain.sh |
| 8623 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 8624 | lt_cv_file_magic_cmd='func_win32_libid' |
| 8625 | ;; |
| 8626 | |
| 8627 | mingw* | pw32*) |
| 8628 | # Base MSYS/MinGW do not provide the 'file' command needed by |
| 8629 | # func_win32_libid shell function, so use a weaker test based on 'objdump', |
| 8630 | # unless we find 'file', for example because we are cross-compiling. |
| 8631 | if ( file / ) >/dev/null 2>&1; then |
| 8632 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 8633 | lt_cv_file_magic_cmd='func_win32_libid' |
| 8634 | else |
| 8635 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 8636 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 8637 | fi |
| 8638 | ;; |
| 8639 | |
| 8640 | cegcc) |
| 8641 | # use the weaker test based on 'objdump'. See mingw*. |
| 8642 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
| 8643 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 8644 | ;; |
| 8645 | |
| 8646 | darwin* | rhapsody*) |
| 8647 | lt_cv_deplibs_check_method=pass_all |
| 8648 | ;; |
| 8649 | |
| 8650 | freebsd* | dragonfly*) |
| 8651 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 8652 | case $host_cpu in |
| 8653 | i*86 ) |
| 8654 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 8655 | # Let's accept both of them until this is cleared up. |
| 8656 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
| 8657 | lt_cv_file_magic_cmd=/usr/bin/file |
| 8658 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 8659 | ;; |
| 8660 | esac |
| 8661 | else |
| 8662 | lt_cv_deplibs_check_method=pass_all |
| 8663 | fi |
| 8664 | ;; |
| 8665 | |
| 8666 | gnu*) |
| 8667 | lt_cv_deplibs_check_method=pass_all |
| 8668 | ;; |
| 8669 | |
| 8670 | hpux10.20* | hpux11*) |
| 8671 | lt_cv_file_magic_cmd=/usr/bin/file |
| 8672 | case $host_cpu in |
| 8673 | ia64*) |
| 8674 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 8675 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 8676 | ;; |
| 8677 | hppa*64*) |
| 8678 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' |
| 8679 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 8680 | ;; |
| 8681 | *) |
| 8682 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 8683 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 8684 | ;; |
| 8685 | esac |
| 8686 | ;; |
| 8687 | |
| 8688 | interix[3-9]*) |
| 8689 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 8690 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 8691 | ;; |
| 8692 | |
| 8693 | irix5* | irix6* | nonstopux*) |
| 8694 | case $LD in |
| 8695 | *-32|*"-32 ") libmagic=32-bit;; |
| 8696 | *-n32|*"-n32 ") libmagic=N32;; |
| 8697 | *-64|*"-64 ") libmagic=64-bit;; |
| 8698 | *) libmagic=never-match;; |
| 8699 | esac |
| 8700 | lt_cv_deplibs_check_method=pass_all |
| 8701 | ;; |
| 8702 | |
| 8703 | # This must be Linux ELF. |
| 8704 | linux* | k*bsd*-gnu) |
| 8705 | lt_cv_deplibs_check_method=pass_all |
| 8706 | ;; |
| 8707 | |
| 8708 | netbsd*) |
| 8709 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 8710 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 8711 | else |
| 8712 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 8713 | fi |
| 8714 | ;; |
| 8715 | |
| 8716 | newos6*) |
| 8717 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 8718 | lt_cv_file_magic_cmd=/usr/bin/file |
| 8719 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 8720 | ;; |
| 8721 | |
| 8722 | *nto* | *qnx*) |
| 8723 | lt_cv_deplibs_check_method=pass_all |
| 8724 | ;; |
| 8725 | |
| 8726 | openbsd*) |
| 8727 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 8728 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
| 8729 | else |
| 8730 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 8731 | fi |
| 8732 | ;; |
| 8733 | |
| 8734 | osf3* | osf4* | osf5*) |
| 8735 | lt_cv_deplibs_check_method=pass_all |
| 8736 | ;; |
| 8737 | |
| 8738 | rdos*) |
| 8739 | lt_cv_deplibs_check_method=pass_all |
| 8740 | ;; |
| 8741 | |
| 8742 | solaris*) |
| 8743 | lt_cv_deplibs_check_method=pass_all |
| 8744 | ;; |
| 8745 | |
| 8746 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 8747 | lt_cv_deplibs_check_method=pass_all |
| 8748 | ;; |
| 8749 | |
| 8750 | sysv4 | sysv4.3*) |
| 8751 | case $host_vendor in |
| 8752 | motorola) |
| 8753 | 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]' |
| 8754 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 8755 | ;; |
| 8756 | ncr) |
| 8757 | lt_cv_deplibs_check_method=pass_all |
| 8758 | ;; |
| 8759 | sequent) |
| 8760 | lt_cv_file_magic_cmd='/bin/file' |
| 8761 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 8762 | ;; |
| 8763 | sni) |
| 8764 | lt_cv_file_magic_cmd='/bin/file' |
| 8765 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 8766 | lt_cv_file_magic_test_file=/lib/libc.so |
| 8767 | ;; |
| 8768 | siemens) |
| 8769 | lt_cv_deplibs_check_method=pass_all |
| 8770 | ;; |
| 8771 | pc) |
| 8772 | lt_cv_deplibs_check_method=pass_all |
| 8773 | ;; |
| 8774 | esac |
| 8775 | ;; |
| 8776 | |
| 8777 | tpf*) |
| 8778 | lt_cv_deplibs_check_method=pass_all |
| 8779 | ;; |
| 8780 | esac |
| 8781 | |
| 8782 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8784 | $as_echo "$lt_cv_deplibs_check_method" >&6; } |
| 8785 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 8786 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 8787 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 8788 | |
| 8789 | |
| 8790 | |
| 8791 | |
| 8792 | |
| 8793 | |
| 8794 | |
| 8795 | |
| 8796 | |
| 8797 | |
| 8798 | |
| 8799 | |
| 8800 | if test -n "$ac_tool_prefix"; then |
| 8801 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 8802 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8804 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8805 | if test "${ac_cv_prog_AR+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8806 | $as_echo_n "(cached) " >&6 |
| 8807 | else |
| 8808 | if test -n "$AR"; then |
| 8809 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 8810 | else |
| 8811 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8812 | for as_dir in $PATH |
| 8813 | do |
| 8814 | IFS=$as_save_IFS |
| 8815 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8816 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8817 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8818 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8819 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8820 | break 2 |
| 8821 | fi |
| 8822 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8823 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8824 | IFS=$as_save_IFS |
| 8825 | |
| 8826 | fi |
| 8827 | fi |
| 8828 | AR=$ac_cv_prog_AR |
| 8829 | if test -n "$AR"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8831 | $as_echo "$AR" >&6; } |
| 8832 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8834 | $as_echo "no" >&6; } |
| 8835 | fi |
| 8836 | |
| 8837 | |
| 8838 | fi |
| 8839 | if test -z "$ac_cv_prog_AR"; then |
| 8840 | ac_ct_AR=$AR |
| 8841 | # Extract the first word of "ar", so it can be a program name with args. |
| 8842 | set dummy ar; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8844 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8845 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8846 | $as_echo_n "(cached) " >&6 |
| 8847 | else |
| 8848 | if test -n "$ac_ct_AR"; then |
| 8849 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 8850 | else |
| 8851 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8852 | for as_dir in $PATH |
| 8853 | do |
| 8854 | IFS=$as_save_IFS |
| 8855 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8856 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8857 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8858 | ac_cv_prog_ac_ct_AR="ar" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8859 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8860 | break 2 |
| 8861 | fi |
| 8862 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8863 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8864 | IFS=$as_save_IFS |
| 8865 | |
| 8866 | fi |
| 8867 | fi |
| 8868 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 8869 | if test -n "$ac_ct_AR"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8871 | $as_echo "$ac_ct_AR" >&6; } |
| 8872 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8874 | $as_echo "no" >&6; } |
| 8875 | fi |
| 8876 | |
| 8877 | if test "x$ac_ct_AR" = x; then |
| 8878 | AR="false" |
| 8879 | else |
| 8880 | case $cross_compiling:$ac_tool_warned in |
| 8881 | yes:) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8882 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8883 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 8884 | ac_tool_warned=yes ;; |
| 8885 | esac |
| 8886 | AR=$ac_ct_AR |
| 8887 | fi |
| 8888 | else |
| 8889 | AR="$ac_cv_prog_AR" |
| 8890 | fi |
| 8891 | |
| 8892 | test -z "$AR" && AR=ar |
| 8893 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 8894 | |
| 8895 | |
| 8896 | |
| 8897 | |
| 8898 | |
| 8899 | |
| 8900 | |
| 8901 | |
| 8902 | |
| 8903 | |
| 8904 | |
| 8905 | if test -n "$ac_tool_prefix"; then |
| 8906 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 8907 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8909 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8910 | if test "${ac_cv_prog_STRIP+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8911 | $as_echo_n "(cached) " >&6 |
| 8912 | else |
| 8913 | if test -n "$STRIP"; then |
| 8914 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 8915 | else |
| 8916 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8917 | for as_dir in $PATH |
| 8918 | do |
| 8919 | IFS=$as_save_IFS |
| 8920 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8921 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8922 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8923 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8924 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8925 | break 2 |
| 8926 | fi |
| 8927 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8928 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8929 | IFS=$as_save_IFS |
| 8930 | |
| 8931 | fi |
| 8932 | fi |
| 8933 | STRIP=$ac_cv_prog_STRIP |
| 8934 | if test -n "$STRIP"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8936 | $as_echo "$STRIP" >&6; } |
| 8937 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8939 | $as_echo "no" >&6; } |
| 8940 | fi |
| 8941 | |
| 8942 | |
| 8943 | fi |
| 8944 | if test -z "$ac_cv_prog_STRIP"; then |
| 8945 | ac_ct_STRIP=$STRIP |
| 8946 | # Extract the first word of "strip", so it can be a program name with args. |
| 8947 | set dummy strip; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8949 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8950 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8951 | $as_echo_n "(cached) " >&6 |
| 8952 | else |
| 8953 | if test -n "$ac_ct_STRIP"; then |
| 8954 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 8955 | else |
| 8956 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8957 | for as_dir in $PATH |
| 8958 | do |
| 8959 | IFS=$as_save_IFS |
| 8960 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8961 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8962 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8963 | ac_cv_prog_ac_ct_STRIP="strip" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8964 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8965 | break 2 |
| 8966 | fi |
| 8967 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8968 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8969 | IFS=$as_save_IFS |
| 8970 | |
| 8971 | fi |
| 8972 | fi |
| 8973 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 8974 | if test -n "$ac_ct_STRIP"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8976 | $as_echo "$ac_ct_STRIP" >&6; } |
| 8977 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8979 | $as_echo "no" >&6; } |
| 8980 | fi |
| 8981 | |
| 8982 | if test "x$ac_ct_STRIP" = x; then |
| 8983 | STRIP=":" |
| 8984 | else |
| 8985 | case $cross_compiling:$ac_tool_warned in |
| 8986 | yes:) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 8987 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8988 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 8989 | ac_tool_warned=yes ;; |
| 8990 | esac |
| 8991 | STRIP=$ac_ct_STRIP |
| 8992 | fi |
| 8993 | else |
| 8994 | STRIP="$ac_cv_prog_STRIP" |
| 8995 | fi |
| 8996 | |
| 8997 | test -z "$STRIP" && STRIP=: |
| 8998 | |
| 8999 | |
| 9000 | |
| 9001 | |
| 9002 | |
| 9003 | |
| 9004 | if test -n "$ac_tool_prefix"; then |
| 9005 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 9006 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9008 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9009 | if test "${ac_cv_prog_RANLIB+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9010 | $as_echo_n "(cached) " >&6 |
| 9011 | else |
| 9012 | if test -n "$RANLIB"; then |
| 9013 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 9014 | else |
| 9015 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9016 | for as_dir in $PATH |
| 9017 | do |
| 9018 | IFS=$as_save_IFS |
| 9019 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9020 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9021 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 9022 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9023 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9024 | break 2 |
| 9025 | fi |
| 9026 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9027 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9028 | IFS=$as_save_IFS |
| 9029 | |
| 9030 | fi |
| 9031 | fi |
| 9032 | RANLIB=$ac_cv_prog_RANLIB |
| 9033 | if test -n "$RANLIB"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9035 | $as_echo "$RANLIB" >&6; } |
| 9036 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9038 | $as_echo "no" >&6; } |
| 9039 | fi |
| 9040 | |
| 9041 | |
| 9042 | fi |
| 9043 | if test -z "$ac_cv_prog_RANLIB"; then |
| 9044 | ac_ct_RANLIB=$RANLIB |
| 9045 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 9046 | set dummy ranlib; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9048 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9049 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9050 | $as_echo_n "(cached) " >&6 |
| 9051 | else |
| 9052 | if test -n "$ac_ct_RANLIB"; then |
| 9053 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 9054 | else |
| 9055 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9056 | for as_dir in $PATH |
| 9057 | do |
| 9058 | IFS=$as_save_IFS |
| 9059 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9060 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9061 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 9062 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9063 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9064 | break 2 |
| 9065 | fi |
| 9066 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9067 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9068 | IFS=$as_save_IFS |
| 9069 | |
| 9070 | fi |
| 9071 | fi |
| 9072 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 9073 | if test -n "$ac_ct_RANLIB"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9075 | $as_echo "$ac_ct_RANLIB" >&6; } |
| 9076 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9078 | $as_echo "no" >&6; } |
| 9079 | fi |
| 9080 | |
| 9081 | if test "x$ac_ct_RANLIB" = x; then |
| 9082 | RANLIB=":" |
| 9083 | else |
| 9084 | case $cross_compiling:$ac_tool_warned in |
| 9085 | yes:) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9086 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9087 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9088 | ac_tool_warned=yes ;; |
| 9089 | esac |
| 9090 | RANLIB=$ac_ct_RANLIB |
| 9091 | fi |
| 9092 | else |
| 9093 | RANLIB="$ac_cv_prog_RANLIB" |
| 9094 | fi |
| 9095 | |
| 9096 | test -z "$RANLIB" && RANLIB=: |
| 9097 | |
| 9098 | |
| 9099 | |
| 9100 | |
| 9101 | |
| 9102 | |
| 9103 | # Determine commands to create old-style static archives. |
| 9104 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
| 9105 | old_postinstall_cmds='chmod 644 $oldlib' |
| 9106 | old_postuninstall_cmds= |
| 9107 | |
| 9108 | if test -n "$RANLIB"; then |
| 9109 | case $host_os in |
| 9110 | openbsd*) |
| 9111 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
| 9112 | ;; |
| 9113 | *) |
| 9114 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
| 9115 | ;; |
| 9116 | esac |
| 9117 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 9118 | fi |
| 9119 | |
| 9120 | |
| 9121 | |
| 9122 | |
| 9123 | |
| 9124 | |
| 9125 | |
| 9126 | |
| 9127 | |
| 9128 | |
| 9129 | |
| 9130 | |
| 9131 | |
| 9132 | |
| 9133 | |
| 9134 | |
| 9135 | |
| 9136 | |
| 9137 | |
| 9138 | |
| 9139 | |
| 9140 | |
| 9141 | |
| 9142 | |
| 9143 | |
| 9144 | |
| 9145 | |
| 9146 | |
| 9147 | |
| 9148 | |
| 9149 | |
| 9150 | |
| 9151 | |
| 9152 | |
| 9153 | # If no C compiler was specified, use CC. |
| 9154 | LTCC=${LTCC-"$CC"} |
| 9155 | |
| 9156 | # If no C compiler flags were specified, use CFLAGS. |
| 9157 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 9158 | |
| 9159 | # Allow CC to be a program name with arguments. |
| 9160 | compiler=$CC |
| 9161 | |
| 9162 | |
| 9163 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9165 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9166 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9167 | $as_echo_n "(cached) " >&6 |
| 9168 | else |
| 9169 | |
| 9170 | # These are sane defaults that work on at least a few old systems. |
| 9171 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 9172 | |
| 9173 | # Character class describing NM global symbol codes. |
| 9174 | symcode='[BCDEGRST]' |
| 9175 | |
| 9176 | # Regexp to match symbols that can be accessed directly from C. |
| 9177 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 9178 | |
| 9179 | # Define system-specific variables. |
| 9180 | case $host_os in |
| 9181 | aix*) |
| 9182 | symcode='[BCDT]' |
| 9183 | ;; |
| 9184 | cygwin* | mingw* | pw32* | cegcc*) |
| 9185 | symcode='[ABCDGISTW]' |
| 9186 | ;; |
| 9187 | hpux*) |
| 9188 | if test "$host_cpu" = ia64; then |
| 9189 | symcode='[ABCDEGRST]' |
| 9190 | fi |
| 9191 | ;; |
| 9192 | irix* | nonstopux*) |
| 9193 | symcode='[BCDEGRST]' |
| 9194 | ;; |
| 9195 | osf*) |
| 9196 | symcode='[BCDEGQRST]' |
| 9197 | ;; |
| 9198 | solaris*) |
| 9199 | symcode='[BDRT]' |
| 9200 | ;; |
| 9201 | sco3.2v5*) |
| 9202 | symcode='[DT]' |
| 9203 | ;; |
| 9204 | sysv4.2uw2*) |
| 9205 | symcode='[DT]' |
| 9206 | ;; |
| 9207 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 9208 | symcode='[ABDT]' |
| 9209 | ;; |
| 9210 | sysv4) |
| 9211 | symcode='[DFNSTU]' |
| 9212 | ;; |
| 9213 | esac |
| 9214 | |
| 9215 | # If we're using GNU nm, then use its standard symbol codes. |
| 9216 | case `$NM -V 2>&1` in |
| 9217 | *GNU* | *'with BFD'*) |
| 9218 | symcode='[ABCDGIRSTW]' ;; |
| 9219 | esac |
| 9220 | |
| 9221 | # Transform an extracted symbol line into a proper C declaration. |
| 9222 | # Some systems (esp. on ia64) link data and code symbols differently, |
| 9223 | # so use this general approach. |
| 9224 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 9225 | |
| 9226 | # Transform an extracted symbol line into symbol name and symbol address |
| 9227 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" |
| 9228 | lt_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'" |
| 9229 | |
| 9230 | # Handle CRLF in mingw tool chain |
| 9231 | opt_cr= |
| 9232 | case $build_os in |
| 9233 | mingw*) |
| 9234 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 9235 | ;; |
| 9236 | esac |
| 9237 | |
| 9238 | # Try without a prefix underscore, then with it. |
| 9239 | for ac_symprfx in "" "_"; do |
| 9240 | |
| 9241 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 9242 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 9243 | |
| 9244 | # Write the raw and C identifiers. |
| 9245 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 9246 | # Fake it for dumpbin and say T for any non-static function |
| 9247 | # and D for any global variable. |
| 9248 | # Also find C++ and __fastcall symbols from MSVC++, |
| 9249 | # which start with @ or ?. |
| 9250 | lt_cv_sys_global_symbol_pipe="$AWK '"\ |
| 9251 | " {last_section=section; section=\$ 3};"\ |
| 9252 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
| 9253 | " \$ 0!~/External *\|/{next};"\ |
| 9254 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
| 9255 | " {if(hide[section]) next};"\ |
| 9256 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ |
| 9257 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ |
| 9258 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ |
| 9259 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ |
| 9260 | " ' prfx=^$ac_symprfx" |
| 9261 | else |
| 9262 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
| 9263 | fi |
| 9264 | |
| 9265 | # Check to see that the pipe works correctly. |
| 9266 | pipe_works=no |
| 9267 | |
| 9268 | rm -f conftest* |
| 9269 | cat > conftest.$ac_ext <<_LT_EOF |
| 9270 | #ifdef __cplusplus |
| 9271 | extern "C" { |
| 9272 | #endif |
| 9273 | char nm_test_var; |
| 9274 | void nm_test_func(void); |
| 9275 | void nm_test_func(void){} |
| 9276 | #ifdef __cplusplus |
| 9277 | } |
| 9278 | #endif |
| 9279 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 9280 | _LT_EOF |
| 9281 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9282 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9283 | (eval $ac_compile) 2>&5 |
| 9284 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9285 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 9286 | test $ac_status = 0; }; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9287 | # Now try to grab the symbols. |
| 9288 | nlist=conftest.nm |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9289 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9290 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 9291 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9292 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 9293 | test $ac_status = 0; } && test -s "$nlist"; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9294 | # Try sorting and uniquifying the output. |
| 9295 | if sort "$nlist" | uniq > "$nlist"T; then |
| 9296 | mv -f "$nlist"T "$nlist" |
| 9297 | else |
| 9298 | rm -f "$nlist"T |
| 9299 | fi |
| 9300 | |
| 9301 | # Make sure that we snagged all the symbols we need. |
| 9302 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
| 9303 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
| 9304 | cat <<_LT_EOF > conftest.$ac_ext |
| 9305 | #ifdef __cplusplus |
| 9306 | extern "C" { |
| 9307 | #endif |
| 9308 | |
| 9309 | _LT_EOF |
| 9310 | # Now generate the symbol file. |
| 9311 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
| 9312 | |
| 9313 | cat <<_LT_EOF >> conftest.$ac_ext |
| 9314 | |
| 9315 | /* The mapping between symbol names and symbols. */ |
| 9316 | const struct { |
| 9317 | const char *name; |
| 9318 | void *address; |
| 9319 | } |
| 9320 | lt__PROGRAM__LTX_preloaded_symbols[] = |
| 9321 | { |
| 9322 | { "@PROGRAM@", (void *) 0 }, |
| 9323 | _LT_EOF |
| 9324 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
| 9325 | cat <<\_LT_EOF >> conftest.$ac_ext |
| 9326 | {0, (void *) 0} |
| 9327 | }; |
| 9328 | |
| 9329 | /* This works around a problem in FreeBSD linker */ |
| 9330 | #ifdef FREEBSD_WORKAROUND |
| 9331 | static const void *lt_preloaded_setup() { |
| 9332 | return lt__PROGRAM__LTX_preloaded_symbols; |
| 9333 | } |
| 9334 | #endif |
| 9335 | |
| 9336 | #ifdef __cplusplus |
| 9337 | } |
| 9338 | #endif |
| 9339 | _LT_EOF |
| 9340 | # Now try linking the two files. |
| 9341 | mv conftest.$ac_objext conftstm.$ac_objext |
| 9342 | lt_save_LIBS="$LIBS" |
| 9343 | lt_save_CFLAGS="$CFLAGS" |
| 9344 | LIBS="conftstm.$ac_objext" |
| 9345 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9346 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9347 | (eval $ac_link) 2>&5 |
| 9348 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9349 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 9350 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9351 | pipe_works=yes |
| 9352 | fi |
| 9353 | LIBS="$lt_save_LIBS" |
| 9354 | CFLAGS="$lt_save_CFLAGS" |
| 9355 | else |
| 9356 | echo "cannot find nm_test_func in $nlist" >&5 |
| 9357 | fi |
| 9358 | else |
| 9359 | echo "cannot find nm_test_var in $nlist" >&5 |
| 9360 | fi |
| 9361 | else |
| 9362 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 9363 | fi |
| 9364 | else |
| 9365 | echo "$progname: failed program was:" >&5 |
| 9366 | cat conftest.$ac_ext >&5 |
| 9367 | fi |
| 9368 | rm -rf conftest* conftst* |
| 9369 | |
| 9370 | # Do not use the global_symbol_pipe unless it works. |
| 9371 | if test "$pipe_works" = yes; then |
| 9372 | break |
| 9373 | else |
| 9374 | lt_cv_sys_global_symbol_pipe= |
| 9375 | fi |
| 9376 | done |
| 9377 | |
| 9378 | fi |
| 9379 | |
| 9380 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 9381 | lt_cv_sys_global_symbol_to_cdecl= |
| 9382 | fi |
| 9383 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9385 | $as_echo "failed" >&6; } |
| 9386 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9388 | $as_echo "ok" >&6; } |
| 9389 | fi |
| 9390 | |
| 9391 | |
| 9392 | |
| 9393 | |
| 9394 | |
| 9395 | |
| 9396 | |
| 9397 | |
| 9398 | |
| 9399 | |
| 9400 | |
| 9401 | |
| 9402 | |
| 9403 | |
| 9404 | |
| 9405 | |
| 9406 | |
| 9407 | |
| 9408 | |
| 9409 | |
| 9410 | |
| 9411 | |
| 9412 | # Check whether --enable-libtool-lock was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9413 | if test "${enable_libtool_lock+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9414 | enableval=$enable_libtool_lock; |
| 9415 | fi |
| 9416 | |
| 9417 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 9418 | |
| 9419 | # Some flags need to be propagated to the compiler or linker for good |
| 9420 | # libtool support. |
| 9421 | case $host in |
| 9422 | ia64-*-hpux*) |
| 9423 | # Find out which ABI we are using. |
| 9424 | echo 'int i;' > conftest.$ac_ext |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9425 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9426 | (eval $ac_compile) 2>&5 |
| 9427 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9428 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 9429 | test $ac_status = 0; }; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9430 | case `/usr/bin/file conftest.$ac_objext` in |
| 9431 | *ELF-32*) |
| 9432 | HPUX_IA64_MODE="32" |
| 9433 | ;; |
| 9434 | *ELF-64*) |
| 9435 | HPUX_IA64_MODE="64" |
| 9436 | ;; |
| 9437 | esac |
| 9438 | fi |
| 9439 | rm -rf conftest* |
| 9440 | ;; |
| 9441 | *-*-irix6*) |
| 9442 | # Find out which ABI we are using. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9443 | echo '#line 9443 "configure"' > conftest.$ac_ext |
| 9444 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9445 | (eval $ac_compile) 2>&5 |
| 9446 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9447 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 9448 | test $ac_status = 0; }; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9449 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 9450 | case `/usr/bin/file conftest.$ac_objext` in |
| 9451 | *32-bit*) |
| 9452 | LD="${LD-ld} -melf32bsmip" |
| 9453 | ;; |
| 9454 | *N32*) |
| 9455 | LD="${LD-ld} -melf32bmipn32" |
| 9456 | ;; |
| 9457 | *64-bit*) |
| 9458 | LD="${LD-ld} -melf64bmip" |
| 9459 | ;; |
| 9460 | esac |
| 9461 | else |
| 9462 | case `/usr/bin/file conftest.$ac_objext` in |
| 9463 | *32-bit*) |
| 9464 | LD="${LD-ld} -32" |
| 9465 | ;; |
| 9466 | *N32*) |
| 9467 | LD="${LD-ld} -n32" |
| 9468 | ;; |
| 9469 | *64-bit*) |
| 9470 | LD="${LD-ld} -64" |
| 9471 | ;; |
| 9472 | esac |
| 9473 | fi |
| 9474 | fi |
| 9475 | rm -rf conftest* |
| 9476 | ;; |
| 9477 | |
| 9478 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
| 9479 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
| 9480 | # Find out which ABI we are using. |
| 9481 | echo 'int i;' > conftest.$ac_ext |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9482 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9483 | (eval $ac_compile) 2>&5 |
| 9484 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9485 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 9486 | test $ac_status = 0; }; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9487 | case `/usr/bin/file conftest.o` in |
| 9488 | *32-bit*) |
| 9489 | case $host in |
| 9490 | x86_64-*kfreebsd*-gnu) |
| 9491 | LD="${LD-ld} -m elf_i386_fbsd" |
| 9492 | ;; |
| 9493 | x86_64-*linux*) |
| 9494 | LD="${LD-ld} -m elf_i386" |
| 9495 | ;; |
| 9496 | ppc64-*linux*|powerpc64-*linux*) |
| 9497 | LD="${LD-ld} -m elf32ppclinux" |
| 9498 | ;; |
| 9499 | s390x-*linux*) |
| 9500 | LD="${LD-ld} -m elf_s390" |
| 9501 | ;; |
| 9502 | sparc64-*linux*) |
| 9503 | LD="${LD-ld} -m elf32_sparc" |
| 9504 | ;; |
| 9505 | esac |
| 9506 | ;; |
| 9507 | *64-bit*) |
| 9508 | case $host in |
| 9509 | x86_64-*kfreebsd*-gnu) |
| 9510 | LD="${LD-ld} -m elf_x86_64_fbsd" |
| 9511 | ;; |
| 9512 | x86_64-*linux*) |
| 9513 | LD="${LD-ld} -m elf_x86_64" |
| 9514 | ;; |
| 9515 | ppc*-*linux*|powerpc*-*linux*) |
| 9516 | LD="${LD-ld} -m elf64ppc" |
| 9517 | ;; |
| 9518 | s390*-*linux*|s390*-*tpf*) |
| 9519 | LD="${LD-ld} -m elf64_s390" |
| 9520 | ;; |
| 9521 | sparc*-*linux*) |
| 9522 | LD="${LD-ld} -m elf64_sparc" |
| 9523 | ;; |
| 9524 | esac |
| 9525 | ;; |
| 9526 | esac |
| 9527 | fi |
| 9528 | rm -rf conftest* |
| 9529 | ;; |
| 9530 | |
| 9531 | *-*-sco3.2v5*) |
| 9532 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 9533 | SAVE_CFLAGS="$CFLAGS" |
| 9534 | CFLAGS="$CFLAGS -belf" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9535 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9536 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9537 | if test "${lt_cv_cc_needs_belf+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9538 | $as_echo_n "(cached) " >&6 |
| 9539 | else |
| 9540 | ac_ext=c |
| 9541 | ac_cpp='$CPP $CPPFLAGS' |
| 9542 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9543 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9544 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9545 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9546 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9547 | /* end confdefs.h. */ |
| 9548 | |
| 9549 | int |
| 9550 | main () |
| 9551 | { |
| 9552 | |
| 9553 | ; |
| 9554 | return 0; |
| 9555 | } |
| 9556 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9557 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9558 | lt_cv_cc_needs_belf=yes |
| 9559 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9560 | lt_cv_cc_needs_belf=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9561 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9562 | rm -f core conftest.err conftest.$ac_objext \ |
| 9563 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9564 | ac_ext=c |
| 9565 | ac_cpp='$CPP $CPPFLAGS' |
| 9566 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9567 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9568 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9569 | |
| 9570 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9572 | $as_echo "$lt_cv_cc_needs_belf" >&6; } |
| 9573 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 9574 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 9575 | CFLAGS="$SAVE_CFLAGS" |
| 9576 | fi |
| 9577 | ;; |
| 9578 | sparc*-*solaris*) |
| 9579 | # Find out which ABI we are using. |
| 9580 | echo 'int i;' > conftest.$ac_ext |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9581 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9582 | (eval $ac_compile) 2>&5 |
| 9583 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9584 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 9585 | test $ac_status = 0; }; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9586 | case `/usr/bin/file conftest.o` in |
| 9587 | *64-bit*) |
| 9588 | case $lt_cv_prog_gnu_ld in |
| 9589 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
| 9590 | *) |
| 9591 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
| 9592 | LD="${LD-ld} -64" |
| 9593 | fi |
| 9594 | ;; |
| 9595 | esac |
| 9596 | ;; |
| 9597 | esac |
| 9598 | fi |
| 9599 | rm -rf conftest* |
| 9600 | ;; |
| 9601 | esac |
| 9602 | |
| 9603 | need_locks="$enable_libtool_lock" |
| 9604 | |
| 9605 | |
| 9606 | case $host_os in |
| 9607 | rhapsody* | darwin*) |
| 9608 | if test -n "$ac_tool_prefix"; then |
| 9609 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. |
| 9610 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9612 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9613 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9614 | $as_echo_n "(cached) " >&6 |
| 9615 | else |
| 9616 | if test -n "$DSYMUTIL"; then |
| 9617 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. |
| 9618 | else |
| 9619 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9620 | for as_dir in $PATH |
| 9621 | do |
| 9622 | IFS=$as_save_IFS |
| 9623 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9624 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9625 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 9626 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9627 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9628 | break 2 |
| 9629 | fi |
| 9630 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9631 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9632 | IFS=$as_save_IFS |
| 9633 | |
| 9634 | fi |
| 9635 | fi |
| 9636 | DSYMUTIL=$ac_cv_prog_DSYMUTIL |
| 9637 | if test -n "$DSYMUTIL"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9639 | $as_echo "$DSYMUTIL" >&6; } |
| 9640 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9642 | $as_echo "no" >&6; } |
| 9643 | fi |
| 9644 | |
| 9645 | |
| 9646 | fi |
| 9647 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
| 9648 | ac_ct_DSYMUTIL=$DSYMUTIL |
| 9649 | # Extract the first word of "dsymutil", so it can be a program name with args. |
| 9650 | set dummy dsymutil; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9652 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9653 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9654 | $as_echo_n "(cached) " >&6 |
| 9655 | else |
| 9656 | if test -n "$ac_ct_DSYMUTIL"; then |
| 9657 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. |
| 9658 | else |
| 9659 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9660 | for as_dir in $PATH |
| 9661 | do |
| 9662 | IFS=$as_save_IFS |
| 9663 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9664 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9665 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 9666 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9667 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9668 | break 2 |
| 9669 | fi |
| 9670 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9671 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9672 | IFS=$as_save_IFS |
| 9673 | |
| 9674 | fi |
| 9675 | fi |
| 9676 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
| 9677 | if test -n "$ac_ct_DSYMUTIL"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9679 | $as_echo "$ac_ct_DSYMUTIL" >&6; } |
| 9680 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9682 | $as_echo "no" >&6; } |
| 9683 | fi |
| 9684 | |
| 9685 | if test "x$ac_ct_DSYMUTIL" = x; then |
| 9686 | DSYMUTIL=":" |
| 9687 | else |
| 9688 | case $cross_compiling:$ac_tool_warned in |
| 9689 | yes:) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9690 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9691 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9692 | ac_tool_warned=yes ;; |
| 9693 | esac |
| 9694 | DSYMUTIL=$ac_ct_DSYMUTIL |
| 9695 | fi |
| 9696 | else |
| 9697 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
| 9698 | fi |
| 9699 | |
| 9700 | if test -n "$ac_tool_prefix"; then |
| 9701 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
| 9702 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9704 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9705 | if test "${ac_cv_prog_NMEDIT+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9706 | $as_echo_n "(cached) " >&6 |
| 9707 | else |
| 9708 | if test -n "$NMEDIT"; then |
| 9709 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. |
| 9710 | else |
| 9711 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9712 | for as_dir in $PATH |
| 9713 | do |
| 9714 | IFS=$as_save_IFS |
| 9715 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9716 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9717 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 9718 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9719 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9720 | break 2 |
| 9721 | fi |
| 9722 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9723 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9724 | IFS=$as_save_IFS |
| 9725 | |
| 9726 | fi |
| 9727 | fi |
| 9728 | NMEDIT=$ac_cv_prog_NMEDIT |
| 9729 | if test -n "$NMEDIT"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9731 | $as_echo "$NMEDIT" >&6; } |
| 9732 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9734 | $as_echo "no" >&6; } |
| 9735 | fi |
| 9736 | |
| 9737 | |
| 9738 | fi |
| 9739 | if test -z "$ac_cv_prog_NMEDIT"; then |
| 9740 | ac_ct_NMEDIT=$NMEDIT |
| 9741 | # Extract the first word of "nmedit", so it can be a program name with args. |
| 9742 | set dummy nmedit; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9744 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9745 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9746 | $as_echo_n "(cached) " >&6 |
| 9747 | else |
| 9748 | if test -n "$ac_ct_NMEDIT"; then |
| 9749 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. |
| 9750 | else |
| 9751 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9752 | for as_dir in $PATH |
| 9753 | do |
| 9754 | IFS=$as_save_IFS |
| 9755 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9756 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9757 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 9758 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9759 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9760 | break 2 |
| 9761 | fi |
| 9762 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9763 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9764 | IFS=$as_save_IFS |
| 9765 | |
| 9766 | fi |
| 9767 | fi |
| 9768 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
| 9769 | if test -n "$ac_ct_NMEDIT"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9771 | $as_echo "$ac_ct_NMEDIT" >&6; } |
| 9772 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9774 | $as_echo "no" >&6; } |
| 9775 | fi |
| 9776 | |
| 9777 | if test "x$ac_ct_NMEDIT" = x; then |
| 9778 | NMEDIT=":" |
| 9779 | else |
| 9780 | case $cross_compiling:$ac_tool_warned in |
| 9781 | yes:) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9782 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9783 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9784 | ac_tool_warned=yes ;; |
| 9785 | esac |
| 9786 | NMEDIT=$ac_ct_NMEDIT |
| 9787 | fi |
| 9788 | else |
| 9789 | NMEDIT="$ac_cv_prog_NMEDIT" |
| 9790 | fi |
| 9791 | |
| 9792 | if test -n "$ac_tool_prefix"; then |
| 9793 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
| 9794 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9796 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9797 | if test "${ac_cv_prog_LIPO+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9798 | $as_echo_n "(cached) " >&6 |
| 9799 | else |
| 9800 | if test -n "$LIPO"; then |
| 9801 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. |
| 9802 | else |
| 9803 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9804 | for as_dir in $PATH |
| 9805 | do |
| 9806 | IFS=$as_save_IFS |
| 9807 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9808 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9809 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 9810 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9811 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9812 | break 2 |
| 9813 | fi |
| 9814 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9815 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9816 | IFS=$as_save_IFS |
| 9817 | |
| 9818 | fi |
| 9819 | fi |
| 9820 | LIPO=$ac_cv_prog_LIPO |
| 9821 | if test -n "$LIPO"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9823 | $as_echo "$LIPO" >&6; } |
| 9824 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9826 | $as_echo "no" >&6; } |
| 9827 | fi |
| 9828 | |
| 9829 | |
| 9830 | fi |
| 9831 | if test -z "$ac_cv_prog_LIPO"; then |
| 9832 | ac_ct_LIPO=$LIPO |
| 9833 | # Extract the first word of "lipo", so it can be a program name with args. |
| 9834 | set dummy lipo; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9836 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9837 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9838 | $as_echo_n "(cached) " >&6 |
| 9839 | else |
| 9840 | if test -n "$ac_ct_LIPO"; then |
| 9841 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. |
| 9842 | else |
| 9843 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9844 | for as_dir in $PATH |
| 9845 | do |
| 9846 | IFS=$as_save_IFS |
| 9847 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9848 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9849 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 9850 | ac_cv_prog_ac_ct_LIPO="lipo" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9851 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9852 | break 2 |
| 9853 | fi |
| 9854 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9855 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9856 | IFS=$as_save_IFS |
| 9857 | |
| 9858 | fi |
| 9859 | fi |
| 9860 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
| 9861 | if test -n "$ac_ct_LIPO"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9863 | $as_echo "$ac_ct_LIPO" >&6; } |
| 9864 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9866 | $as_echo "no" >&6; } |
| 9867 | fi |
| 9868 | |
| 9869 | if test "x$ac_ct_LIPO" = x; then |
| 9870 | LIPO=":" |
| 9871 | else |
| 9872 | case $cross_compiling:$ac_tool_warned in |
| 9873 | yes:) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9874 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9875 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9876 | ac_tool_warned=yes ;; |
| 9877 | esac |
| 9878 | LIPO=$ac_ct_LIPO |
| 9879 | fi |
| 9880 | else |
| 9881 | LIPO="$ac_cv_prog_LIPO" |
| 9882 | fi |
| 9883 | |
| 9884 | if test -n "$ac_tool_prefix"; then |
| 9885 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
| 9886 | set dummy ${ac_tool_prefix}otool; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9888 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9889 | if test "${ac_cv_prog_OTOOL+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9890 | $as_echo_n "(cached) " >&6 |
| 9891 | else |
| 9892 | if test -n "$OTOOL"; then |
| 9893 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. |
| 9894 | else |
| 9895 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9896 | for as_dir in $PATH |
| 9897 | do |
| 9898 | IFS=$as_save_IFS |
| 9899 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9900 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9901 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 9902 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9903 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9904 | break 2 |
| 9905 | fi |
| 9906 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9907 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9908 | IFS=$as_save_IFS |
| 9909 | |
| 9910 | fi |
| 9911 | fi |
| 9912 | OTOOL=$ac_cv_prog_OTOOL |
| 9913 | if test -n "$OTOOL"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9915 | $as_echo "$OTOOL" >&6; } |
| 9916 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9918 | $as_echo "no" >&6; } |
| 9919 | fi |
| 9920 | |
| 9921 | |
| 9922 | fi |
| 9923 | if test -z "$ac_cv_prog_OTOOL"; then |
| 9924 | ac_ct_OTOOL=$OTOOL |
| 9925 | # Extract the first word of "otool", so it can be a program name with args. |
| 9926 | set dummy otool; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9928 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9929 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9930 | $as_echo_n "(cached) " >&6 |
| 9931 | else |
| 9932 | if test -n "$ac_ct_OTOOL"; then |
| 9933 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. |
| 9934 | else |
| 9935 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9936 | for as_dir in $PATH |
| 9937 | do |
| 9938 | IFS=$as_save_IFS |
| 9939 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9940 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9941 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 9942 | ac_cv_prog_ac_ct_OTOOL="otool" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9943 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9944 | break 2 |
| 9945 | fi |
| 9946 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9947 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9948 | IFS=$as_save_IFS |
| 9949 | |
| 9950 | fi |
| 9951 | fi |
| 9952 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
| 9953 | if test -n "$ac_ct_OTOOL"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9955 | $as_echo "$ac_ct_OTOOL" >&6; } |
| 9956 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9958 | $as_echo "no" >&6; } |
| 9959 | fi |
| 9960 | |
| 9961 | if test "x$ac_ct_OTOOL" = x; then |
| 9962 | OTOOL=":" |
| 9963 | else |
| 9964 | case $cross_compiling:$ac_tool_warned in |
| 9965 | yes:) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9966 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9967 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9968 | ac_tool_warned=yes ;; |
| 9969 | esac |
| 9970 | OTOOL=$ac_ct_OTOOL |
| 9971 | fi |
| 9972 | else |
| 9973 | OTOOL="$ac_cv_prog_OTOOL" |
| 9974 | fi |
| 9975 | |
| 9976 | if test -n "$ac_tool_prefix"; then |
| 9977 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
| 9978 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9980 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9981 | if test "${ac_cv_prog_OTOOL64+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9982 | $as_echo_n "(cached) " >&6 |
| 9983 | else |
| 9984 | if test -n "$OTOOL64"; then |
| 9985 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. |
| 9986 | else |
| 9987 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9988 | for as_dir in $PATH |
| 9989 | do |
| 9990 | IFS=$as_save_IFS |
| 9991 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9992 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9993 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 9994 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9995 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9996 | break 2 |
| 9997 | fi |
| 9998 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 9999 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10000 | IFS=$as_save_IFS |
| 10001 | |
| 10002 | fi |
| 10003 | fi |
| 10004 | OTOOL64=$ac_cv_prog_OTOOL64 |
| 10005 | if test -n "$OTOOL64"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10007 | $as_echo "$OTOOL64" >&6; } |
| 10008 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10010 | $as_echo "no" >&6; } |
| 10011 | fi |
| 10012 | |
| 10013 | |
| 10014 | fi |
| 10015 | if test -z "$ac_cv_prog_OTOOL64"; then |
| 10016 | ac_ct_OTOOL64=$OTOOL64 |
| 10017 | # Extract the first word of "otool64", so it can be a program name with args. |
| 10018 | set dummy otool64; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10020 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10021 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10022 | $as_echo_n "(cached) " >&6 |
| 10023 | else |
| 10024 | if test -n "$ac_ct_OTOOL64"; then |
| 10025 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. |
| 10026 | else |
| 10027 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10028 | for as_dir in $PATH |
| 10029 | do |
| 10030 | IFS=$as_save_IFS |
| 10031 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10032 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10033 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 10034 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10035 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10036 | break 2 |
| 10037 | fi |
| 10038 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10039 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10040 | IFS=$as_save_IFS |
| 10041 | |
| 10042 | fi |
| 10043 | fi |
| 10044 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
| 10045 | if test -n "$ac_ct_OTOOL64"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10047 | $as_echo "$ac_ct_OTOOL64" >&6; } |
| 10048 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10050 | $as_echo "no" >&6; } |
| 10051 | fi |
| 10052 | |
| 10053 | if test "x$ac_ct_OTOOL64" = x; then |
| 10054 | OTOOL64=":" |
| 10055 | else |
| 10056 | case $cross_compiling:$ac_tool_warned in |
| 10057 | yes:) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10058 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10059 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 10060 | ac_tool_warned=yes ;; |
| 10061 | esac |
| 10062 | OTOOL64=$ac_ct_OTOOL64 |
| 10063 | fi |
| 10064 | else |
| 10065 | OTOOL64="$ac_cv_prog_OTOOL64" |
| 10066 | fi |
| 10067 | |
| 10068 | |
| 10069 | |
| 10070 | |
| 10071 | |
| 10072 | |
| 10073 | |
| 10074 | |
| 10075 | |
| 10076 | |
| 10077 | |
| 10078 | |
| 10079 | |
| 10080 | |
| 10081 | |
| 10082 | |
| 10083 | |
| 10084 | |
| 10085 | |
| 10086 | |
| 10087 | |
| 10088 | |
| 10089 | |
| 10090 | |
| 10091 | |
| 10092 | |
| 10093 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10095 | $as_echo_n "checking for -single_module linker flag... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10096 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10097 | $as_echo_n "(cached) " >&6 |
| 10098 | else |
| 10099 | lt_cv_apple_cc_single_mod=no |
| 10100 | if test -z "${LT_MULTI_MODULE}"; then |
| 10101 | # By default we will add the -single_module flag. You can override |
| 10102 | # by either setting the environment variable LT_MULTI_MODULE |
| 10103 | # non-empty at configure time, or by adding -multi_module to the |
| 10104 | # link flags. |
| 10105 | rm -rf libconftest.dylib* |
| 10106 | echo "int foo(void){return 1;}" > conftest.c |
| 10107 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 10108 | -dynamiclib -Wl,-single_module conftest.c" >&5 |
| 10109 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 10110 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
| 10111 | _lt_result=$? |
| 10112 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then |
| 10113 | lt_cv_apple_cc_single_mod=yes |
| 10114 | else |
| 10115 | cat conftest.err >&5 |
| 10116 | fi |
| 10117 | rm -rf libconftest.dylib* |
| 10118 | rm -f conftest.* |
| 10119 | fi |
| 10120 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10122 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10124 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10125 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10126 | $as_echo_n "(cached) " >&6 |
| 10127 | else |
| 10128 | lt_cv_ld_exported_symbols_list=no |
| 10129 | save_LDFLAGS=$LDFLAGS |
| 10130 | echo "_main" > conftest.sym |
| 10131 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10132 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10133 | /* end confdefs.h. */ |
| 10134 | |
| 10135 | int |
| 10136 | main () |
| 10137 | { |
| 10138 | |
| 10139 | ; |
| 10140 | return 0; |
| 10141 | } |
| 10142 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10143 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10144 | lt_cv_ld_exported_symbols_list=yes |
| 10145 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10146 | lt_cv_ld_exported_symbols_list=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10147 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10148 | rm -f core conftest.err conftest.$ac_objext \ |
| 10149 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10150 | LDFLAGS="$save_LDFLAGS" |
| 10151 | |
| 10152 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10154 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
| 10155 | case $host_os in |
| 10156 | rhapsody* | darwin1.[012]) |
| 10157 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
| 10158 | darwin1.*) |
| 10159 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 10160 | darwin*) # darwin 5.x on |
| 10161 | # if running on 10.5 or later, the deployment target defaults |
| 10162 | # to the OS version, if on x86, and 10.4, the deployment |
| 10163 | # target defaults to 10.4. Don't you love it? |
| 10164 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
| 10165 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
| 10166 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 10167 | 10.[012]*) |
| 10168 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 10169 | 10.*) |
| 10170 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 10171 | esac |
| 10172 | ;; |
| 10173 | esac |
| 10174 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then |
| 10175 | _lt_dar_single_mod='$single_module' |
| 10176 | fi |
| 10177 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then |
| 10178 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' |
| 10179 | else |
| 10180 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 10181 | fi |
| 10182 | if test "$DSYMUTIL" != ":"; then |
| 10183 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
| 10184 | else |
| 10185 | _lt_dsymutil= |
| 10186 | fi |
| 10187 | ;; |
| 10188 | esac |
| 10189 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10190 | for ac_header in dlfcn.h |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10191 | do : |
| 10192 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default |
| 10193 | " |
| 10194 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10195 | cat >>confdefs.h <<_ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10196 | #define HAVE_DLFCN_H 1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10197 | _ACEOF |
| 10198 | |
| 10199 | fi |
| 10200 | |
| 10201 | done |
| 10202 | |
| 10203 | |
| 10204 | |
| 10205 | ac_ext=cpp |
| 10206 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 10207 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10208 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10209 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 10210 | if test -z "$CXX"; then |
| 10211 | if test -n "$CCC"; then |
| 10212 | CXX=$CCC |
| 10213 | else |
| 10214 | if test -n "$ac_tool_prefix"; then |
| 10215 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 10216 | do |
| 10217 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 10218 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10220 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10221 | if test "${ac_cv_prog_CXX+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10222 | $as_echo_n "(cached) " >&6 |
| 10223 | else |
| 10224 | if test -n "$CXX"; then |
| 10225 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 10226 | else |
| 10227 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10228 | for as_dir in $PATH |
| 10229 | do |
| 10230 | IFS=$as_save_IFS |
| 10231 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10232 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10233 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 10234 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10235 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10236 | break 2 |
| 10237 | fi |
| 10238 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10239 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10240 | IFS=$as_save_IFS |
| 10241 | |
| 10242 | fi |
| 10243 | fi |
| 10244 | CXX=$ac_cv_prog_CXX |
| 10245 | if test -n "$CXX"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10247 | $as_echo "$CXX" >&6; } |
| 10248 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10250 | $as_echo "no" >&6; } |
| 10251 | fi |
| 10252 | |
| 10253 | |
| 10254 | test -n "$CXX" && break |
| 10255 | done |
| 10256 | fi |
| 10257 | if test -z "$CXX"; then |
| 10258 | ac_ct_CXX=$CXX |
| 10259 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 10260 | do |
| 10261 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 10262 | set dummy $ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10264 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10265 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10266 | $as_echo_n "(cached) " >&6 |
| 10267 | else |
| 10268 | if test -n "$ac_ct_CXX"; then |
| 10269 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 10270 | else |
| 10271 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10272 | for as_dir in $PATH |
| 10273 | do |
| 10274 | IFS=$as_save_IFS |
| 10275 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10276 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10277 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 10278 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10279 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10280 | break 2 |
| 10281 | fi |
| 10282 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10283 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10284 | IFS=$as_save_IFS |
| 10285 | |
| 10286 | fi |
| 10287 | fi |
| 10288 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 10289 | if test -n "$ac_ct_CXX"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10291 | $as_echo "$ac_ct_CXX" >&6; } |
| 10292 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10294 | $as_echo "no" >&6; } |
| 10295 | fi |
| 10296 | |
| 10297 | |
| 10298 | test -n "$ac_ct_CXX" && break |
| 10299 | done |
| 10300 | |
| 10301 | if test "x$ac_ct_CXX" = x; then |
| 10302 | CXX="g++" |
| 10303 | else |
| 10304 | case $cross_compiling:$ac_tool_warned in |
| 10305 | yes:) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10306 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10307 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 10308 | ac_tool_warned=yes ;; |
| 10309 | esac |
| 10310 | CXX=$ac_ct_CXX |
| 10311 | fi |
| 10312 | fi |
| 10313 | |
| 10314 | fi |
| 10315 | fi |
| 10316 | # Provide some information about the compiler. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10317 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10318 | set X $ac_compile |
| 10319 | ac_compiler=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10320 | for ac_option in --version -v -V -qversion; do |
| 10321 | { { ac_try="$ac_compiler $ac_option >&5" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10322 | case "(($ac_try" in |
| 10323 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10324 | *) ac_try_echo=$ac_try;; |
| 10325 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10326 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 10327 | $as_echo "$ac_try_echo"; } >&5 |
| 10328 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10329 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10330 | if test -s conftest.err; then |
| 10331 | sed '10a\ |
| 10332 | ... rest of stderr output deleted ... |
| 10333 | 10q' conftest.err >conftest.er1 |
| 10334 | cat conftest.er1 >&5 |
| 10335 | rm -f conftest.er1 conftest.err |
| 10336 | fi |
| 10337 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 10338 | test $ac_status = 0; } |
| 10339 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10340 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10342 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10343 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10344 | $as_echo_n "(cached) " >&6 |
| 10345 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10346 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10347 | /* end confdefs.h. */ |
| 10348 | |
| 10349 | int |
| 10350 | main () |
| 10351 | { |
| 10352 | #ifndef __GNUC__ |
| 10353 | choke me |
| 10354 | #endif |
| 10355 | |
| 10356 | ; |
| 10357 | return 0; |
| 10358 | } |
| 10359 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10360 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10361 | ac_compiler_gnu=yes |
| 10362 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10363 | ac_compiler_gnu=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10364 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10365 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10366 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 10367 | |
| 10368 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10370 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
| 10371 | if test $ac_compiler_gnu = yes; then |
| 10372 | GXX=yes |
| 10373 | else |
| 10374 | GXX= |
| 10375 | fi |
| 10376 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 10377 | ac_save_CXXFLAGS=$CXXFLAGS |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10379 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10380 | if test "${ac_cv_prog_cxx_g+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10381 | $as_echo_n "(cached) " >&6 |
| 10382 | else |
| 10383 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 10384 | ac_cxx_werror_flag=yes |
| 10385 | ac_cv_prog_cxx_g=no |
| 10386 | CXXFLAGS="-g" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10387 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10388 | /* end confdefs.h. */ |
| 10389 | |
| 10390 | int |
| 10391 | main () |
| 10392 | { |
| 10393 | |
| 10394 | ; |
| 10395 | return 0; |
| 10396 | } |
| 10397 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10398 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10399 | ac_cv_prog_cxx_g=yes |
| 10400 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10401 | CXXFLAGS="" |
| 10402 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10403 | /* end confdefs.h. */ |
| 10404 | |
| 10405 | int |
| 10406 | main () |
| 10407 | { |
| 10408 | |
| 10409 | ; |
| 10410 | return 0; |
| 10411 | } |
| 10412 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10413 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10414 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10415 | else |
| 10416 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10417 | CXXFLAGS="-g" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10418 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10419 | /* end confdefs.h. */ |
| 10420 | |
| 10421 | int |
| 10422 | main () |
| 10423 | { |
| 10424 | |
| 10425 | ; |
| 10426 | return 0; |
| 10427 | } |
| 10428 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10429 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10430 | ac_cv_prog_cxx_g=yes |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10431 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10432 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10433 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10434 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10435 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10436 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10437 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 10438 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10440 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
| 10441 | if test "$ac_test_CXXFLAGS" = set; then |
| 10442 | CXXFLAGS=$ac_save_CXXFLAGS |
| 10443 | elif test $ac_cv_prog_cxx_g = yes; then |
| 10444 | if test "$GXX" = yes; then |
| 10445 | CXXFLAGS="-g -O2" |
| 10446 | else |
| 10447 | CXXFLAGS="-g" |
| 10448 | fi |
| 10449 | else |
| 10450 | if test "$GXX" = yes; then |
| 10451 | CXXFLAGS="-O2" |
| 10452 | else |
| 10453 | CXXFLAGS= |
| 10454 | fi |
| 10455 | fi |
| 10456 | ac_ext=c |
| 10457 | ac_cpp='$CPP $CPPFLAGS' |
| 10458 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10459 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10460 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10461 | |
| 10462 | depcc="$CXX" am_compiler_list= |
| 10463 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10465 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10466 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10467 | $as_echo_n "(cached) " >&6 |
| 10468 | else |
| 10469 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 10470 | # We make a subdir and do the tests there. Otherwise we can end up |
| 10471 | # making bogus files that we don't know about and never remove. For |
| 10472 | # instance it was reported that on HP-UX the gcc test will end up |
| 10473 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 10474 | # in D'. |
| 10475 | mkdir conftest.dir |
| 10476 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 10477 | # using a relative directory. |
| 10478 | cp "$am_depcomp" conftest.dir |
| 10479 | cd conftest.dir |
| 10480 | # We will build objects and dependencies in a subdirectory because |
| 10481 | # it helps to detect inapplicable dependency modes. For instance |
| 10482 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 10483 | # side effect of compilation, but ICC will put the dependencies in |
| 10484 | # the current directory while Tru64 will put them in the object |
| 10485 | # directory. |
| 10486 | mkdir sub |
| 10487 | |
| 10488 | am_cv_CXX_dependencies_compiler_type=none |
| 10489 | if test "$am_compiler_list" = ""; then |
| 10490 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 10491 | fi |
| 10492 | am__universal=false |
| 10493 | case " $depcc " in #( |
| 10494 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 10495 | esac |
| 10496 | |
| 10497 | for depmode in $am_compiler_list; do |
| 10498 | # Setup a source with many dependencies, because some compilers |
| 10499 | # like to wrap large dependency lists on column 80 (with \), and |
| 10500 | # we should not choose a depcomp mode which is confused by this. |
| 10501 | # |
| 10502 | # We need to recreate these files for each test, as the compiler may |
| 10503 | # overwrite some of them when testing with obscure command lines. |
| 10504 | # This happens at least with the AIX C compiler. |
| 10505 | : > sub/conftest.c |
| 10506 | for i in 1 2 3 4 5 6; do |
| 10507 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 10508 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 10509 | # Solaris 8's {/usr,}/bin/sh. |
| 10510 | touch sub/conftst$i.h |
| 10511 | done |
| 10512 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 10513 | |
| 10514 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 10515 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 10516 | # handle `-M -o', and we need to detect this. Also, some Intel |
| 10517 | # versions had trouble with output in subdirs |
| 10518 | am__obj=sub/conftest.${OBJEXT-o} |
| 10519 | am__minus_obj="-o $am__obj" |
| 10520 | case $depmode in |
| 10521 | gcc) |
| 10522 | # This depmode causes a compiler race in universal mode. |
| 10523 | test "$am__universal" = false || continue |
| 10524 | ;; |
| 10525 | nosideeffect) |
| 10526 | # after this tag, mechanisms are not by side-effect, so they'll |
| 10527 | # only be used when explicitly requested |
| 10528 | if test "x$enable_dependency_tracking" = xyes; then |
| 10529 | continue |
| 10530 | else |
| 10531 | break |
| 10532 | fi |
| 10533 | ;; |
| 10534 | msvisualcpp | msvcmsys) |
| 10535 | # This compiler won't grok `-c -o', but also, the minuso test has |
| 10536 | # not run yet. These depmodes are late enough in the game, and |
| 10537 | # so weak that their functioning should not be impacted. |
| 10538 | am__obj=conftest.${OBJEXT-o} |
| 10539 | am__minus_obj= |
| 10540 | ;; |
| 10541 | none) break ;; |
| 10542 | esac |
| 10543 | if depmode=$depmode \ |
| 10544 | source=sub/conftest.c object=$am__obj \ |
| 10545 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 10546 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 10547 | >/dev/null 2>conftest.err && |
| 10548 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 10549 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 10550 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 10551 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 10552 | # icc doesn't choke on unknown options, it will just issue warnings |
| 10553 | # or remarks (even with -Werror). So we grep stderr for any message |
| 10554 | # that says an option was ignored or not supported. |
| 10555 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 10556 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 10557 | # The diagnosis changed in icc 8.0: |
| 10558 | # icc: Command line remark: option '-MP' not supported |
| 10559 | if (grep 'ignoring option' conftest.err || |
| 10560 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 10561 | am_cv_CXX_dependencies_compiler_type=$depmode |
| 10562 | break |
| 10563 | fi |
| 10564 | fi |
| 10565 | done |
| 10566 | |
| 10567 | cd .. |
| 10568 | rm -rf conftest.dir |
| 10569 | else |
| 10570 | am_cv_CXX_dependencies_compiler_type=none |
| 10571 | fi |
| 10572 | |
| 10573 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10575 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } |
| 10576 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| 10577 | |
| 10578 | if |
| 10579 | test "x$enable_dependency_tracking" != xno \ |
| 10580 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| 10581 | am__fastdepCXX_TRUE= |
| 10582 | am__fastdepCXX_FALSE='#' |
| 10583 | else |
| 10584 | am__fastdepCXX_TRUE='#' |
| 10585 | am__fastdepCXX_FALSE= |
| 10586 | fi |
| 10587 | |
| 10588 | |
| 10589 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 10590 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 10591 | (test "X$CXX" != "Xg++"))) ; then |
| 10592 | ac_ext=cpp |
| 10593 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 10594 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10595 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10596 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10598 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } |
| 10599 | if test -z "$CXXCPP"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10600 | if test "${ac_cv_prog_CXXCPP+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10601 | $as_echo_n "(cached) " >&6 |
| 10602 | else |
| 10603 | # Double quotes because CXXCPP needs to be expanded |
| 10604 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 10605 | do |
| 10606 | ac_preproc_ok=false |
| 10607 | for ac_cxx_preproc_warn_flag in '' yes |
| 10608 | do |
| 10609 | # Use a header file that comes with gcc, so configuring glibc |
| 10610 | # with a fresh cross-compiler works. |
| 10611 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10612 | # <limits.h> exists even on freestanding compilers. |
| 10613 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 10614 | # not just through cpp. "Syntax error" is here to catch this case. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10615 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10616 | /* end confdefs.h. */ |
| 10617 | #ifdef __STDC__ |
| 10618 | # include <limits.h> |
| 10619 | #else |
| 10620 | # include <assert.h> |
| 10621 | #endif |
| 10622 | Syntax error |
| 10623 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10624 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10625 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10626 | else |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10627 | # Broken: fails on valid input. |
| 10628 | continue |
| 10629 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10630 | rm -f conftest.err conftest.$ac_ext |
| 10631 | |
| 10632 | # OK, works on sane cases. Now check whether nonexistent headers |
| 10633 | # can be detected and how. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10634 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10635 | /* end confdefs.h. */ |
| 10636 | #include <ac_nonexistent.h> |
| 10637 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10638 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10639 | # Broken: success on invalid input. |
| 10640 | continue |
| 10641 | else |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10642 | # Passes both tests. |
| 10643 | ac_preproc_ok=: |
| 10644 | break |
| 10645 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10646 | rm -f conftest.err conftest.$ac_ext |
| 10647 | |
| 10648 | done |
| 10649 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 10650 | rm -f conftest.err conftest.$ac_ext |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10651 | if $ac_preproc_ok; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10652 | break |
| 10653 | fi |
| 10654 | |
| 10655 | done |
| 10656 | ac_cv_prog_CXXCPP=$CXXCPP |
| 10657 | |
| 10658 | fi |
| 10659 | CXXCPP=$ac_cv_prog_CXXCPP |
| 10660 | else |
| 10661 | ac_cv_prog_CXXCPP=$CXXCPP |
| 10662 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10664 | $as_echo "$CXXCPP" >&6; } |
| 10665 | ac_preproc_ok=false |
| 10666 | for ac_cxx_preproc_warn_flag in '' yes |
| 10667 | do |
| 10668 | # Use a header file that comes with gcc, so configuring glibc |
| 10669 | # with a fresh cross-compiler works. |
| 10670 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10671 | # <limits.h> exists even on freestanding compilers. |
| 10672 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 10673 | # not just through cpp. "Syntax error" is here to catch this case. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10674 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10675 | /* end confdefs.h. */ |
| 10676 | #ifdef __STDC__ |
| 10677 | # include <limits.h> |
| 10678 | #else |
| 10679 | # include <assert.h> |
| 10680 | #endif |
| 10681 | Syntax error |
| 10682 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10683 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10684 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10685 | else |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10686 | # Broken: fails on valid input. |
| 10687 | continue |
| 10688 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10689 | rm -f conftest.err conftest.$ac_ext |
| 10690 | |
| 10691 | # OK, works on sane cases. Now check whether nonexistent headers |
| 10692 | # can be detected and how. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10693 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10694 | /* end confdefs.h. */ |
| 10695 | #include <ac_nonexistent.h> |
| 10696 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10697 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10698 | # Broken: success on invalid input. |
| 10699 | continue |
| 10700 | else |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10701 | # Passes both tests. |
| 10702 | ac_preproc_ok=: |
| 10703 | break |
| 10704 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10705 | rm -f conftest.err conftest.$ac_ext |
| 10706 | |
| 10707 | done |
| 10708 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 10709 | rm -f conftest.err conftest.$ac_ext |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10710 | if $ac_preproc_ok; then : |
| 10711 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10712 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10713 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10714 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 10715 | _lt_caught_CXX_error=yes; } |
| 10716 | fi |
| 10717 | |
| 10718 | ac_ext=c |
| 10719 | ac_cpp='$CPP $CPPFLAGS' |
| 10720 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10721 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10722 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10723 | |
| 10724 | else |
| 10725 | _lt_caught_CXX_error=yes |
| 10726 | fi |
| 10727 | |
| 10728 | |
| 10729 | |
| 10730 | |
| 10731 | |
| 10732 | # Set options |
| 10733 | enable_win32_dll=yes |
| 10734 | |
| 10735 | case $host in |
| 10736 | *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*) |
| 10737 | if test -n "$ac_tool_prefix"; then |
| 10738 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. |
| 10739 | set dummy ${ac_tool_prefix}as; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10741 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10742 | if test "${ac_cv_prog_AS+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10743 | $as_echo_n "(cached) " >&6 |
| 10744 | else |
| 10745 | if test -n "$AS"; then |
| 10746 | ac_cv_prog_AS="$AS" # Let the user override the test. |
| 10747 | else |
| 10748 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10749 | for as_dir in $PATH |
| 10750 | do |
| 10751 | IFS=$as_save_IFS |
| 10752 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10753 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10754 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 10755 | ac_cv_prog_AS="${ac_tool_prefix}as" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10756 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10757 | break 2 |
| 10758 | fi |
| 10759 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10760 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10761 | IFS=$as_save_IFS |
| 10762 | |
| 10763 | fi |
| 10764 | fi |
| 10765 | AS=$ac_cv_prog_AS |
| 10766 | if test -n "$AS"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10768 | $as_echo "$AS" >&6; } |
| 10769 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10771 | $as_echo "no" >&6; } |
| 10772 | fi |
| 10773 | |
| 10774 | |
| 10775 | fi |
| 10776 | if test -z "$ac_cv_prog_AS"; then |
| 10777 | ac_ct_AS=$AS |
| 10778 | # Extract the first word of "as", so it can be a program name with args. |
| 10779 | set dummy as; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10781 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10782 | if test "${ac_cv_prog_ac_ct_AS+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10783 | $as_echo_n "(cached) " >&6 |
| 10784 | else |
| 10785 | if test -n "$ac_ct_AS"; then |
| 10786 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. |
| 10787 | else |
| 10788 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10789 | for as_dir in $PATH |
| 10790 | do |
| 10791 | IFS=$as_save_IFS |
| 10792 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10793 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10794 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 10795 | ac_cv_prog_ac_ct_AS="as" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10796 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10797 | break 2 |
| 10798 | fi |
| 10799 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10800 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10801 | IFS=$as_save_IFS |
| 10802 | |
| 10803 | fi |
| 10804 | fi |
| 10805 | ac_ct_AS=$ac_cv_prog_ac_ct_AS |
| 10806 | if test -n "$ac_ct_AS"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10808 | $as_echo "$ac_ct_AS" >&6; } |
| 10809 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10811 | $as_echo "no" >&6; } |
| 10812 | fi |
| 10813 | |
| 10814 | if test "x$ac_ct_AS" = x; then |
| 10815 | AS="false" |
| 10816 | else |
| 10817 | case $cross_compiling:$ac_tool_warned in |
| 10818 | yes:) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10819 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10820 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 10821 | ac_tool_warned=yes ;; |
| 10822 | esac |
| 10823 | AS=$ac_ct_AS |
| 10824 | fi |
| 10825 | else |
| 10826 | AS="$ac_cv_prog_AS" |
| 10827 | fi |
| 10828 | |
| 10829 | if test -n "$ac_tool_prefix"; then |
| 10830 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| 10831 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10833 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10834 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10835 | $as_echo_n "(cached) " >&6 |
| 10836 | else |
| 10837 | if test -n "$DLLTOOL"; then |
| 10838 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 10839 | else |
| 10840 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10841 | for as_dir in $PATH |
| 10842 | do |
| 10843 | IFS=$as_save_IFS |
| 10844 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10845 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10846 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 10847 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10848 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10849 | break 2 |
| 10850 | fi |
| 10851 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10852 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10853 | IFS=$as_save_IFS |
| 10854 | |
| 10855 | fi |
| 10856 | fi |
| 10857 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 10858 | if test -n "$DLLTOOL"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10860 | $as_echo "$DLLTOOL" >&6; } |
| 10861 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10863 | $as_echo "no" >&6; } |
| 10864 | fi |
| 10865 | |
| 10866 | |
| 10867 | fi |
| 10868 | if test -z "$ac_cv_prog_DLLTOOL"; then |
| 10869 | ac_ct_DLLTOOL=$DLLTOOL |
| 10870 | # Extract the first word of "dlltool", so it can be a program name with args. |
| 10871 | set dummy dlltool; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10873 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10874 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10875 | $as_echo_n "(cached) " >&6 |
| 10876 | else |
| 10877 | if test -n "$ac_ct_DLLTOOL"; then |
| 10878 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
| 10879 | else |
| 10880 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10881 | for as_dir in $PATH |
| 10882 | do |
| 10883 | IFS=$as_save_IFS |
| 10884 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10885 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10886 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 10887 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10888 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10889 | break 2 |
| 10890 | fi |
| 10891 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10892 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10893 | IFS=$as_save_IFS |
| 10894 | |
| 10895 | fi |
| 10896 | fi |
| 10897 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
| 10898 | if test -n "$ac_ct_DLLTOOL"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10900 | $as_echo "$ac_ct_DLLTOOL" >&6; } |
| 10901 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10903 | $as_echo "no" >&6; } |
| 10904 | fi |
| 10905 | |
| 10906 | if test "x$ac_ct_DLLTOOL" = x; then |
| 10907 | DLLTOOL="false" |
| 10908 | else |
| 10909 | case $cross_compiling:$ac_tool_warned in |
| 10910 | yes:) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10911 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10912 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 10913 | ac_tool_warned=yes ;; |
| 10914 | esac |
| 10915 | DLLTOOL=$ac_ct_DLLTOOL |
| 10916 | fi |
| 10917 | else |
| 10918 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 10919 | fi |
| 10920 | |
| 10921 | if test -n "$ac_tool_prefix"; then |
| 10922 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
| 10923 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10925 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10926 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10927 | $as_echo_n "(cached) " >&6 |
| 10928 | else |
| 10929 | if test -n "$OBJDUMP"; then |
| 10930 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
| 10931 | else |
| 10932 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10933 | for as_dir in $PATH |
| 10934 | do |
| 10935 | IFS=$as_save_IFS |
| 10936 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10937 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10938 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 10939 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10940 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10941 | break 2 |
| 10942 | fi |
| 10943 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10944 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10945 | IFS=$as_save_IFS |
| 10946 | |
| 10947 | fi |
| 10948 | fi |
| 10949 | OBJDUMP=$ac_cv_prog_OBJDUMP |
| 10950 | if test -n "$OBJDUMP"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10952 | $as_echo "$OBJDUMP" >&6; } |
| 10953 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10955 | $as_echo "no" >&6; } |
| 10956 | fi |
| 10957 | |
| 10958 | |
| 10959 | fi |
| 10960 | if test -z "$ac_cv_prog_OBJDUMP"; then |
| 10961 | ac_ct_OBJDUMP=$OBJDUMP |
| 10962 | # Extract the first word of "objdump", so it can be a program name with args. |
| 10963 | set dummy objdump; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10965 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10966 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10967 | $as_echo_n "(cached) " >&6 |
| 10968 | else |
| 10969 | if test -n "$ac_ct_OBJDUMP"; then |
| 10970 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
| 10971 | else |
| 10972 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10973 | for as_dir in $PATH |
| 10974 | do |
| 10975 | IFS=$as_save_IFS |
| 10976 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10977 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10978 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 10979 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10980 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10981 | break 2 |
| 10982 | fi |
| 10983 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10984 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10985 | IFS=$as_save_IFS |
| 10986 | |
| 10987 | fi |
| 10988 | fi |
| 10989 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
| 10990 | if test -n "$ac_ct_OBJDUMP"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10992 | $as_echo "$ac_ct_OBJDUMP" >&6; } |
| 10993 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 10994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10995 | $as_echo "no" >&6; } |
| 10996 | fi |
| 10997 | |
| 10998 | if test "x$ac_ct_OBJDUMP" = x; then |
| 10999 | OBJDUMP="false" |
| 11000 | else |
| 11001 | case $cross_compiling:$ac_tool_warned in |
| 11002 | yes:) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 11003 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11004 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 11005 | ac_tool_warned=yes ;; |
| 11006 | esac |
| 11007 | OBJDUMP=$ac_ct_OBJDUMP |
| 11008 | fi |
| 11009 | else |
| 11010 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
| 11011 | fi |
| 11012 | |
| 11013 | ;; |
| 11014 | esac |
| 11015 | |
| 11016 | test -z "$AS" && AS=as |
| 11017 | |
| 11018 | |
| 11019 | |
| 11020 | |
| 11021 | |
| 11022 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 11023 | |
| 11024 | |
| 11025 | |
| 11026 | |
| 11027 | |
| 11028 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 11029 | |
| 11030 | |
| 11031 | |
| 11032 | |
| 11033 | |
| 11034 | |
| 11035 | |
| 11036 | |
| 11037 | |
| 11038 | # Check whether --enable-shared was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 11039 | if test "${enable_shared+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11040 | enableval=$enable_shared; p=${PACKAGE-default} |
| 11041 | case $enableval in |
| 11042 | yes) enable_shared=yes ;; |
| 11043 | no) enable_shared=no ;; |
| 11044 | *) |
| 11045 | enable_shared=no |
| 11046 | # Look at the argument we got. We use all the common list separators. |
| 11047 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 11048 | for pkg in $enableval; do |
| 11049 | IFS="$lt_save_ifs" |
| 11050 | if test "X$pkg" = "X$p"; then |
| 11051 | enable_shared=yes |
| 11052 | fi |
| 11053 | done |
| 11054 | IFS="$lt_save_ifs" |
| 11055 | ;; |
| 11056 | esac |
| 11057 | else |
| 11058 | enable_shared=yes |
| 11059 | fi |
| 11060 | |
| 11061 | |
| 11062 | |
| 11063 | |
| 11064 | |
| 11065 | |
| 11066 | |
| 11067 | |
| 11068 | |
| 11069 | # Check whether --enable-static was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 11070 | if test "${enable_static+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11071 | enableval=$enable_static; p=${PACKAGE-default} |
| 11072 | case $enableval in |
| 11073 | yes) enable_static=yes ;; |
| 11074 | no) enable_static=no ;; |
| 11075 | *) |
| 11076 | enable_static=no |
| 11077 | # Look at the argument we got. We use all the common list separators. |
| 11078 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 11079 | for pkg in $enableval; do |
| 11080 | IFS="$lt_save_ifs" |
| 11081 | if test "X$pkg" = "X$p"; then |
| 11082 | enable_static=yes |
| 11083 | fi |
| 11084 | done |
| 11085 | IFS="$lt_save_ifs" |
| 11086 | ;; |
| 11087 | esac |
| 11088 | else |
| 11089 | enable_static=yes |
| 11090 | fi |
| 11091 | |
| 11092 | |
| 11093 | |
| 11094 | |
| 11095 | |
| 11096 | |
| 11097 | |
| 11098 | |
| 11099 | |
| 11100 | |
| 11101 | # Check whether --with-pic was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 11102 | if test "${with_pic+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11103 | withval=$with_pic; pic_mode="$withval" |
| 11104 | else |
| 11105 | pic_mode=default |
| 11106 | fi |
| 11107 | |
| 11108 | |
| 11109 | test -z "$pic_mode" && pic_mode=default |
| 11110 | |
| 11111 | |
| 11112 | |
| 11113 | |
| 11114 | |
| 11115 | |
| 11116 | |
| 11117 | # Check whether --enable-fast-install was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 11118 | if test "${enable_fast_install+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11119 | enableval=$enable_fast_install; p=${PACKAGE-default} |
| 11120 | case $enableval in |
| 11121 | yes) enable_fast_install=yes ;; |
| 11122 | no) enable_fast_install=no ;; |
| 11123 | *) |
| 11124 | enable_fast_install=no |
| 11125 | # Look at the argument we got. We use all the common list separators. |
| 11126 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 11127 | for pkg in $enableval; do |
| 11128 | IFS="$lt_save_ifs" |
| 11129 | if test "X$pkg" = "X$p"; then |
| 11130 | enable_fast_install=yes |
| 11131 | fi |
| 11132 | done |
| 11133 | IFS="$lt_save_ifs" |
| 11134 | ;; |
| 11135 | esac |
| 11136 | else |
| 11137 | enable_fast_install=yes |
| 11138 | fi |
| 11139 | |
| 11140 | |
| 11141 | |
| 11142 | |
| 11143 | |
| 11144 | |
| 11145 | |
| 11146 | |
| 11147 | |
| 11148 | |
| 11149 | |
| 11150 | # This can be used to rebuild libtool when needed |
| 11151 | LIBTOOL_DEPS="$ltmain" |
| 11152 | |
| 11153 | # Always use our own libtool. |
| 11154 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 11155 | |
| 11156 | |
| 11157 | |
| 11158 | |
| 11159 | |
| 11160 | |
| 11161 | |
| 11162 | |
| 11163 | |
| 11164 | |
| 11165 | |
| 11166 | |
| 11167 | |
| 11168 | |
| 11169 | |
| 11170 | |
| 11171 | |
| 11172 | |
| 11173 | |
| 11174 | |
| 11175 | |
| 11176 | |
| 11177 | |
| 11178 | |
| 11179 | |
| 11180 | test -z "$LN_S" && LN_S="ln -s" |
| 11181 | |
| 11182 | |
| 11183 | |
| 11184 | |
| 11185 | |
| 11186 | |
| 11187 | |
| 11188 | |
| 11189 | |
| 11190 | |
| 11191 | |
| 11192 | |
| 11193 | |
| 11194 | |
| 11195 | if test -n "${ZSH_VERSION+set}" ; then |
| 11196 | setopt NO_GLOB_SUBST |
| 11197 | fi |
| 11198 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 11199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11200 | $as_echo_n "checking for objdir... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 11201 | if test "${lt_cv_objdir+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11202 | $as_echo_n "(cached) " >&6 |
| 11203 | else |
| 11204 | rm -f .libs 2>/dev/null |
| 11205 | mkdir .libs 2>/dev/null |
| 11206 | if test -d .libs; then |
| 11207 | lt_cv_objdir=.libs |
| 11208 | else |
| 11209 | # MS-DOS does not allow filenames that begin with a dot. |
| 11210 | lt_cv_objdir=_libs |
| 11211 | fi |
| 11212 | rmdir .libs 2>/dev/null |
| 11213 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 11214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11215 | $as_echo "$lt_cv_objdir" >&6; } |
| 11216 | objdir=$lt_cv_objdir |
| 11217 | |
| 11218 | |
| 11219 | |
| 11220 | |
| 11221 | |
| 11222 | cat >>confdefs.h <<_ACEOF |
| 11223 | #define LT_OBJDIR "$lt_cv_objdir/" |
| 11224 | _ACEOF |
| 11225 | |
| 11226 | |
| 11227 | |
| 11228 | |
| 11229 | |
| 11230 | |
| 11231 | |
| 11232 | |
| 11233 | |
| 11234 | |
| 11235 | |
| 11236 | |
| 11237 | |
| 11238 | |
| 11239 | |
| 11240 | |
| 11241 | |
| 11242 | case $host_os in |
| 11243 | aix3*) |
| 11244 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 11245 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 11246 | # vanish in a puff of smoke. |
| 11247 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 11248 | COLLECT_NAMES= |
| 11249 | export COLLECT_NAMES |
| 11250 | fi |
| 11251 | ;; |
| 11252 | esac |
| 11253 | |
| 11254 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 11255 | # metacharacters that are still active within double-quoted strings. |
| 11256 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
| 11257 | |
| 11258 | # Same as above, but do not quote variable references. |
| 11259 | double_quote_subst='s/\(["`\\]\)/\\\1/g' |
| 11260 | |
| 11261 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 11262 | # double_quote_subst'ed string. |
| 11263 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 11264 | |
| 11265 | # Sed substitution to delay expansion of an escaped single quote. |
| 11266 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
| 11267 | |
| 11268 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 11269 | no_glob_subst='s/\*/\\\*/g' |
| 11270 | |
| 11271 | # Global variables: |
| 11272 | ofile=libtool |
| 11273 | can_build_shared=yes |
| 11274 | |
| 11275 | # All known linkers require a `.a' archive for static linking (except MSVC, |
| 11276 | # which needs '.lib'). |
| 11277 | libext=a |
| 11278 | |
| 11279 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 11280 | |
| 11281 | old_CC="$CC" |
| 11282 | old_CFLAGS="$CFLAGS" |
| 11283 | |
| 11284 | # Set sane defaults for various variables |
| 11285 | test -z "$CC" && CC=cc |
| 11286 | test -z "$LTCC" && LTCC=$CC |
| 11287 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
| 11288 | test -z "$LD" && LD=ld |
| 11289 | test -z "$ac_objext" && ac_objext=o |
| 11290 | |
| 11291 | for cc_temp in $compiler""; do |
| 11292 | case $cc_temp in |
| 11293 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 11294 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 11295 | \-*) ;; |
| 11296 | *) break;; |
| 11297 | esac |
| 11298 | done |
| 11299 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 11300 | |
| 11301 | |
| 11302 | # Only perform the check for file, if the check method requires it |
| 11303 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 11304 | case $deplibs_check_method in |
| 11305 | file_magic*) |
| 11306 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 11307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11308 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 11309 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11310 | $as_echo_n "(cached) " >&6 |
| 11311 | else |
| 11312 | case $MAGIC_CMD in |
| 11313 | [\\/*] | ?:[\\/]*) |
| 11314 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 11315 | ;; |
| 11316 | *) |
| 11317 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 11318 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 11319 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 11320 | for ac_dir in $ac_dummy; do |
| 11321 | IFS="$lt_save_ifs" |
| 11322 | test -z "$ac_dir" && ac_dir=. |
| 11323 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 11324 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 11325 | if test -n "$file_magic_test_file"; then |
| 11326 | case $deplibs_check_method in |
| 11327 | "file_magic "*) |
| 11328 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 11329 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 11330 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 11331 | $EGREP "$file_magic_regex" > /dev/null; then |
| 11332 | : |
| 11333 | else |
| 11334 | cat <<_LT_EOF 1>&2 |
| 11335 | |
| 11336 | *** Warning: the command libtool uses to detect shared libraries, |
| 11337 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 11338 | *** The result is that libtool may fail to recognize shared libraries |
| 11339 | *** as such. This will affect the creation of libtool libraries that |
| 11340 | *** depend on shared libraries, but programs linked with such libtool |
| 11341 | *** libraries will work regardless of this problem. Nevertheless, you |
| 11342 | *** may want to report the problem to your system manager and/or to |
| 11343 | *** bug-libtool@gnu.org |
| 11344 | |
| 11345 | _LT_EOF |
| 11346 | fi ;; |
| 11347 | esac |
| 11348 | fi |
| 11349 | break |
| 11350 | fi |
| 11351 | done |
| 11352 | IFS="$lt_save_ifs" |
| 11353 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 11354 | ;; |
| 11355 | esac |
| 11356 | fi |
| 11357 | |
| 11358 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 11359 | if test -n "$MAGIC_CMD"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 11360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11361 | $as_echo "$MAGIC_CMD" >&6; } |
| 11362 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 11363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11364 | $as_echo "no" >&6; } |
| 11365 | fi |
| 11366 | |
| 11367 | |
| 11368 | |
| 11369 | |
| 11370 | |
| 11371 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 11372 | if test -n "$ac_tool_prefix"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 11373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11374 | $as_echo_n "checking for file... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 11375 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11376 | $as_echo_n "(cached) " >&6 |
| 11377 | else |
| 11378 | case $MAGIC_CMD in |
| 11379 | [\\/*] | ?:[\\/]*) |
| 11380 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 11381 | ;; |
| 11382 | *) |
| 11383 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 11384 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 11385 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 11386 | for ac_dir in $ac_dummy; do |
| 11387 | IFS="$lt_save_ifs" |
| 11388 | test -z "$ac_dir" && ac_dir=. |
| 11389 | if test -f $ac_dir/file; then |
| 11390 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 11391 | if test -n "$file_magic_test_file"; then |
| 11392 | case $deplibs_check_method in |
| 11393 | "file_magic "*) |
| 11394 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 11395 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 11396 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 11397 | $EGREP "$file_magic_regex" > /dev/null; then |
| 11398 | : |
| 11399 | else |
| 11400 | cat <<_LT_EOF 1>&2 |
| 11401 | |
| 11402 | *** Warning: the command libtool uses to detect shared libraries, |
| 11403 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 11404 | *** The result is that libtool may fail to recognize shared libraries |
| 11405 | *** as such. This will affect the creation of libtool libraries that |
| 11406 | *** depend on shared libraries, but programs linked with such libtool |
| 11407 | *** libraries will work regardless of this problem. Nevertheless, you |
| 11408 | *** may want to report the problem to your system manager and/or to |
| 11409 | *** bug-libtool@gnu.org |
| 11410 | |
| 11411 | _LT_EOF |
| 11412 | fi ;; |
| 11413 | esac |
| 11414 | fi |
| 11415 | break |
| 11416 | fi |
| 11417 | done |
| 11418 | IFS="$lt_save_ifs" |
| 11419 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 11420 | ;; |
| 11421 | esac |
| 11422 | fi |
| 11423 | |
| 11424 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 11425 | if test -n "$MAGIC_CMD"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 11426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11427 | $as_echo "$MAGIC_CMD" >&6; } |
| 11428 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 11429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11430 | $as_echo "no" >&6; } |
| 11431 | fi |
| 11432 | |
| 11433 | |
| 11434 | else |
| 11435 | MAGIC_CMD=: |
| 11436 | fi |
| 11437 | fi |
| 11438 | |
| 11439 | fi |
| 11440 | ;; |
| 11441 | esac |
| 11442 | |
| 11443 | # Use C for the default configuration in the libtool script |
| 11444 | |
| 11445 | lt_save_CC="$CC" |
| 11446 | ac_ext=c |
| 11447 | ac_cpp='$CPP $CPPFLAGS' |
| 11448 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11449 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11450 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 11451 | |
| 11452 | |
| 11453 | # Source file extension for C test sources. |
| 11454 | ac_ext=c |
| 11455 | |
| 11456 | # Object file extension for compiled C test sources. |
| 11457 | objext=o |
| 11458 | objext=$objext |
| 11459 | |
| 11460 | # Code to be used in simple compile tests |
| 11461 | lt_simple_compile_test_code="int some_variable = 0;" |
| 11462 | |
| 11463 | # Code to be used in simple link tests |
| 11464 | lt_simple_link_test_code='int main(){return(0);}' |
| 11465 | |
| 11466 | |
| 11467 | |
| 11468 | |
| 11469 | |
| 11470 | |
| 11471 | |
| 11472 | # If no C compiler was specified, use CC. |
| 11473 | LTCC=${LTCC-"$CC"} |
| 11474 | |
| 11475 | # If no C compiler flags were specified, use CFLAGS. |
| 11476 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 11477 | |
| 11478 | # Allow CC to be a program name with arguments. |
| 11479 | compiler=$CC |
| 11480 | |
| 11481 | # Save the default compiler, since it gets overwritten when the other |
| 11482 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. |
| 11483 | compiler_DEFAULT=$CC |
| 11484 | |
| 11485 | # save warnings/boilerplate of simple test code |
| 11486 | ac_outfile=conftest.$ac_objext |
| 11487 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 11488 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 11489 | _lt_compiler_boilerplate=`cat conftest.err` |
| 11490 | $RM conftest* |
| 11491 | |
| 11492 | ac_outfile=conftest.$ac_objext |
| 11493 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
| 11494 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 11495 | _lt_linker_boilerplate=`cat conftest.err` |
| 11496 | $RM -r conftest* |
| 11497 | |
| 11498 | |
| 11499 | ## CAVEAT EMPTOR: |
| 11500 | ## There is no encapsulation within the following macros, do not change |
| 11501 | ## the running order or otherwise move them around unless you know exactly |
| 11502 | ## what you are doing... |
| 11503 | if test -n "$compiler"; then |
| 11504 | |
| 11505 | lt_prog_compiler_no_builtin_flag= |
| 11506 | |
| 11507 | if test "$GCC" = yes; then |
| 11508 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
| 11509 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 11510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11511 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 11512 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11513 | $as_echo_n "(cached) " >&6 |
| 11514 | else |
| 11515 | lt_cv_prog_compiler_rtti_exceptions=no |
| 11516 | ac_outfile=conftest.$ac_objext |
| 11517 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 11518 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 11519 | # Insert the option either (1) after the last *FLAGS variable, or |
| 11520 | # (2) before a word containing "conftest.", or (3) at the end. |
| 11521 | # Note that $ac_compile itself does not contain backslashes and begins |
| 11522 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 11523 | # The option is referenced via a variable to avoid confusing sed. |
| 11524 | lt_compile=`echo "$ac_compile" | $SED \ |
| 11525 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 11526 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 11527 | -e 's:$: $lt_compiler_flag:'` |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 11528 | (eval echo "\"\$as_me:11528: $lt_compile\"" >&5) |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11529 | (eval "$lt_compile" 2>conftest.err) |
| 11530 | ac_status=$? |
| 11531 | cat conftest.err >&5 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 11532 | echo "$as_me:11532: \$? = $ac_status" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11533 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 11534 | # The compiler can only warn and ignore the option if not recognized |
| 11535 | # So say no if there are warnings other than the usual output. |
| 11536 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 11537 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 11538 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 11539 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 11540 | fi |
| 11541 | fi |
| 11542 | $RM conftest* |
| 11543 | |
| 11544 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 11545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11546 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
| 11547 | |
| 11548 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 11549 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 11550 | else |
| 11551 | : |
| 11552 | fi |
| 11553 | |
| 11554 | fi |
| 11555 | |
| 11556 | |
| 11557 | |
| 11558 | |
| 11559 | |
| 11560 | |
| 11561 | lt_prog_compiler_wl= |
| 11562 | lt_prog_compiler_pic= |
| 11563 | lt_prog_compiler_static= |
| 11564 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 11565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11566 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
| 11567 | |
| 11568 | if test "$GCC" = yes; then |
| 11569 | lt_prog_compiler_wl='-Wl,' |
| 11570 | lt_prog_compiler_static='-static' |
| 11571 | |
| 11572 | case $host_os in |
| 11573 | aix*) |
| 11574 | # All AIX code is PIC. |
| 11575 | if test "$host_cpu" = ia64; then |
| 11576 | # AIX 5 now supports IA64 processor |
| 11577 | lt_prog_compiler_static='-Bstatic' |
| 11578 | fi |
| 11579 | ;; |
| 11580 | |
| 11581 | amigaos*) |
| 11582 | case $host_cpu in |
| 11583 | powerpc) |
| 11584 | # see comment about AmigaOS4 .so support |
| 11585 | lt_prog_compiler_pic='-fPIC' |
| 11586 | ;; |
| 11587 | m68k) |
| 11588 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 11589 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 11590 | # like `-m68040'. |
| 11591 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 11592 | ;; |
| 11593 | esac |
| 11594 | ;; |
| 11595 | |
| 11596 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 11597 | # PIC is the default for these OSes. |
| 11598 | ;; |
| 11599 | |
| 11600 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
| 11601 | # This hack is so that the source file can tell whether it is being |
| 11602 | # built for inclusion in a dll (and should export symbols for example). |
| 11603 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 11604 | # (--disable-auto-import) libraries |
| 11605 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 11606 | ;; |
| 11607 | |
| 11608 | darwin* | rhapsody*) |
| 11609 | # PIC is the default on this platform |
| 11610 | # Common symbols not allowed in MH_DYLIB files |
| 11611 | lt_prog_compiler_pic='-fno-common' |
| 11612 | ;; |
| 11613 | |
| 11614 | hpux*) |
| 11615 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 11616 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 11617 | # sets the default TLS model and affects inlining. |
| 11618 | case $host_cpu in |
| 11619 | hppa*64*) |
| 11620 | # +Z the default |
| 11621 | ;; |
| 11622 | *) |
| 11623 | lt_prog_compiler_pic='-fPIC' |
| 11624 | ;; |
| 11625 | esac |
| 11626 | ;; |
| 11627 | |
| 11628 | interix[3-9]*) |
| 11629 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 11630 | # Instead, we relocate shared libraries at runtime. |
| 11631 | ;; |
| 11632 | |
| 11633 | msdosdjgpp*) |
| 11634 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 11635 | # on systems that don't support them. |
| 11636 | lt_prog_compiler_can_build_shared=no |
| 11637 | enable_shared=no |
| 11638 | ;; |
| 11639 | |
| 11640 | *nto* | *qnx*) |
| 11641 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 11642 | # it will coredump. |
| 11643 | lt_prog_compiler_pic='-fPIC -shared' |
| 11644 | ;; |
| 11645 | |
| 11646 | sysv4*MP*) |
| 11647 | if test -d /usr/nec; then |
| 11648 | lt_prog_compiler_pic=-Kconform_pic |
| 11649 | fi |
| 11650 | ;; |
| 11651 | |
| 11652 | *) |
| 11653 | lt_prog_compiler_pic='-fPIC' |
| 11654 | ;; |
| 11655 | esac |
| 11656 | else |
| 11657 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 11658 | case $host_os in |
| 11659 | aix*) |
| 11660 | lt_prog_compiler_wl='-Wl,' |
| 11661 | if test "$host_cpu" = ia64; then |
| 11662 | # AIX 5 now supports IA64 processor |
| 11663 | lt_prog_compiler_static='-Bstatic' |
| 11664 | else |
| 11665 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
| 11666 | fi |
| 11667 | ;; |
| 11668 | |
| 11669 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
| 11670 | # This hack is so that the source file can tell whether it is being |
| 11671 | # built for inclusion in a dll (and should export symbols for example). |
| 11672 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 11673 | ;; |
| 11674 | |
| 11675 | hpux9* | hpux10* | hpux11*) |
| 11676 | lt_prog_compiler_wl='-Wl,' |
| 11677 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 11678 | # not for PA HP-UX. |
| 11679 | case $host_cpu in |
| 11680 | hppa*64*|ia64*) |
| 11681 | # +Z the default |
| 11682 | ;; |
| 11683 | *) |
| 11684 | lt_prog_compiler_pic='+Z' |
| 11685 | ;; |
| 11686 | esac |
| 11687 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 11688 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
| 11689 | ;; |
| 11690 | |
| 11691 | irix5* | irix6* | nonstopux*) |
| 11692 | lt_prog_compiler_wl='-Wl,' |
| 11693 | # PIC (with -KPIC) is the default. |
| 11694 | lt_prog_compiler_static='-non_shared' |
| 11695 | ;; |
| 11696 | |
| 11697 | linux* | k*bsd*-gnu) |
| 11698 | case $cc_basename in |
| 11699 | # old Intel for x86_64 which still supported -KPIC. |
| 11700 | ecc*) |
| 11701 | lt_prog_compiler_wl='-Wl,' |
| 11702 | lt_prog_compiler_pic='-KPIC' |
| 11703 | lt_prog_compiler_static='-static' |
| 11704 | ;; |
| 11705 | # icc used to be incompatible with GCC. |
| 11706 | # ICC 10 doesn't accept -KPIC any more. |
| 11707 | icc* | ifort*) |
| 11708 | lt_prog_compiler_wl='-Wl,' |
| 11709 | lt_prog_compiler_pic='-fPIC' |
| 11710 | lt_prog_compiler_static='-static' |
| 11711 | ;; |
| 11712 | # Lahey Fortran 8.1. |
| 11713 | lf95*) |
| 11714 | lt_prog_compiler_wl='-Wl,' |
| 11715 | lt_prog_compiler_pic='--shared' |
| 11716 | lt_prog_compiler_static='--static' |
| 11717 | ;; |
| 11718 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 11719 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 11720 | # which looks to be a dead project) |
| 11721 | lt_prog_compiler_wl='-Wl,' |
| 11722 | lt_prog_compiler_pic='-fpic' |
| 11723 | lt_prog_compiler_static='-Bstatic' |
| 11724 | ;; |
| 11725 | ccc*) |
| 11726 | lt_prog_compiler_wl='-Wl,' |
| 11727 | # All Alpha code is PIC. |
| 11728 | lt_prog_compiler_static='-non_shared' |
| 11729 | ;; |
| 11730 | xl*) |
| 11731 | # IBM XL C 8.0/Fortran 10.1 on PPC |
| 11732 | lt_prog_compiler_wl='-Wl,' |
| 11733 | lt_prog_compiler_pic='-qpic' |
| 11734 | lt_prog_compiler_static='-qstaticlink' |
| 11735 | ;; |
| 11736 | *) |
| 11737 | case `$CC -V 2>&1 | sed 5q` in |
| 11738 | *Sun\ C*) |
| 11739 | # Sun C 5.9 |
| 11740 | lt_prog_compiler_pic='-KPIC' |
| 11741 | lt_prog_compiler_static='-Bstatic' |
| 11742 | lt_prog_compiler_wl='-Wl,' |
| 11743 | ;; |
| 11744 | *Sun\ F*) |
| 11745 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
| 11746 | lt_prog_compiler_pic='-KPIC' |
| 11747 | lt_prog_compiler_static='-Bstatic' |
| 11748 | lt_prog_compiler_wl='' |
| 11749 | ;; |
| 11750 | esac |
| 11751 | ;; |
| 11752 | esac |
| 11753 | ;; |
| 11754 | |
| 11755 | newsos6) |
| 11756 | lt_prog_compiler_pic='-KPIC' |
| 11757 | lt_prog_compiler_static='-Bstatic' |
| 11758 | ;; |
| 11759 | |
| 11760 | *nto* | *qnx*) |
| 11761 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 11762 | # it will coredump. |
| 11763 | lt_prog_compiler_pic='-fPIC -shared' |
| 11764 | ;; |
| 11765 | |
| 11766 | osf3* | osf4* | osf5*) |
| 11767 | lt_prog_compiler_wl='-Wl,' |
| 11768 | # All OSF/1 code is PIC. |
| 11769 | lt_prog_compiler_static='-non_shared' |
| 11770 | ;; |
| 11771 | |
| 11772 | rdos*) |
| 11773 | lt_prog_compiler_static='-non_shared' |
| 11774 | ;; |
| 11775 | |
| 11776 | solaris*) |
| 11777 | lt_prog_compiler_pic='-KPIC' |
| 11778 | lt_prog_compiler_static='-Bstatic' |
| 11779 | case $cc_basename in |
| 11780 | f77* | f90* | f95*) |
| 11781 | lt_prog_compiler_wl='-Qoption ld ';; |
| 11782 | *) |
| 11783 | lt_prog_compiler_wl='-Wl,';; |
| 11784 | esac |
| 11785 | ;; |
| 11786 | |
| 11787 | sunos4*) |
| 11788 | lt_prog_compiler_wl='-Qoption ld ' |
| 11789 | lt_prog_compiler_pic='-PIC' |
| 11790 | lt_prog_compiler_static='-Bstatic' |
| 11791 | ;; |
| 11792 | |
| 11793 | sysv4 | sysv4.2uw2* | sysv4.3*) |
| 11794 | lt_prog_compiler_wl='-Wl,' |
| 11795 | lt_prog_compiler_pic='-KPIC' |
| 11796 | lt_prog_compiler_static='-Bstatic' |
| 11797 | ;; |
| 11798 | |
| 11799 | sysv4*MP*) |
| 11800 | if test -d /usr/nec ;then |
| 11801 | lt_prog_compiler_pic='-Kconform_pic' |
| 11802 | lt_prog_compiler_static='-Bstatic' |
| 11803 | fi |
| 11804 | ;; |
| 11805 | |
| 11806 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 11807 | lt_prog_compiler_wl='-Wl,' |
| 11808 | lt_prog_compiler_pic='-KPIC' |
| 11809 | lt_prog_compiler_static='-Bstatic' |
| 11810 | ;; |
| 11811 | |
| 11812 | unicos*) |
| 11813 | lt_prog_compiler_wl='-Wl,' |
| 11814 | lt_prog_compiler_can_build_shared=no |
| 11815 | ;; |
| 11816 | |
| 11817 | uts4*) |
| 11818 | lt_prog_compiler_pic='-pic' |
| 11819 | lt_prog_compiler_static='-Bstatic' |
| 11820 | ;; |
| 11821 | |
| 11822 | *) |
| 11823 | lt_prog_compiler_can_build_shared=no |
| 11824 | ;; |
| 11825 | esac |
| 11826 | fi |
| 11827 | |
| 11828 | case $host_os in |
| 11829 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 11830 | *djgpp*) |
| 11831 | lt_prog_compiler_pic= |
| 11832 | ;; |
| 11833 | *) |
| 11834 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 11835 | ;; |
| 11836 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 11837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11838 | $as_echo "$lt_prog_compiler_pic" >&6; } |
| 11839 | |
| 11840 | |
| 11841 | |
| 11842 | |
| 11843 | |
| 11844 | |
| 11845 | # |
| 11846 | # Check to make sure the PIC flag actually works. |
| 11847 | # |
| 11848 | if test -n "$lt_prog_compiler_pic"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 11849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11850 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 11851 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11852 | $as_echo_n "(cached) " >&6 |
| 11853 | else |
| 11854 | lt_cv_prog_compiler_pic_works=no |
| 11855 | ac_outfile=conftest.$ac_objext |
| 11856 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 11857 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 11858 | # Insert the option either (1) after the last *FLAGS variable, or |
| 11859 | # (2) before a word containing "conftest.", or (3) at the end. |
| 11860 | # Note that $ac_compile itself does not contain backslashes and begins |
| 11861 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 11862 | # The option is referenced via a variable to avoid confusing sed. |
| 11863 | lt_compile=`echo "$ac_compile" | $SED \ |
| 11864 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 11865 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 11866 | -e 's:$: $lt_compiler_flag:'` |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 11867 | (eval echo "\"\$as_me:11867: $lt_compile\"" >&5) |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11868 | (eval "$lt_compile" 2>conftest.err) |
| 11869 | ac_status=$? |
| 11870 | cat conftest.err >&5 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 11871 | echo "$as_me:11871: \$? = $ac_status" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11872 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 11873 | # The compiler can only warn and ignore the option if not recognized |
| 11874 | # So say no if there are warnings other than the usual output. |
| 11875 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 11876 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 11877 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 11878 | lt_cv_prog_compiler_pic_works=yes |
| 11879 | fi |
| 11880 | fi |
| 11881 | $RM conftest* |
| 11882 | |
| 11883 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 11884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11885 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
| 11886 | |
| 11887 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
| 11888 | case $lt_prog_compiler_pic in |
| 11889 | "" | " "*) ;; |
| 11890 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 11891 | esac |
| 11892 | else |
| 11893 | lt_prog_compiler_pic= |
| 11894 | lt_prog_compiler_can_build_shared=no |
| 11895 | fi |
| 11896 | |
| 11897 | fi |
| 11898 | |
| 11899 | |
| 11900 | |
| 11901 | |
| 11902 | |
| 11903 | |
| 11904 | # |
| 11905 | # Check to make sure the static flag actually works. |
| 11906 | # |
| 11907 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 11908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11909 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 11910 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11911 | $as_echo_n "(cached) " >&6 |
| 11912 | else |
| 11913 | lt_cv_prog_compiler_static_works=no |
| 11914 | save_LDFLAGS="$LDFLAGS" |
| 11915 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 11916 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 11917 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 11918 | # The linker can only warn and ignore the option if not recognized |
| 11919 | # So say no if there are warnings |
| 11920 | if test -s conftest.err; then |
| 11921 | # Append any errors to the config.log. |
| 11922 | cat conftest.err 1>&5 |
| 11923 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 11924 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 11925 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 11926 | lt_cv_prog_compiler_static_works=yes |
| 11927 | fi |
| 11928 | else |
| 11929 | lt_cv_prog_compiler_static_works=yes |
| 11930 | fi |
| 11931 | fi |
| 11932 | $RM -r conftest* |
| 11933 | LDFLAGS="$save_LDFLAGS" |
| 11934 | |
| 11935 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 11936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11937 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
| 11938 | |
| 11939 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
| 11940 | : |
| 11941 | else |
| 11942 | lt_prog_compiler_static= |
| 11943 | fi |
| 11944 | |
| 11945 | |
| 11946 | |
| 11947 | |
| 11948 | |
| 11949 | |
| 11950 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 11951 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11952 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 11953 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11954 | $as_echo_n "(cached) " >&6 |
| 11955 | else |
| 11956 | lt_cv_prog_compiler_c_o=no |
| 11957 | $RM -r conftest 2>/dev/null |
| 11958 | mkdir conftest |
| 11959 | cd conftest |
| 11960 | mkdir out |
| 11961 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 11962 | |
| 11963 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 11964 | # Insert the option either (1) after the last *FLAGS variable, or |
| 11965 | # (2) before a word containing "conftest.", or (3) at the end. |
| 11966 | # Note that $ac_compile itself does not contain backslashes and begins |
| 11967 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 11968 | lt_compile=`echo "$ac_compile" | $SED \ |
| 11969 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 11970 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 11971 | -e 's:$: $lt_compiler_flag:'` |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 11972 | (eval echo "\"\$as_me:11972: $lt_compile\"" >&5) |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11973 | (eval "$lt_compile" 2>out/conftest.err) |
| 11974 | ac_status=$? |
| 11975 | cat out/conftest.err >&5 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 11976 | echo "$as_me:11976: \$? = $ac_status" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11977 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 11978 | then |
| 11979 | # The compiler can only warn and ignore the option if not recognized |
| 11980 | # So say no if there are warnings |
| 11981 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 11982 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 11983 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 11984 | lt_cv_prog_compiler_c_o=yes |
| 11985 | fi |
| 11986 | fi |
| 11987 | chmod u+w . 2>&5 |
| 11988 | $RM conftest* |
| 11989 | # SGI C++ compiler will create directory out/ii_files/ for |
| 11990 | # template instantiation |
| 11991 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 11992 | $RM out/* && rmdir out |
| 11993 | cd .. |
| 11994 | $RM -r conftest |
| 11995 | $RM conftest* |
| 11996 | |
| 11997 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 11998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11999 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
| 12000 | |
| 12001 | |
| 12002 | |
| 12003 | |
| 12004 | |
| 12005 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 12006 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12007 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 12008 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12009 | $as_echo_n "(cached) " >&6 |
| 12010 | else |
| 12011 | lt_cv_prog_compiler_c_o=no |
| 12012 | $RM -r conftest 2>/dev/null |
| 12013 | mkdir conftest |
| 12014 | cd conftest |
| 12015 | mkdir out |
| 12016 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 12017 | |
| 12018 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 12019 | # Insert the option either (1) after the last *FLAGS variable, or |
| 12020 | # (2) before a word containing "conftest.", or (3) at the end. |
| 12021 | # Note that $ac_compile itself does not contain backslashes and begins |
| 12022 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 12023 | lt_compile=`echo "$ac_compile" | $SED \ |
| 12024 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 12025 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 12026 | -e 's:$: $lt_compiler_flag:'` |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 12027 | (eval echo "\"\$as_me:12027: $lt_compile\"" >&5) |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12028 | (eval "$lt_compile" 2>out/conftest.err) |
| 12029 | ac_status=$? |
| 12030 | cat out/conftest.err >&5 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 12031 | echo "$as_me:12031: \$? = $ac_status" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12032 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 12033 | then |
| 12034 | # The compiler can only warn and ignore the option if not recognized |
| 12035 | # So say no if there are warnings |
| 12036 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 12037 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 12038 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 12039 | lt_cv_prog_compiler_c_o=yes |
| 12040 | fi |
| 12041 | fi |
| 12042 | chmod u+w . 2>&5 |
| 12043 | $RM conftest* |
| 12044 | # SGI C++ compiler will create directory out/ii_files/ for |
| 12045 | # template instantiation |
| 12046 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 12047 | $RM out/* && rmdir out |
| 12048 | cd .. |
| 12049 | $RM -r conftest |
| 12050 | $RM conftest* |
| 12051 | |
| 12052 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 12053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12054 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
| 12055 | |
| 12056 | |
| 12057 | |
| 12058 | |
| 12059 | hard_links="nottested" |
| 12060 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
| 12061 | # do not overwrite the value of need_locks provided by the user |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 12062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12063 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
| 12064 | hard_links=yes |
| 12065 | $RM conftest* |
| 12066 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 12067 | touch conftest.a |
| 12068 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 12069 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 12070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12071 | $as_echo "$hard_links" >&6; } |
| 12072 | if test "$hard_links" = no; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 12073 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12074 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 12075 | need_locks=warn |
| 12076 | fi |
| 12077 | else |
| 12078 | need_locks=no |
| 12079 | fi |
| 12080 | |
| 12081 | |
| 12082 | |
| 12083 | |
| 12084 | |
| 12085 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 12086 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12087 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
| 12088 | |
| 12089 | runpath_var= |
| 12090 | allow_undefined_flag= |
| 12091 | always_export_symbols=no |
| 12092 | archive_cmds= |
| 12093 | archive_expsym_cmds= |
| 12094 | compiler_needs_object=no |
| 12095 | enable_shared_with_static_runtimes=no |
| 12096 | export_dynamic_flag_spec= |
| 12097 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 12098 | hardcode_automatic=no |
| 12099 | hardcode_direct=no |
| 12100 | hardcode_direct_absolute=no |
| 12101 | hardcode_libdir_flag_spec= |
| 12102 | hardcode_libdir_flag_spec_ld= |
| 12103 | hardcode_libdir_separator= |
| 12104 | hardcode_minus_L=no |
| 12105 | hardcode_shlibpath_var=unsupported |
| 12106 | inherit_rpath=no |
| 12107 | link_all_deplibs=unknown |
| 12108 | module_cmds= |
| 12109 | module_expsym_cmds= |
| 12110 | old_archive_from_new_cmds= |
| 12111 | old_archive_from_expsyms_cmds= |
| 12112 | thread_safe_flag_spec= |
| 12113 | whole_archive_flag_spec= |
| 12114 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 12115 | # included in the symbol list |
| 12116 | include_expsyms= |
| 12117 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 12118 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 12119 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 12120 | # as well as any symbol that contains `d'. |
| 12121 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
| 12122 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 12123 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 12124 | # the symbol is explicitly referenced. Since portable code cannot |
| 12125 | # rely on this symbol name, it's probably fine to never include it in |
| 12126 | # preloaded symbol tables. |
| 12127 | # Exclude shared library initialization/finalization symbols. |
| 12128 | extract_expsyms_cmds= |
| 12129 | |
| 12130 | case $host_os in |
| 12131 | cygwin* | mingw* | pw32* | cegcc*) |
| 12132 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 12133 | # When not using gcc, we currently assume that we are using |
| 12134 | # Microsoft Visual C++. |
| 12135 | if test "$GCC" != yes; then |
| 12136 | with_gnu_ld=no |
| 12137 | fi |
| 12138 | ;; |
| 12139 | interix*) |
| 12140 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 12141 | with_gnu_ld=yes |
| 12142 | ;; |
| 12143 | openbsd*) |
| 12144 | with_gnu_ld=no |
| 12145 | ;; |
| 12146 | esac |
| 12147 | |
| 12148 | ld_shlibs=yes |
| 12149 | if test "$with_gnu_ld" = yes; then |
| 12150 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 12151 | wlarc='${wl}' |
| 12152 | |
| 12153 | # Set some defaults for GNU ld with shared library support. These |
| 12154 | # are reset later if shared libraries are not supported. Putting them |
| 12155 | # here allows them to be overridden if necessary. |
| 12156 | runpath_var=LD_RUN_PATH |
| 12157 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 12158 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 12159 | # ancient GNU ld didn't support --whole-archive et. al. |
| 12160 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
| 12161 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 12162 | else |
| 12163 | whole_archive_flag_spec= |
| 12164 | fi |
| 12165 | supports_anon_versioning=no |
| 12166 | case `$LD -v 2>&1` in |
| 12167 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 12168 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 12169 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 12170 | *\ 2.11.*) ;; # other 2.11 versions |
| 12171 | *) supports_anon_versioning=yes ;; |
| 12172 | esac |
| 12173 | |
| 12174 | # See if GNU ld supports shared libraries. |
| 12175 | case $host_os in |
| 12176 | aix[3-9]*) |
| 12177 | # On AIX/PPC, the GNU linker is very broken |
| 12178 | if test "$host_cpu" != ia64; then |
| 12179 | ld_shlibs=no |
| 12180 | cat <<_LT_EOF 1>&2 |
| 12181 | |
| 12182 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 12183 | *** to be unable to reliably create shared libraries on AIX. |
| 12184 | *** Therefore, libtool is disabling shared libraries support. If you |
| 12185 | *** really care for shared libraries, you may want to modify your PATH |
| 12186 | *** so that a non-GNU linker is found, and then restart. |
| 12187 | |
| 12188 | _LT_EOF |
| 12189 | fi |
| 12190 | ;; |
| 12191 | |
| 12192 | amigaos*) |
| 12193 | case $host_cpu in |
| 12194 | powerpc) |
| 12195 | # see comment about AmigaOS4 .so support |
| 12196 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12197 | archive_expsym_cmds='' |
| 12198 | ;; |
| 12199 | m68k) |
| 12200 | 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)' |
| 12201 | hardcode_libdir_flag_spec='-L$libdir' |
| 12202 | hardcode_minus_L=yes |
| 12203 | ;; |
| 12204 | esac |
| 12205 | ;; |
| 12206 | |
| 12207 | beos*) |
| 12208 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 12209 | allow_undefined_flag=unsupported |
| 12210 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 12211 | # support --undefined. This deserves some investigation. FIXME |
| 12212 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12213 | else |
| 12214 | ld_shlibs=no |
| 12215 | fi |
| 12216 | ;; |
| 12217 | |
| 12218 | cygwin* | mingw* | pw32* | cegcc*) |
| 12219 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 12220 | # as there is no search path for DLLs. |
| 12221 | hardcode_libdir_flag_spec='-L$libdir' |
| 12222 | allow_undefined_flag=unsupported |
| 12223 | always_export_symbols=no |
| 12224 | enable_shared_with_static_runtimes=yes |
| 12225 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
| 12226 | |
| 12227 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 12228 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 12229 | # If the export-symbols file already is a .def file (1st line |
| 12230 | # is EXPORTS), use it as is; otherwise, prepend... |
| 12231 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 12232 | cp $export_symbols $output_objdir/$soname.def; |
| 12233 | else |
| 12234 | echo EXPORTS > $output_objdir/$soname.def; |
| 12235 | cat $export_symbols >> $output_objdir/$soname.def; |
| 12236 | fi~ |
| 12237 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 12238 | else |
| 12239 | ld_shlibs=no |
| 12240 | fi |
| 12241 | ;; |
| 12242 | |
| 12243 | interix[3-9]*) |
| 12244 | hardcode_direct=no |
| 12245 | hardcode_shlibpath_var=no |
| 12246 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 12247 | export_dynamic_flag_spec='${wl}-E' |
| 12248 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 12249 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 12250 | # default) and relocated if they conflict, which is a slow very memory |
| 12251 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 12252 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 12253 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 12254 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 12255 | 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' |
| 12256 | ;; |
| 12257 | |
| 12258 | gnu* | linux* | tpf* | k*bsd*-gnu) |
| 12259 | tmp_diet=no |
| 12260 | if test "$host_os" = linux-dietlibc; then |
| 12261 | case $cc_basename in |
| 12262 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
| 12263 | esac |
| 12264 | fi |
| 12265 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
| 12266 | && test "$tmp_diet" = no |
| 12267 | then |
| 12268 | tmp_addflag= |
| 12269 | tmp_sharedflag='-shared' |
| 12270 | case $cc_basename,$host_cpu in |
| 12271 | pgcc*) # Portland Group C compiler |
| 12272 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' |
| 12273 | tmp_addflag=' $pic_flag' |
| 12274 | ;; |
| 12275 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 12276 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' |
| 12277 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 12278 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 12279 | tmp_addflag=' -i_dynamic' ;; |
| 12280 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 12281 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 12282 | ifc* | ifort*) # Intel Fortran compiler |
| 12283 | tmp_addflag=' -nofor_main' ;; |
| 12284 | lf95*) # Lahey Fortran 8.1 |
| 12285 | whole_archive_flag_spec= |
| 12286 | tmp_sharedflag='--shared' ;; |
| 12287 | xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
| 12288 | tmp_sharedflag='-qmkshrobj' |
| 12289 | tmp_addflag= ;; |
| 12290 | esac |
| 12291 | case `$CC -V 2>&1 | sed 5q` in |
| 12292 | *Sun\ C*) # Sun C 5.9 |
| 12293 | whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' |
| 12294 | compiler_needs_object=yes |
| 12295 | tmp_sharedflag='-G' ;; |
| 12296 | *Sun\ F*) # Sun Fortran 8.3 |
| 12297 | tmp_sharedflag='-G' ;; |
| 12298 | esac |
| 12299 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12300 | |
| 12301 | if test "x$supports_anon_versioning" = xyes; then |
| 12302 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 12303 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 12304 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 12305 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 12306 | fi |
| 12307 | |
| 12308 | case $cc_basename in |
| 12309 | xlf*) |
| 12310 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
| 12311 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
| 12312 | hardcode_libdir_flag_spec= |
| 12313 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
| 12314 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' |
| 12315 | if test "x$supports_anon_versioning" = xyes; then |
| 12316 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 12317 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 12318 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 12319 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
| 12320 | fi |
| 12321 | ;; |
| 12322 | esac |
| 12323 | else |
| 12324 | ld_shlibs=no |
| 12325 | fi |
| 12326 | ;; |
| 12327 | |
| 12328 | netbsd*) |
| 12329 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 12330 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 12331 | wlarc= |
| 12332 | else |
| 12333 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12334 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 12335 | fi |
| 12336 | ;; |
| 12337 | |
| 12338 | solaris*) |
| 12339 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
| 12340 | ld_shlibs=no |
| 12341 | cat <<_LT_EOF 1>&2 |
| 12342 | |
| 12343 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 12344 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 12345 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 12346 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 12347 | *** your PATH or compiler configuration so that the native linker is |
| 12348 | *** used, and then restart. |
| 12349 | |
| 12350 | _LT_EOF |
| 12351 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 12352 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12353 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 12354 | else |
| 12355 | ld_shlibs=no |
| 12356 | fi |
| 12357 | ;; |
| 12358 | |
| 12359 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 12360 | case `$LD -v 2>&1` in |
| 12361 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 12362 | ld_shlibs=no |
| 12363 | cat <<_LT_EOF 1>&2 |
| 12364 | |
| 12365 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 12366 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 12367 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 12368 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 12369 | *** your PATH or compiler configuration so that the native linker is |
| 12370 | *** used, and then restart. |
| 12371 | |
| 12372 | _LT_EOF |
| 12373 | ;; |
| 12374 | *) |
| 12375 | # For security reasons, it is highly recommended that you always |
| 12376 | # use absolute paths for naming shared libraries, and exclude the |
| 12377 | # DT_RUNPATH tag from executables and libraries. But doing so |
| 12378 | # requires that you compile everything twice, which is a pain. |
| 12379 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 12380 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 12381 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12382 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 12383 | else |
| 12384 | ld_shlibs=no |
| 12385 | fi |
| 12386 | ;; |
| 12387 | esac |
| 12388 | ;; |
| 12389 | |
| 12390 | sunos4*) |
| 12391 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 12392 | wlarc= |
| 12393 | hardcode_direct=yes |
| 12394 | hardcode_shlibpath_var=no |
| 12395 | ;; |
| 12396 | |
| 12397 | *) |
| 12398 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 12399 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12400 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 12401 | else |
| 12402 | ld_shlibs=no |
| 12403 | fi |
| 12404 | ;; |
| 12405 | esac |
| 12406 | |
| 12407 | if test "$ld_shlibs" = no; then |
| 12408 | runpath_var= |
| 12409 | hardcode_libdir_flag_spec= |
| 12410 | export_dynamic_flag_spec= |
| 12411 | whole_archive_flag_spec= |
| 12412 | fi |
| 12413 | else |
| 12414 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 12415 | case $host_os in |
| 12416 | aix3*) |
| 12417 | allow_undefined_flag=unsupported |
| 12418 | always_export_symbols=yes |
| 12419 | 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' |
| 12420 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 12421 | # are no directories specified by -L. |
| 12422 | hardcode_minus_L=yes |
| 12423 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
| 12424 | # Neither direct hardcoding nor static linking is supported with a |
| 12425 | # broken collect2. |
| 12426 | hardcode_direct=unsupported |
| 12427 | fi |
| 12428 | ;; |
| 12429 | |
| 12430 | aix[4-9]*) |
| 12431 | if test "$host_cpu" = ia64; then |
| 12432 | # On IA64, the linker does run time linking by default, so we don't |
| 12433 | # have to do anything special. |
| 12434 | aix_use_runtimelinking=no |
| 12435 | exp_sym_flag='-Bexport' |
| 12436 | no_entry_flag="" |
| 12437 | else |
| 12438 | # If we're using GNU nm, then we don't want the "-C" option. |
| 12439 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 12440 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| 12441 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
| 12442 | else |
| 12443 | 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' |
| 12444 | fi |
| 12445 | aix_use_runtimelinking=no |
| 12446 | |
| 12447 | # Test if we are trying to use run time linking or normal |
| 12448 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 12449 | # need to do runtime linking. |
| 12450 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
| 12451 | for ld_flag in $LDFLAGS; do |
| 12452 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 12453 | aix_use_runtimelinking=yes |
| 12454 | break |
| 12455 | fi |
| 12456 | done |
| 12457 | ;; |
| 12458 | esac |
| 12459 | |
| 12460 | exp_sym_flag='-bexport' |
| 12461 | no_entry_flag='-bnoentry' |
| 12462 | fi |
| 12463 | |
| 12464 | # When large executables or shared objects are built, AIX ld can |
| 12465 | # have problems creating the table of contents. If linking a library |
| 12466 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 12467 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 12468 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 12469 | |
| 12470 | archive_cmds='' |
| 12471 | hardcode_direct=yes |
| 12472 | hardcode_direct_absolute=yes |
| 12473 | hardcode_libdir_separator=':' |
| 12474 | link_all_deplibs=yes |
| 12475 | file_list_spec='${wl}-f,' |
| 12476 | |
| 12477 | if test "$GCC" = yes; then |
| 12478 | case $host_os in aix4.[012]|aix4.[012].*) |
| 12479 | # We only want to do this on AIX 4.2 and lower, the check |
| 12480 | # below for broken collect2 doesn't work under 4.3+ |
| 12481 | collect2name=`${CC} -print-prog-name=collect2` |
| 12482 | if test -f "$collect2name" && |
| 12483 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
| 12484 | then |
| 12485 | # We have reworked collect2 |
| 12486 | : |
| 12487 | else |
| 12488 | # We have old collect2 |
| 12489 | hardcode_direct=unsupported |
| 12490 | # It fails to find uninstalled libraries when the uninstalled |
| 12491 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 12492 | # to unsupported forces relinking |
| 12493 | hardcode_minus_L=yes |
| 12494 | hardcode_libdir_flag_spec='-L$libdir' |
| 12495 | hardcode_libdir_separator= |
| 12496 | fi |
| 12497 | ;; |
| 12498 | esac |
| 12499 | shared_flag='-shared' |
| 12500 | if test "$aix_use_runtimelinking" = yes; then |
| 12501 | shared_flag="$shared_flag "'${wl}-G' |
| 12502 | fi |
| 12503 | else |
| 12504 | # not using gcc |
| 12505 | if test "$host_cpu" = ia64; then |
| 12506 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 12507 | # chokes on -Wl,-G. The following line is correct: |
| 12508 | shared_flag='-G' |
| 12509 | else |
| 12510 | if test "$aix_use_runtimelinking" = yes; then |
| 12511 | shared_flag='${wl}-G' |
| 12512 | else |
| 12513 | shared_flag='${wl}-bM:SRE' |
| 12514 | fi |
| 12515 | fi |
| 12516 | fi |
| 12517 | |
| 12518 | export_dynamic_flag_spec='${wl}-bexpall' |
| 12519 | # It seems that -bexpall does not export symbols beginning with |
| 12520 | # underscore (_), so it is better to generate a list of symbols to export. |
| 12521 | always_export_symbols=yes |
| 12522 | if test "$aix_use_runtimelinking" = yes; then |
| 12523 | # Warning - without using the other runtime loading flags (-brtl), |
| 12524 | # -berok will link without error, but may produce a broken library. |
| 12525 | allow_undefined_flag='-berok' |
| 12526 | # Determine the default libpath from the value encoded in an |
| 12527 | # empty executable. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 12528 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12529 | /* end confdefs.h. */ |
| 12530 | |
| 12531 | int |
| 12532 | main () |
| 12533 | { |
| 12534 | |
| 12535 | ; |
| 12536 | return 0; |
| 12537 | } |
| 12538 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 12539 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12540 | |
| 12541 | lt_aix_libpath_sed=' |
| 12542 | /Import File Strings/,/^$/ { |
| 12543 | /^0/ { |
| 12544 | s/^0 *\(.*\)$/\1/ |
| 12545 | p |
| 12546 | } |
| 12547 | }' |
| 12548 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 12549 | # Check for a 64-bit object if we didn't find anything. |
| 12550 | if test -z "$aix_libpath"; then |
| 12551 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 12552 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12553 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 12554 | rm -f core conftest.err conftest.$ac_objext \ |
| 12555 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12556 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 12557 | |
| 12558 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 12559 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
| 12560 | else |
| 12561 | if test "$host_cpu" = ia64; then |
| 12562 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 12563 | allow_undefined_flag="-z nodefs" |
| 12564 | 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" |
| 12565 | else |
| 12566 | # Determine the default libpath from the value encoded in an |
| 12567 | # empty executable. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 12568 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12569 | /* end confdefs.h. */ |
| 12570 | |
| 12571 | int |
| 12572 | main () |
| 12573 | { |
| 12574 | |
| 12575 | ; |
| 12576 | return 0; |
| 12577 | } |
| 12578 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 12579 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12580 | |
| 12581 | lt_aix_libpath_sed=' |
| 12582 | /Import File Strings/,/^$/ { |
| 12583 | /^0/ { |
| 12584 | s/^0 *\(.*\)$/\1/ |
| 12585 | p |
| 12586 | } |
| 12587 | }' |
| 12588 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 12589 | # Check for a 64-bit object if we didn't find anything. |
| 12590 | if test -z "$aix_libpath"; then |
| 12591 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 12592 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12593 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 12594 | rm -f core conftest.err conftest.$ac_objext \ |
| 12595 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12596 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 12597 | |
| 12598 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 12599 | # Warning - without using the other run time loading flags, |
| 12600 | # -berok will link without error, but may produce a broken library. |
| 12601 | no_undefined_flag=' ${wl}-bernotok' |
| 12602 | allow_undefined_flag=' ${wl}-berok' |
| 12603 | # Exported symbols can be pulled into shared objects from archives |
| 12604 | whole_archive_flag_spec='$convenience' |
| 12605 | archive_cmds_need_lc=yes |
| 12606 | # This is similar to how AIX traditionally builds its shared libraries. |
| 12607 | 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' |
| 12608 | fi |
| 12609 | fi |
| 12610 | ;; |
| 12611 | |
| 12612 | amigaos*) |
| 12613 | case $host_cpu in |
| 12614 | powerpc) |
| 12615 | # see comment about AmigaOS4 .so support |
| 12616 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12617 | archive_expsym_cmds='' |
| 12618 | ;; |
| 12619 | m68k) |
| 12620 | 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)' |
| 12621 | hardcode_libdir_flag_spec='-L$libdir' |
| 12622 | hardcode_minus_L=yes |
| 12623 | ;; |
| 12624 | esac |
| 12625 | ;; |
| 12626 | |
| 12627 | bsdi[45]*) |
| 12628 | export_dynamic_flag_spec=-rdynamic |
| 12629 | ;; |
| 12630 | |
| 12631 | cygwin* | mingw* | pw32* | cegcc*) |
| 12632 | # When not using gcc, we currently assume that we are using |
| 12633 | # Microsoft Visual C++. |
| 12634 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 12635 | # no search path for DLLs. |
| 12636 | hardcode_libdir_flag_spec=' ' |
| 12637 | allow_undefined_flag=unsupported |
| 12638 | # Tell ltmain to make .lib files, not .a files. |
| 12639 | libext=lib |
| 12640 | # Tell ltmain to make .dll files, not .so files. |
| 12641 | shrext_cmds=".dll" |
| 12642 | # FIXME: Setting linknames here is a bad hack. |
| 12643 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 12644 | # The linker will automatically build a .lib file if we build a DLL. |
| 12645 | old_archive_from_new_cmds='true' |
| 12646 | # FIXME: Should let the user specify the lib program. |
| 12647 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
| 12648 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 12649 | enable_shared_with_static_runtimes=yes |
| 12650 | ;; |
| 12651 | |
| 12652 | darwin* | rhapsody*) |
| 12653 | |
| 12654 | |
| 12655 | archive_cmds_need_lc=no |
| 12656 | hardcode_direct=no |
| 12657 | hardcode_automatic=yes |
| 12658 | hardcode_shlibpath_var=unsupported |
| 12659 | whole_archive_flag_spec='' |
| 12660 | link_all_deplibs=yes |
| 12661 | allow_undefined_flag="$_lt_dar_allow_undefined" |
| 12662 | case $cc_basename in |
| 12663 | ifort*) _lt_dar_can_shared=yes ;; |
| 12664 | *) _lt_dar_can_shared=$GCC ;; |
| 12665 | esac |
| 12666 | if test "$_lt_dar_can_shared" = "yes"; then |
| 12667 | output_verbose_link_cmd=echo |
| 12668 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
| 12669 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
| 12670 | 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}" |
| 12671 | 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}" |
| 12672 | |
| 12673 | else |
| 12674 | ld_shlibs=no |
| 12675 | fi |
| 12676 | |
| 12677 | ;; |
| 12678 | |
| 12679 | dgux*) |
| 12680 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12681 | hardcode_libdir_flag_spec='-L$libdir' |
| 12682 | hardcode_shlibpath_var=no |
| 12683 | ;; |
| 12684 | |
| 12685 | freebsd1*) |
| 12686 | ld_shlibs=no |
| 12687 | ;; |
| 12688 | |
| 12689 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 12690 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 12691 | # does not break anything, and helps significantly (at the cost of a little |
| 12692 | # extra space). |
| 12693 | freebsd2.2*) |
| 12694 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 12695 | hardcode_libdir_flag_spec='-R$libdir' |
| 12696 | hardcode_direct=yes |
| 12697 | hardcode_shlibpath_var=no |
| 12698 | ;; |
| 12699 | |
| 12700 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 12701 | freebsd2*) |
| 12702 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 12703 | hardcode_direct=yes |
| 12704 | hardcode_minus_L=yes |
| 12705 | hardcode_shlibpath_var=no |
| 12706 | ;; |
| 12707 | |
| 12708 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 12709 | freebsd* | dragonfly*) |
| 12710 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 12711 | hardcode_libdir_flag_spec='-R$libdir' |
| 12712 | hardcode_direct=yes |
| 12713 | hardcode_shlibpath_var=no |
| 12714 | ;; |
| 12715 | |
| 12716 | hpux9*) |
| 12717 | if test "$GCC" = yes; then |
| 12718 | archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 12719 | else |
| 12720 | 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' |
| 12721 | fi |
| 12722 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 12723 | hardcode_libdir_separator=: |
| 12724 | hardcode_direct=yes |
| 12725 | |
| 12726 | # hardcode_minus_L: Not really in the search PATH, |
| 12727 | # but as the default location of the library. |
| 12728 | hardcode_minus_L=yes |
| 12729 | export_dynamic_flag_spec='${wl}-E' |
| 12730 | ;; |
| 12731 | |
| 12732 | hpux10*) |
| 12733 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 12734 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 12735 | else |
| 12736 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 12737 | fi |
| 12738 | if test "$with_gnu_ld" = no; then |
| 12739 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 12740 | hardcode_libdir_flag_spec_ld='+b $libdir' |
| 12741 | hardcode_libdir_separator=: |
| 12742 | hardcode_direct=yes |
| 12743 | hardcode_direct_absolute=yes |
| 12744 | export_dynamic_flag_spec='${wl}-E' |
| 12745 | # hardcode_minus_L: Not really in the search PATH, |
| 12746 | # but as the default location of the library. |
| 12747 | hardcode_minus_L=yes |
| 12748 | fi |
| 12749 | ;; |
| 12750 | |
| 12751 | hpux11*) |
| 12752 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 12753 | case $host_cpu in |
| 12754 | hppa*64*) |
| 12755 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12756 | ;; |
| 12757 | ia64*) |
| 12758 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 12759 | ;; |
| 12760 | *) |
| 12761 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 12762 | ;; |
| 12763 | esac |
| 12764 | else |
| 12765 | case $host_cpu in |
| 12766 | hppa*64*) |
| 12767 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12768 | ;; |
| 12769 | ia64*) |
| 12770 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 12771 | ;; |
| 12772 | *) |
| 12773 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 12774 | ;; |
| 12775 | esac |
| 12776 | fi |
| 12777 | if test "$with_gnu_ld" = no; then |
| 12778 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 12779 | hardcode_libdir_separator=: |
| 12780 | |
| 12781 | case $host_cpu in |
| 12782 | hppa*64*|ia64*) |
| 12783 | hardcode_direct=no |
| 12784 | hardcode_shlibpath_var=no |
| 12785 | ;; |
| 12786 | *) |
| 12787 | hardcode_direct=yes |
| 12788 | hardcode_direct_absolute=yes |
| 12789 | export_dynamic_flag_spec='${wl}-E' |
| 12790 | |
| 12791 | # hardcode_minus_L: Not really in the search PATH, |
| 12792 | # but as the default location of the library. |
| 12793 | hardcode_minus_L=yes |
| 12794 | ;; |
| 12795 | esac |
| 12796 | fi |
| 12797 | ;; |
| 12798 | |
| 12799 | irix5* | irix6* | nonstopux*) |
| 12800 | if test "$GCC" = yes; then |
| 12801 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 12802 | # Try to use the -exported_symbol ld option, if it does not |
| 12803 | # work, assume that -exports_file does not work either and |
| 12804 | # implicitly export all symbols. |
| 12805 | save_LDFLAGS="$LDFLAGS" |
| 12806 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 12807 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12808 | /* end confdefs.h. */ |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12809 | int foo(void) {} |
| 12810 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 12811 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12812 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' |
| 12813 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12814 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 12815 | rm -f core conftest.err conftest.$ac_objext \ |
| 12816 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12817 | LDFLAGS="$save_LDFLAGS" |
| 12818 | else |
| 12819 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' |
| 12820 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' |
| 12821 | fi |
| 12822 | archive_cmds_need_lc='no' |
| 12823 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 12824 | hardcode_libdir_separator=: |
| 12825 | inherit_rpath=yes |
| 12826 | link_all_deplibs=yes |
| 12827 | ;; |
| 12828 | |
| 12829 | netbsd*) |
| 12830 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 12831 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 12832 | else |
| 12833 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 12834 | fi |
| 12835 | hardcode_libdir_flag_spec='-R$libdir' |
| 12836 | hardcode_direct=yes |
| 12837 | hardcode_shlibpath_var=no |
| 12838 | ;; |
| 12839 | |
| 12840 | newsos6) |
| 12841 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12842 | hardcode_direct=yes |
| 12843 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 12844 | hardcode_libdir_separator=: |
| 12845 | hardcode_shlibpath_var=no |
| 12846 | ;; |
| 12847 | |
| 12848 | *nto* | *qnx*) |
| 12849 | ;; |
| 12850 | |
| 12851 | openbsd*) |
| 12852 | if test -f /usr/libexec/ld.so; then |
| 12853 | hardcode_direct=yes |
| 12854 | hardcode_shlibpath_var=no |
| 12855 | hardcode_direct_absolute=yes |
| 12856 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 12857 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 12858 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
| 12859 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 12860 | export_dynamic_flag_spec='${wl}-E' |
| 12861 | else |
| 12862 | case $host_os in |
| 12863 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 12864 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 12865 | hardcode_libdir_flag_spec='-R$libdir' |
| 12866 | ;; |
| 12867 | *) |
| 12868 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 12869 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 12870 | ;; |
| 12871 | esac |
| 12872 | fi |
| 12873 | else |
| 12874 | ld_shlibs=no |
| 12875 | fi |
| 12876 | ;; |
| 12877 | |
| 12878 | os2*) |
| 12879 | hardcode_libdir_flag_spec='-L$libdir' |
| 12880 | hardcode_minus_L=yes |
| 12881 | allow_undefined_flag=unsupported |
| 12882 | 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' |
| 12883 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 12884 | ;; |
| 12885 | |
| 12886 | osf3*) |
| 12887 | if test "$GCC" = yes; then |
| 12888 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 12889 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 12890 | else |
| 12891 | allow_undefined_flag=' -expect_unresolved \*' |
| 12892 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' |
| 12893 | fi |
| 12894 | archive_cmds_need_lc='no' |
| 12895 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 12896 | hardcode_libdir_separator=: |
| 12897 | ;; |
| 12898 | |
| 12899 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 12900 | if test "$GCC" = yes; then |
| 12901 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 12902 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 12903 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 12904 | else |
| 12905 | allow_undefined_flag=' -expect_unresolved \*' |
| 12906 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' |
| 12907 | 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~ |
| 12908 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' |
| 12909 | |
| 12910 | # Both c and cxx compiler support -rpath directly |
| 12911 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 12912 | fi |
| 12913 | archive_cmds_need_lc='no' |
| 12914 | hardcode_libdir_separator=: |
| 12915 | ;; |
| 12916 | |
| 12917 | solaris*) |
| 12918 | no_undefined_flag=' -z defs' |
| 12919 | if test "$GCC" = yes; then |
| 12920 | wlarc='${wl}' |
| 12921 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12922 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 12923 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 12924 | else |
| 12925 | case `$CC -V 2>&1` in |
| 12926 | *"Compilers 5.0"*) |
| 12927 | wlarc='' |
| 12928 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12929 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 12930 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
| 12931 | ;; |
| 12932 | *) |
| 12933 | wlarc='${wl}' |
| 12934 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12935 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 12936 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 12937 | ;; |
| 12938 | esac |
| 12939 | fi |
| 12940 | hardcode_libdir_flag_spec='-R$libdir' |
| 12941 | hardcode_shlibpath_var=no |
| 12942 | case $host_os in |
| 12943 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 12944 | *) |
| 12945 | # The compiler driver will combine and reorder linker options, |
| 12946 | # but understands `-z linker_flag'. GCC discards it without `$wl', |
| 12947 | # but is careful enough not to reorder. |
| 12948 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 12949 | if test "$GCC" = yes; then |
| 12950 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 12951 | else |
| 12952 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
| 12953 | fi |
| 12954 | ;; |
| 12955 | esac |
| 12956 | link_all_deplibs=yes |
| 12957 | ;; |
| 12958 | |
| 12959 | sunos4*) |
| 12960 | if test "x$host_vendor" = xsequent; then |
| 12961 | # Use $CC to link under sequent, because it throws in some extra .o |
| 12962 | # files that make .init and .fini sections work. |
| 12963 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12964 | else |
| 12965 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 12966 | fi |
| 12967 | hardcode_libdir_flag_spec='-L$libdir' |
| 12968 | hardcode_direct=yes |
| 12969 | hardcode_minus_L=yes |
| 12970 | hardcode_shlibpath_var=no |
| 12971 | ;; |
| 12972 | |
| 12973 | sysv4) |
| 12974 | case $host_vendor in |
| 12975 | sni) |
| 12976 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12977 | hardcode_direct=yes # is this really true??? |
| 12978 | ;; |
| 12979 | siemens) |
| 12980 | ## LD is ld it makes a PLAMLIB |
| 12981 | ## CC just makes a GrossModule. |
| 12982 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 12983 | reload_cmds='$CC -r -o $output$reload_objs' |
| 12984 | hardcode_direct=no |
| 12985 | ;; |
| 12986 | motorola) |
| 12987 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12988 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 12989 | ;; |
| 12990 | esac |
| 12991 | runpath_var='LD_RUN_PATH' |
| 12992 | hardcode_shlibpath_var=no |
| 12993 | ;; |
| 12994 | |
| 12995 | sysv4.3*) |
| 12996 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12997 | hardcode_shlibpath_var=no |
| 12998 | export_dynamic_flag_spec='-Bexport' |
| 12999 | ;; |
| 13000 | |
| 13001 | sysv4*MP*) |
| 13002 | if test -d /usr/nec; then |
| 13003 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13004 | hardcode_shlibpath_var=no |
| 13005 | runpath_var=LD_RUN_PATH |
| 13006 | hardcode_runpath_var=yes |
| 13007 | ld_shlibs=yes |
| 13008 | fi |
| 13009 | ;; |
| 13010 | |
| 13011 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 13012 | no_undefined_flag='${wl}-z,text' |
| 13013 | archive_cmds_need_lc=no |
| 13014 | hardcode_shlibpath_var=no |
| 13015 | runpath_var='LD_RUN_PATH' |
| 13016 | |
| 13017 | if test "$GCC" = yes; then |
| 13018 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13019 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13020 | else |
| 13021 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13022 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13023 | fi |
| 13024 | ;; |
| 13025 | |
| 13026 | sysv5* | sco3.2v5* | sco5v6*) |
| 13027 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 13028 | # link with -lc, and that would cause any symbols used from libc to |
| 13029 | # always be unresolved, which means just about no library would |
| 13030 | # ever link correctly. If we're not using GNU ld we use -z text |
| 13031 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 13032 | # as -z defs. |
| 13033 | no_undefined_flag='${wl}-z,text' |
| 13034 | allow_undefined_flag='${wl}-z,nodefs' |
| 13035 | archive_cmds_need_lc=no |
| 13036 | hardcode_shlibpath_var=no |
| 13037 | hardcode_libdir_flag_spec='${wl}-R,$libdir' |
| 13038 | hardcode_libdir_separator=':' |
| 13039 | link_all_deplibs=yes |
| 13040 | export_dynamic_flag_spec='${wl}-Bexport' |
| 13041 | runpath_var='LD_RUN_PATH' |
| 13042 | |
| 13043 | if test "$GCC" = yes; then |
| 13044 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13045 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13046 | else |
| 13047 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13048 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13049 | fi |
| 13050 | ;; |
| 13051 | |
| 13052 | uts4*) |
| 13053 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13054 | hardcode_libdir_flag_spec='-L$libdir' |
| 13055 | hardcode_shlibpath_var=no |
| 13056 | ;; |
| 13057 | |
| 13058 | *) |
| 13059 | ld_shlibs=no |
| 13060 | ;; |
| 13061 | esac |
| 13062 | |
| 13063 | if test x$host_vendor = xsni; then |
| 13064 | case $host in |
| 13065 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 13066 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 13067 | ;; |
| 13068 | esac |
| 13069 | fi |
| 13070 | fi |
| 13071 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 13072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13073 | $as_echo "$ld_shlibs" >&6; } |
| 13074 | test "$ld_shlibs" = no && can_build_shared=no |
| 13075 | |
| 13076 | with_gnu_ld=$with_gnu_ld |
| 13077 | |
| 13078 | |
| 13079 | |
| 13080 | |
| 13081 | |
| 13082 | |
| 13083 | |
| 13084 | |
| 13085 | |
| 13086 | |
| 13087 | |
| 13088 | |
| 13089 | |
| 13090 | |
| 13091 | |
| 13092 | # |
| 13093 | # Do we need to explicitly link libc? |
| 13094 | # |
| 13095 | case "x$archive_cmds_need_lc" in |
| 13096 | x|xyes) |
| 13097 | # Assume -lc should be added |
| 13098 | archive_cmds_need_lc=yes |
| 13099 | |
| 13100 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 13101 | case $archive_cmds in |
| 13102 | *'~'*) |
| 13103 | # FIXME: we may have to deal with multi-command sequences. |
| 13104 | ;; |
| 13105 | '$CC '*) |
| 13106 | # Test whether the compiler implicitly links with -lc since on some |
| 13107 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 13108 | # to ld, don't add -lc before -lgcc. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 13109 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13110 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
| 13111 | $RM conftest* |
| 13112 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 13113 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 13114 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13115 | (eval $ac_compile) 2>&5 |
| 13116 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 13117 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 13118 | test $ac_status = 0; } 2>conftest.err; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13119 | soname=conftest |
| 13120 | lib=conftest |
| 13121 | libobjs=conftest.$ac_objext |
| 13122 | deplibs= |
| 13123 | wl=$lt_prog_compiler_wl |
| 13124 | pic_flag=$lt_prog_compiler_pic |
| 13125 | compiler_flags=-v |
| 13126 | linker_flags=-v |
| 13127 | verstring= |
| 13128 | output_objdir=. |
| 13129 | libname=conftest |
| 13130 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 13131 | allow_undefined_flag= |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 13132 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13133 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 13134 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 13135 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 13136 | test $ac_status = 0; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13137 | then |
| 13138 | archive_cmds_need_lc=no |
| 13139 | else |
| 13140 | archive_cmds_need_lc=yes |
| 13141 | fi |
| 13142 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 13143 | else |
| 13144 | cat conftest.err 1>&5 |
| 13145 | fi |
| 13146 | $RM conftest* |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 13147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13148 | $as_echo "$archive_cmds_need_lc" >&6; } |
| 13149 | ;; |
| 13150 | esac |
| 13151 | fi |
| 13152 | ;; |
| 13153 | esac |
| 13154 | |
| 13155 | |
| 13156 | |
| 13157 | |
| 13158 | |
| 13159 | |
| 13160 | |
| 13161 | |
| 13162 | |
| 13163 | |
| 13164 | |
| 13165 | |
| 13166 | |
| 13167 | |
| 13168 | |
| 13169 | |
| 13170 | |
| 13171 | |
| 13172 | |
| 13173 | |
| 13174 | |
| 13175 | |
| 13176 | |
| 13177 | |
| 13178 | |
| 13179 | |
| 13180 | |
| 13181 | |
| 13182 | |
| 13183 | |
| 13184 | |
| 13185 | |
| 13186 | |
| 13187 | |
| 13188 | |
| 13189 | |
| 13190 | |
| 13191 | |
| 13192 | |
| 13193 | |
| 13194 | |
| 13195 | |
| 13196 | |
| 13197 | |
| 13198 | |
| 13199 | |
| 13200 | |
| 13201 | |
| 13202 | |
| 13203 | |
| 13204 | |
| 13205 | |
| 13206 | |
| 13207 | |
| 13208 | |
| 13209 | |
| 13210 | |
| 13211 | |
| 13212 | |
| 13213 | |
| 13214 | |
| 13215 | |
| 13216 | |
| 13217 | |
| 13218 | |
| 13219 | |
| 13220 | |
| 13221 | |
| 13222 | |
| 13223 | |
| 13224 | |
| 13225 | |
| 13226 | |
| 13227 | |
| 13228 | |
| 13229 | |
| 13230 | |
| 13231 | |
| 13232 | |
| 13233 | |
| 13234 | |
| 13235 | |
| 13236 | |
| 13237 | |
| 13238 | |
| 13239 | |
| 13240 | |
| 13241 | |
| 13242 | |
| 13243 | |
| 13244 | |
| 13245 | |
| 13246 | |
| 13247 | |
| 13248 | |
| 13249 | |
| 13250 | |
| 13251 | |
| 13252 | |
| 13253 | |
| 13254 | |
| 13255 | |
| 13256 | |
| 13257 | |
| 13258 | |
| 13259 | |
| 13260 | |
| 13261 | |
| 13262 | |
| 13263 | |
| 13264 | |
| 13265 | |
| 13266 | |
| 13267 | |
| 13268 | |
| 13269 | |
| 13270 | |
| 13271 | |
| 13272 | |
| 13273 | |
| 13274 | |
| 13275 | |
| 13276 | |
| 13277 | |
| 13278 | |
| 13279 | |
| 13280 | |
| 13281 | |
| 13282 | |
| 13283 | |
| 13284 | |
| 13285 | |
| 13286 | |
| 13287 | |
| 13288 | |
| 13289 | |
| 13290 | |
| 13291 | |
| 13292 | |
| 13293 | |
| 13294 | |
| 13295 | |
| 13296 | |
| 13297 | |
| 13298 | |
| 13299 | |
| 13300 | |
| 13301 | |
| 13302 | |
| 13303 | |
| 13304 | |
| 13305 | |
| 13306 | |
| 13307 | |
| 13308 | |
| 13309 | |
| 13310 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 13311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13312 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
| 13313 | |
| 13314 | if test "$GCC" = yes; then |
| 13315 | case $host_os in |
| 13316 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
| 13317 | *) lt_awk_arg="/^libraries:/" ;; |
| 13318 | esac |
| 13319 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 13320 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then |
| 13321 | # if the path contains ";" then we assume it to be the separator |
| 13322 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 13323 | # assumed that no part of a normal pathname contains ";" but that should |
| 13324 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 13325 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` |
| 13326 | else |
| 13327 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 13328 | fi |
| 13329 | # Ok, now we have the path, separated by spaces, we can step through it |
| 13330 | # and add multilib dir if necessary. |
| 13331 | lt_tmp_lt_search_path_spec= |
| 13332 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
| 13333 | for lt_sys_path in $lt_search_path_spec; do |
| 13334 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
| 13335 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" |
| 13336 | else |
| 13337 | test -d "$lt_sys_path" && \ |
| 13338 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
| 13339 | fi |
| 13340 | done |
| 13341 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' |
| 13342 | BEGIN {RS=" "; FS="/|\n";} { |
| 13343 | lt_foo=""; |
| 13344 | lt_count=0; |
| 13345 | for (lt_i = NF; lt_i > 0; lt_i--) { |
| 13346 | if ($lt_i != "" && $lt_i != ".") { |
| 13347 | if ($lt_i == "..") { |
| 13348 | lt_count++; |
| 13349 | } else { |
| 13350 | if (lt_count == 0) { |
| 13351 | lt_foo="/" $lt_i lt_foo; |
| 13352 | } else { |
| 13353 | lt_count--; |
| 13354 | } |
| 13355 | } |
| 13356 | } |
| 13357 | } |
| 13358 | if (lt_foo != "") { lt_freq[lt_foo]++; } |
| 13359 | if (lt_freq[lt_foo] == 1) { print lt_foo; } |
| 13360 | }'` |
| 13361 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` |
| 13362 | else |
| 13363 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 13364 | fi |
| 13365 | library_names_spec= |
| 13366 | libname_spec='lib$name' |
| 13367 | soname_spec= |
| 13368 | shrext_cmds=".so" |
| 13369 | postinstall_cmds= |
| 13370 | postuninstall_cmds= |
| 13371 | finish_cmds= |
| 13372 | finish_eval= |
| 13373 | shlibpath_var= |
| 13374 | shlibpath_overrides_runpath=unknown |
| 13375 | version_type=none |
| 13376 | dynamic_linker="$host_os ld.so" |
| 13377 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 13378 | need_lib_prefix=unknown |
| 13379 | hardcode_into_libs=no |
| 13380 | |
| 13381 | # when you set need_version to no, make sure it does not cause -set_version |
| 13382 | # flags to be left without arguments |
| 13383 | need_version=unknown |
| 13384 | |
| 13385 | case $host_os in |
| 13386 | aix3*) |
| 13387 | version_type=linux |
| 13388 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 13389 | shlibpath_var=LIBPATH |
| 13390 | |
| 13391 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 13392 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13393 | ;; |
| 13394 | |
| 13395 | aix[4-9]*) |
| 13396 | version_type=linux |
| 13397 | need_lib_prefix=no |
| 13398 | need_version=no |
| 13399 | hardcode_into_libs=yes |
| 13400 | if test "$host_cpu" = ia64; then |
| 13401 | # AIX 5 supports IA64 |
| 13402 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 13403 | shlibpath_var=LD_LIBRARY_PATH |
| 13404 | else |
| 13405 | # With GCC up to 2.95.x, collect2 would create an import file |
| 13406 | # for dependence libraries. The import file would start with |
| 13407 | # the line `#! .'. This would cause the generated library to |
| 13408 | # depend on `.', always an invalid library. This was fixed in |
| 13409 | # development snapshots of GCC prior to 3.0. |
| 13410 | case $host_os in |
| 13411 | aix4 | aix4.[01] | aix4.[01].*) |
| 13412 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 13413 | echo ' yes ' |
| 13414 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
| 13415 | : |
| 13416 | else |
| 13417 | can_build_shared=no |
| 13418 | fi |
| 13419 | ;; |
| 13420 | esac |
| 13421 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 13422 | # soname into executable. Probably we can add versioning support to |
| 13423 | # collect2, so additional links can be useful in future. |
| 13424 | if test "$aix_use_runtimelinking" = yes; then |
| 13425 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 13426 | # instead of lib<name>.a to let people know that these are not |
| 13427 | # typical AIX shared libraries. |
| 13428 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13429 | else |
| 13430 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 13431 | # and later when we are not doing run time linking. |
| 13432 | library_names_spec='${libname}${release}.a $libname.a' |
| 13433 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13434 | fi |
| 13435 | shlibpath_var=LIBPATH |
| 13436 | fi |
| 13437 | ;; |
| 13438 | |
| 13439 | amigaos*) |
| 13440 | case $host_cpu in |
| 13441 | powerpc) |
| 13442 | # Since July 2007 AmigaOS4 officially supports .so libraries. |
| 13443 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 13444 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13445 | ;; |
| 13446 | m68k) |
| 13447 | library_names_spec='$libname.ixlibrary $libname.a' |
| 13448 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 13449 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
| 13450 | ;; |
| 13451 | esac |
| 13452 | ;; |
| 13453 | |
| 13454 | beos*) |
| 13455 | library_names_spec='${libname}${shared_ext}' |
| 13456 | dynamic_linker="$host_os ld.so" |
| 13457 | shlibpath_var=LIBRARY_PATH |
| 13458 | ;; |
| 13459 | |
| 13460 | bsdi[45]*) |
| 13461 | version_type=linux |
| 13462 | need_version=no |
| 13463 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13464 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13465 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 13466 | shlibpath_var=LD_LIBRARY_PATH |
| 13467 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 13468 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 13469 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 13470 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 13471 | # libtool to hard-code these into programs |
| 13472 | ;; |
| 13473 | |
| 13474 | cygwin* | mingw* | pw32* | cegcc*) |
| 13475 | version_type=windows |
| 13476 | shrext_cmds=".dll" |
| 13477 | need_version=no |
| 13478 | need_lib_prefix=no |
| 13479 | |
| 13480 | case $GCC,$host_os in |
| 13481 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) |
| 13482 | library_names_spec='$libname.dll.a' |
| 13483 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 13484 | postinstall_cmds='base_file=`basename \${file}`~ |
| 13485 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
| 13486 | dldir=$destdir/`dirname \$dlpath`~ |
| 13487 | test -d \$dldir || mkdir -p \$dldir~ |
| 13488 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 13489 | chmod a+x \$dldir/$dlname~ |
| 13490 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 13491 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 13492 | fi' |
| 13493 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 13494 | dlpath=$dir/\$dldll~ |
| 13495 | $RM \$dlpath' |
| 13496 | shlibpath_overrides_runpath=yes |
| 13497 | |
| 13498 | case $host_os in |
| 13499 | cygwin*) |
| 13500 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 13501 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 13502 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 13503 | ;; |
| 13504 | mingw* | cegcc*) |
| 13505 | # MinGW DLLs use traditional 'lib' prefix |
| 13506 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 13507 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 13508 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
| 13509 | # It is most probably a Windows format PATH printed by |
| 13510 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 13511 | # path with ; separators, and with drive letters. We can handle the |
| 13512 | # drive letters (cygwin fileutils understands them), so leave them, |
| 13513 | # especially as we might pass files found there to a mingw objdump, |
| 13514 | # which wouldn't understand a cygwinified path. Ahh. |
| 13515 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 13516 | else |
| 13517 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 13518 | fi |
| 13519 | ;; |
| 13520 | pw32*) |
| 13521 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 13522 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 13523 | ;; |
| 13524 | esac |
| 13525 | ;; |
| 13526 | |
| 13527 | *) |
| 13528 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 13529 | ;; |
| 13530 | esac |
| 13531 | dynamic_linker='Win32 ld.exe' |
| 13532 | # FIXME: first we should search . and the directory the executable is in |
| 13533 | shlibpath_var=PATH |
| 13534 | ;; |
| 13535 | |
| 13536 | darwin* | rhapsody*) |
| 13537 | dynamic_linker="$host_os dyld" |
| 13538 | version_type=darwin |
| 13539 | need_lib_prefix=no |
| 13540 | need_version=no |
| 13541 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 13542 | soname_spec='${libname}${release}${major}$shared_ext' |
| 13543 | shlibpath_overrides_runpath=yes |
| 13544 | shlibpath_var=DYLD_LIBRARY_PATH |
| 13545 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 13546 | |
| 13547 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
| 13548 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 13549 | ;; |
| 13550 | |
| 13551 | dgux*) |
| 13552 | version_type=linux |
| 13553 | need_lib_prefix=no |
| 13554 | need_version=no |
| 13555 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 13556 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13557 | shlibpath_var=LD_LIBRARY_PATH |
| 13558 | ;; |
| 13559 | |
| 13560 | freebsd1*) |
| 13561 | dynamic_linker=no |
| 13562 | ;; |
| 13563 | |
| 13564 | freebsd* | dragonfly*) |
| 13565 | # DragonFly does not have aout. When/if they implement a new |
| 13566 | # versioning mechanism, adjust this. |
| 13567 | if test -x /usr/bin/objformat; then |
| 13568 | objformat=`/usr/bin/objformat` |
| 13569 | else |
| 13570 | case $host_os in |
| 13571 | freebsd[123]*) objformat=aout ;; |
| 13572 | *) objformat=elf ;; |
| 13573 | esac |
| 13574 | fi |
| 13575 | version_type=freebsd-$objformat |
| 13576 | case $version_type in |
| 13577 | freebsd-elf*) |
| 13578 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 13579 | need_version=no |
| 13580 | need_lib_prefix=no |
| 13581 | ;; |
| 13582 | freebsd-*) |
| 13583 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 13584 | need_version=yes |
| 13585 | ;; |
| 13586 | esac |
| 13587 | shlibpath_var=LD_LIBRARY_PATH |
| 13588 | case $host_os in |
| 13589 | freebsd2*) |
| 13590 | shlibpath_overrides_runpath=yes |
| 13591 | ;; |
| 13592 | freebsd3.[01]* | freebsdelf3.[01]*) |
| 13593 | shlibpath_overrides_runpath=yes |
| 13594 | hardcode_into_libs=yes |
| 13595 | ;; |
| 13596 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 13597 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
| 13598 | shlibpath_overrides_runpath=no |
| 13599 | hardcode_into_libs=yes |
| 13600 | ;; |
| 13601 | *) # from 4.6 on, and DragonFly |
| 13602 | shlibpath_overrides_runpath=yes |
| 13603 | hardcode_into_libs=yes |
| 13604 | ;; |
| 13605 | esac |
| 13606 | ;; |
| 13607 | |
| 13608 | gnu*) |
| 13609 | version_type=linux |
| 13610 | need_lib_prefix=no |
| 13611 | need_version=no |
| 13612 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 13613 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13614 | shlibpath_var=LD_LIBRARY_PATH |
| 13615 | hardcode_into_libs=yes |
| 13616 | ;; |
| 13617 | |
| 13618 | hpux9* | hpux10* | hpux11*) |
| 13619 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 13620 | # link against other versions. |
| 13621 | version_type=sunos |
| 13622 | need_lib_prefix=no |
| 13623 | need_version=no |
| 13624 | case $host_cpu in |
| 13625 | ia64*) |
| 13626 | shrext_cmds='.so' |
| 13627 | hardcode_into_libs=yes |
| 13628 | dynamic_linker="$host_os dld.so" |
| 13629 | shlibpath_var=LD_LIBRARY_PATH |
| 13630 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 13631 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13632 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13633 | if test "X$HPUX_IA64_MODE" = X32; then |
| 13634 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 13635 | else |
| 13636 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 13637 | fi |
| 13638 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 13639 | ;; |
| 13640 | hppa*64*) |
| 13641 | shrext_cmds='.sl' |
| 13642 | hardcode_into_libs=yes |
| 13643 | dynamic_linker="$host_os dld.sl" |
| 13644 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 13645 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 13646 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13647 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13648 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 13649 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 13650 | ;; |
| 13651 | *) |
| 13652 | shrext_cmds='.sl' |
| 13653 | dynamic_linker="$host_os dld.sl" |
| 13654 | shlibpath_var=SHLIB_PATH |
| 13655 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 13656 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13657 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13658 | ;; |
| 13659 | esac |
| 13660 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 13661 | postinstall_cmds='chmod 555 $lib' |
| 13662 | ;; |
| 13663 | |
| 13664 | interix[3-9]*) |
| 13665 | version_type=linux |
| 13666 | need_lib_prefix=no |
| 13667 | need_version=no |
| 13668 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 13669 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13670 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 13671 | shlibpath_var=LD_LIBRARY_PATH |
| 13672 | shlibpath_overrides_runpath=no |
| 13673 | hardcode_into_libs=yes |
| 13674 | ;; |
| 13675 | |
| 13676 | irix5* | irix6* | nonstopux*) |
| 13677 | case $host_os in |
| 13678 | nonstopux*) version_type=nonstopux ;; |
| 13679 | *) |
| 13680 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 13681 | version_type=linux |
| 13682 | else |
| 13683 | version_type=irix |
| 13684 | fi ;; |
| 13685 | esac |
| 13686 | need_lib_prefix=no |
| 13687 | need_version=no |
| 13688 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13689 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 13690 | case $host_os in |
| 13691 | irix5* | nonstopux*) |
| 13692 | libsuff= shlibsuff= |
| 13693 | ;; |
| 13694 | *) |
| 13695 | case $LD in # libtool.m4 will add one of these switches to LD |
| 13696 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 13697 | libsuff= shlibsuff= libmagic=32-bit;; |
| 13698 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 13699 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 13700 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 13701 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 13702 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 13703 | esac |
| 13704 | ;; |
| 13705 | esac |
| 13706 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 13707 | shlibpath_overrides_runpath=no |
| 13708 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 13709 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 13710 | hardcode_into_libs=yes |
| 13711 | ;; |
| 13712 | |
| 13713 | # No shared lib support for Linux oldld, aout, or coff. |
| 13714 | linux*oldld* | linux*aout* | linux*coff*) |
| 13715 | dynamic_linker=no |
| 13716 | ;; |
| 13717 | |
| 13718 | # This must be Linux ELF. |
| 13719 | linux* | k*bsd*-gnu) |
| 13720 | version_type=linux |
| 13721 | need_lib_prefix=no |
| 13722 | need_version=no |
| 13723 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13724 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13725 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 13726 | shlibpath_var=LD_LIBRARY_PATH |
| 13727 | shlibpath_overrides_runpath=no |
| 13728 | # Some binutils ld are patched to set DT_RUNPATH |
| 13729 | save_LDFLAGS=$LDFLAGS |
| 13730 | save_libdir=$libdir |
| 13731 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ |
| 13732 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 13733 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13734 | /* end confdefs.h. */ |
| 13735 | |
| 13736 | int |
| 13737 | main () |
| 13738 | { |
| 13739 | |
| 13740 | ; |
| 13741 | return 0; |
| 13742 | } |
| 13743 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 13744 | if ac_fn_c_try_link "$LINENO"; then : |
| 13745 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13746 | shlibpath_overrides_runpath=yes |
| 13747 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13748 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 13749 | rm -f core conftest.err conftest.$ac_objext \ |
| 13750 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13751 | LDFLAGS=$save_LDFLAGS |
| 13752 | libdir=$save_libdir |
| 13753 | |
| 13754 | # This implies no fast_install, which is unacceptable. |
| 13755 | # Some rework will be needed to allow for fast_install |
| 13756 | # before this can be enabled. |
| 13757 | hardcode_into_libs=yes |
| 13758 | |
| 13759 | # Add ABI-specific directories to the system library path. |
| 13760 | sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" |
| 13761 | |
| 13762 | # Append ld.so.conf contents to the search path |
| 13763 | if test -f /etc/ld.so.conf; then |
| 13764 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
| 13765 | sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" |
| 13766 | fi |
| 13767 | |
| 13768 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 13769 | # powerpc, because MkLinux only supported shared libraries with the |
| 13770 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 13771 | # most powerpc-linux boxes support dynamic linking these days and |
| 13772 | # people can always --disable-shared, the test was removed, and we |
| 13773 | # assume the GNU/Linux dynamic linker is in use. |
| 13774 | dynamic_linker='GNU/Linux ld.so' |
| 13775 | ;; |
| 13776 | |
| 13777 | netbsd*) |
| 13778 | version_type=sunos |
| 13779 | need_lib_prefix=no |
| 13780 | need_version=no |
| 13781 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 13782 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 13783 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 13784 | dynamic_linker='NetBSD (a.out) ld.so' |
| 13785 | else |
| 13786 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 13787 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13788 | dynamic_linker='NetBSD ld.elf_so' |
| 13789 | fi |
| 13790 | shlibpath_var=LD_LIBRARY_PATH |
| 13791 | shlibpath_overrides_runpath=yes |
| 13792 | hardcode_into_libs=yes |
| 13793 | ;; |
| 13794 | |
| 13795 | newsos6) |
| 13796 | version_type=linux |
| 13797 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13798 | shlibpath_var=LD_LIBRARY_PATH |
| 13799 | shlibpath_overrides_runpath=yes |
| 13800 | ;; |
| 13801 | |
| 13802 | *nto* | *qnx*) |
| 13803 | version_type=qnx |
| 13804 | need_lib_prefix=no |
| 13805 | need_version=no |
| 13806 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13807 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13808 | shlibpath_var=LD_LIBRARY_PATH |
| 13809 | shlibpath_overrides_runpath=no |
| 13810 | hardcode_into_libs=yes |
| 13811 | dynamic_linker='ldqnx.so' |
| 13812 | ;; |
| 13813 | |
| 13814 | openbsd*) |
| 13815 | version_type=sunos |
| 13816 | sys_lib_dlsearch_path_spec="/usr/lib" |
| 13817 | need_lib_prefix=no |
| 13818 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 13819 | case $host_os in |
| 13820 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 13821 | *) need_version=no ;; |
| 13822 | esac |
| 13823 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 13824 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 13825 | shlibpath_var=LD_LIBRARY_PATH |
| 13826 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 13827 | case $host_os in |
| 13828 | openbsd2.[89] | openbsd2.[89].*) |
| 13829 | shlibpath_overrides_runpath=no |
| 13830 | ;; |
| 13831 | *) |
| 13832 | shlibpath_overrides_runpath=yes |
| 13833 | ;; |
| 13834 | esac |
| 13835 | else |
| 13836 | shlibpath_overrides_runpath=yes |
| 13837 | fi |
| 13838 | ;; |
| 13839 | |
| 13840 | os2*) |
| 13841 | libname_spec='$name' |
| 13842 | shrext_cmds=".dll" |
| 13843 | need_lib_prefix=no |
| 13844 | library_names_spec='$libname${shared_ext} $libname.a' |
| 13845 | dynamic_linker='OS/2 ld.exe' |
| 13846 | shlibpath_var=LIBPATH |
| 13847 | ;; |
| 13848 | |
| 13849 | osf3* | osf4* | osf5*) |
| 13850 | version_type=osf |
| 13851 | need_lib_prefix=no |
| 13852 | need_version=no |
| 13853 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13854 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13855 | shlibpath_var=LD_LIBRARY_PATH |
| 13856 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 13857 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 13858 | ;; |
| 13859 | |
| 13860 | rdos*) |
| 13861 | dynamic_linker=no |
| 13862 | ;; |
| 13863 | |
| 13864 | solaris*) |
| 13865 | version_type=linux |
| 13866 | need_lib_prefix=no |
| 13867 | need_version=no |
| 13868 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13869 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13870 | shlibpath_var=LD_LIBRARY_PATH |
| 13871 | shlibpath_overrides_runpath=yes |
| 13872 | hardcode_into_libs=yes |
| 13873 | # ldd complains unless libraries are executable |
| 13874 | postinstall_cmds='chmod +x $lib' |
| 13875 | ;; |
| 13876 | |
| 13877 | sunos4*) |
| 13878 | version_type=sunos |
| 13879 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 13880 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 13881 | shlibpath_var=LD_LIBRARY_PATH |
| 13882 | shlibpath_overrides_runpath=yes |
| 13883 | if test "$with_gnu_ld" = yes; then |
| 13884 | need_lib_prefix=no |
| 13885 | fi |
| 13886 | need_version=yes |
| 13887 | ;; |
| 13888 | |
| 13889 | sysv4 | sysv4.3*) |
| 13890 | version_type=linux |
| 13891 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13892 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13893 | shlibpath_var=LD_LIBRARY_PATH |
| 13894 | case $host_vendor in |
| 13895 | sni) |
| 13896 | shlibpath_overrides_runpath=no |
| 13897 | need_lib_prefix=no |
| 13898 | runpath_var=LD_RUN_PATH |
| 13899 | ;; |
| 13900 | siemens) |
| 13901 | need_lib_prefix=no |
| 13902 | ;; |
| 13903 | motorola) |
| 13904 | need_lib_prefix=no |
| 13905 | need_version=no |
| 13906 | shlibpath_overrides_runpath=no |
| 13907 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 13908 | ;; |
| 13909 | esac |
| 13910 | ;; |
| 13911 | |
| 13912 | sysv4*MP*) |
| 13913 | if test -d /usr/nec ;then |
| 13914 | version_type=linux |
| 13915 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 13916 | soname_spec='$libname${shared_ext}.$major' |
| 13917 | shlibpath_var=LD_LIBRARY_PATH |
| 13918 | fi |
| 13919 | ;; |
| 13920 | |
| 13921 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 13922 | version_type=freebsd-elf |
| 13923 | need_lib_prefix=no |
| 13924 | need_version=no |
| 13925 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 13926 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13927 | shlibpath_var=LD_LIBRARY_PATH |
| 13928 | shlibpath_overrides_runpath=yes |
| 13929 | hardcode_into_libs=yes |
| 13930 | if test "$with_gnu_ld" = yes; then |
| 13931 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 13932 | else |
| 13933 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 13934 | case $host_os in |
| 13935 | sco3.2v5*) |
| 13936 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 13937 | ;; |
| 13938 | esac |
| 13939 | fi |
| 13940 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 13941 | ;; |
| 13942 | |
| 13943 | tpf*) |
| 13944 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 13945 | version_type=linux |
| 13946 | need_lib_prefix=no |
| 13947 | need_version=no |
| 13948 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13949 | shlibpath_var=LD_LIBRARY_PATH |
| 13950 | shlibpath_overrides_runpath=no |
| 13951 | hardcode_into_libs=yes |
| 13952 | ;; |
| 13953 | |
| 13954 | uts4*) |
| 13955 | version_type=linux |
| 13956 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13957 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13958 | shlibpath_var=LD_LIBRARY_PATH |
| 13959 | ;; |
| 13960 | |
| 13961 | *) |
| 13962 | dynamic_linker=no |
| 13963 | ;; |
| 13964 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 13965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13966 | $as_echo "$dynamic_linker" >&6; } |
| 13967 | test "$dynamic_linker" = no && can_build_shared=no |
| 13968 | |
| 13969 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 13970 | if test "$GCC" = yes; then |
| 13971 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 13972 | fi |
| 13973 | |
| 13974 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
| 13975 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
| 13976 | fi |
| 13977 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
| 13978 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
| 13979 | fi |
| 13980 | |
| 13981 | |
| 13982 | |
| 13983 | |
| 13984 | |
| 13985 | |
| 13986 | |
| 13987 | |
| 13988 | |
| 13989 | |
| 13990 | |
| 13991 | |
| 13992 | |
| 13993 | |
| 13994 | |
| 13995 | |
| 13996 | |
| 13997 | |
| 13998 | |
| 13999 | |
| 14000 | |
| 14001 | |
| 14002 | |
| 14003 | |
| 14004 | |
| 14005 | |
| 14006 | |
| 14007 | |
| 14008 | |
| 14009 | |
| 14010 | |
| 14011 | |
| 14012 | |
| 14013 | |
| 14014 | |
| 14015 | |
| 14016 | |
| 14017 | |
| 14018 | |
| 14019 | |
| 14020 | |
| 14021 | |
| 14022 | |
| 14023 | |
| 14024 | |
| 14025 | |
| 14026 | |
| 14027 | |
| 14028 | |
| 14029 | |
| 14030 | |
| 14031 | |
| 14032 | |
| 14033 | |
| 14034 | |
| 14035 | |
| 14036 | |
| 14037 | |
| 14038 | |
| 14039 | |
| 14040 | |
| 14041 | |
| 14042 | |
| 14043 | |
| 14044 | |
| 14045 | |
| 14046 | |
| 14047 | |
| 14048 | |
| 14049 | |
| 14050 | |
| 14051 | |
| 14052 | |
| 14053 | |
| 14054 | |
| 14055 | |
| 14056 | |
| 14057 | |
| 14058 | |
| 14059 | |
| 14060 | |
| 14061 | |
| 14062 | |
| 14063 | |
| 14064 | |
| 14065 | |
| 14066 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14068 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
| 14069 | hardcode_action= |
| 14070 | if test -n "$hardcode_libdir_flag_spec" || |
| 14071 | test -n "$runpath_var" || |
| 14072 | test "X$hardcode_automatic" = "Xyes" ; then |
| 14073 | |
| 14074 | # We can hardcode non-existent directories. |
| 14075 | if test "$hardcode_direct" != no && |
| 14076 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 14077 | # have to relink, otherwise we might link with an installed library |
| 14078 | # when we should be linking with a yet-to-be-installed one |
| 14079 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && |
| 14080 | test "$hardcode_minus_L" != no; then |
| 14081 | # Linking always hardcodes the temporary library directory. |
| 14082 | hardcode_action=relink |
| 14083 | else |
| 14084 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 14085 | hardcode_action=immediate |
| 14086 | fi |
| 14087 | else |
| 14088 | # We cannot hardcode anything, or else we can only hardcode existing |
| 14089 | # directories. |
| 14090 | hardcode_action=unsupported |
| 14091 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14093 | $as_echo "$hardcode_action" >&6; } |
| 14094 | |
| 14095 | if test "$hardcode_action" = relink || |
| 14096 | test "$inherit_rpath" = yes; then |
| 14097 | # Fast installation is not supported |
| 14098 | enable_fast_install=no |
| 14099 | elif test "$shlibpath_overrides_runpath" = yes || |
| 14100 | test "$enable_shared" = no; then |
| 14101 | # Fast installation is not necessary |
| 14102 | enable_fast_install=needless |
| 14103 | fi |
| 14104 | |
| 14105 | |
| 14106 | |
| 14107 | |
| 14108 | |
| 14109 | |
| 14110 | if test "x$enable_dlopen" != xyes; then |
| 14111 | enable_dlopen=unknown |
| 14112 | enable_dlopen_self=unknown |
| 14113 | enable_dlopen_self_static=unknown |
| 14114 | else |
| 14115 | lt_cv_dlopen=no |
| 14116 | lt_cv_dlopen_libs= |
| 14117 | |
| 14118 | case $host_os in |
| 14119 | beos*) |
| 14120 | lt_cv_dlopen="load_add_on" |
| 14121 | lt_cv_dlopen_libs= |
| 14122 | lt_cv_dlopen_self=yes |
| 14123 | ;; |
| 14124 | |
| 14125 | mingw* | pw32* | cegcc*) |
| 14126 | lt_cv_dlopen="LoadLibrary" |
| 14127 | lt_cv_dlopen_libs= |
| 14128 | ;; |
| 14129 | |
| 14130 | cygwin*) |
| 14131 | lt_cv_dlopen="dlopen" |
| 14132 | lt_cv_dlopen_libs= |
| 14133 | ;; |
| 14134 | |
| 14135 | darwin*) |
| 14136 | # if libdl is installed we need to link against it |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14138 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14139 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14140 | $as_echo_n "(cached) " >&6 |
| 14141 | else |
| 14142 | ac_check_lib_save_LIBS=$LIBS |
| 14143 | LIBS="-ldl $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14144 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14145 | /* end confdefs.h. */ |
| 14146 | |
| 14147 | /* Override any GCC internal prototype to avoid an error. |
| 14148 | Use char because int might match the return type of a GCC |
| 14149 | builtin and then its argument prototype would still apply. */ |
| 14150 | #ifdef __cplusplus |
| 14151 | extern "C" |
| 14152 | #endif |
| 14153 | char dlopen (); |
| 14154 | int |
| 14155 | main () |
| 14156 | { |
| 14157 | return dlopen (); |
| 14158 | ; |
| 14159 | return 0; |
| 14160 | } |
| 14161 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14162 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14163 | ac_cv_lib_dl_dlopen=yes |
| 14164 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14165 | ac_cv_lib_dl_dlopen=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14166 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14167 | rm -f core conftest.err conftest.$ac_objext \ |
| 14168 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14169 | LIBS=$ac_check_lib_save_LIBS |
| 14170 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14172 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14173 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14174 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 14175 | else |
| 14176 | |
| 14177 | lt_cv_dlopen="dyld" |
| 14178 | lt_cv_dlopen_libs= |
| 14179 | lt_cv_dlopen_self=yes |
| 14180 | |
| 14181 | fi |
| 14182 | |
| 14183 | ;; |
| 14184 | |
| 14185 | *) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14186 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
| 14187 | if test "x$ac_cv_func_shl_load" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14188 | lt_cv_dlopen="shl_load" |
| 14189 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14190 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14191 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14192 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14193 | $as_echo_n "(cached) " >&6 |
| 14194 | else |
| 14195 | ac_check_lib_save_LIBS=$LIBS |
| 14196 | LIBS="-ldld $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14197 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14198 | /* end confdefs.h. */ |
| 14199 | |
| 14200 | /* Override any GCC internal prototype to avoid an error. |
| 14201 | Use char because int might match the return type of a GCC |
| 14202 | builtin and then its argument prototype would still apply. */ |
| 14203 | #ifdef __cplusplus |
| 14204 | extern "C" |
| 14205 | #endif |
| 14206 | char shl_load (); |
| 14207 | int |
| 14208 | main () |
| 14209 | { |
| 14210 | return shl_load (); |
| 14211 | ; |
| 14212 | return 0; |
| 14213 | } |
| 14214 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14215 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14216 | ac_cv_lib_dld_shl_load=yes |
| 14217 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14218 | ac_cv_lib_dld_shl_load=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14219 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14220 | rm -f core conftest.err conftest.$ac_objext \ |
| 14221 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14222 | LIBS=$ac_check_lib_save_LIBS |
| 14223 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14225 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14226 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14227 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
| 14228 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14229 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
| 14230 | if test "x$ac_cv_func_dlopen" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14231 | lt_cv_dlopen="dlopen" |
| 14232 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14234 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14235 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14236 | $as_echo_n "(cached) " >&6 |
| 14237 | else |
| 14238 | ac_check_lib_save_LIBS=$LIBS |
| 14239 | LIBS="-ldl $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14240 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14241 | /* end confdefs.h. */ |
| 14242 | |
| 14243 | /* Override any GCC internal prototype to avoid an error. |
| 14244 | Use char because int might match the return type of a GCC |
| 14245 | builtin and then its argument prototype would still apply. */ |
| 14246 | #ifdef __cplusplus |
| 14247 | extern "C" |
| 14248 | #endif |
| 14249 | char dlopen (); |
| 14250 | int |
| 14251 | main () |
| 14252 | { |
| 14253 | return dlopen (); |
| 14254 | ; |
| 14255 | return 0; |
| 14256 | } |
| 14257 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14258 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14259 | ac_cv_lib_dl_dlopen=yes |
| 14260 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14261 | ac_cv_lib_dl_dlopen=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14262 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14263 | rm -f core conftest.err conftest.$ac_objext \ |
| 14264 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14265 | LIBS=$ac_check_lib_save_LIBS |
| 14266 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14268 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14269 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14270 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 14271 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14273 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14274 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14275 | $as_echo_n "(cached) " >&6 |
| 14276 | else |
| 14277 | ac_check_lib_save_LIBS=$LIBS |
| 14278 | LIBS="-lsvld $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14279 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14280 | /* end confdefs.h. */ |
| 14281 | |
| 14282 | /* Override any GCC internal prototype to avoid an error. |
| 14283 | Use char because int might match the return type of a GCC |
| 14284 | builtin and then its argument prototype would still apply. */ |
| 14285 | #ifdef __cplusplus |
| 14286 | extern "C" |
| 14287 | #endif |
| 14288 | char dlopen (); |
| 14289 | int |
| 14290 | main () |
| 14291 | { |
| 14292 | return dlopen (); |
| 14293 | ; |
| 14294 | return 0; |
| 14295 | } |
| 14296 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14297 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14298 | ac_cv_lib_svld_dlopen=yes |
| 14299 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14300 | ac_cv_lib_svld_dlopen=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14301 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14302 | rm -f core conftest.err conftest.$ac_objext \ |
| 14303 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14304 | LIBS=$ac_check_lib_save_LIBS |
| 14305 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14307 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14308 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14309 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 14310 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14312 | $as_echo_n "checking for dld_link in -ldld... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14313 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14314 | $as_echo_n "(cached) " >&6 |
| 14315 | else |
| 14316 | ac_check_lib_save_LIBS=$LIBS |
| 14317 | LIBS="-ldld $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14318 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14319 | /* end confdefs.h. */ |
| 14320 | |
| 14321 | /* Override any GCC internal prototype to avoid an error. |
| 14322 | Use char because int might match the return type of a GCC |
| 14323 | builtin and then its argument prototype would still apply. */ |
| 14324 | #ifdef __cplusplus |
| 14325 | extern "C" |
| 14326 | #endif |
| 14327 | char dld_link (); |
| 14328 | int |
| 14329 | main () |
| 14330 | { |
| 14331 | return dld_link (); |
| 14332 | ; |
| 14333 | return 0; |
| 14334 | } |
| 14335 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14336 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14337 | ac_cv_lib_dld_dld_link=yes |
| 14338 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14339 | ac_cv_lib_dld_dld_link=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14340 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14341 | rm -f core conftest.err conftest.$ac_objext \ |
| 14342 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14343 | LIBS=$ac_check_lib_save_LIBS |
| 14344 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14346 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14347 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14348 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
| 14349 | fi |
| 14350 | |
| 14351 | |
| 14352 | fi |
| 14353 | |
| 14354 | |
| 14355 | fi |
| 14356 | |
| 14357 | |
| 14358 | fi |
| 14359 | |
| 14360 | |
| 14361 | fi |
| 14362 | |
| 14363 | |
| 14364 | fi |
| 14365 | |
| 14366 | ;; |
| 14367 | esac |
| 14368 | |
| 14369 | if test "x$lt_cv_dlopen" != xno; then |
| 14370 | enable_dlopen=yes |
| 14371 | else |
| 14372 | enable_dlopen=no |
| 14373 | fi |
| 14374 | |
| 14375 | case $lt_cv_dlopen in |
| 14376 | dlopen) |
| 14377 | save_CPPFLAGS="$CPPFLAGS" |
| 14378 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 14379 | |
| 14380 | save_LDFLAGS="$LDFLAGS" |
| 14381 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 14382 | |
| 14383 | save_LIBS="$LIBS" |
| 14384 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 14385 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14387 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14388 | if test "${lt_cv_dlopen_self+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14389 | $as_echo_n "(cached) " >&6 |
| 14390 | else |
| 14391 | if test "$cross_compiling" = yes; then : |
| 14392 | lt_cv_dlopen_self=cross |
| 14393 | else |
| 14394 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 14395 | lt_status=$lt_dlunknown |
| 14396 | cat > conftest.$ac_ext <<_LT_EOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14397 | #line 14397 "configure" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14398 | #include "confdefs.h" |
| 14399 | |
| 14400 | #if HAVE_DLFCN_H |
| 14401 | #include <dlfcn.h> |
| 14402 | #endif |
| 14403 | |
| 14404 | #include <stdio.h> |
| 14405 | |
| 14406 | #ifdef RTLD_GLOBAL |
| 14407 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 14408 | #else |
| 14409 | # ifdef DL_GLOBAL |
| 14410 | # define LT_DLGLOBAL DL_GLOBAL |
| 14411 | # else |
| 14412 | # define LT_DLGLOBAL 0 |
| 14413 | # endif |
| 14414 | #endif |
| 14415 | |
| 14416 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 14417 | find out it does not work in some platform. */ |
| 14418 | #ifndef LT_DLLAZY_OR_NOW |
| 14419 | # ifdef RTLD_LAZY |
| 14420 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 14421 | # else |
| 14422 | # ifdef DL_LAZY |
| 14423 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 14424 | # else |
| 14425 | # ifdef RTLD_NOW |
| 14426 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 14427 | # else |
| 14428 | # ifdef DL_NOW |
| 14429 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 14430 | # else |
| 14431 | # define LT_DLLAZY_OR_NOW 0 |
| 14432 | # endif |
| 14433 | # endif |
| 14434 | # endif |
| 14435 | # endif |
| 14436 | #endif |
| 14437 | |
| 14438 | void fnord() { int i=42;} |
| 14439 | int main () |
| 14440 | { |
| 14441 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 14442 | int status = $lt_dlunknown; |
| 14443 | |
| 14444 | if (self) |
| 14445 | { |
| 14446 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 14447 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 14448 | /* dlclose (self); */ |
| 14449 | } |
| 14450 | else |
| 14451 | puts (dlerror ()); |
| 14452 | |
| 14453 | return status; |
| 14454 | } |
| 14455 | _LT_EOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14456 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14457 | (eval $ac_link) 2>&5 |
| 14458 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14459 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14460 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14461 | (./conftest; exit; ) >&5 2>/dev/null |
| 14462 | lt_status=$? |
| 14463 | case x$lt_status in |
| 14464 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 14465 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 14466 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
| 14467 | esac |
| 14468 | else : |
| 14469 | # compilation failed |
| 14470 | lt_cv_dlopen_self=no |
| 14471 | fi |
| 14472 | fi |
| 14473 | rm -fr conftest* |
| 14474 | |
| 14475 | |
| 14476 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14478 | $as_echo "$lt_cv_dlopen_self" >&6; } |
| 14479 | |
| 14480 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 14481 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14483 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14484 | if test "${lt_cv_dlopen_self_static+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14485 | $as_echo_n "(cached) " >&6 |
| 14486 | else |
| 14487 | if test "$cross_compiling" = yes; then : |
| 14488 | lt_cv_dlopen_self_static=cross |
| 14489 | else |
| 14490 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 14491 | lt_status=$lt_dlunknown |
| 14492 | cat > conftest.$ac_ext <<_LT_EOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14493 | #line 14493 "configure" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14494 | #include "confdefs.h" |
| 14495 | |
| 14496 | #if HAVE_DLFCN_H |
| 14497 | #include <dlfcn.h> |
| 14498 | #endif |
| 14499 | |
| 14500 | #include <stdio.h> |
| 14501 | |
| 14502 | #ifdef RTLD_GLOBAL |
| 14503 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 14504 | #else |
| 14505 | # ifdef DL_GLOBAL |
| 14506 | # define LT_DLGLOBAL DL_GLOBAL |
| 14507 | # else |
| 14508 | # define LT_DLGLOBAL 0 |
| 14509 | # endif |
| 14510 | #endif |
| 14511 | |
| 14512 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 14513 | find out it does not work in some platform. */ |
| 14514 | #ifndef LT_DLLAZY_OR_NOW |
| 14515 | # ifdef RTLD_LAZY |
| 14516 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 14517 | # else |
| 14518 | # ifdef DL_LAZY |
| 14519 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 14520 | # else |
| 14521 | # ifdef RTLD_NOW |
| 14522 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 14523 | # else |
| 14524 | # ifdef DL_NOW |
| 14525 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 14526 | # else |
| 14527 | # define LT_DLLAZY_OR_NOW 0 |
| 14528 | # endif |
| 14529 | # endif |
| 14530 | # endif |
| 14531 | # endif |
| 14532 | #endif |
| 14533 | |
| 14534 | void fnord() { int i=42;} |
| 14535 | int main () |
| 14536 | { |
| 14537 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 14538 | int status = $lt_dlunknown; |
| 14539 | |
| 14540 | if (self) |
| 14541 | { |
| 14542 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 14543 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 14544 | /* dlclose (self); */ |
| 14545 | } |
| 14546 | else |
| 14547 | puts (dlerror ()); |
| 14548 | |
| 14549 | return status; |
| 14550 | } |
| 14551 | _LT_EOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14552 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14553 | (eval $ac_link) 2>&5 |
| 14554 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14555 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14556 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14557 | (./conftest; exit; ) >&5 2>/dev/null |
| 14558 | lt_status=$? |
| 14559 | case x$lt_status in |
| 14560 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 14561 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 14562 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
| 14563 | esac |
| 14564 | else : |
| 14565 | # compilation failed |
| 14566 | lt_cv_dlopen_self_static=no |
| 14567 | fi |
| 14568 | fi |
| 14569 | rm -fr conftest* |
| 14570 | |
| 14571 | |
| 14572 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14574 | $as_echo "$lt_cv_dlopen_self_static" >&6; } |
| 14575 | fi |
| 14576 | |
| 14577 | CPPFLAGS="$save_CPPFLAGS" |
| 14578 | LDFLAGS="$save_LDFLAGS" |
| 14579 | LIBS="$save_LIBS" |
| 14580 | ;; |
| 14581 | esac |
| 14582 | |
| 14583 | case $lt_cv_dlopen_self in |
| 14584 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 14585 | *) enable_dlopen_self=unknown ;; |
| 14586 | esac |
| 14587 | |
| 14588 | case $lt_cv_dlopen_self_static in |
| 14589 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 14590 | *) enable_dlopen_self_static=unknown ;; |
| 14591 | esac |
| 14592 | fi |
| 14593 | |
| 14594 | |
| 14595 | |
| 14596 | |
| 14597 | |
| 14598 | |
| 14599 | |
| 14600 | |
| 14601 | |
| 14602 | |
| 14603 | |
| 14604 | |
| 14605 | |
| 14606 | |
| 14607 | |
| 14608 | |
| 14609 | |
| 14610 | striplib= |
| 14611 | old_striplib= |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14613 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } |
| 14614 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
| 14615 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 14616 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14618 | $as_echo "yes" >&6; } |
| 14619 | else |
| 14620 | # FIXME - insert some real tests, host_os isn't really good enough |
| 14621 | case $host_os in |
| 14622 | darwin*) |
| 14623 | if test -n "$STRIP" ; then |
| 14624 | striplib="$STRIP -x" |
| 14625 | old_striplib="$STRIP -S" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14627 | $as_echo "yes" >&6; } |
| 14628 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14630 | $as_echo "no" >&6; } |
| 14631 | fi |
| 14632 | ;; |
| 14633 | *) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14635 | $as_echo "no" >&6; } |
| 14636 | ;; |
| 14637 | esac |
| 14638 | fi |
| 14639 | |
| 14640 | |
| 14641 | |
| 14642 | |
| 14643 | |
| 14644 | |
| 14645 | |
| 14646 | |
| 14647 | |
| 14648 | |
| 14649 | |
| 14650 | |
| 14651 | # Report which library types will actually be built |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14653 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14655 | $as_echo "$can_build_shared" >&6; } |
| 14656 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14658 | $as_echo_n "checking whether to build shared libraries... " >&6; } |
| 14659 | test "$can_build_shared" = "no" && enable_shared=no |
| 14660 | |
| 14661 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 14662 | # are all built from PIC. |
| 14663 | case $host_os in |
| 14664 | aix3*) |
| 14665 | test "$enable_shared" = yes && enable_static=no |
| 14666 | if test -n "$RANLIB"; then |
| 14667 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 14668 | postinstall_cmds='$RANLIB $lib' |
| 14669 | fi |
| 14670 | ;; |
| 14671 | |
| 14672 | aix[4-9]*) |
| 14673 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 14674 | test "$enable_shared" = yes && enable_static=no |
| 14675 | fi |
| 14676 | ;; |
| 14677 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14679 | $as_echo "$enable_shared" >&6; } |
| 14680 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14682 | $as_echo_n "checking whether to build static libraries... " >&6; } |
| 14683 | # Make sure either enable_shared or enable_static is yes. |
| 14684 | test "$enable_shared" = yes || enable_static=yes |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14686 | $as_echo "$enable_static" >&6; } |
| 14687 | |
| 14688 | |
| 14689 | |
| 14690 | |
| 14691 | fi |
| 14692 | ac_ext=c |
| 14693 | ac_cpp='$CPP $CPPFLAGS' |
| 14694 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14695 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14696 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14697 | |
| 14698 | CC="$lt_save_CC" |
| 14699 | |
| 14700 | |
| 14701 | ac_ext=cpp |
| 14702 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 14703 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14704 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14705 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 14706 | |
| 14707 | archive_cmds_need_lc_CXX=no |
| 14708 | allow_undefined_flag_CXX= |
| 14709 | always_export_symbols_CXX=no |
| 14710 | archive_expsym_cmds_CXX= |
| 14711 | compiler_needs_object_CXX=no |
| 14712 | export_dynamic_flag_spec_CXX= |
| 14713 | hardcode_direct_CXX=no |
| 14714 | hardcode_direct_absolute_CXX=no |
| 14715 | hardcode_libdir_flag_spec_CXX= |
| 14716 | hardcode_libdir_flag_spec_ld_CXX= |
| 14717 | hardcode_libdir_separator_CXX= |
| 14718 | hardcode_minus_L_CXX=no |
| 14719 | hardcode_shlibpath_var_CXX=unsupported |
| 14720 | hardcode_automatic_CXX=no |
| 14721 | inherit_rpath_CXX=no |
| 14722 | module_cmds_CXX= |
| 14723 | module_expsym_cmds_CXX= |
| 14724 | link_all_deplibs_CXX=unknown |
| 14725 | old_archive_cmds_CXX=$old_archive_cmds |
| 14726 | no_undefined_flag_CXX= |
| 14727 | whole_archive_flag_spec_CXX= |
| 14728 | enable_shared_with_static_runtimes_CXX=no |
| 14729 | |
| 14730 | # Source file extension for C++ test sources. |
| 14731 | ac_ext=cpp |
| 14732 | |
| 14733 | # Object file extension for compiled C++ test sources. |
| 14734 | objext=o |
| 14735 | objext_CXX=$objext |
| 14736 | |
| 14737 | # No sense in running all these tests if we already determined that |
| 14738 | # the CXX compiler isn't working. Some variables (like enable_shared) |
| 14739 | # are currently assumed to apply to all compilers on this platform, |
| 14740 | # and will be corrupted by setting them based on a non-working compiler. |
| 14741 | if test "$_lt_caught_CXX_error" != yes; then |
| 14742 | # Code to be used in simple compile tests |
| 14743 | lt_simple_compile_test_code="int some_variable = 0;" |
| 14744 | |
| 14745 | # Code to be used in simple link tests |
| 14746 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' |
| 14747 | |
| 14748 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 14749 | |
| 14750 | |
| 14751 | |
| 14752 | |
| 14753 | |
| 14754 | |
| 14755 | # If no C compiler was specified, use CC. |
| 14756 | LTCC=${LTCC-"$CC"} |
| 14757 | |
| 14758 | # If no C compiler flags were specified, use CFLAGS. |
| 14759 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 14760 | |
| 14761 | # Allow CC to be a program name with arguments. |
| 14762 | compiler=$CC |
| 14763 | |
| 14764 | |
| 14765 | # save warnings/boilerplate of simple test code |
| 14766 | ac_outfile=conftest.$ac_objext |
| 14767 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 14768 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 14769 | _lt_compiler_boilerplate=`cat conftest.err` |
| 14770 | $RM conftest* |
| 14771 | |
| 14772 | ac_outfile=conftest.$ac_objext |
| 14773 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
| 14774 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 14775 | _lt_linker_boilerplate=`cat conftest.err` |
| 14776 | $RM -r conftest* |
| 14777 | |
| 14778 | |
| 14779 | # Allow CC to be a program name with arguments. |
| 14780 | lt_save_CC=$CC |
| 14781 | lt_save_LD=$LD |
| 14782 | lt_save_GCC=$GCC |
| 14783 | GCC=$GXX |
| 14784 | lt_save_with_gnu_ld=$with_gnu_ld |
| 14785 | lt_save_path_LD=$lt_cv_path_LD |
| 14786 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 14787 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 14788 | else |
| 14789 | $as_unset lt_cv_prog_gnu_ld |
| 14790 | fi |
| 14791 | if test -n "${lt_cv_path_LDCXX+set}"; then |
| 14792 | lt_cv_path_LD=$lt_cv_path_LDCXX |
| 14793 | else |
| 14794 | $as_unset lt_cv_path_LD |
| 14795 | fi |
| 14796 | test -z "${LDCXX+set}" || LD=$LDCXX |
| 14797 | CC=${CXX-"c++"} |
| 14798 | compiler=$CC |
| 14799 | compiler_CXX=$CC |
| 14800 | for cc_temp in $compiler""; do |
| 14801 | case $cc_temp in |
| 14802 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 14803 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 14804 | \-*) ;; |
| 14805 | *) break;; |
| 14806 | esac |
| 14807 | done |
| 14808 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 14809 | |
| 14810 | |
| 14811 | if test -n "$compiler"; then |
| 14812 | # We don't want -fno-exception when compiling C++ code, so set the |
| 14813 | # no_builtin_flag separately |
| 14814 | if test "$GXX" = yes; then |
| 14815 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
| 14816 | else |
| 14817 | lt_prog_compiler_no_builtin_flag_CXX= |
| 14818 | fi |
| 14819 | |
| 14820 | if test "$GXX" = yes; then |
| 14821 | # Set up default GNU C++ configuration |
| 14822 | |
| 14823 | |
| 14824 | |
| 14825 | # Check whether --with-gnu-ld was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14826 | if test "${with_gnu_ld+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14827 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
| 14828 | else |
| 14829 | with_gnu_ld=no |
| 14830 | fi |
| 14831 | |
| 14832 | ac_prog=ld |
| 14833 | if test "$GCC" = yes; then |
| 14834 | # Check if gcc -print-prog-name=ld gives a path. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14836 | $as_echo_n "checking for ld used by $CC... " >&6; } |
| 14837 | case $host in |
| 14838 | *-*-mingw*) |
| 14839 | # gcc leaves a trailing carriage return which upsets mingw |
| 14840 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 14841 | *) |
| 14842 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 14843 | esac |
| 14844 | case $ac_prog in |
| 14845 | # Accept absolute paths. |
| 14846 | [\\/]* | ?:[\\/]*) |
| 14847 | re_direlt='/[^/][^/]*/\.\./' |
| 14848 | # Canonicalize the pathname of ld |
| 14849 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 14850 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 14851 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
| 14852 | done |
| 14853 | test -z "$LD" && LD="$ac_prog" |
| 14854 | ;; |
| 14855 | "") |
| 14856 | # If it fails, then pretend we aren't using GCC. |
| 14857 | ac_prog=ld |
| 14858 | ;; |
| 14859 | *) |
| 14860 | # If it is relative, then search for the first ld in PATH. |
| 14861 | with_gnu_ld=unknown |
| 14862 | ;; |
| 14863 | esac |
| 14864 | elif test "$with_gnu_ld" = yes; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14866 | $as_echo_n "checking for GNU ld... " >&6; } |
| 14867 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14869 | $as_echo_n "checking for non-GNU ld... " >&6; } |
| 14870 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14871 | if test "${lt_cv_path_LD+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14872 | $as_echo_n "(cached) " >&6 |
| 14873 | else |
| 14874 | if test -z "$LD"; then |
| 14875 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 14876 | for ac_dir in $PATH; do |
| 14877 | IFS="$lt_save_ifs" |
| 14878 | test -z "$ac_dir" && ac_dir=. |
| 14879 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 14880 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 14881 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 14882 | # but apparently some variants of GNU ld only accept -v. |
| 14883 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 14884 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 14885 | *GNU* | *'with BFD'*) |
| 14886 | test "$with_gnu_ld" != no && break |
| 14887 | ;; |
| 14888 | *) |
| 14889 | test "$with_gnu_ld" != yes && break |
| 14890 | ;; |
| 14891 | esac |
| 14892 | fi |
| 14893 | done |
| 14894 | IFS="$lt_save_ifs" |
| 14895 | else |
| 14896 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 14897 | fi |
| 14898 | fi |
| 14899 | |
| 14900 | LD="$lt_cv_path_LD" |
| 14901 | if test -n "$LD"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14903 | $as_echo "$LD" >&6; } |
| 14904 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14906 | $as_echo "no" >&6; } |
| 14907 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14908 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 |
| 14909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14910 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14911 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14912 | $as_echo_n "(cached) " >&6 |
| 14913 | else |
| 14914 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 14915 | case `$LD -v 2>&1 </dev/null` in |
| 14916 | *GNU* | *'with BFD'*) |
| 14917 | lt_cv_prog_gnu_ld=yes |
| 14918 | ;; |
| 14919 | *) |
| 14920 | lt_cv_prog_gnu_ld=no |
| 14921 | ;; |
| 14922 | esac |
| 14923 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14925 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
| 14926 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 14927 | |
| 14928 | |
| 14929 | |
| 14930 | |
| 14931 | |
| 14932 | |
| 14933 | |
| 14934 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 14935 | # archiving commands below assume that GNU ld is being used. |
| 14936 | if test "$with_gnu_ld" = yes; then |
| 14937 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14938 | archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 14939 | |
| 14940 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 14941 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 14942 | |
| 14943 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 14944 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 14945 | # investigate it a little bit more. (MM) |
| 14946 | wlarc='${wl}' |
| 14947 | |
| 14948 | # ancient GNU ld didn't support --whole-archive et. al. |
| 14949 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | |
| 14950 | $GREP 'no-whole-archive' > /dev/null; then |
| 14951 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 14952 | else |
| 14953 | whole_archive_flag_spec_CXX= |
| 14954 | fi |
| 14955 | else |
| 14956 | with_gnu_ld=no |
| 14957 | wlarc= |
| 14958 | |
| 14959 | # A generic and very simple default shared library creation |
| 14960 | # command for GNU C++ for the case where it uses the native |
| 14961 | # linker, instead of GNU ld. If possible, this setting should |
| 14962 | # overridden to take advantage of the native linker features on |
| 14963 | # the platform it is being used on. |
| 14964 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 14965 | fi |
| 14966 | |
| 14967 | # Commands to make compiler produce verbose output that lists |
| 14968 | # what "hidden" libraries, object files and flags are used when |
| 14969 | # linking a shared library. |
| 14970 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' |
| 14971 | |
| 14972 | else |
| 14973 | GXX=no |
| 14974 | with_gnu_ld=no |
| 14975 | wlarc= |
| 14976 | fi |
| 14977 | |
| 14978 | # PORTME: fill in a description of your system's C++ link characteristics |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 14979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14980 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
| 14981 | ld_shlibs_CXX=yes |
| 14982 | case $host_os in |
| 14983 | aix3*) |
| 14984 | # FIXME: insert proper C++ library support |
| 14985 | ld_shlibs_CXX=no |
| 14986 | ;; |
| 14987 | aix[4-9]*) |
| 14988 | if test "$host_cpu" = ia64; then |
| 14989 | # On IA64, the linker does run time linking by default, so we don't |
| 14990 | # have to do anything special. |
| 14991 | aix_use_runtimelinking=no |
| 14992 | exp_sym_flag='-Bexport' |
| 14993 | no_entry_flag="" |
| 14994 | else |
| 14995 | aix_use_runtimelinking=no |
| 14996 | |
| 14997 | # Test if we are trying to use run time linking or normal |
| 14998 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 14999 | # need to do runtime linking. |
| 15000 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
| 15001 | for ld_flag in $LDFLAGS; do |
| 15002 | case $ld_flag in |
| 15003 | *-brtl*) |
| 15004 | aix_use_runtimelinking=yes |
| 15005 | break |
| 15006 | ;; |
| 15007 | esac |
| 15008 | done |
| 15009 | ;; |
| 15010 | esac |
| 15011 | |
| 15012 | exp_sym_flag='-bexport' |
| 15013 | no_entry_flag='-bnoentry' |
| 15014 | fi |
| 15015 | |
| 15016 | # When large executables or shared objects are built, AIX ld can |
| 15017 | # have problems creating the table of contents. If linking a library |
| 15018 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 15019 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 15020 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 15021 | |
| 15022 | archive_cmds_CXX='' |
| 15023 | hardcode_direct_CXX=yes |
| 15024 | hardcode_direct_absolute_CXX=yes |
| 15025 | hardcode_libdir_separator_CXX=':' |
| 15026 | link_all_deplibs_CXX=yes |
| 15027 | file_list_spec_CXX='${wl}-f,' |
| 15028 | |
| 15029 | if test "$GXX" = yes; then |
| 15030 | case $host_os in aix4.[012]|aix4.[012].*) |
| 15031 | # We only want to do this on AIX 4.2 and lower, the check |
| 15032 | # below for broken collect2 doesn't work under 4.3+ |
| 15033 | collect2name=`${CC} -print-prog-name=collect2` |
| 15034 | if test -f "$collect2name" && |
| 15035 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
| 15036 | then |
| 15037 | # We have reworked collect2 |
| 15038 | : |
| 15039 | else |
| 15040 | # We have old collect2 |
| 15041 | hardcode_direct_CXX=unsupported |
| 15042 | # It fails to find uninstalled libraries when the uninstalled |
| 15043 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 15044 | # to unsupported forces relinking |
| 15045 | hardcode_minus_L_CXX=yes |
| 15046 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 15047 | hardcode_libdir_separator_CXX= |
| 15048 | fi |
| 15049 | esac |
| 15050 | shared_flag='-shared' |
| 15051 | if test "$aix_use_runtimelinking" = yes; then |
| 15052 | shared_flag="$shared_flag "'${wl}-G' |
| 15053 | fi |
| 15054 | else |
| 15055 | # not using gcc |
| 15056 | if test "$host_cpu" = ia64; then |
| 15057 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 15058 | # chokes on -Wl,-G. The following line is correct: |
| 15059 | shared_flag='-G' |
| 15060 | else |
| 15061 | if test "$aix_use_runtimelinking" = yes; then |
| 15062 | shared_flag='${wl}-G' |
| 15063 | else |
| 15064 | shared_flag='${wl}-bM:SRE' |
| 15065 | fi |
| 15066 | fi |
| 15067 | fi |
| 15068 | |
| 15069 | export_dynamic_flag_spec_CXX='${wl}-bexpall' |
| 15070 | # It seems that -bexpall does not export symbols beginning with |
| 15071 | # underscore (_), so it is better to generate a list of symbols to |
| 15072 | # export. |
| 15073 | always_export_symbols_CXX=yes |
| 15074 | if test "$aix_use_runtimelinking" = yes; then |
| 15075 | # Warning - without using the other runtime loading flags (-brtl), |
| 15076 | # -berok will link without error, but may produce a broken library. |
| 15077 | allow_undefined_flag_CXX='-berok' |
| 15078 | # Determine the default libpath from the value encoded in an empty |
| 15079 | # executable. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 15080 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15081 | /* end confdefs.h. */ |
| 15082 | |
| 15083 | int |
| 15084 | main () |
| 15085 | { |
| 15086 | |
| 15087 | ; |
| 15088 | return 0; |
| 15089 | } |
| 15090 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 15091 | if ac_fn_cxx_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15092 | |
| 15093 | lt_aix_libpath_sed=' |
| 15094 | /Import File Strings/,/^$/ { |
| 15095 | /^0/ { |
| 15096 | s/^0 *\(.*\)$/\1/ |
| 15097 | p |
| 15098 | } |
| 15099 | }' |
| 15100 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 15101 | # Check for a 64-bit object if we didn't find anything. |
| 15102 | if test -z "$aix_libpath"; then |
| 15103 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 15104 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15105 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 15106 | rm -f core conftest.err conftest.$ac_objext \ |
| 15107 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15108 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 15109 | |
| 15110 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 15111 | |
| 15112 | 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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
| 15113 | else |
| 15114 | if test "$host_cpu" = ia64; then |
| 15115 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
| 15116 | allow_undefined_flag_CXX="-z nodefs" |
| 15117 | 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" |
| 15118 | else |
| 15119 | # Determine the default libpath from the value encoded in an |
| 15120 | # empty executable. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 15121 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15122 | /* end confdefs.h. */ |
| 15123 | |
| 15124 | int |
| 15125 | main () |
| 15126 | { |
| 15127 | |
| 15128 | ; |
| 15129 | return 0; |
| 15130 | } |
| 15131 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 15132 | if ac_fn_cxx_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15133 | |
| 15134 | lt_aix_libpath_sed=' |
| 15135 | /Import File Strings/,/^$/ { |
| 15136 | /^0/ { |
| 15137 | s/^0 *\(.*\)$/\1/ |
| 15138 | p |
| 15139 | } |
| 15140 | }' |
| 15141 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 15142 | # Check for a 64-bit object if we didn't find anything. |
| 15143 | if test -z "$aix_libpath"; then |
| 15144 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 15145 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15146 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 15147 | rm -f core conftest.err conftest.$ac_objext \ |
| 15148 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15149 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 15150 | |
| 15151 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 15152 | # Warning - without using the other run time loading flags, |
| 15153 | # -berok will link without error, but may produce a broken library. |
| 15154 | no_undefined_flag_CXX=' ${wl}-bernotok' |
| 15155 | allow_undefined_flag_CXX=' ${wl}-berok' |
| 15156 | # Exported symbols can be pulled into shared objects from archives |
| 15157 | whole_archive_flag_spec_CXX='$convenience' |
| 15158 | archive_cmds_need_lc_CXX=yes |
| 15159 | # This is similar to how AIX traditionally builds its shared |
| 15160 | # libraries. |
| 15161 | 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' |
| 15162 | fi |
| 15163 | fi |
| 15164 | ;; |
| 15165 | |
| 15166 | beos*) |
| 15167 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 15168 | allow_undefined_flag_CXX=unsupported |
| 15169 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 15170 | # support --undefined. This deserves some investigation. FIXME |
| 15171 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15172 | else |
| 15173 | ld_shlibs_CXX=no |
| 15174 | fi |
| 15175 | ;; |
| 15176 | |
| 15177 | chorus*) |
| 15178 | case $cc_basename in |
| 15179 | *) |
| 15180 | # FIXME: insert proper C++ library support |
| 15181 | ld_shlibs_CXX=no |
| 15182 | ;; |
| 15183 | esac |
| 15184 | ;; |
| 15185 | |
| 15186 | cygwin* | mingw* | pw32* | cegcc*) |
| 15187 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
| 15188 | # as there is no search path for DLLs. |
| 15189 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 15190 | allow_undefined_flag_CXX=unsupported |
| 15191 | always_export_symbols_CXX=no |
| 15192 | enable_shared_with_static_runtimes_CXX=yes |
| 15193 | |
| 15194 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 15195 | 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' |
| 15196 | # If the export-symbols file already is a .def file (1st line |
| 15197 | # is EXPORTS), use it as is; otherwise, prepend... |
| 15198 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 15199 | cp $export_symbols $output_objdir/$soname.def; |
| 15200 | else |
| 15201 | echo EXPORTS > $output_objdir/$soname.def; |
| 15202 | cat $export_symbols >> $output_objdir/$soname.def; |
| 15203 | fi~ |
| 15204 | $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' |
| 15205 | else |
| 15206 | ld_shlibs_CXX=no |
| 15207 | fi |
| 15208 | ;; |
| 15209 | darwin* | rhapsody*) |
| 15210 | |
| 15211 | |
| 15212 | archive_cmds_need_lc_CXX=no |
| 15213 | hardcode_direct_CXX=no |
| 15214 | hardcode_automatic_CXX=yes |
| 15215 | hardcode_shlibpath_var_CXX=unsupported |
| 15216 | whole_archive_flag_spec_CXX='' |
| 15217 | link_all_deplibs_CXX=yes |
| 15218 | allow_undefined_flag_CXX="$_lt_dar_allow_undefined" |
| 15219 | case $cc_basename in |
| 15220 | ifort*) _lt_dar_can_shared=yes ;; |
| 15221 | *) _lt_dar_can_shared=$GCC ;; |
| 15222 | esac |
| 15223 | if test "$_lt_dar_can_shared" = "yes"; then |
| 15224 | output_verbose_link_cmd=echo |
| 15225 | 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}" |
| 15226 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
| 15227 | 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}" |
| 15228 | 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}" |
| 15229 | if test "$lt_cv_apple_cc_single_mod" != "yes"; then |
| 15230 | 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}" |
| 15231 | 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}" |
| 15232 | fi |
| 15233 | |
| 15234 | else |
| 15235 | ld_shlibs_CXX=no |
| 15236 | fi |
| 15237 | |
| 15238 | ;; |
| 15239 | |
| 15240 | dgux*) |
| 15241 | case $cc_basename in |
| 15242 | ec++*) |
| 15243 | # FIXME: insert proper C++ library support |
| 15244 | ld_shlibs_CXX=no |
| 15245 | ;; |
| 15246 | ghcx*) |
| 15247 | # Green Hills C++ Compiler |
| 15248 | # FIXME: insert proper C++ library support |
| 15249 | ld_shlibs_CXX=no |
| 15250 | ;; |
| 15251 | *) |
| 15252 | # FIXME: insert proper C++ library support |
| 15253 | ld_shlibs_CXX=no |
| 15254 | ;; |
| 15255 | esac |
| 15256 | ;; |
| 15257 | |
| 15258 | freebsd[12]*) |
| 15259 | # C++ shared libraries reported to be fairly broken before |
| 15260 | # switch to ELF |
| 15261 | ld_shlibs_CXX=no |
| 15262 | ;; |
| 15263 | |
| 15264 | freebsd-elf*) |
| 15265 | archive_cmds_need_lc_CXX=no |
| 15266 | ;; |
| 15267 | |
| 15268 | freebsd* | dragonfly*) |
| 15269 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 15270 | # conventions |
| 15271 | ld_shlibs_CXX=yes |
| 15272 | ;; |
| 15273 | |
| 15274 | gnu*) |
| 15275 | ;; |
| 15276 | |
| 15277 | hpux9*) |
| 15278 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 15279 | hardcode_libdir_separator_CXX=: |
| 15280 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 15281 | hardcode_direct_CXX=yes |
| 15282 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 15283 | # but as the default |
| 15284 | # location of the library. |
| 15285 | |
| 15286 | case $cc_basename in |
| 15287 | CC*) |
| 15288 | # FIXME: insert proper C++ library support |
| 15289 | ld_shlibs_CXX=no |
| 15290 | ;; |
| 15291 | aCC*) |
| 15292 | 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' |
| 15293 | # Commands to make compiler produce verbose output that lists |
| 15294 | # what "hidden" libraries, object files and flags are used when |
| 15295 | # linking a shared library. |
| 15296 | # |
| 15297 | # There doesn't appear to be a way to prevent this compiler from |
| 15298 | # explicitly linking system object files so we need to strip them |
| 15299 | # from the output so that they don't get included in the library |
| 15300 | # dependencies. |
| 15301 | 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; $ECHO "X$list" | $Xsed' |
| 15302 | ;; |
| 15303 | *) |
| 15304 | if test "$GXX" = yes; then |
| 15305 | archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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' |
| 15306 | else |
| 15307 | # FIXME: insert proper C++ library support |
| 15308 | ld_shlibs_CXX=no |
| 15309 | fi |
| 15310 | ;; |
| 15311 | esac |
| 15312 | ;; |
| 15313 | |
| 15314 | hpux10*|hpux11*) |
| 15315 | if test $with_gnu_ld = no; then |
| 15316 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 15317 | hardcode_libdir_separator_CXX=: |
| 15318 | |
| 15319 | case $host_cpu in |
| 15320 | hppa*64*|ia64*) |
| 15321 | ;; |
| 15322 | *) |
| 15323 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 15324 | ;; |
| 15325 | esac |
| 15326 | fi |
| 15327 | case $host_cpu in |
| 15328 | hppa*64*|ia64*) |
| 15329 | hardcode_direct_CXX=no |
| 15330 | hardcode_shlibpath_var_CXX=no |
| 15331 | ;; |
| 15332 | *) |
| 15333 | hardcode_direct_CXX=yes |
| 15334 | hardcode_direct_absolute_CXX=yes |
| 15335 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 15336 | # but as the default |
| 15337 | # location of the library. |
| 15338 | ;; |
| 15339 | esac |
| 15340 | |
| 15341 | case $cc_basename in |
| 15342 | CC*) |
| 15343 | # FIXME: insert proper C++ library support |
| 15344 | ld_shlibs_CXX=no |
| 15345 | ;; |
| 15346 | aCC*) |
| 15347 | case $host_cpu in |
| 15348 | hppa*64*) |
| 15349 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 15350 | ;; |
| 15351 | ia64*) |
| 15352 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 15353 | ;; |
| 15354 | *) |
| 15355 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 15356 | ;; |
| 15357 | esac |
| 15358 | # Commands to make compiler produce verbose output that lists |
| 15359 | # what "hidden" libraries, object files and flags are used when |
| 15360 | # linking a shared library. |
| 15361 | # |
| 15362 | # There doesn't appear to be a way to prevent this compiler from |
| 15363 | # explicitly linking system object files so we need to strip them |
| 15364 | # from the output so that they don't get included in the library |
| 15365 | # dependencies. |
| 15366 | 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; $ECHO "X$list" | $Xsed' |
| 15367 | ;; |
| 15368 | *) |
| 15369 | if test "$GXX" = yes; then |
| 15370 | if test $with_gnu_ld = no; then |
| 15371 | case $host_cpu in |
| 15372 | hppa*64*) |
| 15373 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 15374 | ;; |
| 15375 | ia64*) |
| 15376 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 15377 | ;; |
| 15378 | *) |
| 15379 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 15380 | ;; |
| 15381 | esac |
| 15382 | fi |
| 15383 | else |
| 15384 | # FIXME: insert proper C++ library support |
| 15385 | ld_shlibs_CXX=no |
| 15386 | fi |
| 15387 | ;; |
| 15388 | esac |
| 15389 | ;; |
| 15390 | |
| 15391 | interix[3-9]*) |
| 15392 | hardcode_direct_CXX=no |
| 15393 | hardcode_shlibpath_var_CXX=no |
| 15394 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 15395 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 15396 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 15397 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 15398 | # default) and relocated if they conflict, which is a slow very memory |
| 15399 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 15400 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 15401 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 15402 | 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' |
| 15403 | 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' |
| 15404 | ;; |
| 15405 | irix5* | irix6*) |
| 15406 | case $cc_basename in |
| 15407 | CC*) |
| 15408 | # SGI C++ |
| 15409 | archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' |
| 15410 | |
| 15411 | # Archives containing C++ object files must be created using |
| 15412 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 15413 | # necessary to make sure instantiated templates are included |
| 15414 | # in the archive. |
| 15415 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 15416 | ;; |
| 15417 | *) |
| 15418 | if test "$GXX" = yes; then |
| 15419 | if test "$with_gnu_ld" = no; then |
| 15420 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 15421 | else |
| 15422 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib' |
| 15423 | fi |
| 15424 | fi |
| 15425 | link_all_deplibs_CXX=yes |
| 15426 | ;; |
| 15427 | esac |
| 15428 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 15429 | hardcode_libdir_separator_CXX=: |
| 15430 | inherit_rpath_CXX=yes |
| 15431 | ;; |
| 15432 | |
| 15433 | linux* | k*bsd*-gnu) |
| 15434 | case $cc_basename in |
| 15435 | KCC*) |
| 15436 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 15437 | |
| 15438 | # KCC will only create a shared library if the output file |
| 15439 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 15440 | # to its proper name (with version) after linking. |
| 15441 | 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' |
| 15442 | 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' |
| 15443 | # Commands to make compiler produce verbose output that lists |
| 15444 | # what "hidden" libraries, object files and flags are used when |
| 15445 | # linking a shared library. |
| 15446 | # |
| 15447 | # There doesn't appear to be a way to prevent this compiler from |
| 15448 | # explicitly linking system object files so we need to strip them |
| 15449 | # from the output so that they don't get included in the library |
| 15450 | # dependencies. |
| 15451 | 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; $ECHO "X$list" | $Xsed' |
| 15452 | |
| 15453 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 15454 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 15455 | |
| 15456 | # Archives containing C++ object files must be created using |
| 15457 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 15458 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 15459 | ;; |
| 15460 | icpc* | ecpc* ) |
| 15461 | # Intel C++ |
| 15462 | with_gnu_ld=yes |
| 15463 | # version 8.0 and above of icpc choke on multiply defined symbols |
| 15464 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
| 15465 | # earlier do not add the objects themselves. |
| 15466 | case `$CC -V 2>&1` in |
| 15467 | *"Version 7."*) |
| 15468 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15469 | 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' |
| 15470 | ;; |
| 15471 | *) # Version 8.0 or newer |
| 15472 | tmp_idyn= |
| 15473 | case $host_cpu in |
| 15474 | ia64*) tmp_idyn=' -i_dynamic';; |
| 15475 | esac |
| 15476 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15477 | 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' |
| 15478 | ;; |
| 15479 | esac |
| 15480 | archive_cmds_need_lc_CXX=no |
| 15481 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 15482 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 15483 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 15484 | ;; |
| 15485 | pgCC* | pgcpp*) |
| 15486 | # Portland Group C++ compiler |
| 15487 | case `$CC -V` in |
| 15488 | *pgCC\ [1-5]* | *pgcpp\ [1-5]*) |
| 15489 | prelink_cmds_CXX='tpldir=Template.dir~ |
| 15490 | rm -rf $tpldir~ |
| 15491 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ |
| 15492 | compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' |
| 15493 | old_archive_cmds_CXX='tpldir=Template.dir~ |
| 15494 | rm -rf $tpldir~ |
| 15495 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ |
| 15496 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ |
| 15497 | $RANLIB $oldlib' |
| 15498 | archive_cmds_CXX='tpldir=Template.dir~ |
| 15499 | rm -rf $tpldir~ |
| 15500 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ |
| 15501 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 15502 | archive_expsym_cmds_CXX='tpldir=Template.dir~ |
| 15503 | rm -rf $tpldir~ |
| 15504 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ |
| 15505 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' |
| 15506 | ;; |
| 15507 | *) # Version 6 will use weak symbols |
| 15508 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 15509 | 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' |
| 15510 | ;; |
| 15511 | esac |
| 15512 | |
| 15513 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 15514 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 15515 | whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' |
| 15516 | ;; |
| 15517 | cxx*) |
| 15518 | # Compaq C++ |
| 15519 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15520 | 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' |
| 15521 | |
| 15522 | runpath_var=LD_RUN_PATH |
| 15523 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 15524 | hardcode_libdir_separator_CXX=: |
| 15525 | |
| 15526 | # Commands to make compiler produce verbose output that lists |
| 15527 | # what "hidden" libraries, object files and flags are used when |
| 15528 | # linking a shared library. |
| 15529 | # |
| 15530 | # There doesn't appear to be a way to prevent this compiler from |
| 15531 | # explicitly linking system object files so we need to strip them |
| 15532 | # from the output so that they don't get included in the library |
| 15533 | # dependencies. |
| 15534 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' |
| 15535 | ;; |
| 15536 | xl*) |
| 15537 | # IBM XL 8.0 on PPC, with GNU ld |
| 15538 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 15539 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 15540 | archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15541 | if test "x$supports_anon_versioning" = xyes; then |
| 15542 | archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ |
| 15543 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 15544 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 15545 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 15546 | fi |
| 15547 | ;; |
| 15548 | *) |
| 15549 | case `$CC -V 2>&1 | sed 5q` in |
| 15550 | *Sun\ C*) |
| 15551 | # Sun C++ 5.9 |
| 15552 | no_undefined_flag_CXX=' -zdefs' |
| 15553 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 15554 | 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' |
| 15555 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 15556 | whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' |
| 15557 | compiler_needs_object_CXX=yes |
| 15558 | |
| 15559 | # Not sure whether something based on |
| 15560 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 |
| 15561 | # would be better. |
| 15562 | output_verbose_link_cmd='echo' |
| 15563 | |
| 15564 | # Archives containing C++ object files must be created using |
| 15565 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 15566 | # necessary to make sure instantiated templates are included |
| 15567 | # in the archive. |
| 15568 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 15569 | ;; |
| 15570 | esac |
| 15571 | ;; |
| 15572 | esac |
| 15573 | ;; |
| 15574 | |
| 15575 | lynxos*) |
| 15576 | # FIXME: insert proper C++ library support |
| 15577 | ld_shlibs_CXX=no |
| 15578 | ;; |
| 15579 | |
| 15580 | m88k*) |
| 15581 | # FIXME: insert proper C++ library support |
| 15582 | ld_shlibs_CXX=no |
| 15583 | ;; |
| 15584 | |
| 15585 | mvs*) |
| 15586 | case $cc_basename in |
| 15587 | cxx*) |
| 15588 | # FIXME: insert proper C++ library support |
| 15589 | ld_shlibs_CXX=no |
| 15590 | ;; |
| 15591 | *) |
| 15592 | # FIXME: insert proper C++ library support |
| 15593 | ld_shlibs_CXX=no |
| 15594 | ;; |
| 15595 | esac |
| 15596 | ;; |
| 15597 | |
| 15598 | netbsd*) |
| 15599 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 15600 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 15601 | wlarc= |
| 15602 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 15603 | hardcode_direct_CXX=yes |
| 15604 | hardcode_shlibpath_var_CXX=no |
| 15605 | fi |
| 15606 | # Workaround some broken pre-1.5 toolchains |
| 15607 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
| 15608 | ;; |
| 15609 | |
| 15610 | *nto* | *qnx*) |
| 15611 | ld_shlibs_CXX=yes |
| 15612 | ;; |
| 15613 | |
| 15614 | openbsd2*) |
| 15615 | # C++ shared libraries are fairly broken |
| 15616 | ld_shlibs_CXX=no |
| 15617 | ;; |
| 15618 | |
| 15619 | openbsd*) |
| 15620 | if test -f /usr/libexec/ld.so; then |
| 15621 | hardcode_direct_CXX=yes |
| 15622 | hardcode_shlibpath_var_CXX=no |
| 15623 | hardcode_direct_absolute_CXX=yes |
| 15624 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 15625 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 15626 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 15627 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
| 15628 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 15629 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 15630 | fi |
| 15631 | output_verbose_link_cmd=echo |
| 15632 | else |
| 15633 | ld_shlibs_CXX=no |
| 15634 | fi |
| 15635 | ;; |
| 15636 | |
| 15637 | osf3* | osf4* | osf5*) |
| 15638 | case $cc_basename in |
| 15639 | KCC*) |
| 15640 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 15641 | |
| 15642 | # KCC will only create a shared library if the output file |
| 15643 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 15644 | # to its proper name (with version) after linking. |
| 15645 | 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' |
| 15646 | |
| 15647 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 15648 | hardcode_libdir_separator_CXX=: |
| 15649 | |
| 15650 | # Archives containing C++ object files must be created using |
| 15651 | # the KAI C++ compiler. |
| 15652 | case $host in |
| 15653 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; |
| 15654 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; |
| 15655 | esac |
| 15656 | ;; |
| 15657 | RCC*) |
| 15658 | # Rational C++ 2.4.1 |
| 15659 | # FIXME: insert proper C++ library support |
| 15660 | ld_shlibs_CXX=no |
| 15661 | ;; |
| 15662 | cxx*) |
| 15663 | case $host in |
| 15664 | osf3*) |
| 15665 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 15666 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' |
| 15667 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 15668 | ;; |
| 15669 | *) |
| 15670 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
| 15671 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' |
| 15672 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 15673 | echo "-hidden">> $lib.exp~ |
| 15674 | $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~ |
| 15675 | $RM $lib.exp' |
| 15676 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 15677 | ;; |
| 15678 | esac |
| 15679 | |
| 15680 | hardcode_libdir_separator_CXX=: |
| 15681 | |
| 15682 | # Commands to make compiler produce verbose output that lists |
| 15683 | # what "hidden" libraries, object files and flags are used when |
| 15684 | # linking a shared library. |
| 15685 | # |
| 15686 | # There doesn't appear to be a way to prevent this compiler from |
| 15687 | # explicitly linking system object files so we need to strip them |
| 15688 | # from the output so that they don't get included in the library |
| 15689 | # dependencies. |
| 15690 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' |
| 15691 | ;; |
| 15692 | *) |
| 15693 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 15694 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 15695 | case $host in |
| 15696 | osf3*) |
| 15697 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 15698 | ;; |
| 15699 | *) |
| 15700 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 15701 | ;; |
| 15702 | esac |
| 15703 | |
| 15704 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 15705 | hardcode_libdir_separator_CXX=: |
| 15706 | |
| 15707 | # Commands to make compiler produce verbose output that lists |
| 15708 | # what "hidden" libraries, object files and flags are used when |
| 15709 | # linking a shared library. |
| 15710 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' |
| 15711 | |
| 15712 | else |
| 15713 | # FIXME: insert proper C++ library support |
| 15714 | ld_shlibs_CXX=no |
| 15715 | fi |
| 15716 | ;; |
| 15717 | esac |
| 15718 | ;; |
| 15719 | |
| 15720 | psos*) |
| 15721 | # FIXME: insert proper C++ library support |
| 15722 | ld_shlibs_CXX=no |
| 15723 | ;; |
| 15724 | |
| 15725 | sunos4*) |
| 15726 | case $cc_basename in |
| 15727 | CC*) |
| 15728 | # Sun C++ 4.x |
| 15729 | # FIXME: insert proper C++ library support |
| 15730 | ld_shlibs_CXX=no |
| 15731 | ;; |
| 15732 | lcc*) |
| 15733 | # Lucid |
| 15734 | # FIXME: insert proper C++ library support |
| 15735 | ld_shlibs_CXX=no |
| 15736 | ;; |
| 15737 | *) |
| 15738 | # FIXME: insert proper C++ library support |
| 15739 | ld_shlibs_CXX=no |
| 15740 | ;; |
| 15741 | esac |
| 15742 | ;; |
| 15743 | |
| 15744 | solaris*) |
| 15745 | case $cc_basename in |
| 15746 | CC*) |
| 15747 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 15748 | archive_cmds_need_lc_CXX=yes |
| 15749 | no_undefined_flag_CXX=' -zdefs' |
| 15750 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 15751 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 15752 | $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' |
| 15753 | |
| 15754 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 15755 | hardcode_shlibpath_var_CXX=no |
| 15756 | case $host_os in |
| 15757 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 15758 | *) |
| 15759 | # The compiler driver will combine and reorder linker options, |
| 15760 | # but understands `-z linker_flag'. |
| 15761 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 15762 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' |
| 15763 | ;; |
| 15764 | esac |
| 15765 | link_all_deplibs_CXX=yes |
| 15766 | |
| 15767 | output_verbose_link_cmd='echo' |
| 15768 | |
| 15769 | # Archives containing C++ object files must be created using |
| 15770 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 15771 | # necessary to make sure instantiated templates are included |
| 15772 | # in the archive. |
| 15773 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 15774 | ;; |
| 15775 | gcx*) |
| 15776 | # Green Hills C++ Compiler |
| 15777 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 15778 | |
| 15779 | # The C++ compiler must be used to create the archive. |
| 15780 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 15781 | ;; |
| 15782 | *) |
| 15783 | # GNU C++ compiler with Solaris linker |
| 15784 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 15785 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
| 15786 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then |
| 15787 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 15788 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 15789 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
| 15790 | |
| 15791 | # Commands to make compiler produce verbose output that lists |
| 15792 | # what "hidden" libraries, object files and flags are used when |
| 15793 | # linking a shared library. |
| 15794 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' |
| 15795 | else |
| 15796 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 15797 | # platform. |
| 15798 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 15799 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 15800 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
| 15801 | |
| 15802 | # Commands to make compiler produce verbose output that lists |
| 15803 | # what "hidden" libraries, object files and flags are used when |
| 15804 | # linking a shared library. |
| 15805 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' |
| 15806 | fi |
| 15807 | |
| 15808 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
| 15809 | case $host_os in |
| 15810 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 15811 | *) |
| 15812 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 15813 | ;; |
| 15814 | esac |
| 15815 | fi |
| 15816 | ;; |
| 15817 | esac |
| 15818 | ;; |
| 15819 | |
| 15820 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 15821 | no_undefined_flag_CXX='${wl}-z,text' |
| 15822 | archive_cmds_need_lc_CXX=no |
| 15823 | hardcode_shlibpath_var_CXX=no |
| 15824 | runpath_var='LD_RUN_PATH' |
| 15825 | |
| 15826 | case $cc_basename in |
| 15827 | CC*) |
| 15828 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15829 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15830 | ;; |
| 15831 | *) |
| 15832 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15833 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15834 | ;; |
| 15835 | esac |
| 15836 | ;; |
| 15837 | |
| 15838 | sysv5* | sco3.2v5* | sco5v6*) |
| 15839 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 15840 | # link with -lc, and that would cause any symbols used from libc to |
| 15841 | # always be unresolved, which means just about no library would |
| 15842 | # ever link correctly. If we're not using GNU ld we use -z text |
| 15843 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 15844 | # as -z defs. |
| 15845 | no_undefined_flag_CXX='${wl}-z,text' |
| 15846 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
| 15847 | archive_cmds_need_lc_CXX=no |
| 15848 | hardcode_shlibpath_var_CXX=no |
| 15849 | hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' |
| 15850 | hardcode_libdir_separator_CXX=':' |
| 15851 | link_all_deplibs_CXX=yes |
| 15852 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
| 15853 | runpath_var='LD_RUN_PATH' |
| 15854 | |
| 15855 | case $cc_basename in |
| 15856 | CC*) |
| 15857 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15858 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15859 | ;; |
| 15860 | *) |
| 15861 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15862 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15863 | ;; |
| 15864 | esac |
| 15865 | ;; |
| 15866 | |
| 15867 | tandem*) |
| 15868 | case $cc_basename in |
| 15869 | NCC*) |
| 15870 | # NonStop-UX NCC 3.20 |
| 15871 | # FIXME: insert proper C++ library support |
| 15872 | ld_shlibs_CXX=no |
| 15873 | ;; |
| 15874 | *) |
| 15875 | # FIXME: insert proper C++ library support |
| 15876 | ld_shlibs_CXX=no |
| 15877 | ;; |
| 15878 | esac |
| 15879 | ;; |
| 15880 | |
| 15881 | vxworks*) |
| 15882 | # FIXME: insert proper C++ library support |
| 15883 | ld_shlibs_CXX=no |
| 15884 | ;; |
| 15885 | |
| 15886 | *) |
| 15887 | # FIXME: insert proper C++ library support |
| 15888 | ld_shlibs_CXX=no |
| 15889 | ;; |
| 15890 | esac |
| 15891 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 15892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15893 | $as_echo "$ld_shlibs_CXX" >&6; } |
| 15894 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 15895 | |
| 15896 | GCC_CXX="$GXX" |
| 15897 | LD_CXX="$LD" |
| 15898 | |
| 15899 | ## CAVEAT EMPTOR: |
| 15900 | ## There is no encapsulation within the following macros, do not change |
| 15901 | ## the running order or otherwise move them around unless you know exactly |
| 15902 | ## what you are doing... |
| 15903 | # Dependencies to place before and after the object being linked: |
| 15904 | predep_objects_CXX= |
| 15905 | postdep_objects_CXX= |
| 15906 | predeps_CXX= |
| 15907 | postdeps_CXX= |
| 15908 | compiler_lib_search_path_CXX= |
| 15909 | |
| 15910 | cat > conftest.$ac_ext <<_LT_EOF |
| 15911 | class Foo |
| 15912 | { |
| 15913 | public: |
| 15914 | Foo (void) { a = 0; } |
| 15915 | private: |
| 15916 | int a; |
| 15917 | }; |
| 15918 | _LT_EOF |
| 15919 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 15920 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15921 | (eval $ac_compile) 2>&5 |
| 15922 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 15923 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15924 | test $ac_status = 0; }; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15925 | # Parse the compiler output and extract the necessary |
| 15926 | # objects, libraries and library flags. |
| 15927 | |
| 15928 | # Sentinel used to keep track of whether or not we are before |
| 15929 | # the conftest object file. |
| 15930 | pre_test_object_deps_done=no |
| 15931 | |
| 15932 | for p in `eval "$output_verbose_link_cmd"`; do |
| 15933 | case $p in |
| 15934 | |
| 15935 | -L* | -R* | -l*) |
| 15936 | # Some compilers place space between "-{L,R}" and the path. |
| 15937 | # Remove the space. |
| 15938 | if test $p = "-L" || |
| 15939 | test $p = "-R"; then |
| 15940 | prev=$p |
| 15941 | continue |
| 15942 | else |
| 15943 | prev= |
| 15944 | fi |
| 15945 | |
| 15946 | if test "$pre_test_object_deps_done" = no; then |
| 15947 | case $p in |
| 15948 | -L* | -R*) |
| 15949 | # Internal compiler library paths should come after those |
| 15950 | # provided the user. The postdeps already come after the |
| 15951 | # user supplied libs so there is no need to process them. |
| 15952 | if test -z "$compiler_lib_search_path_CXX"; then |
| 15953 | compiler_lib_search_path_CXX="${prev}${p}" |
| 15954 | else |
| 15955 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
| 15956 | fi |
| 15957 | ;; |
| 15958 | # The "-l" case would never come before the object being |
| 15959 | # linked, so don't bother handling this case. |
| 15960 | esac |
| 15961 | else |
| 15962 | if test -z "$postdeps_CXX"; then |
| 15963 | postdeps_CXX="${prev}${p}" |
| 15964 | else |
| 15965 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
| 15966 | fi |
| 15967 | fi |
| 15968 | ;; |
| 15969 | |
| 15970 | *.$objext) |
| 15971 | # This assumes that the test object file only shows up |
| 15972 | # once in the compiler output. |
| 15973 | if test "$p" = "conftest.$objext"; then |
| 15974 | pre_test_object_deps_done=yes |
| 15975 | continue |
| 15976 | fi |
| 15977 | |
| 15978 | if test "$pre_test_object_deps_done" = no; then |
| 15979 | if test -z "$predep_objects_CXX"; then |
| 15980 | predep_objects_CXX="$p" |
| 15981 | else |
| 15982 | predep_objects_CXX="$predep_objects_CXX $p" |
| 15983 | fi |
| 15984 | else |
| 15985 | if test -z "$postdep_objects_CXX"; then |
| 15986 | postdep_objects_CXX="$p" |
| 15987 | else |
| 15988 | postdep_objects_CXX="$postdep_objects_CXX $p" |
| 15989 | fi |
| 15990 | fi |
| 15991 | ;; |
| 15992 | |
| 15993 | *) ;; # Ignore the rest. |
| 15994 | |
| 15995 | esac |
| 15996 | done |
| 15997 | |
| 15998 | # Clean up. |
| 15999 | rm -f a.out a.exe |
| 16000 | else |
| 16001 | echo "libtool.m4: error: problem compiling CXX test program" |
| 16002 | fi |
| 16003 | |
| 16004 | $RM -f confest.$objext |
| 16005 | |
| 16006 | # PORTME: override above test on systems where it is broken |
| 16007 | case $host_os in |
| 16008 | interix[3-9]*) |
| 16009 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
| 16010 | # hack all around it, let's just trust "g++" to DTRT. |
| 16011 | predep_objects_CXX= |
| 16012 | postdep_objects_CXX= |
| 16013 | postdeps_CXX= |
| 16014 | ;; |
| 16015 | |
| 16016 | linux*) |
| 16017 | case `$CC -V 2>&1 | sed 5q` in |
| 16018 | *Sun\ C*) |
| 16019 | # Sun C++ 5.9 |
| 16020 | |
| 16021 | # The more standards-conforming stlport4 library is |
| 16022 | # incompatible with the Cstd library. Avoid specifying |
| 16023 | # it if it's in CXXFLAGS. Ignore libCrun as |
| 16024 | # -library=stlport4 depends on it. |
| 16025 | case " $CXX $CXXFLAGS " in |
| 16026 | *" -library=stlport4 "*) |
| 16027 | solaris_use_stlport4=yes |
| 16028 | ;; |
| 16029 | esac |
| 16030 | |
| 16031 | if test "$solaris_use_stlport4" != yes; then |
| 16032 | postdeps_CXX='-library=Cstd -library=Crun' |
| 16033 | fi |
| 16034 | ;; |
| 16035 | esac |
| 16036 | ;; |
| 16037 | |
| 16038 | solaris*) |
| 16039 | case $cc_basename in |
| 16040 | CC*) |
| 16041 | # The more standards-conforming stlport4 library is |
| 16042 | # incompatible with the Cstd library. Avoid specifying |
| 16043 | # it if it's in CXXFLAGS. Ignore libCrun as |
| 16044 | # -library=stlport4 depends on it. |
| 16045 | case " $CXX $CXXFLAGS " in |
| 16046 | *" -library=stlport4 "*) |
| 16047 | solaris_use_stlport4=yes |
| 16048 | ;; |
| 16049 | esac |
| 16050 | |
| 16051 | # Adding this requires a known-good setup of shared libraries for |
| 16052 | # Sun compiler versions before 5.6, else PIC objects from an old |
| 16053 | # archive will be linked into the output, leading to subtle bugs. |
| 16054 | if test "$solaris_use_stlport4" != yes; then |
| 16055 | postdeps_CXX='-library=Cstd -library=Crun' |
| 16056 | fi |
| 16057 | ;; |
| 16058 | esac |
| 16059 | ;; |
| 16060 | esac |
| 16061 | |
| 16062 | |
| 16063 | case " $postdeps_CXX " in |
| 16064 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| 16065 | esac |
| 16066 | compiler_lib_search_dirs_CXX= |
| 16067 | if test -n "${compiler_lib_search_path_CXX}"; then |
| 16068 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` |
| 16069 | fi |
| 16070 | |
| 16071 | |
| 16072 | |
| 16073 | |
| 16074 | |
| 16075 | |
| 16076 | |
| 16077 | |
| 16078 | |
| 16079 | |
| 16080 | |
| 16081 | |
| 16082 | |
| 16083 | |
| 16084 | |
| 16085 | |
| 16086 | |
| 16087 | |
| 16088 | |
| 16089 | |
| 16090 | |
| 16091 | |
| 16092 | |
| 16093 | |
| 16094 | |
| 16095 | |
| 16096 | |
| 16097 | |
| 16098 | |
| 16099 | |
| 16100 | |
| 16101 | lt_prog_compiler_wl_CXX= |
| 16102 | lt_prog_compiler_pic_CXX= |
| 16103 | lt_prog_compiler_static_CXX= |
| 16104 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 16105 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16106 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
| 16107 | |
| 16108 | # C++ specific cases for pic, static, wl, etc. |
| 16109 | if test "$GXX" = yes; then |
| 16110 | lt_prog_compiler_wl_CXX='-Wl,' |
| 16111 | lt_prog_compiler_static_CXX='-static' |
| 16112 | |
| 16113 | case $host_os in |
| 16114 | aix*) |
| 16115 | # All AIX code is PIC. |
| 16116 | if test "$host_cpu" = ia64; then |
| 16117 | # AIX 5 now supports IA64 processor |
| 16118 | lt_prog_compiler_static_CXX='-Bstatic' |
| 16119 | fi |
| 16120 | ;; |
| 16121 | |
| 16122 | amigaos*) |
| 16123 | case $host_cpu in |
| 16124 | powerpc) |
| 16125 | # see comment about AmigaOS4 .so support |
| 16126 | lt_prog_compiler_pic_CXX='-fPIC' |
| 16127 | ;; |
| 16128 | m68k) |
| 16129 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 16130 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 16131 | # like `-m68040'. |
| 16132 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| 16133 | ;; |
| 16134 | esac |
| 16135 | ;; |
| 16136 | |
| 16137 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 16138 | # PIC is the default for these OSes. |
| 16139 | ;; |
| 16140 | mingw* | cygwin* | os2* | pw32* | cegcc*) |
| 16141 | # This hack is so that the source file can tell whether it is being |
| 16142 | # built for inclusion in a dll (and should export symbols for example). |
| 16143 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 16144 | # (--disable-auto-import) libraries |
| 16145 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 16146 | ;; |
| 16147 | darwin* | rhapsody*) |
| 16148 | # PIC is the default on this platform |
| 16149 | # Common symbols not allowed in MH_DYLIB files |
| 16150 | lt_prog_compiler_pic_CXX='-fno-common' |
| 16151 | ;; |
| 16152 | *djgpp*) |
| 16153 | # DJGPP does not support shared libraries at all |
| 16154 | lt_prog_compiler_pic_CXX= |
| 16155 | ;; |
| 16156 | interix[3-9]*) |
| 16157 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 16158 | # Instead, we relocate shared libraries at runtime. |
| 16159 | ;; |
| 16160 | sysv4*MP*) |
| 16161 | if test -d /usr/nec; then |
| 16162 | lt_prog_compiler_pic_CXX=-Kconform_pic |
| 16163 | fi |
| 16164 | ;; |
| 16165 | hpux*) |
| 16166 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 16167 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 16168 | # sets the default TLS model and affects inlining. |
| 16169 | case $host_cpu in |
| 16170 | hppa*64*) |
| 16171 | ;; |
| 16172 | *) |
| 16173 | lt_prog_compiler_pic_CXX='-fPIC' |
| 16174 | ;; |
| 16175 | esac |
| 16176 | ;; |
| 16177 | *qnx* | *nto*) |
| 16178 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 16179 | # it will coredump. |
| 16180 | lt_prog_compiler_pic_CXX='-fPIC -shared' |
| 16181 | ;; |
| 16182 | *) |
| 16183 | lt_prog_compiler_pic_CXX='-fPIC' |
| 16184 | ;; |
| 16185 | esac |
| 16186 | else |
| 16187 | case $host_os in |
| 16188 | aix[4-9]*) |
| 16189 | # All AIX code is PIC. |
| 16190 | if test "$host_cpu" = ia64; then |
| 16191 | # AIX 5 now supports IA64 processor |
| 16192 | lt_prog_compiler_static_CXX='-Bstatic' |
| 16193 | else |
| 16194 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| 16195 | fi |
| 16196 | ;; |
| 16197 | chorus*) |
| 16198 | case $cc_basename in |
| 16199 | cxch68*) |
| 16200 | # Green Hills C++ Compiler |
| 16201 | # _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" |
| 16202 | ;; |
| 16203 | esac |
| 16204 | ;; |
| 16205 | dgux*) |
| 16206 | case $cc_basename in |
| 16207 | ec++*) |
| 16208 | lt_prog_compiler_pic_CXX='-KPIC' |
| 16209 | ;; |
| 16210 | ghcx*) |
| 16211 | # Green Hills C++ Compiler |
| 16212 | lt_prog_compiler_pic_CXX='-pic' |
| 16213 | ;; |
| 16214 | *) |
| 16215 | ;; |
| 16216 | esac |
| 16217 | ;; |
| 16218 | freebsd* | dragonfly*) |
| 16219 | # FreeBSD uses GNU C++ |
| 16220 | ;; |
| 16221 | hpux9* | hpux10* | hpux11*) |
| 16222 | case $cc_basename in |
| 16223 | CC*) |
| 16224 | lt_prog_compiler_wl_CXX='-Wl,' |
| 16225 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
| 16226 | if test "$host_cpu" != ia64; then |
| 16227 | lt_prog_compiler_pic_CXX='+Z' |
| 16228 | fi |
| 16229 | ;; |
| 16230 | aCC*) |
| 16231 | lt_prog_compiler_wl_CXX='-Wl,' |
| 16232 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
| 16233 | case $host_cpu in |
| 16234 | hppa*64*|ia64*) |
| 16235 | # +Z the default |
| 16236 | ;; |
| 16237 | *) |
| 16238 | lt_prog_compiler_pic_CXX='+Z' |
| 16239 | ;; |
| 16240 | esac |
| 16241 | ;; |
| 16242 | *) |
| 16243 | ;; |
| 16244 | esac |
| 16245 | ;; |
| 16246 | interix*) |
| 16247 | # This is c89, which is MS Visual C++ (no shared libs) |
| 16248 | # Anyone wants to do a port? |
| 16249 | ;; |
| 16250 | irix5* | irix6* | nonstopux*) |
| 16251 | case $cc_basename in |
| 16252 | CC*) |
| 16253 | lt_prog_compiler_wl_CXX='-Wl,' |
| 16254 | lt_prog_compiler_static_CXX='-non_shared' |
| 16255 | # CC pic flag -KPIC is the default. |
| 16256 | ;; |
| 16257 | *) |
| 16258 | ;; |
| 16259 | esac |
| 16260 | ;; |
| 16261 | linux* | k*bsd*-gnu) |
| 16262 | case $cc_basename in |
| 16263 | KCC*) |
| 16264 | # KAI C++ Compiler |
| 16265 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 16266 | lt_prog_compiler_pic_CXX='-fPIC' |
| 16267 | ;; |
| 16268 | ecpc* ) |
| 16269 | # old Intel C++ for x86_64 which still supported -KPIC. |
| 16270 | lt_prog_compiler_wl_CXX='-Wl,' |
| 16271 | lt_prog_compiler_pic_CXX='-KPIC' |
| 16272 | lt_prog_compiler_static_CXX='-static' |
| 16273 | ;; |
| 16274 | icpc* ) |
| 16275 | # Intel C++, used to be incompatible with GCC. |
| 16276 | # ICC 10 doesn't accept -KPIC any more. |
| 16277 | lt_prog_compiler_wl_CXX='-Wl,' |
| 16278 | lt_prog_compiler_pic_CXX='-fPIC' |
| 16279 | lt_prog_compiler_static_CXX='-static' |
| 16280 | ;; |
| 16281 | pgCC* | pgcpp*) |
| 16282 | # Portland Group C++ compiler |
| 16283 | lt_prog_compiler_wl_CXX='-Wl,' |
| 16284 | lt_prog_compiler_pic_CXX='-fpic' |
| 16285 | lt_prog_compiler_static_CXX='-Bstatic' |
| 16286 | ;; |
| 16287 | cxx*) |
| 16288 | # Compaq C++ |
| 16289 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 16290 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 16291 | lt_prog_compiler_pic_CXX= |
| 16292 | lt_prog_compiler_static_CXX='-non_shared' |
| 16293 | ;; |
| 16294 | xlc* | xlC*) |
| 16295 | # IBM XL 8.0 on PPC |
| 16296 | lt_prog_compiler_wl_CXX='-Wl,' |
| 16297 | lt_prog_compiler_pic_CXX='-qpic' |
| 16298 | lt_prog_compiler_static_CXX='-qstaticlink' |
| 16299 | ;; |
| 16300 | *) |
| 16301 | case `$CC -V 2>&1 | sed 5q` in |
| 16302 | *Sun\ C*) |
| 16303 | # Sun C++ 5.9 |
| 16304 | lt_prog_compiler_pic_CXX='-KPIC' |
| 16305 | lt_prog_compiler_static_CXX='-Bstatic' |
| 16306 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 16307 | ;; |
| 16308 | esac |
| 16309 | ;; |
| 16310 | esac |
| 16311 | ;; |
| 16312 | lynxos*) |
| 16313 | ;; |
| 16314 | m88k*) |
| 16315 | ;; |
| 16316 | mvs*) |
| 16317 | case $cc_basename in |
| 16318 | cxx*) |
| 16319 | lt_prog_compiler_pic_CXX='-W c,exportall' |
| 16320 | ;; |
| 16321 | *) |
| 16322 | ;; |
| 16323 | esac |
| 16324 | ;; |
| 16325 | netbsd*) |
| 16326 | ;; |
| 16327 | *qnx* | *nto*) |
| 16328 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 16329 | # it will coredump. |
| 16330 | lt_prog_compiler_pic_CXX='-fPIC -shared' |
| 16331 | ;; |
| 16332 | osf3* | osf4* | osf5*) |
| 16333 | case $cc_basename in |
| 16334 | KCC*) |
| 16335 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 16336 | ;; |
| 16337 | RCC*) |
| 16338 | # Rational C++ 2.4.1 |
| 16339 | lt_prog_compiler_pic_CXX='-pic' |
| 16340 | ;; |
| 16341 | cxx*) |
| 16342 | # Digital/Compaq C++ |
| 16343 | lt_prog_compiler_wl_CXX='-Wl,' |
| 16344 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 16345 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 16346 | lt_prog_compiler_pic_CXX= |
| 16347 | lt_prog_compiler_static_CXX='-non_shared' |
| 16348 | ;; |
| 16349 | *) |
| 16350 | ;; |
| 16351 | esac |
| 16352 | ;; |
| 16353 | psos*) |
| 16354 | ;; |
| 16355 | solaris*) |
| 16356 | case $cc_basename in |
| 16357 | CC*) |
| 16358 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 16359 | lt_prog_compiler_pic_CXX='-KPIC' |
| 16360 | lt_prog_compiler_static_CXX='-Bstatic' |
| 16361 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 16362 | ;; |
| 16363 | gcx*) |
| 16364 | # Green Hills C++ Compiler |
| 16365 | lt_prog_compiler_pic_CXX='-PIC' |
| 16366 | ;; |
| 16367 | *) |
| 16368 | ;; |
| 16369 | esac |
| 16370 | ;; |
| 16371 | sunos4*) |
| 16372 | case $cc_basename in |
| 16373 | CC*) |
| 16374 | # Sun C++ 4.x |
| 16375 | lt_prog_compiler_pic_CXX='-pic' |
| 16376 | lt_prog_compiler_static_CXX='-Bstatic' |
| 16377 | ;; |
| 16378 | lcc*) |
| 16379 | # Lucid |
| 16380 | lt_prog_compiler_pic_CXX='-pic' |
| 16381 | ;; |
| 16382 | *) |
| 16383 | ;; |
| 16384 | esac |
| 16385 | ;; |
| 16386 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 16387 | case $cc_basename in |
| 16388 | CC*) |
| 16389 | lt_prog_compiler_wl_CXX='-Wl,' |
| 16390 | lt_prog_compiler_pic_CXX='-KPIC' |
| 16391 | lt_prog_compiler_static_CXX='-Bstatic' |
| 16392 | ;; |
| 16393 | esac |
| 16394 | ;; |
| 16395 | tandem*) |
| 16396 | case $cc_basename in |
| 16397 | NCC*) |
| 16398 | # NonStop-UX NCC 3.20 |
| 16399 | lt_prog_compiler_pic_CXX='-KPIC' |
| 16400 | ;; |
| 16401 | *) |
| 16402 | ;; |
| 16403 | esac |
| 16404 | ;; |
| 16405 | vxworks*) |
| 16406 | ;; |
| 16407 | *) |
| 16408 | lt_prog_compiler_can_build_shared_CXX=no |
| 16409 | ;; |
| 16410 | esac |
| 16411 | fi |
| 16412 | |
| 16413 | case $host_os in |
| 16414 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 16415 | *djgpp*) |
| 16416 | lt_prog_compiler_pic_CXX= |
| 16417 | ;; |
| 16418 | *) |
| 16419 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| 16420 | ;; |
| 16421 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 16422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16423 | $as_echo "$lt_prog_compiler_pic_CXX" >&6; } |
| 16424 | |
| 16425 | |
| 16426 | |
| 16427 | # |
| 16428 | # Check to make sure the PIC flag actually works. |
| 16429 | # |
| 16430 | if test -n "$lt_prog_compiler_pic_CXX"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 16431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16432 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 16433 | if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16434 | $as_echo_n "(cached) " >&6 |
| 16435 | else |
| 16436 | lt_cv_prog_compiler_pic_works_CXX=no |
| 16437 | ac_outfile=conftest.$ac_objext |
| 16438 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 16439 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
| 16440 | # Insert the option either (1) after the last *FLAGS variable, or |
| 16441 | # (2) before a word containing "conftest.", or (3) at the end. |
| 16442 | # Note that $ac_compile itself does not contain backslashes and begins |
| 16443 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 16444 | # The option is referenced via a variable to avoid confusing sed. |
| 16445 | lt_compile=`echo "$ac_compile" | $SED \ |
| 16446 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 16447 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 16448 | -e 's:$: $lt_compiler_flag:'` |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 16449 | (eval echo "\"\$as_me:16449: $lt_compile\"" >&5) |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16450 | (eval "$lt_compile" 2>conftest.err) |
| 16451 | ac_status=$? |
| 16452 | cat conftest.err >&5 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 16453 | echo "$as_me:16453: \$? = $ac_status" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16454 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 16455 | # The compiler can only warn and ignore the option if not recognized |
| 16456 | # So say no if there are warnings other than the usual output. |
| 16457 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 16458 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 16459 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 16460 | lt_cv_prog_compiler_pic_works_CXX=yes |
| 16461 | fi |
| 16462 | fi |
| 16463 | $RM conftest* |
| 16464 | |
| 16465 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 16466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16467 | $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } |
| 16468 | |
| 16469 | if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then |
| 16470 | case $lt_prog_compiler_pic_CXX in |
| 16471 | "" | " "*) ;; |
| 16472 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| 16473 | esac |
| 16474 | else |
| 16475 | lt_prog_compiler_pic_CXX= |
| 16476 | lt_prog_compiler_can_build_shared_CXX=no |
| 16477 | fi |
| 16478 | |
| 16479 | fi |
| 16480 | |
| 16481 | |
| 16482 | |
| 16483 | # |
| 16484 | # Check to make sure the static flag actually works. |
| 16485 | # |
| 16486 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 16487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16488 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 16489 | if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16490 | $as_echo_n "(cached) " >&6 |
| 16491 | else |
| 16492 | lt_cv_prog_compiler_static_works_CXX=no |
| 16493 | save_LDFLAGS="$LDFLAGS" |
| 16494 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 16495 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 16496 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 16497 | # The linker can only warn and ignore the option if not recognized |
| 16498 | # So say no if there are warnings |
| 16499 | if test -s conftest.err; then |
| 16500 | # Append any errors to the config.log. |
| 16501 | cat conftest.err 1>&5 |
| 16502 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 16503 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 16504 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 16505 | lt_cv_prog_compiler_static_works_CXX=yes |
| 16506 | fi |
| 16507 | else |
| 16508 | lt_cv_prog_compiler_static_works_CXX=yes |
| 16509 | fi |
| 16510 | fi |
| 16511 | $RM -r conftest* |
| 16512 | LDFLAGS="$save_LDFLAGS" |
| 16513 | |
| 16514 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 16515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16516 | $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } |
| 16517 | |
| 16518 | if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then |
| 16519 | : |
| 16520 | else |
| 16521 | lt_prog_compiler_static_CXX= |
| 16522 | fi |
| 16523 | |
| 16524 | |
| 16525 | |
| 16526 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 16527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16528 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 16529 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16530 | $as_echo_n "(cached) " >&6 |
| 16531 | else |
| 16532 | lt_cv_prog_compiler_c_o_CXX=no |
| 16533 | $RM -r conftest 2>/dev/null |
| 16534 | mkdir conftest |
| 16535 | cd conftest |
| 16536 | mkdir out |
| 16537 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 16538 | |
| 16539 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 16540 | # Insert the option either (1) after the last *FLAGS variable, or |
| 16541 | # (2) before a word containing "conftest.", or (3) at the end. |
| 16542 | # Note that $ac_compile itself does not contain backslashes and begins |
| 16543 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 16544 | lt_compile=`echo "$ac_compile" | $SED \ |
| 16545 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 16546 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 16547 | -e 's:$: $lt_compiler_flag:'` |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 16548 | (eval echo "\"\$as_me:16548: $lt_compile\"" >&5) |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16549 | (eval "$lt_compile" 2>out/conftest.err) |
| 16550 | ac_status=$? |
| 16551 | cat out/conftest.err >&5 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 16552 | echo "$as_me:16552: \$? = $ac_status" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16553 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 16554 | then |
| 16555 | # The compiler can only warn and ignore the option if not recognized |
| 16556 | # So say no if there are warnings |
| 16557 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 16558 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 16559 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 16560 | lt_cv_prog_compiler_c_o_CXX=yes |
| 16561 | fi |
| 16562 | fi |
| 16563 | chmod u+w . 2>&5 |
| 16564 | $RM conftest* |
| 16565 | # SGI C++ compiler will create directory out/ii_files/ for |
| 16566 | # template instantiation |
| 16567 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 16568 | $RM out/* && rmdir out |
| 16569 | cd .. |
| 16570 | $RM -r conftest |
| 16571 | $RM conftest* |
| 16572 | |
| 16573 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 16574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16575 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } |
| 16576 | |
| 16577 | |
| 16578 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 16579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16580 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 16581 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16582 | $as_echo_n "(cached) " >&6 |
| 16583 | else |
| 16584 | lt_cv_prog_compiler_c_o_CXX=no |
| 16585 | $RM -r conftest 2>/dev/null |
| 16586 | mkdir conftest |
| 16587 | cd conftest |
| 16588 | mkdir out |
| 16589 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 16590 | |
| 16591 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 16592 | # Insert the option either (1) after the last *FLAGS variable, or |
| 16593 | # (2) before a word containing "conftest.", or (3) at the end. |
| 16594 | # Note that $ac_compile itself does not contain backslashes and begins |
| 16595 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 16596 | lt_compile=`echo "$ac_compile" | $SED \ |
| 16597 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 16598 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 16599 | -e 's:$: $lt_compiler_flag:'` |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 16600 | (eval echo "\"\$as_me:16600: $lt_compile\"" >&5) |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16601 | (eval "$lt_compile" 2>out/conftest.err) |
| 16602 | ac_status=$? |
| 16603 | cat out/conftest.err >&5 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 16604 | echo "$as_me:16604: \$? = $ac_status" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16605 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 16606 | then |
| 16607 | # The compiler can only warn and ignore the option if not recognized |
| 16608 | # So say no if there are warnings |
| 16609 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 16610 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 16611 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 16612 | lt_cv_prog_compiler_c_o_CXX=yes |
| 16613 | fi |
| 16614 | fi |
| 16615 | chmod u+w . 2>&5 |
| 16616 | $RM conftest* |
| 16617 | # SGI C++ compiler will create directory out/ii_files/ for |
| 16618 | # template instantiation |
| 16619 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 16620 | $RM out/* && rmdir out |
| 16621 | cd .. |
| 16622 | $RM -r conftest |
| 16623 | $RM conftest* |
| 16624 | |
| 16625 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 16626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16627 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } |
| 16628 | |
| 16629 | |
| 16630 | |
| 16631 | |
| 16632 | hard_links="nottested" |
| 16633 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
| 16634 | # do not overwrite the value of need_locks provided by the user |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 16635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16636 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
| 16637 | hard_links=yes |
| 16638 | $RM conftest* |
| 16639 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 16640 | touch conftest.a |
| 16641 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 16642 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 16643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16644 | $as_echo "$hard_links" >&6; } |
| 16645 | if test "$hard_links" = no; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 16646 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16647 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 16648 | need_locks=warn |
| 16649 | fi |
| 16650 | else |
| 16651 | need_locks=no |
| 16652 | fi |
| 16653 | |
| 16654 | |
| 16655 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 16656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16657 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
| 16658 | |
| 16659 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 16660 | case $host_os in |
| 16661 | aix[4-9]*) |
| 16662 | # If we're using GNU nm, then we don't want the "-C" option. |
| 16663 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 16664 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| 16665 | export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
| 16666 | else |
| 16667 | 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' |
| 16668 | fi |
| 16669 | ;; |
| 16670 | pw32*) |
| 16671 | export_symbols_cmds_CXX="$ltdll_cmds" |
| 16672 | ;; |
| 16673 | cygwin* | mingw* | cegcc*) |
| 16674 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' |
| 16675 | ;; |
| 16676 | *) |
| 16677 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 16678 | ;; |
| 16679 | esac |
| 16680 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
| 16681 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 16682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16683 | $as_echo "$ld_shlibs_CXX" >&6; } |
| 16684 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 16685 | |
| 16686 | with_gnu_ld_CXX=$with_gnu_ld |
| 16687 | |
| 16688 | |
| 16689 | |
| 16690 | |
| 16691 | |
| 16692 | |
| 16693 | # |
| 16694 | # Do we need to explicitly link libc? |
| 16695 | # |
| 16696 | case "x$archive_cmds_need_lc_CXX" in |
| 16697 | x|xyes) |
| 16698 | # Assume -lc should be added |
| 16699 | archive_cmds_need_lc_CXX=yes |
| 16700 | |
| 16701 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 16702 | case $archive_cmds_CXX in |
| 16703 | *'~'*) |
| 16704 | # FIXME: we may have to deal with multi-command sequences. |
| 16705 | ;; |
| 16706 | '$CC '*) |
| 16707 | # Test whether the compiler implicitly links with -lc since on some |
| 16708 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 16709 | # to ld, don't add -lc before -lgcc. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 16710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16711 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
| 16712 | $RM conftest* |
| 16713 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 16714 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 16715 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16716 | (eval $ac_compile) 2>&5 |
| 16717 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 16718 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 16719 | test $ac_status = 0; } 2>conftest.err; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16720 | soname=conftest |
| 16721 | lib=conftest |
| 16722 | libobjs=conftest.$ac_objext |
| 16723 | deplibs= |
| 16724 | wl=$lt_prog_compiler_wl_CXX |
| 16725 | pic_flag=$lt_prog_compiler_pic_CXX |
| 16726 | compiler_flags=-v |
| 16727 | linker_flags=-v |
| 16728 | verstring= |
| 16729 | output_objdir=. |
| 16730 | libname=conftest |
| 16731 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
| 16732 | allow_undefined_flag_CXX= |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 16733 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16734 | (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 16735 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 16736 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 16737 | test $ac_status = 0; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16738 | then |
| 16739 | archive_cmds_need_lc_CXX=no |
| 16740 | else |
| 16741 | archive_cmds_need_lc_CXX=yes |
| 16742 | fi |
| 16743 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
| 16744 | else |
| 16745 | cat conftest.err 1>&5 |
| 16746 | fi |
| 16747 | $RM conftest* |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 16748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16749 | $as_echo "$archive_cmds_need_lc_CXX" >&6; } |
| 16750 | ;; |
| 16751 | esac |
| 16752 | fi |
| 16753 | ;; |
| 16754 | esac |
| 16755 | |
| 16756 | |
| 16757 | |
| 16758 | |
| 16759 | |
| 16760 | |
| 16761 | |
| 16762 | |
| 16763 | |
| 16764 | |
| 16765 | |
| 16766 | |
| 16767 | |
| 16768 | |
| 16769 | |
| 16770 | |
| 16771 | |
| 16772 | |
| 16773 | |
| 16774 | |
| 16775 | |
| 16776 | |
| 16777 | |
| 16778 | |
| 16779 | |
| 16780 | |
| 16781 | |
| 16782 | |
| 16783 | |
| 16784 | |
| 16785 | |
| 16786 | |
| 16787 | |
| 16788 | |
| 16789 | |
| 16790 | |
| 16791 | |
| 16792 | |
| 16793 | |
| 16794 | |
| 16795 | |
| 16796 | |
| 16797 | |
| 16798 | |
| 16799 | |
| 16800 | |
| 16801 | |
| 16802 | |
| 16803 | |
| 16804 | |
| 16805 | |
| 16806 | |
| 16807 | |
| 16808 | |
| 16809 | |
| 16810 | |
| 16811 | |
| 16812 | |
| 16813 | |
| 16814 | |
| 16815 | |
| 16816 | |
| 16817 | |
| 16818 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 16819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16820 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
| 16821 | |
| 16822 | library_names_spec= |
| 16823 | libname_spec='lib$name' |
| 16824 | soname_spec= |
| 16825 | shrext_cmds=".so" |
| 16826 | postinstall_cmds= |
| 16827 | postuninstall_cmds= |
| 16828 | finish_cmds= |
| 16829 | finish_eval= |
| 16830 | shlibpath_var= |
| 16831 | shlibpath_overrides_runpath=unknown |
| 16832 | version_type=none |
| 16833 | dynamic_linker="$host_os ld.so" |
| 16834 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 16835 | need_lib_prefix=unknown |
| 16836 | hardcode_into_libs=no |
| 16837 | |
| 16838 | # when you set need_version to no, make sure it does not cause -set_version |
| 16839 | # flags to be left without arguments |
| 16840 | need_version=unknown |
| 16841 | |
| 16842 | case $host_os in |
| 16843 | aix3*) |
| 16844 | version_type=linux |
| 16845 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 16846 | shlibpath_var=LIBPATH |
| 16847 | |
| 16848 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 16849 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16850 | ;; |
| 16851 | |
| 16852 | aix[4-9]*) |
| 16853 | version_type=linux |
| 16854 | need_lib_prefix=no |
| 16855 | need_version=no |
| 16856 | hardcode_into_libs=yes |
| 16857 | if test "$host_cpu" = ia64; then |
| 16858 | # AIX 5 supports IA64 |
| 16859 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 16860 | shlibpath_var=LD_LIBRARY_PATH |
| 16861 | else |
| 16862 | # With GCC up to 2.95.x, collect2 would create an import file |
| 16863 | # for dependence libraries. The import file would start with |
| 16864 | # the line `#! .'. This would cause the generated library to |
| 16865 | # depend on `.', always an invalid library. This was fixed in |
| 16866 | # development snapshots of GCC prior to 3.0. |
| 16867 | case $host_os in |
| 16868 | aix4 | aix4.[01] | aix4.[01].*) |
| 16869 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 16870 | echo ' yes ' |
| 16871 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
| 16872 | : |
| 16873 | else |
| 16874 | can_build_shared=no |
| 16875 | fi |
| 16876 | ;; |
| 16877 | esac |
| 16878 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 16879 | # soname into executable. Probably we can add versioning support to |
| 16880 | # collect2, so additional links can be useful in future. |
| 16881 | if test "$aix_use_runtimelinking" = yes; then |
| 16882 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 16883 | # instead of lib<name>.a to let people know that these are not |
| 16884 | # typical AIX shared libraries. |
| 16885 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16886 | else |
| 16887 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 16888 | # and later when we are not doing run time linking. |
| 16889 | library_names_spec='${libname}${release}.a $libname.a' |
| 16890 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16891 | fi |
| 16892 | shlibpath_var=LIBPATH |
| 16893 | fi |
| 16894 | ;; |
| 16895 | |
| 16896 | amigaos*) |
| 16897 | case $host_cpu in |
| 16898 | powerpc) |
| 16899 | # Since July 2007 AmigaOS4 officially supports .so libraries. |
| 16900 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 16901 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16902 | ;; |
| 16903 | m68k) |
| 16904 | library_names_spec='$libname.ixlibrary $libname.a' |
| 16905 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 16906 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
| 16907 | ;; |
| 16908 | esac |
| 16909 | ;; |
| 16910 | |
| 16911 | beos*) |
| 16912 | library_names_spec='${libname}${shared_ext}' |
| 16913 | dynamic_linker="$host_os ld.so" |
| 16914 | shlibpath_var=LIBRARY_PATH |
| 16915 | ;; |
| 16916 | |
| 16917 | bsdi[45]*) |
| 16918 | version_type=linux |
| 16919 | need_version=no |
| 16920 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16921 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16922 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 16923 | shlibpath_var=LD_LIBRARY_PATH |
| 16924 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 16925 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 16926 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 16927 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 16928 | # libtool to hard-code these into programs |
| 16929 | ;; |
| 16930 | |
| 16931 | cygwin* | mingw* | pw32* | cegcc*) |
| 16932 | version_type=windows |
| 16933 | shrext_cmds=".dll" |
| 16934 | need_version=no |
| 16935 | need_lib_prefix=no |
| 16936 | |
| 16937 | case $GCC,$host_os in |
| 16938 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) |
| 16939 | library_names_spec='$libname.dll.a' |
| 16940 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 16941 | postinstall_cmds='base_file=`basename \${file}`~ |
| 16942 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
| 16943 | dldir=$destdir/`dirname \$dlpath`~ |
| 16944 | test -d \$dldir || mkdir -p \$dldir~ |
| 16945 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 16946 | chmod a+x \$dldir/$dlname~ |
| 16947 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 16948 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 16949 | fi' |
| 16950 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 16951 | dlpath=$dir/\$dldll~ |
| 16952 | $RM \$dlpath' |
| 16953 | shlibpath_overrides_runpath=yes |
| 16954 | |
| 16955 | case $host_os in |
| 16956 | cygwin*) |
| 16957 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 16958 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 16959 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 16960 | ;; |
| 16961 | mingw* | cegcc*) |
| 16962 | # MinGW DLLs use traditional 'lib' prefix |
| 16963 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 16964 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 16965 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
| 16966 | # It is most probably a Windows format PATH printed by |
| 16967 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 16968 | # path with ; separators, and with drive letters. We can handle the |
| 16969 | # drive letters (cygwin fileutils understands them), so leave them, |
| 16970 | # especially as we might pass files found there to a mingw objdump, |
| 16971 | # which wouldn't understand a cygwinified path. Ahh. |
| 16972 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 16973 | else |
| 16974 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 16975 | fi |
| 16976 | ;; |
| 16977 | pw32*) |
| 16978 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 16979 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 16980 | ;; |
| 16981 | esac |
| 16982 | ;; |
| 16983 | |
| 16984 | *) |
| 16985 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 16986 | ;; |
| 16987 | esac |
| 16988 | dynamic_linker='Win32 ld.exe' |
| 16989 | # FIXME: first we should search . and the directory the executable is in |
| 16990 | shlibpath_var=PATH |
| 16991 | ;; |
| 16992 | |
| 16993 | darwin* | rhapsody*) |
| 16994 | dynamic_linker="$host_os dyld" |
| 16995 | version_type=darwin |
| 16996 | need_lib_prefix=no |
| 16997 | need_version=no |
| 16998 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 16999 | soname_spec='${libname}${release}${major}$shared_ext' |
| 17000 | shlibpath_overrides_runpath=yes |
| 17001 | shlibpath_var=DYLD_LIBRARY_PATH |
| 17002 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 17003 | |
| 17004 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 17005 | ;; |
| 17006 | |
| 17007 | dgux*) |
| 17008 | version_type=linux |
| 17009 | need_lib_prefix=no |
| 17010 | need_version=no |
| 17011 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 17012 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17013 | shlibpath_var=LD_LIBRARY_PATH |
| 17014 | ;; |
| 17015 | |
| 17016 | freebsd1*) |
| 17017 | dynamic_linker=no |
| 17018 | ;; |
| 17019 | |
| 17020 | freebsd* | dragonfly*) |
| 17021 | # DragonFly does not have aout. When/if they implement a new |
| 17022 | # versioning mechanism, adjust this. |
| 17023 | if test -x /usr/bin/objformat; then |
| 17024 | objformat=`/usr/bin/objformat` |
| 17025 | else |
| 17026 | case $host_os in |
| 17027 | freebsd[123]*) objformat=aout ;; |
| 17028 | *) objformat=elf ;; |
| 17029 | esac |
| 17030 | fi |
| 17031 | version_type=freebsd-$objformat |
| 17032 | case $version_type in |
| 17033 | freebsd-elf*) |
| 17034 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 17035 | need_version=no |
| 17036 | need_lib_prefix=no |
| 17037 | ;; |
| 17038 | freebsd-*) |
| 17039 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 17040 | need_version=yes |
| 17041 | ;; |
| 17042 | esac |
| 17043 | shlibpath_var=LD_LIBRARY_PATH |
| 17044 | case $host_os in |
| 17045 | freebsd2*) |
| 17046 | shlibpath_overrides_runpath=yes |
| 17047 | ;; |
| 17048 | freebsd3.[01]* | freebsdelf3.[01]*) |
| 17049 | shlibpath_overrides_runpath=yes |
| 17050 | hardcode_into_libs=yes |
| 17051 | ;; |
| 17052 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 17053 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
| 17054 | shlibpath_overrides_runpath=no |
| 17055 | hardcode_into_libs=yes |
| 17056 | ;; |
| 17057 | *) # from 4.6 on, and DragonFly |
| 17058 | shlibpath_overrides_runpath=yes |
| 17059 | hardcode_into_libs=yes |
| 17060 | ;; |
| 17061 | esac |
| 17062 | ;; |
| 17063 | |
| 17064 | gnu*) |
| 17065 | version_type=linux |
| 17066 | need_lib_prefix=no |
| 17067 | need_version=no |
| 17068 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 17069 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17070 | shlibpath_var=LD_LIBRARY_PATH |
| 17071 | hardcode_into_libs=yes |
| 17072 | ;; |
| 17073 | |
| 17074 | hpux9* | hpux10* | hpux11*) |
| 17075 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 17076 | # link against other versions. |
| 17077 | version_type=sunos |
| 17078 | need_lib_prefix=no |
| 17079 | need_version=no |
| 17080 | case $host_cpu in |
| 17081 | ia64*) |
| 17082 | shrext_cmds='.so' |
| 17083 | hardcode_into_libs=yes |
| 17084 | dynamic_linker="$host_os dld.so" |
| 17085 | shlibpath_var=LD_LIBRARY_PATH |
| 17086 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 17087 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17088 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17089 | if test "X$HPUX_IA64_MODE" = X32; then |
| 17090 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 17091 | else |
| 17092 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 17093 | fi |
| 17094 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 17095 | ;; |
| 17096 | hppa*64*) |
| 17097 | shrext_cmds='.sl' |
| 17098 | hardcode_into_libs=yes |
| 17099 | dynamic_linker="$host_os dld.sl" |
| 17100 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 17101 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 17102 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17103 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17104 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 17105 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 17106 | ;; |
| 17107 | *) |
| 17108 | shrext_cmds='.sl' |
| 17109 | dynamic_linker="$host_os dld.sl" |
| 17110 | shlibpath_var=SHLIB_PATH |
| 17111 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 17112 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17113 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17114 | ;; |
| 17115 | esac |
| 17116 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 17117 | postinstall_cmds='chmod 555 $lib' |
| 17118 | ;; |
| 17119 | |
| 17120 | interix[3-9]*) |
| 17121 | version_type=linux |
| 17122 | need_lib_prefix=no |
| 17123 | need_version=no |
| 17124 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 17125 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17126 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 17127 | shlibpath_var=LD_LIBRARY_PATH |
| 17128 | shlibpath_overrides_runpath=no |
| 17129 | hardcode_into_libs=yes |
| 17130 | ;; |
| 17131 | |
| 17132 | irix5* | irix6* | nonstopux*) |
| 17133 | case $host_os in |
| 17134 | nonstopux*) version_type=nonstopux ;; |
| 17135 | *) |
| 17136 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 17137 | version_type=linux |
| 17138 | else |
| 17139 | version_type=irix |
| 17140 | fi ;; |
| 17141 | esac |
| 17142 | need_lib_prefix=no |
| 17143 | need_version=no |
| 17144 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17145 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 17146 | case $host_os in |
| 17147 | irix5* | nonstopux*) |
| 17148 | libsuff= shlibsuff= |
| 17149 | ;; |
| 17150 | *) |
| 17151 | case $LD in # libtool.m4 will add one of these switches to LD |
| 17152 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 17153 | libsuff= shlibsuff= libmagic=32-bit;; |
| 17154 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 17155 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 17156 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 17157 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 17158 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 17159 | esac |
| 17160 | ;; |
| 17161 | esac |
| 17162 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 17163 | shlibpath_overrides_runpath=no |
| 17164 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 17165 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 17166 | hardcode_into_libs=yes |
| 17167 | ;; |
| 17168 | |
| 17169 | # No shared lib support for Linux oldld, aout, or coff. |
| 17170 | linux*oldld* | linux*aout* | linux*coff*) |
| 17171 | dynamic_linker=no |
| 17172 | ;; |
| 17173 | |
| 17174 | # This must be Linux ELF. |
| 17175 | linux* | k*bsd*-gnu) |
| 17176 | version_type=linux |
| 17177 | need_lib_prefix=no |
| 17178 | need_version=no |
| 17179 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17180 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17181 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 17182 | shlibpath_var=LD_LIBRARY_PATH |
| 17183 | shlibpath_overrides_runpath=no |
| 17184 | # Some binutils ld are patched to set DT_RUNPATH |
| 17185 | save_LDFLAGS=$LDFLAGS |
| 17186 | save_libdir=$libdir |
| 17187 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ |
| 17188 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17189 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17190 | /* end confdefs.h. */ |
| 17191 | |
| 17192 | int |
| 17193 | main () |
| 17194 | { |
| 17195 | |
| 17196 | ; |
| 17197 | return 0; |
| 17198 | } |
| 17199 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17200 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 17201 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17202 | shlibpath_overrides_runpath=yes |
| 17203 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17204 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17205 | rm -f core conftest.err conftest.$ac_objext \ |
| 17206 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17207 | LDFLAGS=$save_LDFLAGS |
| 17208 | libdir=$save_libdir |
| 17209 | |
| 17210 | # This implies no fast_install, which is unacceptable. |
| 17211 | # Some rework will be needed to allow for fast_install |
| 17212 | # before this can be enabled. |
| 17213 | hardcode_into_libs=yes |
| 17214 | |
| 17215 | # Add ABI-specific directories to the system library path. |
| 17216 | sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" |
| 17217 | |
| 17218 | # Append ld.so.conf contents to the search path |
| 17219 | if test -f /etc/ld.so.conf; then |
| 17220 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
| 17221 | sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" |
| 17222 | fi |
| 17223 | |
| 17224 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 17225 | # powerpc, because MkLinux only supported shared libraries with the |
| 17226 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 17227 | # most powerpc-linux boxes support dynamic linking these days and |
| 17228 | # people can always --disable-shared, the test was removed, and we |
| 17229 | # assume the GNU/Linux dynamic linker is in use. |
| 17230 | dynamic_linker='GNU/Linux ld.so' |
| 17231 | ;; |
| 17232 | |
| 17233 | netbsd*) |
| 17234 | version_type=sunos |
| 17235 | need_lib_prefix=no |
| 17236 | need_version=no |
| 17237 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 17238 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 17239 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 17240 | dynamic_linker='NetBSD (a.out) ld.so' |
| 17241 | else |
| 17242 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 17243 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17244 | dynamic_linker='NetBSD ld.elf_so' |
| 17245 | fi |
| 17246 | shlibpath_var=LD_LIBRARY_PATH |
| 17247 | shlibpath_overrides_runpath=yes |
| 17248 | hardcode_into_libs=yes |
| 17249 | ;; |
| 17250 | |
| 17251 | newsos6) |
| 17252 | version_type=linux |
| 17253 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17254 | shlibpath_var=LD_LIBRARY_PATH |
| 17255 | shlibpath_overrides_runpath=yes |
| 17256 | ;; |
| 17257 | |
| 17258 | *nto* | *qnx*) |
| 17259 | version_type=qnx |
| 17260 | need_lib_prefix=no |
| 17261 | need_version=no |
| 17262 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17263 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17264 | shlibpath_var=LD_LIBRARY_PATH |
| 17265 | shlibpath_overrides_runpath=no |
| 17266 | hardcode_into_libs=yes |
| 17267 | dynamic_linker='ldqnx.so' |
| 17268 | ;; |
| 17269 | |
| 17270 | openbsd*) |
| 17271 | version_type=sunos |
| 17272 | sys_lib_dlsearch_path_spec="/usr/lib" |
| 17273 | need_lib_prefix=no |
| 17274 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 17275 | case $host_os in |
| 17276 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 17277 | *) need_version=no ;; |
| 17278 | esac |
| 17279 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 17280 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 17281 | shlibpath_var=LD_LIBRARY_PATH |
| 17282 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 17283 | case $host_os in |
| 17284 | openbsd2.[89] | openbsd2.[89].*) |
| 17285 | shlibpath_overrides_runpath=no |
| 17286 | ;; |
| 17287 | *) |
| 17288 | shlibpath_overrides_runpath=yes |
| 17289 | ;; |
| 17290 | esac |
| 17291 | else |
| 17292 | shlibpath_overrides_runpath=yes |
| 17293 | fi |
| 17294 | ;; |
| 17295 | |
| 17296 | os2*) |
| 17297 | libname_spec='$name' |
| 17298 | shrext_cmds=".dll" |
| 17299 | need_lib_prefix=no |
| 17300 | library_names_spec='$libname${shared_ext} $libname.a' |
| 17301 | dynamic_linker='OS/2 ld.exe' |
| 17302 | shlibpath_var=LIBPATH |
| 17303 | ;; |
| 17304 | |
| 17305 | osf3* | osf4* | osf5*) |
| 17306 | version_type=osf |
| 17307 | need_lib_prefix=no |
| 17308 | need_version=no |
| 17309 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17310 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17311 | shlibpath_var=LD_LIBRARY_PATH |
| 17312 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 17313 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 17314 | ;; |
| 17315 | |
| 17316 | rdos*) |
| 17317 | dynamic_linker=no |
| 17318 | ;; |
| 17319 | |
| 17320 | solaris*) |
| 17321 | version_type=linux |
| 17322 | need_lib_prefix=no |
| 17323 | need_version=no |
| 17324 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17325 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17326 | shlibpath_var=LD_LIBRARY_PATH |
| 17327 | shlibpath_overrides_runpath=yes |
| 17328 | hardcode_into_libs=yes |
| 17329 | # ldd complains unless libraries are executable |
| 17330 | postinstall_cmds='chmod +x $lib' |
| 17331 | ;; |
| 17332 | |
| 17333 | sunos4*) |
| 17334 | version_type=sunos |
| 17335 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 17336 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 17337 | shlibpath_var=LD_LIBRARY_PATH |
| 17338 | shlibpath_overrides_runpath=yes |
| 17339 | if test "$with_gnu_ld" = yes; then |
| 17340 | need_lib_prefix=no |
| 17341 | fi |
| 17342 | need_version=yes |
| 17343 | ;; |
| 17344 | |
| 17345 | sysv4 | sysv4.3*) |
| 17346 | version_type=linux |
| 17347 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17348 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17349 | shlibpath_var=LD_LIBRARY_PATH |
| 17350 | case $host_vendor in |
| 17351 | sni) |
| 17352 | shlibpath_overrides_runpath=no |
| 17353 | need_lib_prefix=no |
| 17354 | runpath_var=LD_RUN_PATH |
| 17355 | ;; |
| 17356 | siemens) |
| 17357 | need_lib_prefix=no |
| 17358 | ;; |
| 17359 | motorola) |
| 17360 | need_lib_prefix=no |
| 17361 | need_version=no |
| 17362 | shlibpath_overrides_runpath=no |
| 17363 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 17364 | ;; |
| 17365 | esac |
| 17366 | ;; |
| 17367 | |
| 17368 | sysv4*MP*) |
| 17369 | if test -d /usr/nec ;then |
| 17370 | version_type=linux |
| 17371 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 17372 | soname_spec='$libname${shared_ext}.$major' |
| 17373 | shlibpath_var=LD_LIBRARY_PATH |
| 17374 | fi |
| 17375 | ;; |
| 17376 | |
| 17377 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 17378 | version_type=freebsd-elf |
| 17379 | need_lib_prefix=no |
| 17380 | need_version=no |
| 17381 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 17382 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17383 | shlibpath_var=LD_LIBRARY_PATH |
| 17384 | shlibpath_overrides_runpath=yes |
| 17385 | hardcode_into_libs=yes |
| 17386 | if test "$with_gnu_ld" = yes; then |
| 17387 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 17388 | else |
| 17389 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 17390 | case $host_os in |
| 17391 | sco3.2v5*) |
| 17392 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 17393 | ;; |
| 17394 | esac |
| 17395 | fi |
| 17396 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 17397 | ;; |
| 17398 | |
| 17399 | tpf*) |
| 17400 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 17401 | version_type=linux |
| 17402 | need_lib_prefix=no |
| 17403 | need_version=no |
| 17404 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17405 | shlibpath_var=LD_LIBRARY_PATH |
| 17406 | shlibpath_overrides_runpath=no |
| 17407 | hardcode_into_libs=yes |
| 17408 | ;; |
| 17409 | |
| 17410 | uts4*) |
| 17411 | version_type=linux |
| 17412 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17413 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17414 | shlibpath_var=LD_LIBRARY_PATH |
| 17415 | ;; |
| 17416 | |
| 17417 | *) |
| 17418 | dynamic_linker=no |
| 17419 | ;; |
| 17420 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17422 | $as_echo "$dynamic_linker" >&6; } |
| 17423 | test "$dynamic_linker" = no && can_build_shared=no |
| 17424 | |
| 17425 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 17426 | if test "$GCC" = yes; then |
| 17427 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 17428 | fi |
| 17429 | |
| 17430 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
| 17431 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
| 17432 | fi |
| 17433 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
| 17434 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
| 17435 | fi |
| 17436 | |
| 17437 | |
| 17438 | |
| 17439 | |
| 17440 | |
| 17441 | |
| 17442 | |
| 17443 | |
| 17444 | |
| 17445 | |
| 17446 | |
| 17447 | |
| 17448 | |
| 17449 | |
| 17450 | |
| 17451 | |
| 17452 | |
| 17453 | |
| 17454 | |
| 17455 | |
| 17456 | |
| 17457 | |
| 17458 | |
| 17459 | |
| 17460 | |
| 17461 | |
| 17462 | |
| 17463 | |
| 17464 | |
| 17465 | |
| 17466 | |
| 17467 | |
| 17468 | |
| 17469 | |
| 17470 | |
| 17471 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17472 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17473 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
| 17474 | hardcode_action_CXX= |
| 17475 | if test -n "$hardcode_libdir_flag_spec_CXX" || |
| 17476 | test -n "$runpath_var_CXX" || |
| 17477 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
| 17478 | |
| 17479 | # We can hardcode non-existent directories. |
| 17480 | if test "$hardcode_direct_CXX" != no && |
| 17481 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 17482 | # have to relink, otherwise we might link with an installed library |
| 17483 | # when we should be linking with a yet-to-be-installed one |
| 17484 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
| 17485 | test "$hardcode_minus_L_CXX" != no; then |
| 17486 | # Linking always hardcodes the temporary library directory. |
| 17487 | hardcode_action_CXX=relink |
| 17488 | else |
| 17489 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 17490 | hardcode_action_CXX=immediate |
| 17491 | fi |
| 17492 | else |
| 17493 | # We cannot hardcode anything, or else we can only hardcode existing |
| 17494 | # directories. |
| 17495 | hardcode_action_CXX=unsupported |
| 17496 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17498 | $as_echo "$hardcode_action_CXX" >&6; } |
| 17499 | |
| 17500 | if test "$hardcode_action_CXX" = relink || |
| 17501 | test "$inherit_rpath_CXX" = yes; then |
| 17502 | # Fast installation is not supported |
| 17503 | enable_fast_install=no |
| 17504 | elif test "$shlibpath_overrides_runpath" = yes || |
| 17505 | test "$enable_shared" = no; then |
| 17506 | # Fast installation is not necessary |
| 17507 | enable_fast_install=needless |
| 17508 | fi |
| 17509 | |
| 17510 | |
| 17511 | |
| 17512 | |
| 17513 | |
| 17514 | |
| 17515 | |
| 17516 | fi # test -n "$compiler" |
| 17517 | |
| 17518 | CC=$lt_save_CC |
| 17519 | LDCXX=$LD |
| 17520 | LD=$lt_save_LD |
| 17521 | GCC=$lt_save_GCC |
| 17522 | with_gnu_ld=$lt_save_with_gnu_ld |
| 17523 | lt_cv_path_LDCXX=$lt_cv_path_LD |
| 17524 | lt_cv_path_LD=$lt_save_path_LD |
| 17525 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 17526 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 17527 | fi # test "$_lt_caught_CXX_error" != yes |
| 17528 | |
| 17529 | ac_ext=c |
| 17530 | ac_cpp='$CPP $CPPFLAGS' |
| 17531 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17532 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17533 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17534 | |
| 17535 | |
| 17536 | |
| 17537 | |
| 17538 | |
| 17539 | |
| 17540 | |
| 17541 | |
| 17542 | |
| 17543 | |
| 17544 | |
| 17545 | |
| 17546 | |
| 17547 | ac_config_commands="$ac_config_commands libtool" |
| 17548 | |
| 17549 | |
| 17550 | |
| 17551 | |
| 17552 | # Only expand once: |
| 17553 | |
| 17554 | |
| 17555 | |
| 17556 | |
| 17557 | |
| 17558 | # Configure libltdl |
| 17559 | |
| 17560 | |
| 17561 | |
| 17562 | |
| 17563 | |
| 17564 | |
| 17565 | |
| 17566 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17568 | $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17569 | if test "${libltdl_cv_shlibext+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17570 | $as_echo_n "(cached) " >&6 |
| 17571 | else |
| 17572 | |
| 17573 | module=yes |
| 17574 | eval libltdl_cv_shlibext=$shrext_cmds |
| 17575 | |
| 17576 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17578 | $as_echo "$libltdl_cv_shlibext" >&6; } |
| 17579 | if test -n "$libltdl_cv_shlibext"; then |
| 17580 | |
| 17581 | cat >>confdefs.h <<_ACEOF |
| 17582 | #define LT_MODULE_EXT "$libltdl_cv_shlibext" |
| 17583 | _ACEOF |
| 17584 | |
| 17585 | fi |
| 17586 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17588 | $as_echo_n "checking which variable specifies run-time module search path... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17589 | if test "${lt_cv_module_path_var+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17590 | $as_echo_n "(cached) " >&6 |
| 17591 | else |
| 17592 | lt_cv_module_path_var="$shlibpath_var" |
| 17593 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17595 | $as_echo "$lt_cv_module_path_var" >&6; } |
| 17596 | if test -n "$lt_cv_module_path_var"; then |
| 17597 | |
| 17598 | cat >>confdefs.h <<_ACEOF |
| 17599 | #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var" |
| 17600 | _ACEOF |
| 17601 | |
| 17602 | fi |
| 17603 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17605 | $as_echo_n "checking for the default library search path... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17606 | if test "${lt_cv_sys_dlsearch_path+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17607 | $as_echo_n "(cached) " >&6 |
| 17608 | else |
| 17609 | lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec" |
| 17610 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17612 | $as_echo "$lt_cv_sys_dlsearch_path" >&6; } |
| 17613 | if test -n "$lt_cv_sys_dlsearch_path"; then |
| 17614 | sys_dlsearch_path= |
| 17615 | for dir in $lt_cv_sys_dlsearch_path; do |
| 17616 | if test -z "$sys_dlsearch_path"; then |
| 17617 | sys_dlsearch_path="$dir" |
| 17618 | else |
| 17619 | sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir" |
| 17620 | fi |
| 17621 | done |
| 17622 | |
| 17623 | cat >>confdefs.h <<_ACEOF |
| 17624 | #define LT_DLSEARCH_PATH "$sys_dlsearch_path" |
| 17625 | _ACEOF |
| 17626 | |
| 17627 | fi |
| 17628 | |
| 17629 | |
| 17630 | LT_DLLOADERS= |
| 17631 | |
| 17632 | |
| 17633 | ac_ext=c |
| 17634 | ac_cpp='$CPP $CPPFLAGS' |
| 17635 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17636 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17637 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17638 | |
| 17639 | |
| 17640 | LIBADD_DLOPEN= |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17642 | $as_echo_n "checking for library containing dlopen... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17643 | if test "${ac_cv_search_dlopen+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17644 | $as_echo_n "(cached) " >&6 |
| 17645 | else |
| 17646 | ac_func_search_save_LIBS=$LIBS |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17647 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17648 | /* end confdefs.h. */ |
| 17649 | |
| 17650 | /* Override any GCC internal prototype to avoid an error. |
| 17651 | Use char because int might match the return type of a GCC |
| 17652 | builtin and then its argument prototype would still apply. */ |
| 17653 | #ifdef __cplusplus |
| 17654 | extern "C" |
| 17655 | #endif |
| 17656 | char dlopen (); |
| 17657 | int |
| 17658 | main () |
| 17659 | { |
| 17660 | return dlopen (); |
| 17661 | ; |
| 17662 | return 0; |
| 17663 | } |
| 17664 | _ACEOF |
| 17665 | for ac_lib in '' dl; do |
| 17666 | if test -z "$ac_lib"; then |
| 17667 | ac_res="none required" |
| 17668 | else |
| 17669 | ac_res=-l$ac_lib |
| 17670 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 17671 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17672 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17673 | ac_cv_search_dlopen=$ac_res |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17674 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17675 | rm -f core conftest.err conftest.$ac_objext \ |
| 17676 | conftest$ac_exeext |
| 17677 | if test "${ac_cv_search_dlopen+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17678 | break |
| 17679 | fi |
| 17680 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17681 | if test "${ac_cv_search_dlopen+set}" = set; then : |
| 17682 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17683 | else |
| 17684 | ac_cv_search_dlopen=no |
| 17685 | fi |
| 17686 | rm conftest.$ac_ext |
| 17687 | LIBS=$ac_func_search_save_LIBS |
| 17688 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17690 | $as_echo "$ac_cv_search_dlopen" >&6; } |
| 17691 | ac_res=$ac_cv_search_dlopen |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17692 | if test "$ac_res" != no; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17693 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 17694 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17695 | $as_echo "#define HAVE_LIBDL 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17696 | |
| 17697 | if test "$ac_cv_search_dlopen" != "none required" ; then |
| 17698 | LIBADD_DLOPEN="-ldl" |
| 17699 | fi |
| 17700 | libltdl_cv_lib_dl_dlopen="yes" |
| 17701 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" |
| 17702 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17703 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17704 | /* end confdefs.h. */ |
| 17705 | #if HAVE_DLFCN_H |
| 17706 | # include <dlfcn.h> |
| 17707 | #endif |
| 17708 | |
| 17709 | int |
| 17710 | main () |
| 17711 | { |
| 17712 | dlopen(0, 0); |
| 17713 | ; |
| 17714 | return 0; |
| 17715 | } |
| 17716 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17717 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17718 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17719 | $as_echo "#define HAVE_LIBDL 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17720 | |
| 17721 | libltdl_cv_func_dlopen="yes" |
| 17722 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" |
| 17723 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17725 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17726 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17727 | $as_echo_n "(cached) " >&6 |
| 17728 | else |
| 17729 | ac_check_lib_save_LIBS=$LIBS |
| 17730 | LIBS="-lsvld $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17731 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17732 | /* end confdefs.h. */ |
| 17733 | |
| 17734 | /* Override any GCC internal prototype to avoid an error. |
| 17735 | Use char because int might match the return type of a GCC |
| 17736 | builtin and then its argument prototype would still apply. */ |
| 17737 | #ifdef __cplusplus |
| 17738 | extern "C" |
| 17739 | #endif |
| 17740 | char dlopen (); |
| 17741 | int |
| 17742 | main () |
| 17743 | { |
| 17744 | return dlopen (); |
| 17745 | ; |
| 17746 | return 0; |
| 17747 | } |
| 17748 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17749 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17750 | ac_cv_lib_svld_dlopen=yes |
| 17751 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17752 | ac_cv_lib_svld_dlopen=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17753 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17754 | rm -f core conftest.err conftest.$ac_objext \ |
| 17755 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17756 | LIBS=$ac_check_lib_save_LIBS |
| 17757 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17759 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17760 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17761 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17762 | $as_echo "#define HAVE_LIBDL 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17763 | |
| 17764 | LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes" |
| 17765 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" |
| 17766 | fi |
| 17767 | |
| 17768 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17769 | rm -f core conftest.err conftest.$ac_objext \ |
| 17770 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17771 | fi |
| 17772 | |
| 17773 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes |
| 17774 | then |
| 17775 | lt_save_LIBS="$LIBS" |
| 17776 | LIBS="$LIBS $LIBADD_DLOPEN" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17777 | for ac_func in dlerror |
| 17778 | do : |
| 17779 | ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror" |
| 17780 | if test "x$ac_cv_func_dlerror" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17781 | cat >>confdefs.h <<_ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17782 | #define HAVE_DLERROR 1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17783 | _ACEOF |
| 17784 | |
| 17785 | fi |
| 17786 | done |
| 17787 | |
| 17788 | LIBS="$lt_save_LIBS" |
| 17789 | fi |
| 17790 | |
| 17791 | |
| 17792 | LIBADD_SHL_LOAD= |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17793 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
| 17794 | if test "x$ac_cv_func_shl_load" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17795 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17796 | $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17797 | |
| 17798 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" |
| 17799 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17801 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17802 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17803 | $as_echo_n "(cached) " >&6 |
| 17804 | else |
| 17805 | ac_check_lib_save_LIBS=$LIBS |
| 17806 | LIBS="-ldld $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17807 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17808 | /* end confdefs.h. */ |
| 17809 | |
| 17810 | /* Override any GCC internal prototype to avoid an error. |
| 17811 | Use char because int might match the return type of a GCC |
| 17812 | builtin and then its argument prototype would still apply. */ |
| 17813 | #ifdef __cplusplus |
| 17814 | extern "C" |
| 17815 | #endif |
| 17816 | char shl_load (); |
| 17817 | int |
| 17818 | main () |
| 17819 | { |
| 17820 | return shl_load (); |
| 17821 | ; |
| 17822 | return 0; |
| 17823 | } |
| 17824 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17825 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17826 | ac_cv_lib_dld_shl_load=yes |
| 17827 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17828 | ac_cv_lib_dld_shl_load=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17829 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17830 | rm -f core conftest.err conftest.$ac_objext \ |
| 17831 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17832 | LIBS=$ac_check_lib_save_LIBS |
| 17833 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17835 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17836 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17837 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17838 | $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17839 | |
| 17840 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" |
| 17841 | LIBADD_SHL_LOAD="-ldld" |
| 17842 | fi |
| 17843 | |
| 17844 | fi |
| 17845 | |
| 17846 | |
| 17847 | |
| 17848 | case $host_os in |
| 17849 | darwin[1567].*) |
| 17850 | # We only want this for pre-Mac OS X 10.4. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17851 | ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup" |
| 17852 | if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17853 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17854 | $as_echo "#define HAVE_DYLD 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17855 | |
| 17856 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la" |
| 17857 | fi |
| 17858 | |
| 17859 | ;; |
| 17860 | beos*) |
| 17861 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la" |
| 17862 | ;; |
| 17863 | cygwin* | mingw* | os2* | pw32*) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17864 | ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h> |
| 17865 | " |
| 17866 | if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then : |
| 17867 | ac_have_decl=1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17868 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17869 | ac_have_decl=0 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17870 | fi |
| 17871 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17872 | cat >>confdefs.h <<_ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17873 | #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17874 | _ACEOF |
| 17875 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17876 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la" |
| 17877 | ;; |
| 17878 | esac |
| 17879 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17881 | $as_echo_n "checking for dld_link in -ldld... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17882 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17883 | $as_echo_n "(cached) " >&6 |
| 17884 | else |
| 17885 | ac_check_lib_save_LIBS=$LIBS |
| 17886 | LIBS="-ldld $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17887 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17888 | /* end confdefs.h. */ |
| 17889 | |
| 17890 | /* Override any GCC internal prototype to avoid an error. |
| 17891 | Use char because int might match the return type of a GCC |
| 17892 | builtin and then its argument prototype would still apply. */ |
| 17893 | #ifdef __cplusplus |
| 17894 | extern "C" |
| 17895 | #endif |
| 17896 | char dld_link (); |
| 17897 | int |
| 17898 | main () |
| 17899 | { |
| 17900 | return dld_link (); |
| 17901 | ; |
| 17902 | return 0; |
| 17903 | } |
| 17904 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17905 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17906 | ac_cv_lib_dld_dld_link=yes |
| 17907 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17908 | ac_cv_lib_dld_dld_link=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17909 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17910 | rm -f core conftest.err conftest.$ac_objext \ |
| 17911 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17912 | LIBS=$ac_check_lib_save_LIBS |
| 17913 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17915 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17916 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17917 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17918 | $as_echo "#define HAVE_DLD 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17919 | |
| 17920 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la" |
| 17921 | fi |
| 17922 | |
| 17923 | |
| 17924 | |
| 17925 | |
| 17926 | LT_DLPREOPEN= |
| 17927 | if test -n "$LT_DLLOADERS" |
| 17928 | then |
| 17929 | for lt_loader in $LT_DLLOADERS; do |
| 17930 | LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader " |
| 17931 | done |
| 17932 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17933 | $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17934 | |
| 17935 | fi |
| 17936 | |
| 17937 | |
| 17938 | LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD" |
| 17939 | |
| 17940 | |
| 17941 | ac_ext=c |
| 17942 | ac_cpp='$CPP $CPPFLAGS' |
| 17943 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17944 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17945 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17946 | |
| 17947 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17949 | $as_echo_n "checking for _ prefix in compiled symbols... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17950 | if test "${lt_cv_sys_symbol_underscore+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17951 | $as_echo_n "(cached) " >&6 |
| 17952 | else |
| 17953 | lt_cv_sys_symbol_underscore=no |
| 17954 | cat > conftest.$ac_ext <<_LT_EOF |
| 17955 | void nm_test_func(){} |
| 17956 | int main(){nm_test_func;return 0;} |
| 17957 | _LT_EOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17958 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17959 | (eval $ac_compile) 2>&5 |
| 17960 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17961 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 17962 | test $ac_status = 0; }; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17963 | # Now try to grab the symbols. |
| 17964 | ac_nlist=conftest.nm |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17965 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17966 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 |
| 17967 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17968 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 17969 | test $ac_status = 0; } && test -s "$ac_nlist"; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17970 | # See whether the symbols have a leading underscore. |
| 17971 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then |
| 17972 | lt_cv_sys_symbol_underscore=yes |
| 17973 | else |
| 17974 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then |
| 17975 | : |
| 17976 | else |
| 17977 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 |
| 17978 | fi |
| 17979 | fi |
| 17980 | else |
| 17981 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 17982 | fi |
| 17983 | else |
| 17984 | echo "configure: failed program was:" >&5 |
| 17985 | cat conftest.c >&5 |
| 17986 | fi |
| 17987 | rm -rf conftest* |
| 17988 | |
| 17989 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17991 | $as_echo "$lt_cv_sys_symbol_underscore" >&6; } |
| 17992 | sys_symbol_underscore=$lt_cv_sys_symbol_underscore |
| 17993 | |
| 17994 | |
| 17995 | if test x"$lt_cv_sys_symbol_underscore" = xyes; then |
| 17996 | if test x"$libltdl_cv_func_dlopen" = xyes || |
| 17997 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 17998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17999 | $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18000 | if test "${libltdl_cv_need_uscore+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18001 | $as_echo_n "(cached) " >&6 |
| 18002 | else |
| 18003 | libltdl_cv_need_uscore=unknown |
| 18004 | save_LIBS="$LIBS" |
| 18005 | LIBS="$LIBS $LIBADD_DLOPEN" |
| 18006 | if test "$cross_compiling" = yes; then : |
| 18007 | libltdl_cv_need_uscore=cross |
| 18008 | else |
| 18009 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 18010 | lt_status=$lt_dlunknown |
| 18011 | cat > conftest.$ac_ext <<_LT_EOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18012 | #line 18012 "configure" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18013 | #include "confdefs.h" |
| 18014 | |
| 18015 | #if HAVE_DLFCN_H |
| 18016 | #include <dlfcn.h> |
| 18017 | #endif |
| 18018 | |
| 18019 | #include <stdio.h> |
| 18020 | |
| 18021 | #ifdef RTLD_GLOBAL |
| 18022 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 18023 | #else |
| 18024 | # ifdef DL_GLOBAL |
| 18025 | # define LT_DLGLOBAL DL_GLOBAL |
| 18026 | # else |
| 18027 | # define LT_DLGLOBAL 0 |
| 18028 | # endif |
| 18029 | #endif |
| 18030 | |
| 18031 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 18032 | find out it does not work in some platform. */ |
| 18033 | #ifndef LT_DLLAZY_OR_NOW |
| 18034 | # ifdef RTLD_LAZY |
| 18035 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 18036 | # else |
| 18037 | # ifdef DL_LAZY |
| 18038 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 18039 | # else |
| 18040 | # ifdef RTLD_NOW |
| 18041 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 18042 | # else |
| 18043 | # ifdef DL_NOW |
| 18044 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 18045 | # else |
| 18046 | # define LT_DLLAZY_OR_NOW 0 |
| 18047 | # endif |
| 18048 | # endif |
| 18049 | # endif |
| 18050 | # endif |
| 18051 | #endif |
| 18052 | |
| 18053 | void fnord() { int i=42;} |
| 18054 | int main () |
| 18055 | { |
| 18056 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 18057 | int status = $lt_dlunknown; |
| 18058 | |
| 18059 | if (self) |
| 18060 | { |
| 18061 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 18062 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 18063 | /* dlclose (self); */ |
| 18064 | } |
| 18065 | else |
| 18066 | puts (dlerror ()); |
| 18067 | |
| 18068 | return status; |
| 18069 | } |
| 18070 | _LT_EOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18071 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18072 | (eval $ac_link) 2>&5 |
| 18073 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18074 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 18075 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18076 | (./conftest; exit; ) >&5 2>/dev/null |
| 18077 | lt_status=$? |
| 18078 | case x$lt_status in |
| 18079 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; |
| 18080 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; |
| 18081 | x$lt_dlunknown|x*) ;; |
| 18082 | esac |
| 18083 | else : |
| 18084 | # compilation failed |
| 18085 | |
| 18086 | fi |
| 18087 | fi |
| 18088 | rm -fr conftest* |
| 18089 | |
| 18090 | LIBS="$save_LIBS" |
| 18091 | |
| 18092 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18094 | $as_echo "$libltdl_cv_need_uscore" >&6; } |
| 18095 | fi |
| 18096 | fi |
| 18097 | |
| 18098 | if test x"$libltdl_cv_need_uscore" = xyes; then |
| 18099 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18100 | $as_echo "#define NEED_USCORE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18101 | |
| 18102 | fi |
| 18103 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18105 | $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18106 | if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18107 | $as_echo_n "(cached) " >&6 |
| 18108 | else |
| 18109 | # PORTME does your system automatically load deplibs for dlopen? |
| 18110 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) |
| 18111 | # For now, we just catch OSes we know something about -- in the |
| 18112 | # future, we'll try test this programmatically. |
| 18113 | lt_cv_sys_dlopen_deplibs=unknown |
| 18114 | case $host_os in |
| 18115 | aix3*|aix4.1.*|aix4.2.*) |
| 18116 | # Unknown whether this is true for these versions of AIX, but |
| 18117 | # we want this `case' here to explicitly catch those versions. |
| 18118 | lt_cv_sys_dlopen_deplibs=unknown |
| 18119 | ;; |
| 18120 | aix[4-9]*) |
| 18121 | lt_cv_sys_dlopen_deplibs=yes |
| 18122 | ;; |
| 18123 | amigaos*) |
| 18124 | case $host_cpu in |
| 18125 | powerpc) |
| 18126 | lt_cv_sys_dlopen_deplibs=no |
| 18127 | ;; |
| 18128 | esac |
| 18129 | ;; |
| 18130 | darwin*) |
| 18131 | # Assuming the user has installed a libdl from somewhere, this is true |
| 18132 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat |
| 18133 | lt_cv_sys_dlopen_deplibs=yes |
| 18134 | ;; |
| 18135 | freebsd* | dragonfly*) |
| 18136 | lt_cv_sys_dlopen_deplibs=yes |
| 18137 | ;; |
| 18138 | gnu* | linux* | k*bsd*-gnu) |
| 18139 | # GNU and its variants, using gnu ld.so (Glibc) |
| 18140 | lt_cv_sys_dlopen_deplibs=yes |
| 18141 | ;; |
| 18142 | hpux10*|hpux11*) |
| 18143 | lt_cv_sys_dlopen_deplibs=yes |
| 18144 | ;; |
| 18145 | interix*) |
| 18146 | lt_cv_sys_dlopen_deplibs=yes |
| 18147 | ;; |
| 18148 | irix[12345]*|irix6.[01]*) |
| 18149 | # Catch all versions of IRIX before 6.2, and indicate that we don't |
| 18150 | # know how it worked for any of those versions. |
| 18151 | lt_cv_sys_dlopen_deplibs=unknown |
| 18152 | ;; |
| 18153 | irix*) |
| 18154 | # The case above catches anything before 6.2, and it's known that |
| 18155 | # at 6.2 and later dlopen does load deplibs. |
| 18156 | lt_cv_sys_dlopen_deplibs=yes |
| 18157 | ;; |
| 18158 | netbsd*) |
| 18159 | lt_cv_sys_dlopen_deplibs=yes |
| 18160 | ;; |
| 18161 | openbsd*) |
| 18162 | lt_cv_sys_dlopen_deplibs=yes |
| 18163 | ;; |
| 18164 | osf[1234]*) |
| 18165 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, |
| 18166 | # it did *not* use an RPATH in a shared library to find objects the |
| 18167 | # library depends on, so we explicitly say `no'. |
| 18168 | lt_cv_sys_dlopen_deplibs=no |
| 18169 | ;; |
| 18170 | osf5.0|osf5.0a|osf5.1) |
| 18171 | # dlopen *does* load deplibs and with the right loader patch applied |
| 18172 | # it even uses RPATH in a shared library to search for shared objects |
| 18173 | # that the library depends on, but there's no easy way to know if that |
| 18174 | # patch is installed. Since this is the case, all we can really |
| 18175 | # say is unknown -- it depends on the patch being installed. If |
| 18176 | # it is, this changes to `yes'. Without it, it would be `no'. |
| 18177 | lt_cv_sys_dlopen_deplibs=unknown |
| 18178 | ;; |
| 18179 | osf*) |
| 18180 | # the two cases above should catch all versions of osf <= 5.1. Read |
| 18181 | # the comments above for what we know about them. |
| 18182 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library |
| 18183 | # is used to find them so we can finally say `yes'. |
| 18184 | lt_cv_sys_dlopen_deplibs=yes |
| 18185 | ;; |
| 18186 | qnx*) |
| 18187 | lt_cv_sys_dlopen_deplibs=yes |
| 18188 | ;; |
| 18189 | solaris*) |
| 18190 | lt_cv_sys_dlopen_deplibs=yes |
| 18191 | ;; |
| 18192 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 18193 | libltdl_cv_sys_dlopen_deplibs=yes |
| 18194 | ;; |
| 18195 | esac |
| 18196 | |
| 18197 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18199 | $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; } |
| 18200 | if test "$lt_cv_sys_dlopen_deplibs" != yes; then |
| 18201 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18202 | $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18203 | |
| 18204 | fi |
| 18205 | |
| 18206 | : |
| 18207 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18208 | for ac_header in argz.h |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18209 | do : |
| 18210 | ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default |
| 18211 | " |
| 18212 | if test "x$ac_cv_header_argz_h" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18213 | cat >>confdefs.h <<_ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18214 | #define HAVE_ARGZ_H 1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18215 | _ACEOF |
| 18216 | |
| 18217 | fi |
| 18218 | |
| 18219 | done |
| 18220 | |
| 18221 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18222 | ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H) |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18223 | # include <argz.h> |
| 18224 | #endif |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18225 | " |
| 18226 | if test "x$ac_cv_type_error_t" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18227 | |
| 18228 | cat >>confdefs.h <<_ACEOF |
| 18229 | #define HAVE_ERROR_T 1 |
| 18230 | _ACEOF |
| 18231 | |
| 18232 | |
| 18233 | else |
| 18234 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18235 | $as_echo "#define error_t int" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18236 | |
| 18237 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18238 | $as_echo "#define __error_t_defined 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18239 | |
| 18240 | fi |
| 18241 | |
| 18242 | |
| 18243 | ARGZ_H= |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18244 | for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \ |
| 18245 | argz_next argz_stringify |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18246 | do : |
| 18247 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18248 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 18249 | eval as_val=\$$as_ac_var |
| 18250 | if test "x$as_val" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18251 | cat >>confdefs.h <<_ACEOF |
| 18252 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 18253 | _ACEOF |
| 18254 | |
| 18255 | else |
| 18256 | ARGZ_H=argz.h; |
| 18257 | |
| 18258 | _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext" |
| 18259 | |
| 18260 | fi |
| 18261 | done |
| 18262 | |
| 18263 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18264 | if test -z "$ARGZ_H"; then : |
| 18265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18266 | $as_echo_n "checking if argz actually works... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18267 | if test "${lt_cv_sys_argz_works+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18268 | $as_echo_n "(cached) " >&6 |
| 18269 | else |
| 18270 | case $host_os in #( |
| 18271 | *cygwin*) |
| 18272 | lt_cv_sys_argz_works=no |
| 18273 | if test "$cross_compiling" != no; then |
| 18274 | lt_cv_sys_argz_works="guessing no" |
| 18275 | else |
| 18276 | lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/' |
| 18277 | save_IFS=$IFS |
| 18278 | IFS=-. |
| 18279 | set x `uname -r | sed -e "$lt_sed_extract_leading_digits"` |
| 18280 | IFS=$save_IFS |
| 18281 | lt_os_major=${2-0} |
| 18282 | lt_os_minor=${3-0} |
| 18283 | lt_os_micro=${4-0} |
| 18284 | if test "$lt_os_major" -gt 1 \ |
| 18285 | || { test "$lt_os_major" -eq 1 \ |
| 18286 | && { test "$lt_os_minor" -gt 5 \ |
| 18287 | || { test "$lt_os_minor" -eq 5 \ |
| 18288 | && test "$lt_os_micro" -gt 24; }; }; }; then |
| 18289 | lt_cv_sys_argz_works=yes |
| 18290 | fi |
| 18291 | fi |
| 18292 | ;; #( |
| 18293 | *) lt_cv_sys_argz_works=yes ;; |
| 18294 | esac |
| 18295 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18297 | $as_echo "$lt_cv_sys_argz_works" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18298 | if test $lt_cv_sys_argz_works = yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18299 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18300 | $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18301 | |
| 18302 | else |
| 18303 | ARGZ_H=argz.h |
| 18304 | |
| 18305 | |
| 18306 | _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext" |
| 18307 | |
| 18308 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18309 | fi |
| 18310 | |
| 18311 | |
| 18312 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18314 | $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18315 | if test "${libltdl_cv_preloaded_symbols+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18316 | $as_echo_n "(cached) " >&6 |
| 18317 | else |
| 18318 | if test -n "$lt_cv_sys_global_symbol_pipe"; then |
| 18319 | libltdl_cv_preloaded_symbols=yes |
| 18320 | else |
| 18321 | libltdl_cv_preloaded_symbols=no |
| 18322 | fi |
| 18323 | |
| 18324 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18326 | $as_echo "$libltdl_cv_preloaded_symbols" >&6; } |
| 18327 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then |
| 18328 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18329 | $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18330 | |
| 18331 | fi |
| 18332 | |
| 18333 | # Set options |
| 18334 | |
| 18335 | |
| 18336 | |
| 18337 | |
| 18338 | |
| 18339 | |
| 18340 | |
| 18341 | |
| 18342 | |
| 18343 | |
| 18344 | |
| 18345 | # Check whether --with-included_ltdl was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18346 | if test "${with_included_ltdl+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18347 | withval=$with_included_ltdl; |
| 18348 | fi |
| 18349 | |
| 18350 | |
| 18351 | if test "x$with_included_ltdl" != xyes; then |
| 18352 | # We are not being forced to use the included libltdl sources, so |
| 18353 | # decide whether there is a useful installed version we can use. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18354 | ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18355 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18356 | " |
| 18357 | if test "x$ac_cv_header_ltdl_h" = x""yes; then : |
| 18358 | ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18359 | #include <ltdl.h> |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18360 | " |
| 18361 | if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then : |
| 18362 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18363 | $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18364 | if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18365 | $as_echo_n "(cached) " >&6 |
| 18366 | else |
| 18367 | ac_check_lib_save_LIBS=$LIBS |
| 18368 | LIBS="-lltdl $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18369 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18370 | /* end confdefs.h. */ |
| 18371 | |
| 18372 | /* Override any GCC internal prototype to avoid an error. |
| 18373 | Use char because int might match the return type of a GCC |
| 18374 | builtin and then its argument prototype would still apply. */ |
| 18375 | #ifdef __cplusplus |
| 18376 | extern "C" |
| 18377 | #endif |
| 18378 | char lt_dladvise_preload (); |
| 18379 | int |
| 18380 | main () |
| 18381 | { |
| 18382 | return lt_dladvise_preload (); |
| 18383 | ; |
| 18384 | return 0; |
| 18385 | } |
| 18386 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18387 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18388 | ac_cv_lib_ltdl_lt_dladvise_preload=yes |
| 18389 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18390 | ac_cv_lib_ltdl_lt_dladvise_preload=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18391 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18392 | rm -f core conftest.err conftest.$ac_objext \ |
| 18393 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18394 | LIBS=$ac_check_lib_save_LIBS |
| 18395 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18397 | $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18398 | if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18399 | with_included_ltdl=no |
| 18400 | else |
| 18401 | with_included_ltdl=yes |
| 18402 | fi |
| 18403 | |
| 18404 | else |
| 18405 | with_included_ltdl=yes |
| 18406 | fi |
| 18407 | |
| 18408 | else |
| 18409 | with_included_ltdl=yes |
| 18410 | fi |
| 18411 | |
| 18412 | |
| 18413 | fi |
| 18414 | |
| 18415 | |
| 18416 | |
| 18417 | |
| 18418 | # Check whether --with-ltdl_include was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18419 | if test "${with_ltdl_include+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18420 | withval=$with_ltdl_include; |
| 18421 | fi |
| 18422 | |
| 18423 | |
| 18424 | if test -n "$with_ltdl_include"; then |
| 18425 | if test -f "$with_ltdl_include/ltdl.h"; then : |
| 18426 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18427 | as_fn_error "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18428 | fi |
| 18429 | else |
| 18430 | with_ltdl_include=no |
| 18431 | fi |
| 18432 | |
| 18433 | |
| 18434 | # Check whether --with-ltdl_lib was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18435 | if test "${with_ltdl_lib+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18436 | withval=$with_ltdl_lib; |
| 18437 | fi |
| 18438 | |
| 18439 | |
| 18440 | if test -n "$with_ltdl_lib"; then |
| 18441 | if test -f "$with_ltdl_lib/libltdl.la"; then : |
| 18442 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18443 | as_fn_error "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18444 | fi |
| 18445 | else |
| 18446 | with_ltdl_lib=no |
| 18447 | fi |
| 18448 | |
| 18449 | case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in |
| 18450 | ,yes,no,no,) |
| 18451 | case $enable_ltdl_convenience in |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18452 | no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18453 | "") enable_ltdl_convenience=yes |
| 18454 | ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; |
| 18455 | esac |
| 18456 | LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la" |
| 18457 | LTDLDEPS=$LIBLTDL |
| 18458 | LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}" |
| 18459 | |
| 18460 | |
| 18461 | |
| 18462 | |
| 18463 | |
| 18464 | # For backwards non-gettext consistent compatibility... |
| 18465 | INCLTDL="$LTDLINCL" |
| 18466 | |
| 18467 | |
| 18468 | ;; |
| 18469 | ,no,no,no,) |
| 18470 | # If the included ltdl is not to be used, then use the |
| 18471 | # preinstalled libltdl we found. |
| 18472 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18473 | $as_echo "#define HAVE_LTDL 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18474 | |
| 18475 | LIBLTDL=-lltdl |
| 18476 | LTDLDEPS= |
| 18477 | LTDLINCL= |
| 18478 | ;; |
| 18479 | ,no*,no,*) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18480 | as_fn_error "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18481 | ;; |
| 18482 | *) with_included_ltdl=no |
| 18483 | LIBLTDL="-L$with_ltdl_lib -lltdl" |
| 18484 | LTDLDEPS= |
| 18485 | LTDLINCL="-I$with_ltdl_include" |
| 18486 | ;; |
| 18487 | esac |
| 18488 | INCLTDL="$LTDLINCL" |
| 18489 | |
| 18490 | # Report our decision... |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18491 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18492 | $as_echo_n "checking where to find libltdl headers... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18494 | $as_echo "$LTDLINCL" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18496 | $as_echo_n "checking where to find libltdl library... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18498 | $as_echo "$LIBLTDL" >&6; } |
| 18499 | |
| 18500 | |
| 18501 | |
| 18502 | # Check whether --enable-ltdl-install was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18503 | if test "${enable_ltdl_install+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18504 | enableval=$enable_ltdl_install; |
| 18505 | fi |
| 18506 | |
| 18507 | |
| 18508 | case ,${enable_ltdl_install},${enable_ltdl_convenience} in |
| 18509 | *yes*) ;; |
| 18510 | *) enable_ltdl_convenience=yes ;; |
| 18511 | esac |
| 18512 | |
| 18513 | if test x"${enable_ltdl_install-no}" != xno; then |
| 18514 | INSTALL_LTDL_TRUE= |
| 18515 | INSTALL_LTDL_FALSE='#' |
| 18516 | else |
| 18517 | INSTALL_LTDL_TRUE='#' |
| 18518 | INSTALL_LTDL_FALSE= |
| 18519 | fi |
| 18520 | |
| 18521 | if test x"${enable_ltdl_convenience-no}" != xno; then |
| 18522 | CONVENIENCE_LTDL_TRUE= |
| 18523 | CONVENIENCE_LTDL_FALSE='#' |
| 18524 | else |
| 18525 | CONVENIENCE_LTDL_TRUE='#' |
| 18526 | CONVENIENCE_LTDL_FALSE= |
| 18527 | fi |
| 18528 | |
| 18529 | |
| 18530 | |
| 18531 | |
| 18532 | |
| 18533 | |
| 18534 | |
| 18535 | # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS |
| 18536 | # the user used. This is so that ltdl.h can pick up the parent projects |
| 18537 | # config.h file, The first file in AC_CONFIG_HEADERS must contain the |
| 18538 | # definitions required by ltdl.c. |
| 18539 | # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility). |
| 18540 | |
| 18541 | |
| 18542 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18543 | for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18544 | do : |
| 18545 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 18546 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 18547 | " |
| 18548 | eval as_val=\$$as_ac_Header |
| 18549 | if test "x$as_val" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18550 | cat >>confdefs.h <<_ACEOF |
| 18551 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 18552 | _ACEOF |
| 18553 | |
| 18554 | fi |
| 18555 | |
| 18556 | done |
| 18557 | |
| 18558 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18559 | for ac_func in closedir opendir readdir |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18560 | do : |
| 18561 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18562 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 18563 | eval as_val=\$$as_ac_var |
| 18564 | if test "x$as_val" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18565 | cat >>confdefs.h <<_ACEOF |
| 18566 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 18567 | _ACEOF |
| 18568 | |
| 18569 | else |
| 18570 | |
| 18571 | |
| 18572 | _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext" |
| 18573 | |
| 18574 | fi |
| 18575 | done |
| 18576 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18577 | for ac_func in strlcat strlcpy |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18578 | do : |
| 18579 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18580 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 18581 | eval as_val=\$$as_ac_var |
| 18582 | if test "x$as_val" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18583 | cat >>confdefs.h <<_ACEOF |
| 18584 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 18585 | _ACEOF |
| 18586 | |
| 18587 | else |
| 18588 | |
| 18589 | |
| 18590 | _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext" |
| 18591 | |
| 18592 | fi |
| 18593 | done |
| 18594 | |
| 18595 | |
| 18596 | |
| 18597 | cat >>confdefs.h <<_ACEOF |
| 18598 | #define LT_LIBEXT "$libext" |
| 18599 | _ACEOF |
| 18600 | |
| 18601 | |
| 18602 | name=ltdl |
| 18603 | LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""` |
| 18604 | |
| 18605 | |
| 18606 | |
| 18607 | |
| 18608 | |
| 18609 | |
| 18610 | |
| 18611 | |
| 18612 | # Only expand once: |
| 18613 | |
| 18614 | |
| 18615 | |
| 18616 | # Check to see if building shared libraries |
| 18617 | libtool_build_shared_libs='no' |
| 18618 | if test "$enable_shared" = 'yes'; then |
| 18619 | libtool_build_shared_libs='yes' |
| 18620 | fi |
| 18621 | |
| 18622 | # Check to see if building static libraries |
| 18623 | libtool_build_static_libs='no' |
| 18624 | if test "$enable_static" = 'yes'; then |
| 18625 | libtool_build_static_libs='yes' |
| 18626 | fi |
| 18627 | |
| 18628 | # MinGW and Cygwin can't build C++ DLLs which support exceptions. |
| 18629 | if test "${StaticCplusPlusLibraries}" = 'yes'; then |
| 18630 | LTCXXLIBOPTS='--static' |
| 18631 | |
| 18632 | fi |
| 18633 | |
| 18634 | # |
| 18635 | # Enable support for building loadable modules |
| 18636 | # |
| 18637 | |
| 18638 | # Check whether --with-modules was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18639 | if test "${with_modules+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18640 | withval=$with_modules; with_modules=$withval |
| 18641 | else |
| 18642 | with_modules=$libtool_build_shared_libs |
| 18643 | fi |
| 18644 | |
| 18645 | |
| 18646 | # Only allow building loadable modules if we are building shared libraries |
| 18647 | if test "$with_modules" != 'no' ; then |
| 18648 | if test "$libtool_build_shared_libs" = 'no'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18649 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Modules may only be built if building shared libraries is enabled." >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18650 | $as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;} |
| 18651 | with_modules='no' |
| 18652 | fi |
| 18653 | fi |
| 18654 | if test "$with_modules" != 'no'; then |
| 18655 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18656 | $as_echo "#define BUILD_MODULES 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18657 | |
| 18658 | fi |
| 18659 | if test "$with_modules" != 'no'; then |
| 18660 | WITH_MODULES_TRUE= |
| 18661 | WITH_MODULES_FALSE='#' |
| 18662 | else |
| 18663 | WITH_MODULES_TRUE='#' |
| 18664 | WITH_MODULES_FALSE= |
| 18665 | fi |
| 18666 | |
| 18667 | |
| 18668 | # Enable building/use of libltdl if we are building shared libraries regardless |
| 18669 | # of whether modules are built or not. |
| 18670 | with_ltdl='no' |
| 18671 | if test "$libtool_build_shared_libs" != 'no'; then |
| 18672 | with_ltdl='yes' |
| 18673 | fi |
| 18674 | |
| 18675 | if test "$with_ltdl" != 'no'; then |
| 18676 | WITH_LTDL_TRUE= |
| 18677 | WITH_LTDL_FALSE='#' |
| 18678 | else |
| 18679 | WITH_LTDL_TRUE='#' |
| 18680 | WITH_LTDL_FALSE= |
| 18681 | fi |
| 18682 | |
| 18683 | if test "$with_ltdl" != 'no'; then |
| 18684 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18685 | $as_echo "#define LTDL_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18686 | |
| 18687 | |
| 18688 | # Set DLLDFLAGS |
| 18689 | if test X"$enable_shared" = Xyes; then |
| 18690 | DLLDFLAGS=-export-dynamic |
| 18691 | |
| 18692 | fi |
| 18693 | fi |
| 18694 | |
| 18695 | # Enable build using delegate libraries built in subdirectories rather than installed |
| 18696 | # delegate libraries (bzlib fftw fpx jp2 jbig jpeg lcms png tiff ttf wmf xml zlib) |
| 18697 | # Check whether --enable-delegate-build was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18698 | if test "${enable_delegate_build+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18699 | enableval=$enable_delegate_build; enable_delegate_build=$enableval |
| 18700 | else |
| 18701 | enable_delegate_build='no' |
| 18702 | fi |
| 18703 | |
| 18704 | |
| 18705 | # Check whether --enable-deprecated was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18706 | if test "${enable_deprecated+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18707 | enableval=$enable_deprecated; enable_deprecated=$enableval |
| 18708 | else |
| 18709 | enable_deprecated='no' |
| 18710 | fi |
| 18711 | |
| 18712 | |
| 18713 | if test "$enable_deprecated" = 'yes'; then |
| 18714 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18715 | $as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18716 | |
| 18717 | else |
| 18718 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated " |
| 18719 | fi |
| 18720 | |
| 18721 | # Build a version of ImageMagick which operates uninstalled. |
| 18722 | # Used to build distributions located via MAGICK_HOME / executable path |
| 18723 | # Check whether --enable-installed was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18724 | if test "${enable_installed+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18725 | enableval=$enable_installed; enable_installed=$enableval |
| 18726 | else |
| 18727 | enable_installed='yes' |
| 18728 | fi |
| 18729 | |
| 18730 | |
| 18731 | if test "$enable_installed" = 'yes'; then |
| 18732 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18733 | $as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18734 | |
| 18735 | else |
| 18736 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed " |
| 18737 | fi |
| 18738 | |
| 18739 | # Permit enciphering and deciphering image pixels. |
| 18740 | # Check whether --enable-cipher was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18741 | if test "${enable_cipher+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18742 | enableval=$enable_cipher; enable_cipher=$enableval |
| 18743 | else |
| 18744 | enable_cipher='yes' |
| 18745 | fi |
| 18746 | |
| 18747 | |
| 18748 | if test "$enable_cipher" = 'yes'; then |
| 18749 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18750 | $as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18751 | |
| 18752 | fi |
| 18753 | |
| 18754 | # Build an embeddable version of ImageMagick. |
| 18755 | # Check whether --enable-embeddable was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18756 | if test "${enable_embeddable+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18757 | enableval=$enable_embeddable; enable_embeddable=$enableval |
| 18758 | else |
| 18759 | enable_embeddable='no' |
| 18760 | fi |
| 18761 | |
| 18762 | |
| 18763 | if test "$enable_embeddable" = 'yes'; then |
| 18764 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18765 | $as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18766 | |
| 18767 | fi |
| 18768 | |
| 18769 | # Build a high dynamic range version of ImageMagick. |
| 18770 | # Check whether --enable-hdri was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18771 | if test "${enable_hdri+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18772 | enableval=$enable_hdri; enable_hdri=$enableval |
| 18773 | else |
| 18774 | enable_hdri='no' |
| 18775 | fi |
| 18776 | |
| 18777 | |
| 18778 | MAGICK_HDRI="" |
| 18779 | if test "$enable_hdri" = 'yes'; then |
| 18780 | MAGICK_HDRI="HDRI" |
| 18781 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18782 | $as_echo "#define HDRI_SUPPORT 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18783 | |
| 18784 | fi |
| 18785 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18786 | # Build a version of ImageMagick with assert statements. |
| 18787 | # Check whether --enable-assert was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18788 | if test "${enable_assert+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18789 | enableval=$enable_assert; enable_assert=$enableval |
| 18790 | else |
| 18791 | enable_assert='yes' |
| 18792 | fi |
| 18793 | |
| 18794 | |
| 18795 | if test "$enable_assert" = 'no'; then |
| 18796 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18797 | $as_echo "#define NDEBUG 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18798 | |
| 18799 | fi |
| 18800 | |
| 18801 | # Add configure option --enable-maintainer-mode which enables dependency |
| 18802 | # checking and generation useful to package maintainers. This is made an |
| 18803 | # option to avoid confusing end users. |
| 18804 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18806 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } |
| 18807 | # Check whether --enable-maintainer-mode was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18808 | if test "${enable_maintainer_mode+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18809 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
| 18810 | else |
| 18811 | USE_MAINTAINER_MODE=no |
| 18812 | fi |
| 18813 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18815 | $as_echo "$USE_MAINTAINER_MODE" >&6; } |
| 18816 | if test $USE_MAINTAINER_MODE = yes; then |
| 18817 | MAINTAINER_MODE_TRUE= |
| 18818 | MAINTAINER_MODE_FALSE='#' |
| 18819 | else |
| 18820 | MAINTAINER_MODE_TRUE='#' |
| 18821 | MAINTAINER_MODE_FALSE= |
| 18822 | fi |
| 18823 | |
| 18824 | MAINT=$MAINTAINER_MODE_TRUE |
| 18825 | |
| 18826 | |
| 18827 | |
| 18828 | |
| 18829 | # Enable ccmalloc memory debugging support |
| 18830 | # Check whether --enable-ccmalloc was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18831 | if test "${enable_ccmalloc+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18832 | enableval=$enable_ccmalloc; enable_ccmalloc=$enableval |
| 18833 | else |
| 18834 | enable_ccmalloc='no' |
| 18835 | fi |
| 18836 | |
| 18837 | |
| 18838 | # Enable Electric Fence memory debugging support |
| 18839 | # Check whether --enable-efence was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18840 | if test "${enable_efence+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18841 | enableval=$enable_efence; enable_efence=$enableval |
| 18842 | else |
| 18843 | enable_efence='no' |
| 18844 | fi |
| 18845 | |
| 18846 | |
| 18847 | # Enable prof-based profiling support |
| 18848 | # Check whether --enable-prof was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18849 | if test "${enable_prof+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18850 | enableval=$enable_prof; enable_prof=$enableval |
| 18851 | else |
| 18852 | enable_prof='no' |
| 18853 | fi |
| 18854 | |
| 18855 | |
| 18856 | # Enable gprof-based profiling support |
| 18857 | # Check whether --enable-gprof was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18858 | if test "${enable_gprof+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18859 | enableval=$enable_gprof; enable_gprof=$enableval |
| 18860 | else |
| 18861 | enable_gprof='no' |
| 18862 | fi |
| 18863 | |
| 18864 | |
| 18865 | # Enable gcov-based profiling support |
| 18866 | # Check whether --enable-gcov was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18867 | if test "${enable_gcov+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18868 | enableval=$enable_gcov; enable_gcov=$enableval |
| 18869 | else |
| 18870 | enable_gcov='no' |
| 18871 | fi |
| 18872 | |
| 18873 | |
| 18874 | enable_profiling='no' |
| 18875 | if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then |
| 18876 | enable_profiling='yes' |
| 18877 | if test "$libtool_build_shared_libs" = 'yes'; then |
| 18878 | echo "Warning: Can not profile code using shared libraries" |
| 18879 | fi |
| 18880 | fi |
| 18881 | |
| 18882 | # Magick API method prefix |
| 18883 | |
| 18884 | # Check whether --with-method-prefix was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18885 | if test "${with_method_prefix+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18886 | withval=$with_method_prefix; with_method_prefix=$enableval |
| 18887 | else |
| 18888 | with_method_prefix='' |
| 18889 | fi |
| 18890 | |
| 18891 | |
| 18892 | if test "$with_method_prefix" != ''; then |
| 18893 | |
| 18894 | cat >>confdefs.h <<_ACEOF |
| 18895 | #define NAMESPACE_PREFIX $with_method_prefix |
| 18896 | _ACEOF |
| 18897 | |
| 18898 | fi |
| 18899 | |
| 18900 | # Number of bits in a Quantum |
| 18901 | |
| 18902 | # Check whether --with-quantum-depth was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18903 | if test "${with_quantum_depth+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18904 | withval=$with_quantum_depth; with_quantum_depth=$withval |
| 18905 | else |
| 18906 | with_quantum_depth=16 |
| 18907 | fi |
| 18908 | |
| 18909 | |
| 18910 | if test "$with_quantum_depth" != '8'; then |
| 18911 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth " |
| 18912 | fi |
| 18913 | |
| 18914 | case "${with_quantum_depth}" in |
| 18915 | 8 ) ;; |
| 18916 | 16 ) ;; |
| 18917 | 32 ) ;; |
| 18918 | 64 ) ;; |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18919 | * ) { as_fn_set_status 16 |
| 18920 | as_fn_error "\"Pixel quantum depth must have value of 8" "$LINENO" 5; } ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18921 | esac |
| 18922 | QUANTUM_DEPTH="$with_quantum_depth" |
| 18923 | |
| 18924 | cat >>confdefs.h <<_ACEOF |
| 18925 | #define QUANTUM_DEPTH $QUANTUM_DEPTH |
| 18926 | _ACEOF |
| 18927 | |
| 18928 | |
| 18929 | # Set pixel cache threshold |
| 18930 | |
| 18931 | # Check whether --with-cache was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18932 | if test "${with_cache+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18933 | withval=$with_cache; with_cache=$withval |
| 18934 | else |
| 18935 | with_cache='' |
| 18936 | fi |
| 18937 | |
| 18938 | |
| 18939 | if test "$with_cache" != ''; then |
| 18940 | |
| 18941 | cat >>confdefs.h <<_ACEOF |
| 18942 | #define PixelCacheThreshold $with_cache |
| 18943 | _ACEOF |
| 18944 | |
| 18945 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache " |
| 18946 | fi |
| 18947 | |
| 18948 | # Disable/Enable support for full delegate paths |
| 18949 | |
| 18950 | # Check whether --with-frozenpaths was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18951 | if test "${with_frozenpaths+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18952 | withval=$with_frozenpaths; with_frozenpaths=$withval |
| 18953 | else |
| 18954 | with_frozenpaths='no' |
| 18955 | fi |
| 18956 | |
| 18957 | |
| 18958 | # Enable build/install of Magick++ |
| 18959 | |
| 18960 | # Check whether --with-magick-plus-plus was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18961 | if test "${with_magick_plus_plus+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18962 | withval=$with_magick_plus_plus; with_magick_plus_plus=$withval |
| 18963 | else |
| 18964 | with_magick_plus_plus='yes' |
| 18965 | fi |
| 18966 | |
| 18967 | |
| 18968 | # Disable build/install of PerlMagick. |
| 18969 | |
| 18970 | # Check whether --with-perl was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18971 | if test "${with_perl+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18972 | withval=$with_perl; with_perl=$withval |
| 18973 | else |
| 18974 | with_perl=$libtool_build_shared_libs |
| 18975 | fi |
| 18976 | |
| 18977 | |
| 18978 | # Options to pass when configuring PerlMagick |
| 18979 | |
| 18980 | # Check whether --with-perl-options was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18981 | if test "${with_perl_options+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18982 | withval=$with_perl_options; |
| 18983 | fi |
| 18984 | |
| 18985 | |
| 18986 | PERL_MAKE_OPTIONS=$with_perl_options |
| 18987 | |
| 18988 | |
| 18989 | |
| 18990 | # Enable umem, object-caching memory allocation library. |
| 18991 | |
| 18992 | # Check whether --with-umem was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 18993 | if test "${with_umem+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18994 | withval=$with_umem; with_umem=$withval |
| 18995 | else |
| 18996 | with_umem='no' |
| 18997 | fi |
| 18998 | |
| 18999 | if test "$with_umem" != 'yes' ; then |
| 19000 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem " |
| 19001 | fi |
| 19002 | |
| 19003 | # |
| 19004 | # Specify path to shared libstdc++ if not in normal location |
| 19005 | # |
| 19006 | |
| 19007 | # Check whether --with-libstdc was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19008 | if test "${with_libstdc+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19009 | withval=$with_libstdc; with_libstdc=$withval |
| 19010 | else |
| 19011 | with_libstdc='' |
| 19012 | fi |
| 19013 | |
| 19014 | |
| 19015 | if test "$with_libstdc" != ''; then |
| 19016 | if test -d "$with_libstdc"; then |
| 19017 | LIBSTDCLDFLAGS="-L$with_libstdc" |
| 19018 | fi |
| 19019 | fi |
| 19020 | |
| 19021 | |
| 19022 | # Does gcc required -traditional? |
| 19023 | if test $ac_cv_c_compiler_gnu = yes; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19025 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19026 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19027 | $as_echo_n "(cached) " >&6 |
| 19028 | else |
| 19029 | ac_pattern="Autoconf.*'x'" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19030 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19031 | /* end confdefs.h. */ |
| 19032 | #include <sgtty.h> |
| 19033 | Autoconf TIOCGETP |
| 19034 | _ACEOF |
| 19035 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19036 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19037 | ac_cv_prog_gcc_traditional=yes |
| 19038 | else |
| 19039 | ac_cv_prog_gcc_traditional=no |
| 19040 | fi |
| 19041 | rm -f conftest* |
| 19042 | |
| 19043 | |
| 19044 | if test $ac_cv_prog_gcc_traditional = no; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19045 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19046 | /* end confdefs.h. */ |
| 19047 | #include <termio.h> |
| 19048 | Autoconf TCGETA |
| 19049 | _ACEOF |
| 19050 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19051 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19052 | ac_cv_prog_gcc_traditional=yes |
| 19053 | fi |
| 19054 | rm -f conftest* |
| 19055 | |
| 19056 | fi |
| 19057 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19059 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } |
| 19060 | if test $ac_cv_prog_gcc_traditional = yes; then |
| 19061 | CC="$CC -traditional" |
| 19062 | fi |
| 19063 | fi |
| 19064 | |
| 19065 | |
| 19066 | ######## |
| 19067 | # |
| 19068 | # Set defines required to build DLLs and modules using MinGW |
| 19069 | # |
| 19070 | ######## |
| 19071 | # These options are set for multi-thread DLL module build |
| 19072 | # libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_ |
| 19073 | # module: _DLL |
| 19074 | # executable/Magick++: _DLL _MAGICKMOD_ |
| 19075 | MODULE_EXTRA_CPPFLAGS='' |
| 19076 | LIBRARY_EXTRA_CPPFLAGS='' |
| 19077 | if test "${native_win32_build}" = 'yes'; then |
| 19078 | if test "${libtool_build_shared_libs}" = 'yes'; then |
| 19079 | CPPFLAGS="$CPPFLAGS -D_DLL" |
| 19080 | MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL" |
| 19081 | MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL" |
| 19082 | LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_" |
| 19083 | if test "$with_modules" = 'yes'; then |
| 19084 | LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_" |
| 19085 | else |
| 19086 | MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_" |
| 19087 | fi |
| 19088 | else |
| 19089 | CPPFLAGS="$CPPFLAGS -D_LIB" |
| 19090 | MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB" |
| 19091 | MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB" |
| 19092 | fi |
| 19093 | if test "$with_threads" = 'yes'; then |
| 19094 | CPPFLAGS="$CPPFLAGS -D_MT" |
| 19095 | MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT" |
| 19096 | MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT" |
| 19097 | fi |
| 19098 | fi |
| 19099 | |
| 19100 | |
| 19101 | |
| 19102 | # Check standard headers |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19104 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19105 | if test "${ac_cv_header_stdc+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19106 | $as_echo_n "(cached) " >&6 |
| 19107 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19108 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19109 | /* end confdefs.h. */ |
| 19110 | #include <stdlib.h> |
| 19111 | #include <stdarg.h> |
| 19112 | #include <string.h> |
| 19113 | #include <float.h> |
| 19114 | |
| 19115 | int |
| 19116 | main () |
| 19117 | { |
| 19118 | |
| 19119 | ; |
| 19120 | return 0; |
| 19121 | } |
| 19122 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19123 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19124 | ac_cv_header_stdc=yes |
| 19125 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19126 | ac_cv_header_stdc=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19127 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19128 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19129 | |
| 19130 | if test $ac_cv_header_stdc = yes; then |
| 19131 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19132 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19133 | /* end confdefs.h. */ |
| 19134 | #include <string.h> |
| 19135 | |
| 19136 | _ACEOF |
| 19137 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19138 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 19139 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19140 | else |
| 19141 | ac_cv_header_stdc=no |
| 19142 | fi |
| 19143 | rm -f conftest* |
| 19144 | |
| 19145 | fi |
| 19146 | |
| 19147 | if test $ac_cv_header_stdc = yes; then |
| 19148 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19149 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19150 | /* end confdefs.h. */ |
| 19151 | #include <stdlib.h> |
| 19152 | |
| 19153 | _ACEOF |
| 19154 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19155 | $EGREP "free" >/dev/null 2>&1; then : |
| 19156 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19157 | else |
| 19158 | ac_cv_header_stdc=no |
| 19159 | fi |
| 19160 | rm -f conftest* |
| 19161 | |
| 19162 | fi |
| 19163 | |
| 19164 | if test $ac_cv_header_stdc = yes; then |
| 19165 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19166 | if test "$cross_compiling" = yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19167 | : |
| 19168 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19169 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19170 | /* end confdefs.h. */ |
| 19171 | #include <ctype.h> |
| 19172 | #include <stdlib.h> |
| 19173 | #if ((' ' & 0x0FF) == 0x020) |
| 19174 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 19175 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 19176 | #else |
| 19177 | # define ISLOWER(c) \ |
| 19178 | (('a' <= (c) && (c) <= 'i') \ |
| 19179 | || ('j' <= (c) && (c) <= 'r') \ |
| 19180 | || ('s' <= (c) && (c) <= 'z')) |
| 19181 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 19182 | #endif |
| 19183 | |
| 19184 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 19185 | int |
| 19186 | main () |
| 19187 | { |
| 19188 | int i; |
| 19189 | for (i = 0; i < 256; i++) |
| 19190 | if (XOR (islower (i), ISLOWER (i)) |
| 19191 | || toupper (i) != TOUPPER (i)) |
| 19192 | return 2; |
| 19193 | return 0; |
| 19194 | } |
| 19195 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19196 | if ac_fn_c_try_run "$LINENO"; then : |
| 19197 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19198 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19199 | ac_cv_header_stdc=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19200 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19201 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 19202 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19203 | fi |
| 19204 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19205 | fi |
| 19206 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19208 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 19209 | if test $ac_cv_header_stdc = yes; then |
| 19210 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19211 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19212 | |
| 19213 | fi |
| 19214 | |
| 19215 | if ! test x"$ac_cv_header_stdc" = x"yes"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19216 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure has detected that you do not have the ANSI standard C |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19217 | header files. Compilation cannot proceed. Please install the ANSI C |
| 19218 | headers and rerun this script." >&5 |
| 19219 | $as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C |
| 19220 | header files. Compilation cannot proceed. Please install the ANSI C |
| 19221 | headers and rerun this script." >&2;}; |
| 19222 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19223 | ac_header_dirent=no |
| 19224 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 19225 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19227 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19228 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19229 | $as_echo_n "(cached) " >&6 |
| 19230 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19231 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19232 | /* end confdefs.h. */ |
| 19233 | #include <sys/types.h> |
| 19234 | #include <$ac_hdr> |
| 19235 | |
| 19236 | int |
| 19237 | main () |
| 19238 | { |
| 19239 | if ((DIR *) 0) |
| 19240 | return 0; |
| 19241 | ; |
| 19242 | return 0; |
| 19243 | } |
| 19244 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19245 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19246 | eval "$as_ac_Header=yes" |
| 19247 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19248 | eval "$as_ac_Header=no" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19249 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19250 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19251 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19252 | eval ac_res=\$$as_ac_Header |
| 19253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19254 | $as_echo "$ac_res" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19255 | eval as_val=\$$as_ac_Header |
| 19256 | if test "x$as_val" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19257 | cat >>confdefs.h <<_ACEOF |
| 19258 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 19259 | _ACEOF |
| 19260 | |
| 19261 | ac_header_dirent=$ac_hdr; break |
| 19262 | fi |
| 19263 | |
| 19264 | done |
| 19265 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 19266 | if test $ac_header_dirent = dirent.h; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19268 | $as_echo_n "checking for library containing opendir... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19269 | if test "${ac_cv_search_opendir+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19270 | $as_echo_n "(cached) " >&6 |
| 19271 | else |
| 19272 | ac_func_search_save_LIBS=$LIBS |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19273 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19274 | /* end confdefs.h. */ |
| 19275 | |
| 19276 | /* Override any GCC internal prototype to avoid an error. |
| 19277 | Use char because int might match the return type of a GCC |
| 19278 | builtin and then its argument prototype would still apply. */ |
| 19279 | #ifdef __cplusplus |
| 19280 | extern "C" |
| 19281 | #endif |
| 19282 | char opendir (); |
| 19283 | int |
| 19284 | main () |
| 19285 | { |
| 19286 | return opendir (); |
| 19287 | ; |
| 19288 | return 0; |
| 19289 | } |
| 19290 | _ACEOF |
| 19291 | for ac_lib in '' dir; do |
| 19292 | if test -z "$ac_lib"; then |
| 19293 | ac_res="none required" |
| 19294 | else |
| 19295 | ac_res=-l$ac_lib |
| 19296 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 19297 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19298 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19299 | ac_cv_search_opendir=$ac_res |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19300 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19301 | rm -f core conftest.err conftest.$ac_objext \ |
| 19302 | conftest$ac_exeext |
| 19303 | if test "${ac_cv_search_opendir+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19304 | break |
| 19305 | fi |
| 19306 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19307 | if test "${ac_cv_search_opendir+set}" = set; then : |
| 19308 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19309 | else |
| 19310 | ac_cv_search_opendir=no |
| 19311 | fi |
| 19312 | rm conftest.$ac_ext |
| 19313 | LIBS=$ac_func_search_save_LIBS |
| 19314 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19316 | $as_echo "$ac_cv_search_opendir" >&6; } |
| 19317 | ac_res=$ac_cv_search_opendir |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19318 | if test "$ac_res" != no; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19319 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 19320 | |
| 19321 | fi |
| 19322 | |
| 19323 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19325 | $as_echo_n "checking for library containing opendir... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19326 | if test "${ac_cv_search_opendir+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19327 | $as_echo_n "(cached) " >&6 |
| 19328 | else |
| 19329 | ac_func_search_save_LIBS=$LIBS |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19330 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19331 | /* end confdefs.h. */ |
| 19332 | |
| 19333 | /* Override any GCC internal prototype to avoid an error. |
| 19334 | Use char because int might match the return type of a GCC |
| 19335 | builtin and then its argument prototype would still apply. */ |
| 19336 | #ifdef __cplusplus |
| 19337 | extern "C" |
| 19338 | #endif |
| 19339 | char opendir (); |
| 19340 | int |
| 19341 | main () |
| 19342 | { |
| 19343 | return opendir (); |
| 19344 | ; |
| 19345 | return 0; |
| 19346 | } |
| 19347 | _ACEOF |
| 19348 | for ac_lib in '' x; do |
| 19349 | if test -z "$ac_lib"; then |
| 19350 | ac_res="none required" |
| 19351 | else |
| 19352 | ac_res=-l$ac_lib |
| 19353 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 19354 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19355 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19356 | ac_cv_search_opendir=$ac_res |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19357 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19358 | rm -f core conftest.err conftest.$ac_objext \ |
| 19359 | conftest$ac_exeext |
| 19360 | if test "${ac_cv_search_opendir+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19361 | break |
| 19362 | fi |
| 19363 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19364 | if test "${ac_cv_search_opendir+set}" = set; then : |
| 19365 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19366 | else |
| 19367 | ac_cv_search_opendir=no |
| 19368 | fi |
| 19369 | rm conftest.$ac_ext |
| 19370 | LIBS=$ac_func_search_save_LIBS |
| 19371 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19373 | $as_echo "$ac_cv_search_opendir" >&6; } |
| 19374 | ac_res=$ac_cv_search_opendir |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19375 | if test "$ac_res" != no; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19376 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 19377 | |
| 19378 | fi |
| 19379 | |
| 19380 | fi |
| 19381 | |
| 19382 | |
| 19383 | # Check additional headers |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19384 | for ac_header in arm/limits.h complex.h errno.h fcntl.h inttypes.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h OS.h stdarg.h stddef.h string.h strings.h sys/ipc.h sys/resource.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/types.h sys/wait.h unistd.h wchar.h |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19385 | do : |
| 19386 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 19387 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 19388 | eval as_val=\$$as_ac_Header |
| 19389 | if test "x$as_val" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19390 | cat >>confdefs.h <<_ACEOF |
| 19391 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 19392 | _ACEOF |
| 19393 | |
| 19394 | fi |
| 19395 | |
| 19396 | done |
| 19397 | |
| 19398 | |
| 19399 | ######## |
| 19400 | # |
| 19401 | # Checks for typedefs, structures, and compiler characteristics. |
| 19402 | # |
| 19403 | ######## |
| 19404 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19406 | $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19407 | if test "${ac_cv_header_stdbool_h+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19408 | $as_echo_n "(cached) " >&6 |
| 19409 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19410 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19411 | /* end confdefs.h. */ |
| 19412 | |
| 19413 | #include <stdbool.h> |
| 19414 | #ifndef bool |
| 19415 | "error: bool is not defined" |
| 19416 | #endif |
| 19417 | #ifndef false |
| 19418 | "error: false is not defined" |
| 19419 | #endif |
| 19420 | #if false |
| 19421 | "error: false is not 0" |
| 19422 | #endif |
| 19423 | #ifndef true |
| 19424 | "error: true is not defined" |
| 19425 | #endif |
| 19426 | #if true != 1 |
| 19427 | "error: true is not 1" |
| 19428 | #endif |
| 19429 | #ifndef __bool_true_false_are_defined |
| 19430 | "error: __bool_true_false_are_defined is not defined" |
| 19431 | #endif |
| 19432 | |
| 19433 | struct s { _Bool s: 1; _Bool t; } s; |
| 19434 | |
| 19435 | char a[true == 1 ? 1 : -1]; |
| 19436 | char b[false == 0 ? 1 : -1]; |
| 19437 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
| 19438 | char d[(bool) 0.5 == true ? 1 : -1]; |
| 19439 | bool e = &s; |
| 19440 | char f[(_Bool) 0.0 == false ? 1 : -1]; |
| 19441 | char g[true]; |
| 19442 | char h[sizeof (_Bool)]; |
| 19443 | char i[sizeof s.t]; |
| 19444 | enum { j = false, k = true, l = false * true, m = true * 256 }; |
| 19445 | /* The following fails for |
| 19446 | HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ |
| 19447 | _Bool n[m]; |
| 19448 | char o[sizeof n == m * sizeof n[0] ? 1 : -1]; |
| 19449 | char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; |
| 19450 | # if defined __xlc__ || defined __GNUC__ |
| 19451 | /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0 |
| 19452 | reported by James Lemley on 2005-10-05; see |
| 19453 | http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html |
| 19454 | This test is not quite right, since xlc is allowed to |
| 19455 | reject this program, as the initializer for xlcbug is |
| 19456 | not one of the forms that C requires support for. |
| 19457 | However, doing the test right would require a runtime |
| 19458 | test, and that would make cross-compilation harder. |
| 19459 | Let us hope that IBM fixes the xlc bug, and also adds |
| 19460 | support for this kind of constant expression. In the |
| 19461 | meantime, this test will reject xlc, which is OK, since |
| 19462 | our stdbool.h substitute should suffice. We also test |
| 19463 | this with GCC, where it should work, to detect more |
| 19464 | quickly whether someone messes up the test in the |
| 19465 | future. */ |
| 19466 | char digs[] = "0123456789"; |
| 19467 | int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1); |
| 19468 | # endif |
| 19469 | /* Catch a bug in an HP-UX C compiler. See |
| 19470 | http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html |
| 19471 | http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html |
| 19472 | */ |
| 19473 | _Bool q = true; |
| 19474 | _Bool *pq = &q; |
| 19475 | |
| 19476 | int |
| 19477 | main () |
| 19478 | { |
| 19479 | |
| 19480 | *pq |= q; |
| 19481 | *pq |= ! q; |
| 19482 | /* Refer to every declared value, to avoid compiler optimizations. */ |
| 19483 | return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l |
| 19484 | + !m + !n + !o + !p + !q + !pq); |
| 19485 | |
| 19486 | ; |
| 19487 | return 0; |
| 19488 | } |
| 19489 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19490 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19491 | ac_cv_header_stdbool_h=yes |
| 19492 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19493 | ac_cv_header_stdbool_h=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19494 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19495 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19496 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19498 | $as_echo "$ac_cv_header_stdbool_h" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19499 | ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" |
| 19500 | if test "x$ac_cv_type__Bool" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19501 | |
| 19502 | cat >>confdefs.h <<_ACEOF |
| 19503 | #define HAVE__BOOL 1 |
| 19504 | _ACEOF |
| 19505 | |
| 19506 | |
| 19507 | fi |
| 19508 | |
| 19509 | if test $ac_cv_header_stdbool_h = yes; then |
| 19510 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19511 | $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19512 | |
| 19513 | fi |
| 19514 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19516 | $as_echo_n "checking for working volatile... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19517 | if test "${ac_cv_c_volatile+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19518 | $as_echo_n "(cached) " >&6 |
| 19519 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19520 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19521 | /* end confdefs.h. */ |
| 19522 | |
| 19523 | int |
| 19524 | main () |
| 19525 | { |
| 19526 | |
| 19527 | volatile int x; |
| 19528 | int * volatile y = (int *) 0; |
| 19529 | return !x && !y; |
| 19530 | ; |
| 19531 | return 0; |
| 19532 | } |
| 19533 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19534 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19535 | ac_cv_c_volatile=yes |
| 19536 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19537 | ac_cv_c_volatile=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19538 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19539 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19540 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19542 | $as_echo "$ac_cv_c_volatile" >&6; } |
| 19543 | if test $ac_cv_c_volatile = no; then |
| 19544 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19545 | $as_echo "#define volatile /**/" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19546 | |
| 19547 | fi |
| 19548 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19549 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19550 | $as_echo_n "checking for preprocessor stringizing operator... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19551 | if test "${ac_cv_c_stringize+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19552 | $as_echo_n "(cached) " >&6 |
| 19553 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19554 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19555 | /* end confdefs.h. */ |
| 19556 | #define x(y) #y |
| 19557 | |
| 19558 | char *s = x(teststring); |
| 19559 | _ACEOF |
| 19560 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19561 | $EGREP "#teststring" >/dev/null 2>&1; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19562 | ac_cv_c_stringize=no |
| 19563 | else |
| 19564 | ac_cv_c_stringize=yes |
| 19565 | fi |
| 19566 | rm -f conftest* |
| 19567 | |
| 19568 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19570 | $as_echo "$ac_cv_c_stringize" >&6; } |
| 19571 | if test $ac_cv_c_stringize = yes; then |
| 19572 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19573 | $as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19574 | |
| 19575 | fi |
| 19576 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19578 | $as_echo_n "checking whether stat file-mode macros are broken... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19579 | if test "${ac_cv_header_stat_broken+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19580 | $as_echo_n "(cached) " >&6 |
| 19581 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19582 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19583 | /* end confdefs.h. */ |
| 19584 | #include <sys/types.h> |
| 19585 | #include <sys/stat.h> |
| 19586 | |
| 19587 | #if defined S_ISBLK && defined S_IFDIR |
| 19588 | extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; |
| 19589 | #endif |
| 19590 | |
| 19591 | #if defined S_ISBLK && defined S_IFCHR |
| 19592 | extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; |
| 19593 | #endif |
| 19594 | |
| 19595 | #if defined S_ISLNK && defined S_IFREG |
| 19596 | extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; |
| 19597 | #endif |
| 19598 | |
| 19599 | #if defined S_ISSOCK && defined S_IFREG |
| 19600 | extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; |
| 19601 | #endif |
| 19602 | |
| 19603 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19604 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19605 | ac_cv_header_stat_broken=no |
| 19606 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19607 | ac_cv_header_stat_broken=yes |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19608 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19609 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19610 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19612 | $as_echo "$ac_cv_header_stat_broken" >&6; } |
| 19613 | if test $ac_cv_header_stat_broken = yes; then |
| 19614 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19615 | $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19616 | |
| 19617 | fi |
| 19618 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19620 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19621 | if test "${ac_cv_header_time+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19622 | $as_echo_n "(cached) " >&6 |
| 19623 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19624 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19625 | /* end confdefs.h. */ |
| 19626 | #include <sys/types.h> |
| 19627 | #include <sys/time.h> |
| 19628 | #include <time.h> |
| 19629 | |
| 19630 | int |
| 19631 | main () |
| 19632 | { |
| 19633 | if ((struct tm *) 0) |
| 19634 | return 0; |
| 19635 | ; |
| 19636 | return 0; |
| 19637 | } |
| 19638 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19639 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19640 | ac_cv_header_time=yes |
| 19641 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19642 | ac_cv_header_time=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19643 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19644 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19645 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19647 | $as_echo "$ac_cv_header_time" >&6; } |
| 19648 | if test $ac_cv_header_time = yes; then |
| 19649 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19650 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19651 | |
| 19652 | fi |
| 19653 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19655 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19656 | if test "${ac_cv_struct_tm+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19657 | $as_echo_n "(cached) " >&6 |
| 19658 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19659 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19660 | /* end confdefs.h. */ |
| 19661 | #include <sys/types.h> |
| 19662 | #include <time.h> |
| 19663 | |
| 19664 | int |
| 19665 | main () |
| 19666 | { |
| 19667 | struct tm tm; |
| 19668 | int *p = &tm.tm_sec; |
| 19669 | return !p; |
| 19670 | ; |
| 19671 | return 0; |
| 19672 | } |
| 19673 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19674 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19675 | ac_cv_struct_tm=time.h |
| 19676 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19677 | ac_cv_struct_tm=sys/time.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19678 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19679 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19680 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19682 | $as_echo "$ac_cv_struct_tm" >&6; } |
| 19683 | if test $ac_cv_struct_tm = sys/time.h; then |
| 19684 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19685 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19686 | |
| 19687 | fi |
| 19688 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19690 | $as_echo_n "checking whether #! works in shell scripts... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19691 | if test "${ac_cv_sys_interpreter+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19692 | $as_echo_n "(cached) " >&6 |
| 19693 | else |
| 19694 | echo '#! /bin/cat |
| 19695 | exit 69 |
| 19696 | ' >conftest |
| 19697 | chmod u+x conftest |
| 19698 | (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1) |
| 19699 | if test $? -ne 69; then |
| 19700 | ac_cv_sys_interpreter=yes |
| 19701 | else |
| 19702 | ac_cv_sys_interpreter=no |
| 19703 | fi |
| 19704 | rm -f conftest |
| 19705 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19707 | $as_echo "$ac_cv_sys_interpreter" >&6; } |
| 19708 | interpval=$ac_cv_sys_interpreter |
| 19709 | |
| 19710 | |
| 19711 | # If the C compiler does not fully support the ANSI C qualifier const, |
| 19712 | # define const to be empty. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19714 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19715 | if test "${ac_cv_c_const+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19716 | $as_echo_n "(cached) " >&6 |
| 19717 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19718 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19719 | /* end confdefs.h. */ |
| 19720 | |
| 19721 | int |
| 19722 | main () |
| 19723 | { |
| 19724 | /* FIXME: Include the comments suggested by Paul. */ |
| 19725 | #ifndef __cplusplus |
| 19726 | /* Ultrix mips cc rejects this. */ |
| 19727 | typedef int charset[2]; |
| 19728 | const charset cs; |
| 19729 | /* SunOS 4.1.1 cc rejects this. */ |
| 19730 | char const *const *pcpcc; |
| 19731 | char **ppc; |
| 19732 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 19733 | struct point {int x, y;}; |
| 19734 | static struct point const zero = {0,0}; |
| 19735 | /* AIX XL C 1.02.0.0 rejects this. |
| 19736 | It does not let you subtract one const X* pointer from another in |
| 19737 | an arm of an if-expression whose if-part is not a constant |
| 19738 | expression */ |
| 19739 | const char *g = "string"; |
| 19740 | pcpcc = &g + (g ? g-g : 0); |
| 19741 | /* HPUX 7.0 cc rejects these. */ |
| 19742 | ++pcpcc; |
| 19743 | ppc = (char**) pcpcc; |
| 19744 | pcpcc = (char const *const *) ppc; |
| 19745 | { /* SCO 3.2v4 cc rejects this. */ |
| 19746 | char *t; |
| 19747 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 19748 | |
| 19749 | *t++ = 0; |
| 19750 | if (s) return 0; |
| 19751 | } |
| 19752 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 19753 | int x[] = {25, 17}; |
| 19754 | const int *foo = &x[0]; |
| 19755 | ++foo; |
| 19756 | } |
| 19757 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 19758 | typedef const int *iptr; |
| 19759 | iptr p = 0; |
| 19760 | ++p; |
| 19761 | } |
| 19762 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 19763 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 19764 | struct s { int j; const int *ap[3]; }; |
| 19765 | struct s *b; b->j = 5; |
| 19766 | } |
| 19767 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 19768 | const int foo = 10; |
| 19769 | if (!foo) return 0; |
| 19770 | } |
| 19771 | return !cs[0] && !zero.x; |
| 19772 | #endif |
| 19773 | |
| 19774 | ; |
| 19775 | return 0; |
| 19776 | } |
| 19777 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19778 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19779 | ac_cv_c_const=yes |
| 19780 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19781 | ac_cv_c_const=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19782 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19783 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19784 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19786 | $as_echo "$ac_cv_c_const" >&6; } |
| 19787 | if test $ac_cv_c_const = no; then |
| 19788 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19789 | $as_echo "#define const /**/" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19790 | |
| 19791 | fi |
| 19792 | |
| 19793 | |
| 19794 | # If the C compiler supports the keyword inline, do nothing. Otherwise |
| 19795 | # define inline to __inline__ or __inline if it accepts one of those, |
| 19796 | # otherwise define inline to be empty. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19798 | $as_echo_n "checking for inline... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19799 | if test "${ac_cv_c_inline+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19800 | $as_echo_n "(cached) " >&6 |
| 19801 | else |
| 19802 | ac_cv_c_inline=no |
| 19803 | for ac_kw in inline __inline__ __inline; do |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19804 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19805 | /* end confdefs.h. */ |
| 19806 | #ifndef __cplusplus |
| 19807 | typedef int foo_t; |
| 19808 | static $ac_kw foo_t static_foo () {return 0; } |
| 19809 | $ac_kw foo_t foo () {return 0; } |
| 19810 | #endif |
| 19811 | |
| 19812 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19813 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19814 | ac_cv_c_inline=$ac_kw |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19815 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19816 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19817 | test "$ac_cv_c_inline" != no && break |
| 19818 | done |
| 19819 | |
| 19820 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19822 | $as_echo "$ac_cv_c_inline" >&6; } |
| 19823 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19824 | case $ac_cv_c_inline in |
| 19825 | inline | yes) ;; |
| 19826 | *) |
| 19827 | case $ac_cv_c_inline in |
| 19828 | no) ac_val=;; |
| 19829 | *) ac_val=$ac_cv_c_inline;; |
| 19830 | esac |
| 19831 | cat >>confdefs.h <<_ACEOF |
| 19832 | #ifndef __cplusplus |
| 19833 | #define inline $ac_val |
| 19834 | #endif |
| 19835 | _ACEOF |
| 19836 | ;; |
| 19837 | esac |
| 19838 | |
| 19839 | |
| 19840 | # If the C compiler supports the keyword restrict, do nothing. Otherwise |
| 19841 | # define restrict to __restrict__ or __restrict if it accepts one of those, |
| 19842 | # otherwise define restrict to be empty. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19844 | $as_echo_n "checking for C/C++ restrict keyword... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19845 | if test "${ac_cv_c_restrict+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19846 | $as_echo_n "(cached) " >&6 |
| 19847 | else |
| 19848 | ac_cv_c_restrict=no |
| 19849 | # The order here caters to the fact that C++ does not require restrict. |
| 19850 | for ac_kw in __restrict __restrict__ _Restrict restrict; do |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19851 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19852 | /* end confdefs.h. */ |
| 19853 | typedef int * int_ptr; |
| 19854 | int foo (int_ptr $ac_kw ip) { |
| 19855 | return ip[0]; |
| 19856 | } |
| 19857 | int |
| 19858 | main () |
| 19859 | { |
| 19860 | int s[1]; |
| 19861 | int * $ac_kw t = s; |
| 19862 | t[0] = 0; |
| 19863 | return foo(t) |
| 19864 | ; |
| 19865 | return 0; |
| 19866 | } |
| 19867 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19868 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19869 | ac_cv_c_restrict=$ac_kw |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19870 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19871 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19872 | test "$ac_cv_c_restrict" != no && break |
| 19873 | done |
| 19874 | |
| 19875 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19877 | $as_echo "$ac_cv_c_restrict" >&6; } |
| 19878 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19879 | case $ac_cv_c_restrict in |
| 19880 | restrict) ;; |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19881 | no) $as_echo "#define restrict /**/" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19882 | ;; |
| 19883 | *) cat >>confdefs.h <<_ACEOF |
| 19884 | #define restrict $ac_cv_c_restrict |
| 19885 | _ACEOF |
| 19886 | ;; |
| 19887 | esac |
| 19888 | |
| 19889 | |
| 19890 | # If words are stored with the most significant byte first (like |
| 19891 | # Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19893 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19894 | if test "${ac_cv_c_bigendian+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19895 | $as_echo_n "(cached) " >&6 |
| 19896 | else |
| 19897 | ac_cv_c_bigendian=unknown |
| 19898 | # See if we're dealing with a universal compiler. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19899 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19900 | /* end confdefs.h. */ |
| 19901 | #ifndef __APPLE_CC__ |
| 19902 | not a universal capable compiler |
| 19903 | #endif |
| 19904 | typedef int dummy; |
| 19905 | |
| 19906 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19907 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19908 | |
| 19909 | # Check for potential -arch flags. It is not universal unless |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19910 | # there are at least two -arch flags with different values. |
| 19911 | ac_arch= |
| 19912 | ac_prev= |
| 19913 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 19914 | if test -n "$ac_prev"; then |
| 19915 | case $ac_word in |
| 19916 | i?86 | x86_64 | ppc | ppc64) |
| 19917 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 19918 | ac_arch=$ac_word |
| 19919 | else |
| 19920 | ac_cv_c_bigendian=universal |
| 19921 | break |
| 19922 | fi |
| 19923 | ;; |
| 19924 | esac |
| 19925 | ac_prev= |
| 19926 | elif test "x$ac_word" = "x-arch"; then |
| 19927 | ac_prev=arch |
| 19928 | fi |
| 19929 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19930 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19931 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19932 | if test $ac_cv_c_bigendian = unknown; then |
| 19933 | # See if sys/param.h defines the BYTE_ORDER macro. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19934 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19935 | /* end confdefs.h. */ |
| 19936 | #include <sys/types.h> |
| 19937 | #include <sys/param.h> |
| 19938 | |
| 19939 | int |
| 19940 | main () |
| 19941 | { |
| 19942 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 19943 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 19944 | && LITTLE_ENDIAN) |
| 19945 | bogus endian macros |
| 19946 | #endif |
| 19947 | |
| 19948 | ; |
| 19949 | return 0; |
| 19950 | } |
| 19951 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19952 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19953 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19954 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19955 | /* end confdefs.h. */ |
| 19956 | #include <sys/types.h> |
| 19957 | #include <sys/param.h> |
| 19958 | |
| 19959 | int |
| 19960 | main () |
| 19961 | { |
| 19962 | #if BYTE_ORDER != BIG_ENDIAN |
| 19963 | not big endian |
| 19964 | #endif |
| 19965 | |
| 19966 | ; |
| 19967 | return 0; |
| 19968 | } |
| 19969 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19970 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19971 | ac_cv_c_bigendian=yes |
| 19972 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19973 | ac_cv_c_bigendian=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19974 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19975 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19976 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19977 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19978 | fi |
| 19979 | if test $ac_cv_c_bigendian = unknown; then |
| 19980 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19981 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19982 | /* end confdefs.h. */ |
| 19983 | #include <limits.h> |
| 19984 | |
| 19985 | int |
| 19986 | main () |
| 19987 | { |
| 19988 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 19989 | bogus endian macros |
| 19990 | #endif |
| 19991 | |
| 19992 | ; |
| 19993 | return 0; |
| 19994 | } |
| 19995 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19996 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19997 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 19998 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19999 | /* end confdefs.h. */ |
| 20000 | #include <limits.h> |
| 20001 | |
| 20002 | int |
| 20003 | main () |
| 20004 | { |
| 20005 | #ifndef _BIG_ENDIAN |
| 20006 | not big endian |
| 20007 | #endif |
| 20008 | |
| 20009 | ; |
| 20010 | return 0; |
| 20011 | } |
| 20012 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20013 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20014 | ac_cv_c_bigendian=yes |
| 20015 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20016 | ac_cv_c_bigendian=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20017 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20018 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20019 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20020 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20021 | fi |
| 20022 | if test $ac_cv_c_bigendian = unknown; then |
| 20023 | # Compile a test program. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20024 | if test "$cross_compiling" = yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20025 | # Try to guess by grepping values from an object file. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20026 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20027 | /* end confdefs.h. */ |
| 20028 | short int ascii_mm[] = |
| 20029 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 20030 | short int ascii_ii[] = |
| 20031 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 20032 | int use_ascii (int i) { |
| 20033 | return ascii_mm[i] + ascii_ii[i]; |
| 20034 | } |
| 20035 | short int ebcdic_ii[] = |
| 20036 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 20037 | short int ebcdic_mm[] = |
| 20038 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 20039 | int use_ebcdic (int i) { |
| 20040 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 20041 | } |
| 20042 | extern int foo; |
| 20043 | |
| 20044 | int |
| 20045 | main () |
| 20046 | { |
| 20047 | return use_ascii (foo) == use_ebcdic (foo); |
| 20048 | ; |
| 20049 | return 0; |
| 20050 | } |
| 20051 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20052 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20053 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 20054 | ac_cv_c_bigendian=yes |
| 20055 | fi |
| 20056 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 20057 | if test "$ac_cv_c_bigendian" = unknown; then |
| 20058 | ac_cv_c_bigendian=no |
| 20059 | else |
| 20060 | # finding both strings is unlikely to happen, but who knows? |
| 20061 | ac_cv_c_bigendian=unknown |
| 20062 | fi |
| 20063 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20064 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20065 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20066 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20067 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20068 | /* end confdefs.h. */ |
| 20069 | $ac_includes_default |
| 20070 | int |
| 20071 | main () |
| 20072 | { |
| 20073 | |
| 20074 | /* Are we little or big endian? From Harbison&Steele. */ |
| 20075 | union |
| 20076 | { |
| 20077 | long int l; |
| 20078 | char c[sizeof (long int)]; |
| 20079 | } u; |
| 20080 | u.l = 1; |
| 20081 | return u.c[sizeof (long int) - 1] == 1; |
| 20082 | |
| 20083 | ; |
| 20084 | return 0; |
| 20085 | } |
| 20086 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20087 | if ac_fn_c_try_run "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20088 | ac_cv_c_bigendian=no |
| 20089 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20090 | ac_cv_c_bigendian=yes |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20091 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20092 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 20093 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20094 | fi |
| 20095 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20096 | fi |
| 20097 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20099 | $as_echo "$ac_cv_c_bigendian" >&6; } |
| 20100 | case $ac_cv_c_bigendian in #( |
| 20101 | yes) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20102 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20103 | ;; #( |
| 20104 | no) |
| 20105 | ;; #( |
| 20106 | universal) |
| 20107 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20108 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20109 | |
| 20110 | ;; #( |
| 20111 | *) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20112 | as_fn_error "unknown endianness |
| 20113 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20114 | esac |
| 20115 | |
| 20116 | |
| 20117 | # Define mode_t to a suitable type, if standard headers do not define it. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20118 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" |
| 20119 | if test "x$ac_cv_type_mode_t" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20120 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20121 | else |
| 20122 | |
| 20123 | cat >>confdefs.h <<_ACEOF |
| 20124 | #define mode_t int |
| 20125 | _ACEOF |
| 20126 | |
| 20127 | fi |
| 20128 | |
| 20129 | |
| 20130 | # Define off_t to a suitable type, if standard headers do not define it. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20131 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
| 20132 | if test "x$ac_cv_type_off_t" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20133 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20134 | else |
| 20135 | |
| 20136 | cat >>confdefs.h <<_ACEOF |
| 20137 | #define off_t long int |
| 20138 | _ACEOF |
| 20139 | |
| 20140 | fi |
| 20141 | |
| 20142 | |
| 20143 | # Define pid_t to a suitable type, if standard headers do not define it. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20144 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
| 20145 | if test "x$ac_cv_type_pid_t" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20146 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20147 | else |
| 20148 | |
| 20149 | cat >>confdefs.h <<_ACEOF |
| 20150 | #define pid_t int |
| 20151 | _ACEOF |
| 20152 | |
| 20153 | fi |
| 20154 | |
| 20155 | |
| 20156 | # Define size_t to a suitable type, if standard headers do not define it. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20157 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
| 20158 | if test "x$ac_cv_type_size_t" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20159 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20160 | else |
| 20161 | |
| 20162 | cat >>confdefs.h <<_ACEOF |
| 20163 | #define size_t unsigned int |
| 20164 | _ACEOF |
| 20165 | |
| 20166 | fi |
| 20167 | |
| 20168 | |
| 20169 | # Define ssize_t to a suitable type, if standard headers do not define it. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20170 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" |
| 20171 | if test "x$ac_cv_type_ssize_t" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20172 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20173 | else |
| 20174 | |
| 20175 | cat >>confdefs.h <<_ACEOF |
| 20176 | #define ssize_t int |
| 20177 | _ACEOF |
| 20178 | |
| 20179 | fi |
| 20180 | |
| 20181 | |
| 20182 | # If the C compiler supports a working long double type with more range |
| 20183 | # or precision than the double type, define HAVE_LONG_DOUBLE. |
| 20184 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20185 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20186 | $as_echo_n "checking for long double with more range or precision than double... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20187 | if test "${ac_cv_type_long_double_wider+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20188 | $as_echo_n "(cached) " >&6 |
| 20189 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20190 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20191 | /* end confdefs.h. */ |
| 20192 | #include <float.h> |
| 20193 | long double const a[] = |
| 20194 | { |
| 20195 | 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON, |
| 20196 | LDBL_MIN, LDBL_MAX, LDBL_EPSILON |
| 20197 | }; |
| 20198 | long double |
| 20199 | f (long double x) |
| 20200 | { |
| 20201 | return ((x + (unsigned long int) 10) * (-1 / x) + a[0] |
| 20202 | + (x ? f (x) : 'c')); |
| 20203 | } |
| 20204 | |
| 20205 | int |
| 20206 | main () |
| 20207 | { |
| 20208 | static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP) |
| 20209 | + (DBL_MANT_DIG < LDBL_MANT_DIG) |
| 20210 | - (LDBL_MAX_EXP < DBL_MAX_EXP) |
| 20211 | - (LDBL_MANT_DIG < DBL_MANT_DIG))) |
| 20212 | && (int) LDBL_EPSILON == 0 |
| 20213 | )]; |
| 20214 | test_array [0] = 0 |
| 20215 | |
| 20216 | ; |
| 20217 | return 0; |
| 20218 | } |
| 20219 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20220 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20221 | ac_cv_type_long_double_wider=yes |
| 20222 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20223 | ac_cv_type_long_double_wider=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20224 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20225 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20226 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20228 | $as_echo "$ac_cv_type_long_double_wider" >&6; } |
| 20229 | if test $ac_cv_type_long_double_wider = yes; then |
| 20230 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20231 | $as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20232 | |
| 20233 | fi |
| 20234 | |
| 20235 | |
| 20236 | # If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the |
| 20237 | # C compiler predefines it. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20239 | $as_echo_n "checking whether char is unsigned... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20240 | if test "${ac_cv_c_char_unsigned+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20241 | $as_echo_n "(cached) " >&6 |
| 20242 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20243 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20244 | /* end confdefs.h. */ |
| 20245 | $ac_includes_default |
| 20246 | int |
| 20247 | main () |
| 20248 | { |
| 20249 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 20250 | test_array [0] = 0 |
| 20251 | |
| 20252 | ; |
| 20253 | return 0; |
| 20254 | } |
| 20255 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20256 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20257 | ac_cv_c_char_unsigned=no |
| 20258 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20259 | ac_cv_c_char_unsigned=yes |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20260 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20261 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20262 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20264 | $as_echo "$ac_cv_c_char_unsigned" >&6; } |
| 20265 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20266 | $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20267 | |
| 20268 | fi |
| 20269 | |
| 20270 | |
| 20271 | # Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT |
| 20272 | # The cast to long int works around a bug in the HP C Compiler |
| 20273 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 20274 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 20275 | # This bug is HP SR number 8606223364. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20277 | $as_echo_n "checking size of signed short... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20278 | if test "${ac_cv_sizeof_signed_short+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20279 | $as_echo_n "(cached) " >&6 |
| 20280 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20281 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short" "$ac_includes_default"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20282 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20283 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20284 | if test "$ac_cv_type_signed_short" = yes; then |
| 20285 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20286 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20287 | { as_fn_set_status 77 |
| 20288 | as_fn_error "cannot compute sizeof (signed short) |
| 20289 | See \`config.log' for more details." "$LINENO" 5; }; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20290 | else |
| 20291 | ac_cv_sizeof_signed_short=0 |
| 20292 | fi |
| 20293 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20294 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20295 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20297 | $as_echo "$ac_cv_sizeof_signed_short" >&6; } |
| 20298 | |
| 20299 | |
| 20300 | |
| 20301 | cat >>confdefs.h <<_ACEOF |
| 20302 | #define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short |
| 20303 | _ACEOF |
| 20304 | |
| 20305 | |
| 20306 | |
| 20307 | # Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT |
| 20308 | # The cast to long int works around a bug in the HP C Compiler |
| 20309 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 20310 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 20311 | # This bug is HP SR number 8606223364. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20313 | $as_echo_n "checking size of unsigned short... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20314 | if test "${ac_cv_sizeof_unsigned_short+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20315 | $as_echo_n "(cached) " >&6 |
| 20316 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20317 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20318 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20319 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20320 | if test "$ac_cv_type_unsigned_short" = yes; then |
| 20321 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20322 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20323 | { as_fn_set_status 77 |
| 20324 | as_fn_error "cannot compute sizeof (unsigned short) |
| 20325 | See \`config.log' for more details." "$LINENO" 5; }; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20326 | else |
| 20327 | ac_cv_sizeof_unsigned_short=0 |
| 20328 | fi |
| 20329 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20330 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20331 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20333 | $as_echo "$ac_cv_sizeof_unsigned_short" >&6; } |
| 20334 | |
| 20335 | |
| 20336 | |
| 20337 | cat >>confdefs.h <<_ACEOF |
| 20338 | #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short |
| 20339 | _ACEOF |
| 20340 | |
| 20341 | |
| 20342 | |
| 20343 | # Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT |
| 20344 | # The cast to long int works around a bug in the HP C Compiler |
| 20345 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 20346 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 20347 | # This bug is HP SR number 8606223364. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20349 | $as_echo_n "checking size of signed int... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20350 | if test "${ac_cv_sizeof_signed_int+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20351 | $as_echo_n "(cached) " >&6 |
| 20352 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20353 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int" "$ac_includes_default"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20354 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20355 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20356 | if test "$ac_cv_type_signed_int" = yes; then |
| 20357 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20358 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20359 | { as_fn_set_status 77 |
| 20360 | as_fn_error "cannot compute sizeof (signed int) |
| 20361 | See \`config.log' for more details." "$LINENO" 5; }; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20362 | else |
| 20363 | ac_cv_sizeof_signed_int=0 |
| 20364 | fi |
| 20365 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20366 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20367 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20369 | $as_echo "$ac_cv_sizeof_signed_int" >&6; } |
| 20370 | |
| 20371 | |
| 20372 | |
| 20373 | cat >>confdefs.h <<_ACEOF |
| 20374 | #define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int |
| 20375 | _ACEOF |
| 20376 | |
| 20377 | |
| 20378 | |
| 20379 | # Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT |
| 20380 | # The cast to long int works around a bug in the HP C Compiler |
| 20381 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 20382 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 20383 | # This bug is HP SR number 8606223364. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20385 | $as_echo_n "checking size of unsigned int... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20386 | if test "${ac_cv_sizeof_unsigned_int+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20387 | $as_echo_n "(cached) " >&6 |
| 20388 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20389 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20390 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20391 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20392 | if test "$ac_cv_type_unsigned_int" = yes; then |
| 20393 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20394 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20395 | { as_fn_set_status 77 |
| 20396 | as_fn_error "cannot compute sizeof (unsigned int) |
| 20397 | See \`config.log' for more details." "$LINENO" 5; }; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20398 | else |
| 20399 | ac_cv_sizeof_unsigned_int=0 |
| 20400 | fi |
| 20401 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20402 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20403 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20405 | $as_echo "$ac_cv_sizeof_unsigned_int" >&6; } |
| 20406 | |
| 20407 | |
| 20408 | |
| 20409 | cat >>confdefs.h <<_ACEOF |
| 20410 | #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int |
| 20411 | _ACEOF |
| 20412 | |
| 20413 | |
| 20414 | |
| 20415 | # Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG |
| 20416 | # The cast to long int works around a bug in the HP C Compiler |
| 20417 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 20418 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 20419 | # This bug is HP SR number 8606223364. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20421 | $as_echo_n "checking size of signed long... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20422 | if test "${ac_cv_sizeof_signed_long+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20423 | $as_echo_n "(cached) " >&6 |
| 20424 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20425 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long" "$ac_includes_default"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20426 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20427 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20428 | if test "$ac_cv_type_signed_long" = yes; then |
| 20429 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20430 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20431 | { as_fn_set_status 77 |
| 20432 | as_fn_error "cannot compute sizeof (signed long) |
| 20433 | See \`config.log' for more details." "$LINENO" 5; }; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20434 | else |
| 20435 | ac_cv_sizeof_signed_long=0 |
| 20436 | fi |
| 20437 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20438 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20439 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20441 | $as_echo "$ac_cv_sizeof_signed_long" >&6; } |
| 20442 | |
| 20443 | |
| 20444 | |
| 20445 | cat >>confdefs.h <<_ACEOF |
| 20446 | #define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long |
| 20447 | _ACEOF |
| 20448 | |
| 20449 | |
| 20450 | |
| 20451 | # Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG |
| 20452 | # The cast to long int works around a bug in the HP C Compiler |
| 20453 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 20454 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 20455 | # This bug is HP SR number 8606223364. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20457 | $as_echo_n "checking size of unsigned long... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20458 | if test "${ac_cv_sizeof_unsigned_long+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20459 | $as_echo_n "(cached) " >&6 |
| 20460 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20461 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20462 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20463 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20464 | if test "$ac_cv_type_unsigned_long" = yes; then |
| 20465 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20466 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20467 | { as_fn_set_status 77 |
| 20468 | as_fn_error "cannot compute sizeof (unsigned long) |
| 20469 | See \`config.log' for more details." "$LINENO" 5; }; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20470 | else |
| 20471 | ac_cv_sizeof_unsigned_long=0 |
| 20472 | fi |
| 20473 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20474 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20475 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20477 | $as_echo "$ac_cv_sizeof_unsigned_long" >&6; } |
| 20478 | |
| 20479 | |
| 20480 | |
| 20481 | cat >>confdefs.h <<_ACEOF |
| 20482 | #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long |
| 20483 | _ACEOF |
| 20484 | |
| 20485 | |
| 20486 | |
| 20487 | # Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If |
| 20488 | # 'signed long long' is not supported then the value defined is zero. |
| 20489 | # The cast to long int works around a bug in the HP C Compiler |
| 20490 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 20491 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 20492 | # This bug is HP SR number 8606223364. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20494 | $as_echo_n "checking size of signed long long... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20495 | if test "${ac_cv_sizeof_signed_long_long+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20496 | $as_echo_n "(cached) " >&6 |
| 20497 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20498 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long" "$ac_includes_default"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20499 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20500 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20501 | if test "$ac_cv_type_signed_long_long" = yes; then |
| 20502 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20503 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20504 | { as_fn_set_status 77 |
| 20505 | as_fn_error "cannot compute sizeof (signed long long) |
| 20506 | See \`config.log' for more details." "$LINENO" 5; }; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20507 | else |
| 20508 | ac_cv_sizeof_signed_long_long=0 |
| 20509 | fi |
| 20510 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20511 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20512 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20514 | $as_echo "$ac_cv_sizeof_signed_long_long" >&6; } |
| 20515 | |
| 20516 | |
| 20517 | |
| 20518 | cat >>confdefs.h <<_ACEOF |
| 20519 | #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long |
| 20520 | _ACEOF |
| 20521 | |
| 20522 | |
| 20523 | |
| 20524 | # Obtain size of a 'unsigned long long' and define as |
| 20525 | # SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not |
| 20526 | # supported then the value defined is zero. |
| 20527 | # The cast to long int works around a bug in the HP C Compiler |
| 20528 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 20529 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 20530 | # This bug is HP SR number 8606223364. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20531 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20532 | $as_echo_n "checking size of unsigned long long... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20533 | if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20534 | $as_echo_n "(cached) " >&6 |
| 20535 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20536 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20537 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20538 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20539 | if test "$ac_cv_type_unsigned_long_long" = yes; then |
| 20540 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20541 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20542 | { as_fn_set_status 77 |
| 20543 | as_fn_error "cannot compute sizeof (unsigned long long) |
| 20544 | See \`config.log' for more details." "$LINENO" 5; }; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20545 | else |
| 20546 | ac_cv_sizeof_unsigned_long_long=0 |
| 20547 | fi |
| 20548 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20549 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20550 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20552 | $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; } |
| 20553 | |
| 20554 | |
| 20555 | |
| 20556 | cat >>confdefs.h <<_ACEOF |
| 20557 | #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long |
| 20558 | _ACEOF |
| 20559 | |
| 20560 | |
| 20561 | |
| 20562 | # Obtain size of off_t and define as SIZEOF_OFF_T |
| 20563 | # The cast to long int works around a bug in the HP C Compiler |
| 20564 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 20565 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 20566 | # This bug is HP SR number 8606223364. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20568 | $as_echo_n "checking size of off_t... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20569 | if test "${ac_cv_sizeof_off_t+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20570 | $as_echo_n "(cached) " >&6 |
| 20571 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20572 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20573 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20574 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20575 | if test "$ac_cv_type_off_t" = yes; then |
| 20576 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20577 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20578 | { as_fn_set_status 77 |
| 20579 | as_fn_error "cannot compute sizeof (off_t) |
| 20580 | See \`config.log' for more details." "$LINENO" 5; }; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20581 | else |
| 20582 | ac_cv_sizeof_off_t=0 |
| 20583 | fi |
| 20584 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20585 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20586 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20588 | $as_echo "$ac_cv_sizeof_off_t" >&6; } |
| 20589 | |
| 20590 | |
| 20591 | |
| 20592 | cat >>confdefs.h <<_ACEOF |
| 20593 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
| 20594 | _ACEOF |
| 20595 | |
| 20596 | |
| 20597 | |
| 20598 | # Obtain size of size_t and define as SIZEOF_SIZE_T |
| 20599 | # The cast to long int works around a bug in the HP C Compiler |
| 20600 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 20601 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 20602 | # This bug is HP SR number 8606223364. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20604 | $as_echo_n "checking size of size_t... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20605 | if test "${ac_cv_sizeof_size_t+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20606 | $as_echo_n "(cached) " >&6 |
| 20607 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20608 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20609 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20610 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20611 | if test "$ac_cv_type_size_t" = yes; then |
| 20612 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20613 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20614 | { as_fn_set_status 77 |
| 20615 | as_fn_error "cannot compute sizeof (size_t) |
| 20616 | See \`config.log' for more details." "$LINENO" 5; }; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20617 | else |
| 20618 | ac_cv_sizeof_size_t=0 |
| 20619 | fi |
| 20620 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20621 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20622 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20624 | $as_echo "$ac_cv_sizeof_size_t" >&6; } |
| 20625 | |
| 20626 | |
| 20627 | |
| 20628 | cat >>confdefs.h <<_ACEOF |
| 20629 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t |
| 20630 | _ACEOF |
| 20631 | |
| 20632 | |
| 20633 | |
| 20634 | # Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP |
| 20635 | # The cast to long int works around a bug in the HP C Compiler |
| 20636 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 20637 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 20638 | # This bug is HP SR number 8606223364. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20640 | $as_echo_n "checking size of unsigned int*... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20641 | if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20642 | $as_echo_n "(cached) " >&6 |
| 20643 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20644 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int*))" "ac_cv_sizeof_unsigned_intp" "$ac_includes_default"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20645 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20646 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20647 | if test "$ac_cv_type_unsigned_intp" = yes; then |
| 20648 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20649 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20650 | { as_fn_set_status 77 |
| 20651 | as_fn_error "cannot compute sizeof (unsigned int*) |
| 20652 | See \`config.log' for more details." "$LINENO" 5; }; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20653 | else |
| 20654 | ac_cv_sizeof_unsigned_intp=0 |
| 20655 | fi |
| 20656 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20657 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20658 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20660 | $as_echo "$ac_cv_sizeof_unsigned_intp" >&6; } |
| 20661 | |
| 20662 | |
| 20663 | |
| 20664 | cat >>confdefs.h <<_ACEOF |
| 20665 | #define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp |
| 20666 | _ACEOF |
| 20667 | |
| 20668 | |
| 20669 | |
| 20670 | # |
| 20671 | # Compute sized types for current CPU and compiler options. |
| 20672 | # |
| 20673 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20675 | $as_echo_n "checking for signed 8-bit type... " >&6; } |
| 20676 | INT8_T='signed char' |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20678 | $as_echo "$INT8_T" >&6; } |
| 20679 | |
| 20680 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20682 | $as_echo_n "checking for unsigned 8-bit type... " >&6; } |
| 20683 | UINT8_T='unsigned char' |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20685 | $as_echo "$UINT8_T" >&6; } |
| 20686 | |
| 20687 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20689 | $as_echo_n "checking for signed 16-bit type... " >&6; } |
| 20690 | INT16_T='signed short' |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20692 | $as_echo "$INT16_T" >&6; } |
| 20693 | |
| 20694 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20696 | $as_echo_n "checking for unsigned 16-bit type... " >&6; } |
| 20697 | UINT16_T='unsigned short' |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20699 | $as_echo "$UINT16_T" >&6; } |
| 20700 | |
| 20701 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20703 | $as_echo_n "checking for signed 32-bit type... " >&6; } |
| 20704 | INT32_T='none' |
| 20705 | if test $ac_cv_sizeof_signed_int -eq 4; then |
| 20706 | INT32_T='signed int' |
| 20707 | elif test $ac_cv_sizeof_signed_long -eq 4; then |
| 20708 | INT32_T='signed long' |
| 20709 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20711 | $as_echo "$INT32_T" >&6; } |
| 20712 | |
| 20713 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20715 | $as_echo_n "checking for unsigned 32-bit type... " >&6; } |
| 20716 | UINT32_T='none' |
| 20717 | if test $ac_cv_sizeof_unsigned_int -eq 4; then |
| 20718 | UINT32_T='unsigned int' |
| 20719 | elif test $ac_cv_sizeof_unsigned_long -eq 4; then |
| 20720 | UINT32_T='unsigned long' |
| 20721 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20723 | $as_echo "$UINT32_T" >&6; } |
| 20724 | |
| 20725 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20726 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20727 | $as_echo_n "checking for signed 64-bit type... " >&6; } |
| 20728 | INT64_T='none' |
| 20729 | if test $ac_cv_sizeof_signed_long -eq 8; then |
| 20730 | INT64_T='signed long' |
| 20731 | elif test $ac_cv_sizeof_signed_long_long -eq 8; then |
| 20732 | INT64_T='signed long long' |
| 20733 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20735 | $as_echo "$INT64_T" >&6; } |
| 20736 | |
| 20737 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20739 | $as_echo_n "checking for unsigned 64-bit type... " >&6; } |
| 20740 | UINT64_T='none' |
| 20741 | if test $ac_cv_sizeof_unsigned_long -eq 8; then |
| 20742 | UINT64_T='unsigned long' |
| 20743 | elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then |
| 20744 | UINT64_T='unsigned long long' |
| 20745 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20747 | $as_echo "$UINT64_T" >&6; } |
| 20748 | |
| 20749 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20751 | $as_echo_n "checking for unsigned maximum type... " >&6; } |
| 20752 | UINTMAX_T='none' |
| 20753 | if test "$UINT64_T" != 'none'; then |
| 20754 | UINTMAX_T=$UINT64_T |
| 20755 | elif test "$UINT32_T" != 'none'; then |
| 20756 | UINTMAX_T=$UINT32_T |
| 20757 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20759 | $as_echo "$UINTMAX_T" >&6; } |
| 20760 | |
| 20761 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20763 | $as_echo_n "checking for pointer difference type... " >&6; } |
| 20764 | UINTPTR_T='none' |
| 20765 | if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then |
| 20766 | UINTPTR_T='unsigned long' |
| 20767 | elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then |
| 20768 | UINTPTR_T='unsigned long long' |
| 20769 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20771 | $as_echo "$UINTPTR_T" >&6; } |
| 20772 | |
| 20773 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20774 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20775 | $as_echo_n "checking whether our compiler supports __func__... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20776 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20777 | /* end confdefs.h. */ |
| 20778 | |
| 20779 | int |
| 20780 | main () |
| 20781 | { |
| 20782 | { const char *func = __func__; return(func != 0 ? 0 : 1); } |
| 20783 | ; |
| 20784 | return 0; |
| 20785 | } |
| 20786 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20787 | if ac_fn_c_try_compile "$LINENO"; then : |
| 20788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20789 | $as_echo "yes" >&6; } |
| 20790 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20792 | $as_echo "no" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20794 | $as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20795 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20796 | /* end confdefs.h. */ |
| 20797 | |
| 20798 | int |
| 20799 | main () |
| 20800 | { |
| 20801 | { const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); } |
| 20802 | ; |
| 20803 | return 0; |
| 20804 | } |
| 20805 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20806 | if ac_fn_c_try_compile "$LINENO"; then : |
| 20807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20808 | $as_echo "yes" >&6; } |
| 20809 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20810 | $as_echo "#define __func__ __FUNCTION__" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20811 | |
| 20812 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20814 | $as_echo "no" >&6; } |
| 20815 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20816 | $as_echo "#define __func__ __FILE__" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20817 | |
| 20818 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20819 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20820 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20821 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20822 | |
| 20823 | ######## |
| 20824 | # |
| 20825 | # Check for functions |
| 20826 | # |
| 20827 | ######## |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20828 | for ac_header in stdlib.h unistd.h |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20829 | do : |
| 20830 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 20831 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 20832 | eval as_val=\$$as_ac_Header |
| 20833 | if test "x$as_val" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20834 | cat >>confdefs.h <<_ACEOF |
| 20835 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 20836 | _ACEOF |
| 20837 | |
| 20838 | fi |
| 20839 | |
| 20840 | done |
| 20841 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20842 | for ac_func in getpagesize |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20843 | do : |
| 20844 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" |
| 20845 | if test "x$ac_cv_func_getpagesize" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20846 | cat >>confdefs.h <<_ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20847 | #define HAVE_GETPAGESIZE 1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20848 | _ACEOF |
| 20849 | |
| 20850 | fi |
| 20851 | done |
| 20852 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20854 | $as_echo_n "checking for working mmap file i/o... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20855 | if test "${magick_cv_func_mmap_fileio+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20856 | $as_echo_n "(cached) " >&6 |
| 20857 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20858 | if test "$cross_compiling" = yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20859 | magick_cv_func_mmap_fileio=no |
| 20860 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20861 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20862 | /* end confdefs.h. */ |
| 20863 | $ac_includes_default |
| 20864 | /* malloc might have been renamed as rpl_malloc. */ |
| 20865 | #undef malloc |
| 20866 | |
| 20867 | /* |
| 20868 | This test is derived from GNU Autoconf's similar macro. |
| 20869 | The purpose of this test is to verify that files may be memory |
| 20870 | mapped, and that memory mapping and file I/O are coherent. |
| 20871 | |
| 20872 | The test creates a test file, memory maps the file, updates |
| 20873 | the file using the memory map, and then reads the file using |
| 20874 | file I/O to verify that the file contains the updates. |
| 20875 | */ |
| 20876 | |
| 20877 | #include <fcntl.h> |
| 20878 | #include <sys/mman.h> |
| 20879 | |
| 20880 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
| 20881 | char *malloc (); |
| 20882 | #endif |
| 20883 | |
| 20884 | /* This mess was copied from the GNU getpagesize.h. */ |
| 20885 | #if !HAVE_GETPAGESIZE |
| 20886 | /* Assume that all systems that can run configure have sys/param.h. */ |
| 20887 | # if !HAVE_SYS_PARAM_H |
| 20888 | # define HAVE_SYS_PARAM_H 1 |
| 20889 | # endif |
| 20890 | |
| 20891 | # ifdef _SC_PAGESIZE |
| 20892 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 20893 | # else /* no _SC_PAGESIZE */ |
| 20894 | # if HAVE_SYS_PARAM_H |
| 20895 | # include <sys/param.h> |
| 20896 | # ifdef EXEC_PAGESIZE |
| 20897 | # define getpagesize() EXEC_PAGESIZE |
| 20898 | # else /* no EXEC_PAGESIZE */ |
| 20899 | # ifdef NBPG |
| 20900 | # define getpagesize() NBPG * CLSIZE |
| 20901 | # ifndef CLSIZE |
| 20902 | # define CLSIZE 1 |
| 20903 | # endif /* no CLSIZE */ |
| 20904 | # else /* no NBPG */ |
| 20905 | # ifdef NBPC |
| 20906 | # define getpagesize() NBPC |
| 20907 | # else /* no NBPC */ |
| 20908 | # ifdef PAGESIZE |
| 20909 | # define getpagesize() PAGESIZE |
| 20910 | # endif /* PAGESIZE */ |
| 20911 | # endif /* no NBPC */ |
| 20912 | # endif /* no NBPG */ |
| 20913 | # endif /* no EXEC_PAGESIZE */ |
| 20914 | # else /* no HAVE_SYS_PARAM_H */ |
| 20915 | # define getpagesize() 8192 /* punt totally */ |
| 20916 | # endif /* no HAVE_SYS_PARAM_H */ |
| 20917 | # endif /* no _SC_PAGESIZE */ |
| 20918 | |
| 20919 | #endif /* no HAVE_GETPAGESIZE */ |
| 20920 | |
| 20921 | int |
| 20922 | main () |
| 20923 | { |
| 20924 | char *data, *data2, *data3; |
| 20925 | int i, pagesize; |
| 20926 | int fd; |
| 20927 | |
| 20928 | pagesize = getpagesize (); |
| 20929 | |
| 20930 | /* First, make a file with some known garbage in it. */ |
| 20931 | data = (char *) malloc (pagesize); |
| 20932 | if (!data) |
| 20933 | exit (1); |
| 20934 | for (i = 0; i < pagesize; ++i) |
| 20935 | *(data + i) = rand (); |
| 20936 | umask (0); |
| 20937 | fd = creat ("conftest.mmap", 0600); |
| 20938 | if (fd < 0) |
| 20939 | exit (1); |
| 20940 | if (write (fd, data, pagesize) != pagesize) |
| 20941 | exit (1); |
| 20942 | close (fd); |
| 20943 | |
| 20944 | /* Mmap the file as read/write/shared and verify that we see the |
| 20945 | same garbage. */ |
| 20946 | fd = open ("conftest.mmap", O_RDWR); |
| 20947 | if (fd < 0) |
| 20948 | exit (1); |
| 20949 | data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L); |
| 20950 | if (data2 == 0) |
| 20951 | exit (1); |
| 20952 | for (i = 0; i < pagesize; ++i) |
| 20953 | if (*(data + i) != *(data2 + i)) |
| 20954 | exit (1); |
| 20955 | |
| 20956 | /* Finally, make sure that changes to the mapped area |
| 20957 | percolate back to the file as seen by read(). */ |
| 20958 | for (i = 0; i < pagesize; ++i) |
| 20959 | *(data2 + i) = *(data2 + i) + 1; |
| 20960 | data3 = (char *) malloc (pagesize); |
| 20961 | if (!data3) |
| 20962 | exit (1); |
| 20963 | if (read (fd, data3, pagesize) != pagesize) |
| 20964 | exit (1); |
| 20965 | for (i = 0; i < pagesize; ++i) |
| 20966 | if (*(data2 + i) != *(data3 + i)) |
| 20967 | exit (1); |
| 20968 | close (fd); |
| 20969 | exit (0); |
| 20970 | } |
| 20971 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20972 | if ac_fn_c_try_run "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20973 | magick_cv_func_mmap_fileio=yes |
| 20974 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20975 | magick_cv_func_mmap_fileio=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20976 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20977 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 20978 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20979 | fi |
| 20980 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20981 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20983 | $as_echo "$magick_cv_func_mmap_fileio" >&6; } |
| 20984 | if test $magick_cv_func_mmap_fileio = yes; then |
| 20985 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20986 | $as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20987 | |
| 20988 | fi |
| 20989 | rm -f conftest.mmap |
| 20990 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20992 | $as_echo_n "checking whether closedir returns void... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20993 | if test "${ac_cv_func_closedir_void+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20994 | $as_echo_n "(cached) " >&6 |
| 20995 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20996 | if test "$cross_compiling" = yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20997 | ac_cv_func_closedir_void=yes |
| 20998 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 20999 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21000 | /* end confdefs.h. */ |
| 21001 | $ac_includes_default |
| 21002 | #include <$ac_header_dirent> |
| 21003 | #ifndef __cplusplus |
| 21004 | int closedir (); |
| 21005 | #endif |
| 21006 | |
| 21007 | int |
| 21008 | main () |
| 21009 | { |
| 21010 | return closedir (opendir (".")) != 0; |
| 21011 | ; |
| 21012 | return 0; |
| 21013 | } |
| 21014 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21015 | if ac_fn_c_try_run "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21016 | ac_cv_func_closedir_void=no |
| 21017 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21018 | ac_cv_func_closedir_void=yes |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21019 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21020 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 21021 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21022 | fi |
| 21023 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21024 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21026 | $as_echo "$ac_cv_func_closedir_void" >&6; } |
| 21027 | if test $ac_cv_func_closedir_void = yes; then |
| 21028 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21029 | $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21030 | |
| 21031 | fi |
| 21032 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21033 | for ac_header in stdlib.h unistd.h |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21034 | do : |
| 21035 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 21036 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 21037 | eval as_val=\$$as_ac_Header |
| 21038 | if test "x$as_val" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21039 | cat >>confdefs.h <<_ACEOF |
| 21040 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 21041 | _ACEOF |
| 21042 | |
| 21043 | fi |
| 21044 | |
| 21045 | done |
| 21046 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21047 | for ac_func in getpagesize |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21048 | do : |
| 21049 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" |
| 21050 | if test "x$ac_cv_func_getpagesize" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21051 | cat >>confdefs.h <<_ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21052 | #define HAVE_GETPAGESIZE 1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21053 | _ACEOF |
| 21054 | |
| 21055 | fi |
| 21056 | done |
| 21057 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21059 | $as_echo_n "checking for working mmap... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21060 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21061 | $as_echo_n "(cached) " >&6 |
| 21062 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21063 | if test "$cross_compiling" = yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21064 | ac_cv_func_mmap_fixed_mapped=no |
| 21065 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21066 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21067 | /* end confdefs.h. */ |
| 21068 | $ac_includes_default |
| 21069 | /* malloc might have been renamed as rpl_malloc. */ |
| 21070 | #undef malloc |
| 21071 | |
| 21072 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 21073 | Here is a matrix of mmap possibilities: |
| 21074 | mmap private not fixed |
| 21075 | mmap private fixed at somewhere currently unmapped |
| 21076 | mmap private fixed at somewhere already mapped |
| 21077 | mmap shared not fixed |
| 21078 | mmap shared fixed at somewhere currently unmapped |
| 21079 | mmap shared fixed at somewhere already mapped |
| 21080 | For private mappings, we should verify that changes cannot be read() |
| 21081 | back from the file, nor mmap's back from the file at a different |
| 21082 | address. (There have been systems where private was not correctly |
| 21083 | implemented like the infamous i386 svr4.0, and systems where the |
| 21084 | VM page cache was not coherent with the file system buffer cache |
| 21085 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 21086 | For shared mappings, we should conversely verify that changes get |
| 21087 | propagated back to all the places they're supposed to be. |
| 21088 | |
| 21089 | Grep wants private fixed already mapped. |
| 21090 | The main things grep needs to know about mmap are: |
| 21091 | * does it exist and is it safe to write into the mmap'd area |
| 21092 | * how to use it (BSD variants) */ |
| 21093 | |
| 21094 | #include <fcntl.h> |
| 21095 | #include <sys/mman.h> |
| 21096 | |
| 21097 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
| 21098 | char *malloc (); |
| 21099 | #endif |
| 21100 | |
| 21101 | /* This mess was copied from the GNU getpagesize.h. */ |
| 21102 | #ifndef HAVE_GETPAGESIZE |
| 21103 | /* Assume that all systems that can run configure have sys/param.h. */ |
| 21104 | # ifndef HAVE_SYS_PARAM_H |
| 21105 | # define HAVE_SYS_PARAM_H 1 |
| 21106 | # endif |
| 21107 | |
| 21108 | # ifdef _SC_PAGESIZE |
| 21109 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 21110 | # else /* no _SC_PAGESIZE */ |
| 21111 | # ifdef HAVE_SYS_PARAM_H |
| 21112 | # include <sys/param.h> |
| 21113 | # ifdef EXEC_PAGESIZE |
| 21114 | # define getpagesize() EXEC_PAGESIZE |
| 21115 | # else /* no EXEC_PAGESIZE */ |
| 21116 | # ifdef NBPG |
| 21117 | # define getpagesize() NBPG * CLSIZE |
| 21118 | # ifndef CLSIZE |
| 21119 | # define CLSIZE 1 |
| 21120 | # endif /* no CLSIZE */ |
| 21121 | # else /* no NBPG */ |
| 21122 | # ifdef NBPC |
| 21123 | # define getpagesize() NBPC |
| 21124 | # else /* no NBPC */ |
| 21125 | # ifdef PAGESIZE |
| 21126 | # define getpagesize() PAGESIZE |
| 21127 | # endif /* PAGESIZE */ |
| 21128 | # endif /* no NBPC */ |
| 21129 | # endif /* no NBPG */ |
| 21130 | # endif /* no EXEC_PAGESIZE */ |
| 21131 | # else /* no HAVE_SYS_PARAM_H */ |
| 21132 | # define getpagesize() 8192 /* punt totally */ |
| 21133 | # endif /* no HAVE_SYS_PARAM_H */ |
| 21134 | # endif /* no _SC_PAGESIZE */ |
| 21135 | |
| 21136 | #endif /* no HAVE_GETPAGESIZE */ |
| 21137 | |
| 21138 | int |
| 21139 | main () |
| 21140 | { |
| 21141 | char *data, *data2, *data3; |
| 21142 | int i, pagesize; |
| 21143 | int fd; |
| 21144 | |
| 21145 | pagesize = getpagesize (); |
| 21146 | |
| 21147 | /* First, make a file with some known garbage in it. */ |
| 21148 | data = (char *) malloc (pagesize); |
| 21149 | if (!data) |
| 21150 | return 1; |
| 21151 | for (i = 0; i < pagesize; ++i) |
| 21152 | *(data + i) = rand (); |
| 21153 | umask (0); |
| 21154 | fd = creat ("conftest.mmap", 0600); |
| 21155 | if (fd < 0) |
| 21156 | return 1; |
| 21157 | if (write (fd, data, pagesize) != pagesize) |
| 21158 | return 1; |
| 21159 | close (fd); |
| 21160 | |
| 21161 | /* Next, try to mmap the file at a fixed address which already has |
| 21162 | something else allocated at it. If we can, also make sure that |
| 21163 | we see the same garbage. */ |
| 21164 | fd = open ("conftest.mmap", O_RDWR); |
| 21165 | if (fd < 0) |
| 21166 | return 1; |
| 21167 | data2 = (char *) malloc (2 * pagesize); |
| 21168 | if (!data2) |
| 21169 | return 1; |
| 21170 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); |
| 21171 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
| 21172 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
| 21173 | return 1; |
| 21174 | for (i = 0; i < pagesize; ++i) |
| 21175 | if (*(data + i) != *(data2 + i)) |
| 21176 | return 1; |
| 21177 | |
| 21178 | /* Finally, make sure that changes to the mapped area do not |
| 21179 | percolate back to the file as seen by read(). (This is a bug on |
| 21180 | some variants of i386 svr4.0.) */ |
| 21181 | for (i = 0; i < pagesize; ++i) |
| 21182 | *(data2 + i) = *(data2 + i) + 1; |
| 21183 | data3 = (char *) malloc (pagesize); |
| 21184 | if (!data3) |
| 21185 | return 1; |
| 21186 | if (read (fd, data3, pagesize) != pagesize) |
| 21187 | return 1; |
| 21188 | for (i = 0; i < pagesize; ++i) |
| 21189 | if (*(data + i) != *(data3 + i)) |
| 21190 | return 1; |
| 21191 | close (fd); |
| 21192 | return 0; |
| 21193 | } |
| 21194 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21195 | if ac_fn_c_try_run "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21196 | ac_cv_func_mmap_fixed_mapped=yes |
| 21197 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21198 | ac_cv_func_mmap_fixed_mapped=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21199 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21200 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 21201 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21202 | fi |
| 21203 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21204 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21206 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } |
| 21207 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 21208 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21209 | $as_echo "#define HAVE_MMAP 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21210 | |
| 21211 | fi |
| 21212 | rm -f conftest.mmap |
| 21213 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21214 | for ac_header in vfork.h |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21215 | do : |
| 21216 | ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" |
| 21217 | if test "x$ac_cv_header_vfork_h" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21218 | cat >>confdefs.h <<_ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21219 | #define HAVE_VFORK_H 1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21220 | _ACEOF |
| 21221 | |
| 21222 | fi |
| 21223 | |
| 21224 | done |
| 21225 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21226 | for ac_func in fork vfork |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21227 | do : |
| 21228 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 21229 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 21230 | eval as_val=\$$as_ac_var |
| 21231 | if test "x$as_val" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21232 | cat >>confdefs.h <<_ACEOF |
| 21233 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 21234 | _ACEOF |
| 21235 | |
| 21236 | fi |
| 21237 | done |
| 21238 | |
| 21239 | if test "x$ac_cv_func_fork" = xyes; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21241 | $as_echo_n "checking for working fork... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21242 | if test "${ac_cv_func_fork_works+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21243 | $as_echo_n "(cached) " >&6 |
| 21244 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21245 | if test "$cross_compiling" = yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21246 | ac_cv_func_fork_works=cross |
| 21247 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21248 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21249 | /* end confdefs.h. */ |
| 21250 | $ac_includes_default |
| 21251 | int |
| 21252 | main () |
| 21253 | { |
| 21254 | |
| 21255 | /* By Ruediger Kuhlmann. */ |
| 21256 | return fork () < 0; |
| 21257 | |
| 21258 | ; |
| 21259 | return 0; |
| 21260 | } |
| 21261 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21262 | if ac_fn_c_try_run "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21263 | ac_cv_func_fork_works=yes |
| 21264 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21265 | ac_cv_func_fork_works=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21266 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21267 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 21268 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21269 | fi |
| 21270 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21271 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21273 | $as_echo "$ac_cv_func_fork_works" >&6; } |
| 21274 | |
| 21275 | else |
| 21276 | ac_cv_func_fork_works=$ac_cv_func_fork |
| 21277 | fi |
| 21278 | if test "x$ac_cv_func_fork_works" = xcross; then |
| 21279 | case $host in |
| 21280 | *-*-amigaos* | *-*-msdosdjgpp*) |
| 21281 | # Override, as these systems have only a dummy fork() stub |
| 21282 | ac_cv_func_fork_works=no |
| 21283 | ;; |
| 21284 | *) |
| 21285 | ac_cv_func_fork_works=yes |
| 21286 | ;; |
| 21287 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21288 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21289 | $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} |
| 21290 | fi |
| 21291 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
| 21292 | if test "x$ac_cv_func_vfork" = xyes; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21294 | $as_echo_n "checking for working vfork... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21295 | if test "${ac_cv_func_vfork_works+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21296 | $as_echo_n "(cached) " >&6 |
| 21297 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21298 | if test "$cross_compiling" = yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21299 | ac_cv_func_vfork_works=cross |
| 21300 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21301 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21302 | /* end confdefs.h. */ |
| 21303 | /* Thanks to Paul Eggert for this test. */ |
| 21304 | $ac_includes_default |
| 21305 | #include <sys/wait.h> |
| 21306 | #ifdef HAVE_VFORK_H |
| 21307 | # include <vfork.h> |
| 21308 | #endif |
| 21309 | /* On some sparc systems, changes by the child to local and incoming |
| 21310 | argument registers are propagated back to the parent. The compiler |
| 21311 | is told about this with #include <vfork.h>, but some compilers |
| 21312 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a |
| 21313 | static variable whose address is put into a register that is |
| 21314 | clobbered by the vfork. */ |
| 21315 | static void |
| 21316 | #ifdef __cplusplus |
| 21317 | sparc_address_test (int arg) |
| 21318 | # else |
| 21319 | sparc_address_test (arg) int arg; |
| 21320 | #endif |
| 21321 | { |
| 21322 | static pid_t child; |
| 21323 | if (!child) { |
| 21324 | child = vfork (); |
| 21325 | if (child < 0) { |
| 21326 | perror ("vfork"); |
| 21327 | _exit(2); |
| 21328 | } |
| 21329 | if (!child) { |
| 21330 | arg = getpid(); |
| 21331 | write(-1, "", 0); |
| 21332 | _exit (arg); |
| 21333 | } |
| 21334 | } |
| 21335 | } |
| 21336 | |
| 21337 | int |
| 21338 | main () |
| 21339 | { |
| 21340 | pid_t parent = getpid (); |
| 21341 | pid_t child; |
| 21342 | |
| 21343 | sparc_address_test (0); |
| 21344 | |
| 21345 | child = vfork (); |
| 21346 | |
| 21347 | if (child == 0) { |
| 21348 | /* Here is another test for sparc vfork register problems. This |
| 21349 | test uses lots of local variables, at least as many local |
| 21350 | variables as main has allocated so far including compiler |
| 21351 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris |
| 21352 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should |
| 21353 | reuse the register of parent for one of the local variables, |
| 21354 | since it will think that parent can't possibly be used any more |
| 21355 | in this routine. Assigning to the local variable will thus |
| 21356 | munge parent in the parent process. */ |
| 21357 | pid_t |
| 21358 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), |
| 21359 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); |
| 21360 | /* Convince the compiler that p..p7 are live; otherwise, it might |
| 21361 | use the same hardware register for all 8 local variables. */ |
| 21362 | if (p != p1 || p != p2 || p != p3 || p != p4 |
| 21363 | || p != p5 || p != p6 || p != p7) |
| 21364 | _exit(1); |
| 21365 | |
| 21366 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent |
| 21367 | from child file descriptors. If the child closes a descriptor |
| 21368 | before it execs or exits, this munges the parent's descriptor |
| 21369 | as well. Test for this by closing stdout in the child. */ |
| 21370 | _exit(close(fileno(stdout)) != 0); |
| 21371 | } else { |
| 21372 | int status; |
| 21373 | struct stat st; |
| 21374 | |
| 21375 | while (wait(&status) != child) |
| 21376 | ; |
| 21377 | return ( |
| 21378 | /* Was there some problem with vforking? */ |
| 21379 | child < 0 |
| 21380 | |
| 21381 | /* Did the child fail? (This shouldn't happen.) */ |
| 21382 | || status |
| 21383 | |
| 21384 | /* Did the vfork/compiler bug occur? */ |
| 21385 | || parent != getpid() |
| 21386 | |
| 21387 | /* Did the file descriptor bug occur? */ |
| 21388 | || fstat(fileno(stdout), &st) != 0 |
| 21389 | ); |
| 21390 | } |
| 21391 | } |
| 21392 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21393 | if ac_fn_c_try_run "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21394 | ac_cv_func_vfork_works=yes |
| 21395 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21396 | ac_cv_func_vfork_works=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21397 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21398 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 21399 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21400 | fi |
| 21401 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21402 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21404 | $as_echo "$ac_cv_func_vfork_works" >&6; } |
| 21405 | |
| 21406 | fi; |
| 21407 | if test "x$ac_cv_func_fork_works" = xcross; then |
| 21408 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21409 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21410 | $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} |
| 21411 | fi |
| 21412 | |
| 21413 | if test "x$ac_cv_func_vfork_works" = xyes; then |
| 21414 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21415 | $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21416 | |
| 21417 | else |
| 21418 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21419 | $as_echo "#define vfork fork" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21420 | |
| 21421 | fi |
| 21422 | if test "x$ac_cv_func_fork_works" = xyes; then |
| 21423 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21424 | $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21425 | |
| 21426 | fi |
| 21427 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21429 | $as_echo_n "checking for working memcmp... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21430 | if test "${ac_cv_func_memcmp_working+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21431 | $as_echo_n "(cached) " >&6 |
| 21432 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21433 | if test "$cross_compiling" = yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21434 | ac_cv_func_memcmp_working=no |
| 21435 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21436 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21437 | /* end confdefs.h. */ |
| 21438 | $ac_includes_default |
| 21439 | int |
| 21440 | main () |
| 21441 | { |
| 21442 | |
| 21443 | /* Some versions of memcmp are not 8-bit clean. */ |
| 21444 | char c0 = '\100', c1 = '\200', c2 = '\201'; |
| 21445 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
| 21446 | return 1; |
| 21447 | |
| 21448 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes |
| 21449 | or more and with at least one buffer not starting on a 4-byte boundary. |
| 21450 | William Lewis provided this test program. */ |
| 21451 | { |
| 21452 | char foo[21]; |
| 21453 | char bar[21]; |
| 21454 | int i; |
| 21455 | for (i = 0; i < 4; i++) |
| 21456 | { |
| 21457 | char *a = foo + i; |
| 21458 | char *b = bar + i; |
| 21459 | strcpy (a, "--------01111111"); |
| 21460 | strcpy (b, "--------10000000"); |
| 21461 | if (memcmp (a, b, 16) >= 0) |
| 21462 | return 1; |
| 21463 | } |
| 21464 | return 0; |
| 21465 | } |
| 21466 | |
| 21467 | ; |
| 21468 | return 0; |
| 21469 | } |
| 21470 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21471 | if ac_fn_c_try_run "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21472 | ac_cv_func_memcmp_working=yes |
| 21473 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21474 | ac_cv_func_memcmp_working=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21475 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21476 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 21477 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21478 | fi |
| 21479 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21480 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21482 | $as_echo "$ac_cv_func_memcmp_working" >&6; } |
| 21483 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in |
| 21484 | *" memcmp.$ac_objext "* ) ;; |
| 21485 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
| 21486 | ;; |
| 21487 | esac |
| 21488 | |
| 21489 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21490 | for ac_header in sys/select.h sys/socket.h |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21491 | do : |
| 21492 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 21493 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 21494 | eval as_val=\$$as_ac_Header |
| 21495 | if test "x$as_val" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21496 | cat >>confdefs.h <<_ACEOF |
| 21497 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 21498 | _ACEOF |
| 21499 | |
| 21500 | fi |
| 21501 | |
| 21502 | done |
| 21503 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21505 | $as_echo_n "checking types of arguments for select... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21506 | if test "${ac_cv_func_select_args+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21507 | $as_echo_n "(cached) " >&6 |
| 21508 | else |
| 21509 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
| 21510 | for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do |
| 21511 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21512 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21513 | /* end confdefs.h. */ |
| 21514 | $ac_includes_default |
| 21515 | #ifdef HAVE_SYS_SELECT_H |
| 21516 | # include <sys/select.h> |
| 21517 | #endif |
| 21518 | #ifdef HAVE_SYS_SOCKET_H |
| 21519 | # include <sys/socket.h> |
| 21520 | #endif |
| 21521 | |
| 21522 | int |
| 21523 | main () |
| 21524 | { |
| 21525 | extern int select ($ac_arg1, |
| 21526 | $ac_arg234, $ac_arg234, $ac_arg234, |
| 21527 | $ac_arg5); |
| 21528 | ; |
| 21529 | return 0; |
| 21530 | } |
| 21531 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21532 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21533 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21534 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21535 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21536 | done |
| 21537 | done |
| 21538 | done |
| 21539 | # Provide a safe default value. |
| 21540 | : ${ac_cv_func_select_args='int,int *,struct timeval *'} |
| 21541 | |
| 21542 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21544 | $as_echo "$ac_cv_func_select_args" >&6; } |
| 21545 | ac_save_IFS=$IFS; IFS=',' |
| 21546 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` |
| 21547 | IFS=$ac_save_IFS |
| 21548 | shift |
| 21549 | |
| 21550 | cat >>confdefs.h <<_ACEOF |
| 21551 | #define SELECT_TYPE_ARG1 $1 |
| 21552 | _ACEOF |
| 21553 | |
| 21554 | |
| 21555 | cat >>confdefs.h <<_ACEOF |
| 21556 | #define SELECT_TYPE_ARG234 ($2) |
| 21557 | _ACEOF |
| 21558 | |
| 21559 | |
| 21560 | cat >>confdefs.h <<_ACEOF |
| 21561 | #define SELECT_TYPE_ARG5 ($3) |
| 21562 | _ACEOF |
| 21563 | |
| 21564 | rm -f conftest* |
| 21565 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21566 | if test "${ac_cv_func_setvbuf_reversed+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21567 | $as_echo_n "(cached) " >&6 |
| 21568 | else |
| 21569 | ac_cv_func_setvbuf_reversed=no |
| 21570 | fi |
| 21571 | |
| 21572 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21574 | $as_echo_n "checking return type of signal handlers... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21575 | if test "${ac_cv_type_signal+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21576 | $as_echo_n "(cached) " >&6 |
| 21577 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21578 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21579 | /* end confdefs.h. */ |
| 21580 | #include <sys/types.h> |
| 21581 | #include <signal.h> |
| 21582 | |
| 21583 | int |
| 21584 | main () |
| 21585 | { |
| 21586 | return *(signal (0, 0)) (0) == 1; |
| 21587 | ; |
| 21588 | return 0; |
| 21589 | } |
| 21590 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21591 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21592 | ac_cv_type_signal=int |
| 21593 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21594 | ac_cv_type_signal=void |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21595 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21596 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21597 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21599 | $as_echo "$ac_cv_type_signal" >&6; } |
| 21600 | |
| 21601 | cat >>confdefs.h <<_ACEOF |
| 21602 | #define RETSIGTYPE $ac_cv_type_signal |
| 21603 | _ACEOF |
| 21604 | |
| 21605 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21607 | $as_echo_n "checking for working strtod... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21608 | if test "${ac_cv_func_strtod+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21609 | $as_echo_n "(cached) " >&6 |
| 21610 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21611 | if test "$cross_compiling" = yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21612 | ac_cv_func_strtod=no |
| 21613 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21614 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21615 | /* end confdefs.h. */ |
| 21616 | |
| 21617 | $ac_includes_default |
| 21618 | #ifndef strtod |
| 21619 | double strtod (); |
| 21620 | #endif |
| 21621 | int |
| 21622 | main() |
| 21623 | { |
| 21624 | { |
| 21625 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ |
| 21626 | char *string = " +69"; |
| 21627 | char *term; |
| 21628 | double value; |
| 21629 | value = strtod (string, &term); |
| 21630 | if (value != 69 || term != (string + 4)) |
| 21631 | return 1; |
| 21632 | } |
| 21633 | |
| 21634 | { |
| 21635 | /* Under Solaris 2.4, strtod returns the wrong value for the |
| 21636 | terminating character under some conditions. */ |
| 21637 | char *string = "NaN"; |
| 21638 | char *term; |
| 21639 | strtod (string, &term); |
| 21640 | if (term != string && *(term - 1) == 0) |
| 21641 | return 1; |
| 21642 | } |
| 21643 | return 0; |
| 21644 | } |
| 21645 | |
| 21646 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21647 | if ac_fn_c_try_run "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21648 | ac_cv_func_strtod=yes |
| 21649 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21650 | ac_cv_func_strtod=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21651 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21652 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 21653 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21654 | fi |
| 21655 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21656 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21658 | $as_echo "$ac_cv_func_strtod" >&6; } |
| 21659 | if test $ac_cv_func_strtod = no; then |
| 21660 | case " $LIBOBJS " in |
| 21661 | *" strtod.$ac_objext "* ) ;; |
| 21662 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" |
| 21663 | ;; |
| 21664 | esac |
| 21665 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21666 | ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow" |
| 21667 | if test "x$ac_cv_func_pow" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21668 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21669 | fi |
| 21670 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21671 | if test $ac_cv_func_pow = no; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21673 | $as_echo_n "checking for pow in -lm... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21674 | if test "${ac_cv_lib_m_pow+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21675 | $as_echo_n "(cached) " >&6 |
| 21676 | else |
| 21677 | ac_check_lib_save_LIBS=$LIBS |
| 21678 | LIBS="-lm $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21679 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21680 | /* end confdefs.h. */ |
| 21681 | |
| 21682 | /* Override any GCC internal prototype to avoid an error. |
| 21683 | Use char because int might match the return type of a GCC |
| 21684 | builtin and then its argument prototype would still apply. */ |
| 21685 | #ifdef __cplusplus |
| 21686 | extern "C" |
| 21687 | #endif |
| 21688 | char pow (); |
| 21689 | int |
| 21690 | main () |
| 21691 | { |
| 21692 | return pow (); |
| 21693 | ; |
| 21694 | return 0; |
| 21695 | } |
| 21696 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21697 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21698 | ac_cv_lib_m_pow=yes |
| 21699 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21700 | ac_cv_lib_m_pow=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21701 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21702 | rm -f core conftest.err conftest.$ac_objext \ |
| 21703 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21704 | LIBS=$ac_check_lib_save_LIBS |
| 21705 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21707 | $as_echo "$ac_cv_lib_m_pow" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21708 | if test "x$ac_cv_lib_m_pow" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21709 | POW_LIB=-lm |
| 21710 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21711 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21712 | $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} |
| 21713 | fi |
| 21714 | |
| 21715 | fi |
| 21716 | |
| 21717 | fi |
| 21718 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21719 | for ac_func in vprintf |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21720 | do : |
| 21721 | ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" |
| 21722 | if test "x$ac_cv_func_vprintf" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21723 | cat >>confdefs.h <<_ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21724 | #define HAVE_VPRINTF 1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21725 | _ACEOF |
| 21726 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21727 | ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" |
| 21728 | if test "x$ac_cv_func__doprnt" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21729 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21730 | $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21731 | |
| 21732 | fi |
| 21733 | |
| 21734 | fi |
| 21735 | done |
| 21736 | |
| 21737 | |
| 21738 | |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 21739 | for ac_func in _exit atexit clock directio execvp floor fork ftime ftruncate getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r localtime_r lstat memmove memset mkstemp munmap _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign pow pread pwrite raise rand_r readlink readdir_r realpath select seekdir setlocale sqrt setvbuf stat strchr strerror_r strrchr strcspn strdup strpbrk strspn strstr strtol symlink sysconf sigemptyset sigaction strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times usleep vsprintf vsnprintf waitpid _wfopen _wstat |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21740 | do : |
| 21741 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 21742 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 21743 | eval as_val=\$$as_ac_var |
| 21744 | if test "x$as_val" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21745 | cat >>confdefs.h <<_ACEOF |
| 21746 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 21747 | _ACEOF |
| 21748 | |
| 21749 | fi |
| 21750 | done |
| 21751 | |
| 21752 | |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 21753 | # |
| 21754 | # Check for clock_gettime(). |
| 21755 | # |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 21757 | $as_echo_n "checking for library containing clock_gettime... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21758 | if test "${ac_cv_search_clock_gettime+set}" = set; then : |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 21759 | $as_echo_n "(cached) " >&6 |
| 21760 | else |
| 21761 | ac_func_search_save_LIBS=$LIBS |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21762 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 21763 | /* end confdefs.h. */ |
| 21764 | |
| 21765 | /* Override any GCC internal prototype to avoid an error. |
| 21766 | Use char because int might match the return type of a GCC |
| 21767 | builtin and then its argument prototype would still apply. */ |
| 21768 | #ifdef __cplusplus |
| 21769 | extern "C" |
| 21770 | #endif |
| 21771 | char clock_gettime (); |
| 21772 | int |
| 21773 | main () |
| 21774 | { |
| 21775 | return clock_gettime (); |
| 21776 | ; |
| 21777 | return 0; |
| 21778 | } |
| 21779 | _ACEOF |
| 21780 | for ac_lib in '' rt; do |
| 21781 | if test -z "$ac_lib"; then |
| 21782 | ac_res="none required" |
| 21783 | else |
| 21784 | ac_res=-l$ac_lib |
| 21785 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 21786 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21787 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 21788 | ac_cv_search_clock_gettime=$ac_res |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 21789 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21790 | rm -f core conftest.err conftest.$ac_objext \ |
| 21791 | conftest$ac_exeext |
| 21792 | if test "${ac_cv_search_clock_gettime+set}" = set; then : |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 21793 | break |
| 21794 | fi |
| 21795 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21796 | if test "${ac_cv_search_clock_gettime+set}" = set; then : |
| 21797 | |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 21798 | else |
| 21799 | ac_cv_search_clock_gettime=no |
| 21800 | fi |
| 21801 | rm conftest.$ac_ext |
| 21802 | LIBS=$ac_func_search_save_LIBS |
| 21803 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 21805 | $as_echo "$ac_cv_search_clock_gettime" >&6; } |
| 21806 | ac_res=$ac_cv_search_clock_gettime |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21807 | if test "$ac_res" != no; then : |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 21808 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 21809 | |
| 21810 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21811 | $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 21812 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5 |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 21814 | $as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21815 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 21816 | /* end confdefs.h. */ |
| 21817 | #include <time.h> |
| 21818 | int |
| 21819 | main () |
| 21820 | { |
| 21821 | clockid_t clockType = CLOCK_REALTIME; |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 21822 | ; |
| 21823 | return 0; |
| 21824 | } |
| 21825 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21826 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 21827 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 21829 | $as_echo "yes" >&6; } |
| 21830 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21831 | $as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 21832 | |
| 21833 | |
| 21834 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 21836 | $as_echo "no" >&6; } |
| 21837 | |
| 21838 | fi |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 21839 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21840 | |
| 21841 | else |
| 21842 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21843 | for ac_func in gettimeofday ftime |
| 21844 | do : |
| 21845 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 21846 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 21847 | eval as_val=\$$as_ac_var |
| 21848 | if test "x$as_val" = x""yes; then : |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 21849 | cat >>confdefs.h <<_ACEOF |
| 21850 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 21851 | _ACEOF |
| 21852 | break |
| 21853 | fi |
| 21854 | done |
| 21855 | |
| 21856 | |
| 21857 | |
| 21858 | fi |
| 21859 | |
| 21860 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21861 | ######## |
| 21862 | # |
| 21863 | # Check for function prototypes |
| 21864 | # |
| 21865 | ######## |
| 21866 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21867 | ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" " |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21868 | #include <unistd.h> |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21869 | " |
| 21870 | if test "x$ac_cv_have_decl_pread" = x""yes; then : |
| 21871 | ac_have_decl=1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21872 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21873 | ac_have_decl=0 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21874 | fi |
| 21875 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21876 | cat >>confdefs.h <<_ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21877 | #define HAVE_DECL_PREAD $ac_have_decl |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21878 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21879 | ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" " |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21880 | #include <unistd.h> |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21881 | " |
| 21882 | if test "x$ac_cv_have_decl_pwrite" = x""yes; then : |
| 21883 | ac_have_decl=1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21884 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21885 | ac_have_decl=0 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21886 | fi |
| 21887 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21888 | cat >>confdefs.h <<_ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21889 | #define HAVE_DECL_PWRITE $ac_have_decl |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21890 | _ACEOF |
| 21891 | |
| 21892 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21893 | ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" " |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21894 | #include <strings.h> |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21895 | " |
| 21896 | if test "x$ac_cv_have_decl_strlcpy" = x""yes; then : |
| 21897 | ac_have_decl=1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21898 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21899 | ac_have_decl=0 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21900 | fi |
| 21901 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21902 | cat >>confdefs.h <<_ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21903 | #define HAVE_DECL_STRLCPY $ac_have_decl |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21904 | _ACEOF |
| 21905 | |
| 21906 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21907 | ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" " |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21908 | #include <stdio.h> |
| 21909 | #include <stdarg.h> |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21910 | " |
| 21911 | if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then : |
| 21912 | ac_have_decl=1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21913 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21914 | ac_have_decl=0 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21915 | fi |
| 21916 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21917 | cat >>confdefs.h <<_ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21918 | #define HAVE_DECL_VSNPRINTF $ac_have_decl |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21919 | _ACEOF |
| 21920 | |
| 21921 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21922 | ######## |
| 21923 | # |
| 21924 | # C++ Support Tests (For Magick++) |
| 21925 | # |
| 21926 | ######## |
| 21927 | have_magick_plus_plus='no' |
| 21928 | if test "$with_magick_plus_plus" = 'yes'; then |
| 21929 | OLIBS="$LIBS" |
| 21930 | LIBS='' |
| 21931 | ac_ext=cpp |
| 21932 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 21933 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21934 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21935 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 21936 | |
| 21937 | |
| 21938 | # Full set of headers used... |
| 21939 | # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception |
| 21940 | # functional iomanip iosfwd iostream iterator list string strstream utility |
| 21941 | ac_ext=cpp |
| 21942 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 21943 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21944 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21945 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 21946 | |
| 21947 | ac_ext=cpp |
| 21948 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 21949 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21950 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21951 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 21952 | if test -z "$CXX"; then |
| 21953 | if test -n "$CCC"; then |
| 21954 | CXX=$CCC |
| 21955 | else |
| 21956 | if test -n "$ac_tool_prefix"; then |
| 21957 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 21958 | do |
| 21959 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 21960 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21962 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21963 | if test "${ac_cv_prog_CXX+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21964 | $as_echo_n "(cached) " >&6 |
| 21965 | else |
| 21966 | if test -n "$CXX"; then |
| 21967 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 21968 | else |
| 21969 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 21970 | for as_dir in $PATH |
| 21971 | do |
| 21972 | IFS=$as_save_IFS |
| 21973 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21974 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21975 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 21976 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21977 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21978 | break 2 |
| 21979 | fi |
| 21980 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21981 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21982 | IFS=$as_save_IFS |
| 21983 | |
| 21984 | fi |
| 21985 | fi |
| 21986 | CXX=$ac_cv_prog_CXX |
| 21987 | if test -n "$CXX"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21989 | $as_echo "$CXX" >&6; } |
| 21990 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 21991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21992 | $as_echo "no" >&6; } |
| 21993 | fi |
| 21994 | |
| 21995 | |
| 21996 | test -n "$CXX" && break |
| 21997 | done |
| 21998 | fi |
| 21999 | if test -z "$CXX"; then |
| 22000 | ac_ct_CXX=$CXX |
| 22001 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 22002 | do |
| 22003 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 22004 | set dummy $ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22006 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22007 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22008 | $as_echo_n "(cached) " >&6 |
| 22009 | else |
| 22010 | if test -n "$ac_ct_CXX"; then |
| 22011 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 22012 | else |
| 22013 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 22014 | for as_dir in $PATH |
| 22015 | do |
| 22016 | IFS=$as_save_IFS |
| 22017 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22018 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22019 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 22020 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22021 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22022 | break 2 |
| 22023 | fi |
| 22024 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22025 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22026 | IFS=$as_save_IFS |
| 22027 | |
| 22028 | fi |
| 22029 | fi |
| 22030 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 22031 | if test -n "$ac_ct_CXX"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22033 | $as_echo "$ac_ct_CXX" >&6; } |
| 22034 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22036 | $as_echo "no" >&6; } |
| 22037 | fi |
| 22038 | |
| 22039 | |
| 22040 | test -n "$ac_ct_CXX" && break |
| 22041 | done |
| 22042 | |
| 22043 | if test "x$ac_ct_CXX" = x; then |
| 22044 | CXX="g++" |
| 22045 | else |
| 22046 | case $cross_compiling:$ac_tool_warned in |
| 22047 | yes:) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22048 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22049 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 22050 | ac_tool_warned=yes ;; |
| 22051 | esac |
| 22052 | CXX=$ac_ct_CXX |
| 22053 | fi |
| 22054 | fi |
| 22055 | |
| 22056 | fi |
| 22057 | fi |
| 22058 | # Provide some information about the compiler. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22059 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22060 | set X $ac_compile |
| 22061 | ac_compiler=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22062 | for ac_option in --version -v -V -qversion; do |
| 22063 | { { ac_try="$ac_compiler $ac_option >&5" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22064 | case "(($ac_try" in |
| 22065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22066 | *) ac_try_echo=$ac_try;; |
| 22067 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22068 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 22069 | $as_echo "$ac_try_echo"; } >&5 |
| 22070 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22071 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22072 | if test -s conftest.err; then |
| 22073 | sed '10a\ |
| 22074 | ... rest of stderr output deleted ... |
| 22075 | 10q' conftest.err >conftest.er1 |
| 22076 | cat conftest.er1 >&5 |
| 22077 | rm -f conftest.er1 conftest.err |
| 22078 | fi |
| 22079 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 22080 | test $ac_status = 0; } |
| 22081 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22082 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22084 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22085 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22086 | $as_echo_n "(cached) " >&6 |
| 22087 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22088 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22089 | /* end confdefs.h. */ |
| 22090 | |
| 22091 | int |
| 22092 | main () |
| 22093 | { |
| 22094 | #ifndef __GNUC__ |
| 22095 | choke me |
| 22096 | #endif |
| 22097 | |
| 22098 | ; |
| 22099 | return 0; |
| 22100 | } |
| 22101 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22102 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22103 | ac_compiler_gnu=yes |
| 22104 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22105 | ac_compiler_gnu=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22106 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22107 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22108 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 22109 | |
| 22110 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22112 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
| 22113 | if test $ac_compiler_gnu = yes; then |
| 22114 | GXX=yes |
| 22115 | else |
| 22116 | GXX= |
| 22117 | fi |
| 22118 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 22119 | ac_save_CXXFLAGS=$CXXFLAGS |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22121 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22122 | if test "${ac_cv_prog_cxx_g+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22123 | $as_echo_n "(cached) " >&6 |
| 22124 | else |
| 22125 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 22126 | ac_cxx_werror_flag=yes |
| 22127 | ac_cv_prog_cxx_g=no |
| 22128 | CXXFLAGS="-g" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22129 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22130 | /* end confdefs.h. */ |
| 22131 | |
| 22132 | int |
| 22133 | main () |
| 22134 | { |
| 22135 | |
| 22136 | ; |
| 22137 | return 0; |
| 22138 | } |
| 22139 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22140 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22141 | ac_cv_prog_cxx_g=yes |
| 22142 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22143 | CXXFLAGS="" |
| 22144 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22145 | /* end confdefs.h. */ |
| 22146 | |
| 22147 | int |
| 22148 | main () |
| 22149 | { |
| 22150 | |
| 22151 | ; |
| 22152 | return 0; |
| 22153 | } |
| 22154 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22155 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22156 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22157 | else |
| 22158 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22159 | CXXFLAGS="-g" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22160 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22161 | /* end confdefs.h. */ |
| 22162 | |
| 22163 | int |
| 22164 | main () |
| 22165 | { |
| 22166 | |
| 22167 | ; |
| 22168 | return 0; |
| 22169 | } |
| 22170 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22171 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22172 | ac_cv_prog_cxx_g=yes |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22173 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22174 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22175 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22176 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22177 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22178 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22179 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 22180 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22182 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
| 22183 | if test "$ac_test_CXXFLAGS" = set; then |
| 22184 | CXXFLAGS=$ac_save_CXXFLAGS |
| 22185 | elif test $ac_cv_prog_cxx_g = yes; then |
| 22186 | if test "$GXX" = yes; then |
| 22187 | CXXFLAGS="-g -O2" |
| 22188 | else |
| 22189 | CXXFLAGS="-g" |
| 22190 | fi |
| 22191 | else |
| 22192 | if test "$GXX" = yes; then |
| 22193 | CXXFLAGS="-O2" |
| 22194 | else |
| 22195 | CXXFLAGS= |
| 22196 | fi |
| 22197 | fi |
| 22198 | ac_ext=cpp |
| 22199 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 22200 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22201 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22202 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 22203 | |
| 22204 | depcc="$CXX" am_compiler_list= |
| 22205 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22207 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22208 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22209 | $as_echo_n "(cached) " >&6 |
| 22210 | else |
| 22211 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 22212 | # We make a subdir and do the tests there. Otherwise we can end up |
| 22213 | # making bogus files that we don't know about and never remove. For |
| 22214 | # instance it was reported that on HP-UX the gcc test will end up |
| 22215 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 22216 | # in D'. |
| 22217 | mkdir conftest.dir |
| 22218 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 22219 | # using a relative directory. |
| 22220 | cp "$am_depcomp" conftest.dir |
| 22221 | cd conftest.dir |
| 22222 | # We will build objects and dependencies in a subdirectory because |
| 22223 | # it helps to detect inapplicable dependency modes. For instance |
| 22224 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 22225 | # side effect of compilation, but ICC will put the dependencies in |
| 22226 | # the current directory while Tru64 will put them in the object |
| 22227 | # directory. |
| 22228 | mkdir sub |
| 22229 | |
| 22230 | am_cv_CXX_dependencies_compiler_type=none |
| 22231 | if test "$am_compiler_list" = ""; then |
| 22232 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 22233 | fi |
| 22234 | am__universal=false |
| 22235 | case " $depcc " in #( |
| 22236 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 22237 | esac |
| 22238 | |
| 22239 | for depmode in $am_compiler_list; do |
| 22240 | # Setup a source with many dependencies, because some compilers |
| 22241 | # like to wrap large dependency lists on column 80 (with \), and |
| 22242 | # we should not choose a depcomp mode which is confused by this. |
| 22243 | # |
| 22244 | # We need to recreate these files for each test, as the compiler may |
| 22245 | # overwrite some of them when testing with obscure command lines. |
| 22246 | # This happens at least with the AIX C compiler. |
| 22247 | : > sub/conftest.c |
| 22248 | for i in 1 2 3 4 5 6; do |
| 22249 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 22250 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 22251 | # Solaris 8's {/usr,}/bin/sh. |
| 22252 | touch sub/conftst$i.h |
| 22253 | done |
| 22254 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 22255 | |
| 22256 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 22257 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 22258 | # handle `-M -o', and we need to detect this. Also, some Intel |
| 22259 | # versions had trouble with output in subdirs |
| 22260 | am__obj=sub/conftest.${OBJEXT-o} |
| 22261 | am__minus_obj="-o $am__obj" |
| 22262 | case $depmode in |
| 22263 | gcc) |
| 22264 | # This depmode causes a compiler race in universal mode. |
| 22265 | test "$am__universal" = false || continue |
| 22266 | ;; |
| 22267 | nosideeffect) |
| 22268 | # after this tag, mechanisms are not by side-effect, so they'll |
| 22269 | # only be used when explicitly requested |
| 22270 | if test "x$enable_dependency_tracking" = xyes; then |
| 22271 | continue |
| 22272 | else |
| 22273 | break |
| 22274 | fi |
| 22275 | ;; |
| 22276 | msvisualcpp | msvcmsys) |
| 22277 | # This compiler won't grok `-c -o', but also, the minuso test has |
| 22278 | # not run yet. These depmodes are late enough in the game, and |
| 22279 | # so weak that their functioning should not be impacted. |
| 22280 | am__obj=conftest.${OBJEXT-o} |
| 22281 | am__minus_obj= |
| 22282 | ;; |
| 22283 | none) break ;; |
| 22284 | esac |
| 22285 | if depmode=$depmode \ |
| 22286 | source=sub/conftest.c object=$am__obj \ |
| 22287 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 22288 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 22289 | >/dev/null 2>conftest.err && |
| 22290 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 22291 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 22292 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 22293 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 22294 | # icc doesn't choke on unknown options, it will just issue warnings |
| 22295 | # or remarks (even with -Werror). So we grep stderr for any message |
| 22296 | # that says an option was ignored or not supported. |
| 22297 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 22298 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 22299 | # The diagnosis changed in icc 8.0: |
| 22300 | # icc: Command line remark: option '-MP' not supported |
| 22301 | if (grep 'ignoring option' conftest.err || |
| 22302 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 22303 | am_cv_CXX_dependencies_compiler_type=$depmode |
| 22304 | break |
| 22305 | fi |
| 22306 | fi |
| 22307 | done |
| 22308 | |
| 22309 | cd .. |
| 22310 | rm -rf conftest.dir |
| 22311 | else |
| 22312 | am_cv_CXX_dependencies_compiler_type=none |
| 22313 | fi |
| 22314 | |
| 22315 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22317 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } |
| 22318 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| 22319 | |
| 22320 | if |
| 22321 | test "x$enable_dependency_tracking" != xno \ |
| 22322 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| 22323 | am__fastdepCXX_TRUE= |
| 22324 | am__fastdepCXX_FALSE='#' |
| 22325 | else |
| 22326 | am__fastdepCXX_TRUE='#' |
| 22327 | am__fastdepCXX_FALSE= |
| 22328 | fi |
| 22329 | |
| 22330 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22332 | $as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22333 | if test "${ac_cv_cxx_have_bool+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22334 | $as_echo_n "(cached) " >&6 |
| 22335 | else |
| 22336 | |
| 22337 | ac_ext=cpp |
| 22338 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 22339 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22340 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22341 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 22342 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22343 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22344 | /* end confdefs.h. */ |
| 22345 | |
| 22346 | int f(int x){return 1;} |
| 22347 | int f(char x){return 1;} |
| 22348 | int f(bool x){return 1;} |
| 22349 | |
| 22350 | int |
| 22351 | main () |
| 22352 | { |
| 22353 | bool b = true; return f(b); |
| 22354 | ; |
| 22355 | return 0; |
| 22356 | } |
| 22357 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22358 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22359 | ac_cv_cxx_have_bool=yes |
| 22360 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22361 | ac_cv_cxx_have_bool=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22362 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22363 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22364 | ac_ext=cpp |
| 22365 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 22366 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22367 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22368 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 22369 | |
| 22370 | |
| 22371 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_bool" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22373 | $as_echo "$ac_cv_cxx_have_bool" >&6; } |
| 22374 | if test "$ac_cv_cxx_have_bool" = yes; then |
| 22375 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22376 | $as_echo "#define HAVE_BOOL /**/" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22377 | |
| 22378 | fi |
| 22379 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22381 | $as_echo_n "checking whether the compiler implements namespaces... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22382 | if test "${ac_cv_cxx_have_namespaces+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22383 | $as_echo_n "(cached) " >&6 |
| 22384 | else |
| 22385 | |
| 22386 | ac_ext=cpp |
| 22387 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 22388 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22389 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22390 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 22391 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22392 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22393 | /* end confdefs.h. */ |
| 22394 | namespace Outer { namespace Inner { int i = 0; }} |
| 22395 | int |
| 22396 | main () |
| 22397 | { |
| 22398 | using namespace Outer::Inner; return i; |
| 22399 | ; |
| 22400 | return 0; |
| 22401 | } |
| 22402 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22403 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22404 | ac_cv_cxx_have_namespaces=yes |
| 22405 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22406 | ac_cv_cxx_have_namespaces=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22407 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22408 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22409 | ac_ext=cpp |
| 22410 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 22411 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22412 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22413 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 22414 | |
| 22415 | |
| 22416 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_namespaces" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22418 | $as_echo "$ac_cv_cxx_have_namespaces" >&6; } |
| 22419 | if test "$ac_cv_cxx_have_namespaces" = yes; then |
| 22420 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22421 | $as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22422 | |
| 22423 | fi |
| 22424 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the std namespace" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22426 | $as_echo_n "checking whether the compiler supports the std namespace... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22427 | if test "${ac_cv_cxx_have_std_namespace+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22428 | $as_echo_n "(cached) " >&6 |
| 22429 | else |
| 22430 | |
| 22431 | ac_ext=cpp |
| 22432 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 22433 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22434 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22435 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 22436 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22437 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22438 | /* end confdefs.h. */ |
| 22439 | #include <iostream> |
| 22440 | std::istream& is = std::cin; |
| 22441 | |
| 22442 | int |
| 22443 | main () |
| 22444 | { |
| 22445 | return 0; |
| 22446 | ; |
| 22447 | return 0; |
| 22448 | } |
| 22449 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22450 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22451 | ac_cv_cxx_have_std_namespace=yes |
| 22452 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22453 | ac_cv_cxx_have_std_namespace=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22454 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22455 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22456 | ac_ext=cpp |
| 22457 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 22458 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22459 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22460 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 22461 | |
| 22462 | |
| 22463 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_namespace" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22465 | $as_echo "$ac_cv_cxx_have_std_namespace" >&6; } |
| 22466 | if test "$ac_cv_cxx_have_std_namespace" = yes; then |
| 22467 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22468 | $as_echo "#define HAVE_STD_NAMESPACE /**/" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22469 | |
| 22470 | fi |
| 22471 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22472 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22473 | $as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22474 | if test "${ac_cv_cxx_have_std_libs+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22475 | $as_echo_n "(cached) " >&6 |
| 22476 | else |
| 22477 | |
| 22478 | |
| 22479 | ac_ext=cpp |
| 22480 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 22481 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22482 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22483 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 22484 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22485 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22486 | /* end confdefs.h. */ |
| 22487 | #include <iostream> |
| 22488 | #include <map> |
| 22489 | #include <iomanip> |
| 22490 | #include <cmath> |
| 22491 | #ifdef HAVE_NAMESPACES |
| 22492 | using namespace std; |
| 22493 | #endif |
| 22494 | int |
| 22495 | main () |
| 22496 | { |
| 22497 | return 0; |
| 22498 | ; |
| 22499 | return 0; |
| 22500 | } |
| 22501 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22502 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22503 | ac_cv_cxx_have_std_libs=yes |
| 22504 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22505 | ac_cv_cxx_have_std_libs=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22506 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22507 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22508 | ac_ext=cpp |
| 22509 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 22510 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22511 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22512 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 22513 | |
| 22514 | |
| 22515 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22517 | $as_echo "$ac_cv_cxx_have_std_libs" >&6; } |
| 22518 | if test "$ac_cv_cxx_have_std_libs" = yes; then |
| 22519 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22520 | $as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22521 | |
| 22522 | fi |
| 22523 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22524 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements L\"widestring\"" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22525 | $as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22526 | if test "${ac_cv_cxx_have_lstring+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22527 | $as_echo_n "(cached) " >&6 |
| 22528 | else |
| 22529 | |
| 22530 | ac_ext=cpp |
| 22531 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 22532 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22533 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22534 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 22535 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22536 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22537 | /* end confdefs.h. */ |
| 22538 | const wchar_t* s=L"wide string"; |
| 22539 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22540 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22541 | ac_cv_cxx_have_lstring=yes |
| 22542 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22543 | ac_cv_cxx_have_lstring=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22544 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22545 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22546 | ac_ext=cpp |
| 22547 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 22548 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22549 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22550 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 22551 | |
| 22552 | |
| 22553 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_lstring" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22555 | $as_echo "$ac_cv_cxx_have_lstring" >&6; } |
| 22556 | if test "$ac_cv_cxx_have_lstring" = yes; then |
| 22557 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22558 | $as_echo "#define HAVE_LSTRING /**/" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22559 | |
| 22560 | fi |
| 22561 | |
| 22562 | |
| 22563 | OPENMP_CXXFLAGS= |
| 22564 | # Check whether --enable-openmp was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22565 | if test "${enable_openmp+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22566 | enableval=$enable_openmp; |
| 22567 | fi |
| 22568 | |
| 22569 | if test "$enable_openmp" != no; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22571 | $as_echo_n "checking for $CC option to support OpenMP... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22572 | if test "${ac_cv_prog_cxx_openmp+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22573 | $as_echo_n "(cached) " >&6 |
| 22574 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22575 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22576 | /* end confdefs.h. */ |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22577 | |
| 22578 | #ifndef _OPENMP |
| 22579 | choke me |
| 22580 | #endif |
| 22581 | #include <omp.h> |
| 22582 | int main () { return omp_get_num_threads (); } |
| 22583 | |
| 22584 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22585 | if ac_fn_cxx_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22586 | ac_cv_prog_cxx_openmp='none needed' |
| 22587 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22588 | ac_cv_prog_cxx_openmp='unsupported' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22589 | for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do |
| 22590 | ac_save_CXXFLAGS=$CXXFLAGS |
| 22591 | CXXFLAGS="$CXXFLAGS $ac_option" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22592 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22593 | /* end confdefs.h. */ |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22594 | |
| 22595 | #ifndef _OPENMP |
| 22596 | choke me |
| 22597 | #endif |
| 22598 | #include <omp.h> |
| 22599 | int main () { return omp_get_num_threads (); } |
| 22600 | |
| 22601 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22602 | if ac_fn_cxx_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22603 | ac_cv_prog_cxx_openmp=$ac_option |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22604 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22605 | rm -f core conftest.err conftest.$ac_objext \ |
| 22606 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22607 | CXXFLAGS=$ac_save_CXXFLAGS |
| 22608 | if test "$ac_cv_prog_cxx_openmp" != unsupported; then |
| 22609 | break |
| 22610 | fi |
| 22611 | done |
| 22612 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22613 | rm -f core conftest.err conftest.$ac_objext \ |
| 22614 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22615 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22617 | $as_echo "$ac_cv_prog_cxx_openmp" >&6; } |
| 22618 | case $ac_cv_prog_cxx_openmp in #( |
| 22619 | "none needed" | unsupported) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22620 | ;; #( |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22621 | *) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22622 | OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22623 | esac |
| 22624 | fi |
| 22625 | |
| 22626 | |
| 22627 | ac_ext=c |
| 22628 | ac_cpp='$CPP $CPPFLAGS' |
| 22629 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22630 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22631 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 22632 | |
| 22633 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22635 | $as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; } |
| 22636 | if \ |
| 22637 | test $ac_cv_cxx_have_bool = 'yes' && \ |
| 22638 | test $ac_cv_cxx_have_lstring = 'yes' && \ |
| 22639 | test $ac_cv_cxx_have_namespaces = 'yes' && \ |
| 22640 | test $ac_cv_cxx_have_std_libs = 'yes' && \ |
| 22641 | test $ac_cv_cxx_have_std_namespace = 'yes'; then |
| 22642 | have_magick_plus_plus='yes' |
| 22643 | else |
| 22644 | have_magick_plus_plus='no (failed tests)' |
| 22645 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22647 | $as_echo "$have_magick_plus_plus" >&6; } |
| 22648 | LIBS="$OLIBS" |
| 22649 | fi |
| 22650 | if test "$have_magick_plus_plus" = 'yes'; then |
| 22651 | WITH_MAGICK_PLUS_PLUS_TRUE= |
| 22652 | WITH_MAGICK_PLUS_PLUS_FALSE='#' |
| 22653 | else |
| 22654 | WITH_MAGICK_PLUS_PLUS_TRUE='#' |
| 22655 | WITH_MAGICK_PLUS_PLUS_FALSE= |
| 22656 | fi |
| 22657 | |
| 22658 | |
| 22659 | # Only check for delegate libraries in subdirectories if requested. |
| 22660 | if test "$enable_delegate_build" != 'no'; then |
| 22661 | # Check for delegate sub-directories and add -I & -L options as required. |
| 22662 | # This presumes that delegates are installed as detailed in the ImageMagick |
| 22663 | # README. If delegates are installed in a standard location where the |
| 22664 | # compiler will automatically find them then these options should not be |
| 22665 | # required. |
| 22666 | |
| 22667 | # |
| 22668 | # Most delegates have includes in the same directory as the library, but not all... |
| 22669 | # |
| 22670 | # Includes |
| 22671 | for dir in bzlib fftw fpx jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include magick png tiff/libtiff ttf/include wand wmf/include xml/include zlib; do |
| 22672 | if test -d "$builddir/$dir"; then |
| 22673 | CPPFLAGS="$CPPFLAGS -I$builddir/$dir" |
| 22674 | else |
| 22675 | if test -d "$srcdirfull/$dir"; then |
| 22676 | CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir" |
| 22677 | fi |
| 22678 | fi |
| 22679 | done |
| 22680 | |
| 22681 | # Libraries |
| 22682 | for dir in bzlib fftw fpx jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src magick png tiff/libtiff ttf/objs wand wmf/src xml zlib; do |
| 22683 | if test -d "$builddir/$dir/.libs"; then |
| 22684 | LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs" |
| 22685 | else |
| 22686 | if test -d "$srcdirfull/$dir/.libs"; then |
| 22687 | LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs" |
| 22688 | fi |
| 22689 | fi |
| 22690 | if test -d "$builddir/$dir"; then |
| 22691 | LDFLAGS="$LDFLAGS -L$builddir/$dir" |
| 22692 | else |
| 22693 | if test -d "$srcdirfull/$dir"; then |
| 22694 | LDFLAGS="$LDFLAGS -L$srcdirfull/$dir" |
| 22695 | fi |
| 22696 | fi |
| 22697 | done |
| 22698 | fi |
| 22699 | |
| 22700 | # Assume that delegate headers reside under same directory as ImageMagick |
| 22701 | # installation prefix. |
| 22702 | MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS" |
| 22703 | |
| 22704 | # |
| 22705 | # Find the X11 RGB database |
| 22706 | # |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22708 | $as_echo_n "checking for X11 configure files... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22709 | if test "${im_cv_x_configure+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22710 | $as_echo_n "(cached) " >&6 |
| 22711 | else |
| 22712 | # Look for the header file in a standard set of common directories. |
| 22713 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 22714 | for ac_dir in \ |
| 22715 | /lib/usr/lib/X11 \ |
| 22716 | /usr/X11/lib \ |
| 22717 | /usr/X11R4/lib \ |
| 22718 | /usr/X11R5/lib \ |
| 22719 | /usr/X11R6/lib \ |
| 22720 | /usr/X11R7/lib \ |
| 22721 | /usr/X386/lib \ |
| 22722 | /usr/XFree86/lib/X11 \ |
| 22723 | /usr/athena/lib \ |
| 22724 | /usr/lib \ |
| 22725 | /usr/lib/X11 \ |
| 22726 | /usr/lib/X11R4 \ |
| 22727 | /usr/lib/X11R5 \ |
| 22728 | /usr/lib/X11R6 \ |
| 22729 | /usr/lib/X11R7 \ |
| 22730 | /usr/local/X11/lib \ |
| 22731 | /usr/local/X11R4/lib \ |
| 22732 | /usr/local/X11R5/lib \ |
| 22733 | /usr/local/X11R6/lib \ |
| 22734 | /usr/local/lib \ |
| 22735 | /usr/local/lib/X11 \ |
| 22736 | /usr/local/lib/X11R4 \ |
| 22737 | /usr/local/lib/X11R5 \ |
| 22738 | /usr/local/lib/X11R6 \ |
| 22739 | /usr/local/lib/X11R7 \ |
| 22740 | /usr/local/x11r5/lib \ |
| 22741 | /usr/lpp/Xamples/lib \ |
| 22742 | /usr/openwin/lib \ |
| 22743 | /usr/openwin/share/lib \ |
| 22744 | /usr/unsupported/lib \ |
| 22745 | /usr/x386/lib \ |
| 22746 | ; do |
| 22747 | if test -f "$ac_dir/X11/rgb.txt"; then |
| 22748 | im_cv_x_configure="$ac_dir/X11/" |
| 22749 | break |
| 22750 | elif test -f "$ac_dir/rgb.txt"; then |
| 22751 | im_cv_x_configure="$ac_dir/" |
| 22752 | break |
| 22753 | fi |
| 22754 | |
| 22755 | done |
| 22756 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22758 | $as_echo "$im_cv_x_configure" >&6; } |
| 22759 | X11_CONFIGURE_PATH="$im_cv_x_configure" |
| 22760 | case "${build_os}" in |
| 22761 | mingw* ) |
| 22762 | X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1` |
| 22763 | ;; |
| 22764 | esac |
| 22765 | |
| 22766 | cat >>confdefs.h <<_ACEOF |
| 22767 | #define X11_CONFIGURE_PATH "$X11ConfigurePath" |
| 22768 | _ACEOF |
| 22769 | |
| 22770 | |
| 22771 | # |
| 22772 | # Find OpenMP library |
| 22773 | # |
| 22774 | GOMP_LIBS='' |
| 22775 | if test "$enable_openmp" != 'no'; then |
| 22776 | if test "${GCC}" = "yes"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22778 | $as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22779 | if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22780 | $as_echo_n "(cached) " >&6 |
| 22781 | else |
| 22782 | ac_check_lib_save_LIBS=$LIBS |
| 22783 | LIBS="-lgomp $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22784 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22785 | /* end confdefs.h. */ |
| 22786 | |
| 22787 | /* Override any GCC internal prototype to avoid an error. |
| 22788 | Use char because int might match the return type of a GCC |
| 22789 | builtin and then its argument prototype would still apply. */ |
| 22790 | #ifdef __cplusplus |
| 22791 | extern "C" |
| 22792 | #endif |
| 22793 | char GOMP_parallel_start (); |
| 22794 | int |
| 22795 | main () |
| 22796 | { |
| 22797 | return GOMP_parallel_start (); |
| 22798 | ; |
| 22799 | return 0; |
| 22800 | } |
| 22801 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22802 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22803 | ac_cv_lib_gomp_GOMP_parallel_start=yes |
| 22804 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22805 | ac_cv_lib_gomp_GOMP_parallel_start=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22806 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22807 | rm -f core conftest.err conftest.$ac_objext \ |
| 22808 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22809 | LIBS=$ac_check_lib_save_LIBS |
| 22810 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22812 | $as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22813 | if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22814 | GOMP_LIBS="-lgomp" |
| 22815 | fi |
| 22816 | # gcc |
| 22817 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22819 | $as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22820 | if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22821 | $as_echo_n "(cached) " >&6 |
| 22822 | else |
| 22823 | ac_check_lib_save_LIBS=$LIBS |
| 22824 | LIBS="-lmtsk $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22825 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22826 | /* end confdefs.h. */ |
| 22827 | |
| 22828 | /* Override any GCC internal prototype to avoid an error. |
| 22829 | Use char because int might match the return type of a GCC |
| 22830 | builtin and then its argument prototype would still apply. */ |
| 22831 | #ifdef __cplusplus |
| 22832 | extern "C" |
| 22833 | #endif |
| 22834 | char sunw_mp_register_warn (); |
| 22835 | int |
| 22836 | main () |
| 22837 | { |
| 22838 | return sunw_mp_register_warn (); |
| 22839 | ; |
| 22840 | return 0; |
| 22841 | } |
| 22842 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22843 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22844 | ac_cv_lib_mtsk_sunw_mp_register_warn=yes |
| 22845 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22846 | ac_cv_lib_mtsk_sunw_mp_register_warn=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22847 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22848 | rm -f core conftest.err conftest.$ac_objext \ |
| 22849 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22850 | LIBS=$ac_check_lib_save_LIBS |
| 22851 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22853 | $as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22854 | if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22855 | GOMP_LIBS="-lmtsk" |
| 22856 | fi |
| 22857 | # solaris cc |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22859 | $as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22860 | if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22861 | $as_echo_n "(cached) " >&6 |
| 22862 | else |
| 22863 | ac_check_lib_save_LIBS=$LIBS |
| 22864 | LIBS="-lxlsmp $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22865 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22866 | /* end confdefs.h. */ |
| 22867 | |
| 22868 | /* Override any GCC internal prototype to avoid an error. |
| 22869 | Use char because int might match the return type of a GCC |
| 22870 | builtin and then its argument prototype would still apply. */ |
| 22871 | #ifdef __cplusplus |
| 22872 | extern "C" |
| 22873 | #endif |
| 22874 | char _xlsmpFlush (); |
| 22875 | int |
| 22876 | main () |
| 22877 | { |
| 22878 | return _xlsmpFlush (); |
| 22879 | ; |
| 22880 | return 0; |
| 22881 | } |
| 22882 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22883 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22884 | ac_cv_lib_xlsmp__xlsmpFlush=yes |
| 22885 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22886 | ac_cv_lib_xlsmp__xlsmpFlush=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22887 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22888 | rm -f core conftest.err conftest.$ac_objext \ |
| 22889 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22890 | LIBS=$ac_check_lib_save_LIBS |
| 22891 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22893 | $as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22894 | if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22895 | GOMP_LIBS="-lxlsmp" |
| 22896 | fi |
| 22897 | # AIX xlc |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22898 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22899 | $as_echo_n "checking for mp_destroy in -lmp... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22900 | if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22901 | $as_echo_n "(cached) " >&6 |
| 22902 | else |
| 22903 | ac_check_lib_save_LIBS=$LIBS |
| 22904 | LIBS="-lmp $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22905 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22906 | /* end confdefs.h. */ |
| 22907 | |
| 22908 | /* Override any GCC internal prototype to avoid an error. |
| 22909 | Use char because int might match the return type of a GCC |
| 22910 | builtin and then its argument prototype would still apply. */ |
| 22911 | #ifdef __cplusplus |
| 22912 | extern "C" |
| 22913 | #endif |
| 22914 | char mp_destroy (); |
| 22915 | int |
| 22916 | main () |
| 22917 | { |
| 22918 | return mp_destroy (); |
| 22919 | ; |
| 22920 | return 0; |
| 22921 | } |
| 22922 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22923 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22924 | ac_cv_lib_mp_mp_destroy=yes |
| 22925 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22926 | ac_cv_lib_mp_mp_destroy=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22927 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22928 | rm -f core conftest.err conftest.$ac_objext \ |
| 22929 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22930 | LIBS=$ac_check_lib_save_LIBS |
| 22931 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22933 | $as_echo "$ac_cv_lib_mp_mp_destroy" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22934 | if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22935 | GOMP_LIBS="-lmp" |
| 22936 | fi |
| 22937 | # SGI IRIX 6.5 MIPSpro C/C++ |
| 22938 | fi |
| 22939 | LIBS="$GOMP_LIBS $LIBS" |
| 22940 | fi |
| 22941 | |
| 22942 | |
| 22943 | # |
| 22944 | # Find Posix threads library |
| 22945 | # |
| 22946 | THREAD_LIBS='' |
| 22947 | if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then |
| 22948 | |
| 22949 | if test "x$PTHREAD_LIBS" = "x"; then |
| 22950 | case "${host_cpu}-${host_os}" in |
| 22951 | *-freebsd*) |
| 22952 | |
| 22953 | |
| 22954 | |
| 22955 | ac_ext=c |
| 22956 | ac_cpp='$CPP $CPPFLAGS' |
| 22957 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22958 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22959 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 22960 | |
| 22961 | magick_pthread_lib_ok=no |
| 22962 | |
| 22963 | LIB=-lc_r |
| 22964 | save_LIBS="$LIBS" |
| 22965 | LIBS="$LIBS $LIB" |
| 22966 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22968 | $as_echo_n "checking for the pthreads library $LIB... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22969 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22970 | /* end confdefs.h. */ |
| 22971 | #include <pthread.h> |
| 22972 | int |
| 22973 | main () |
| 22974 | { |
| 22975 | pthread_t th; |
| 22976 | pthread_join(th, 0); |
| 22977 | pthread_attr_init(0); |
| 22978 | pthread_cleanup_push(0, 0); |
| 22979 | pthread_create(0,0,0,0); |
| 22980 | pthread_cleanup_pop(0); |
| 22981 | ; |
| 22982 | return 0; |
| 22983 | } |
| 22984 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22985 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22986 | magick_pthread_lib_ok=yes |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22987 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22988 | rm -f core conftest.err conftest.$ac_objext \ |
| 22989 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22990 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 22991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22992 | $as_echo "${magick_pthread_lib_ok}" >&6; } |
| 22993 | if test "$magick_pthread_lib_ok" = yes |
| 22994 | then |
| 22995 | PTHREAD_LIBS=-lc_r |
| 22996 | : |
| 22997 | else |
| 22998 | |
| 22999 | : |
| 23000 | fi |
| 23001 | |
| 23002 | LIBS="$save_LIBS" |
| 23003 | |
| 23004 | ac_ext=c |
| 23005 | ac_cpp='$CPP $CPPFLAGS' |
| 23006 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 23007 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 23008 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 23009 | |
| 23010 | ;; |
| 23011 | esac |
| 23012 | fi |
| 23013 | |
| 23014 | for lib in pthread pthreads; do |
| 23015 | if test "x$PTHREAD_LIBS" = "x"; then |
| 23016 | |
| 23017 | |
| 23018 | |
| 23019 | ac_ext=c |
| 23020 | ac_cpp='$CPP $CPPFLAGS' |
| 23021 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 23022 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 23023 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 23024 | |
| 23025 | magick_pthread_lib_ok=no |
| 23026 | |
| 23027 | LIB=-l$lib |
| 23028 | save_LIBS="$LIBS" |
| 23029 | LIBS="$LIBS $LIB" |
| 23030 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23031 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23032 | $as_echo_n "checking for the pthreads library $LIB... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23033 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23034 | /* end confdefs.h. */ |
| 23035 | #include <pthread.h> |
| 23036 | int |
| 23037 | main () |
| 23038 | { |
| 23039 | pthread_t th; |
| 23040 | pthread_join(th, 0); |
| 23041 | pthread_attr_init(0); |
| 23042 | pthread_cleanup_push(0, 0); |
| 23043 | pthread_create(0,0,0,0); |
| 23044 | pthread_cleanup_pop(0); |
| 23045 | ; |
| 23046 | return 0; |
| 23047 | } |
| 23048 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23049 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23050 | magick_pthread_lib_ok=yes |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23051 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23052 | rm -f core conftest.err conftest.$ac_objext \ |
| 23053 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23054 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23056 | $as_echo "${magick_pthread_lib_ok}" >&6; } |
| 23057 | if test "$magick_pthread_lib_ok" = yes |
| 23058 | then |
| 23059 | PTHREAD_LIBS=-l$lib |
| 23060 | : |
| 23061 | else |
| 23062 | |
| 23063 | : |
| 23064 | fi |
| 23065 | |
| 23066 | LIBS="$save_LIBS" |
| 23067 | |
| 23068 | ac_ext=c |
| 23069 | ac_cpp='$CPP $CPPFLAGS' |
| 23070 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 23071 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 23072 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 23073 | |
| 23074 | |
| 23075 | fi |
| 23076 | done |
| 23077 | |
| 23078 | THREAD_LIBS="$PTHREAD_LIBS" |
| 23079 | LIBS="$LIBS $THREAD_LIBS" |
| 23080 | fi |
| 23081 | |
| 23082 | |
| 23083 | # |
| 23084 | # Check for umem. |
| 23085 | # |
| 23086 | have_umem='no' |
| 23087 | UMEM_LIBS='' |
| 23088 | if test "$with_umem" != 'no'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23089 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23090 | $as_echo_n "checking for UMEM support ... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23092 | $as_echo "" >&6; } |
| 23093 | failed=0 |
| 23094 | passed=0 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23095 | ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default" |
| 23096 | if test "x$ac_cv_header_umem_h" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23097 | passed=`expr $passed + 1` |
| 23098 | else |
| 23099 | failed=`expr $failed + 1` |
| 23100 | fi |
| 23101 | |
| 23102 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23104 | $as_echo_n "checking for umem_alloc in -lumem... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23105 | if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23106 | $as_echo_n "(cached) " >&6 |
| 23107 | else |
| 23108 | ac_check_lib_save_LIBS=$LIBS |
| 23109 | LIBS="-lumem $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23110 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23111 | /* end confdefs.h. */ |
| 23112 | |
| 23113 | /* Override any GCC internal prototype to avoid an error. |
| 23114 | Use char because int might match the return type of a GCC |
| 23115 | builtin and then its argument prototype would still apply. */ |
| 23116 | #ifdef __cplusplus |
| 23117 | extern "C" |
| 23118 | #endif |
| 23119 | char umem_alloc (); |
| 23120 | int |
| 23121 | main () |
| 23122 | { |
| 23123 | return umem_alloc (); |
| 23124 | ; |
| 23125 | return 0; |
| 23126 | } |
| 23127 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23128 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23129 | ac_cv_lib_umem_umem_alloc=yes |
| 23130 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23131 | ac_cv_lib_umem_umem_alloc=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23132 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23133 | rm -f core conftest.err conftest.$ac_objext \ |
| 23134 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23135 | LIBS=$ac_check_lib_save_LIBS |
| 23136 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23138 | $as_echo "$ac_cv_lib_umem_umem_alloc" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23139 | if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23140 | passed=`expr $passed + 1` |
| 23141 | else |
| 23142 | failed=`expr $failed + 1` |
| 23143 | fi |
| 23144 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23146 | $as_echo_n "checking for umem_free in -lumem... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23147 | if test "${ac_cv_lib_umem_umem_free+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23148 | $as_echo_n "(cached) " >&6 |
| 23149 | else |
| 23150 | ac_check_lib_save_LIBS=$LIBS |
| 23151 | LIBS="-lumem $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23152 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23153 | /* end confdefs.h. */ |
| 23154 | |
| 23155 | /* Override any GCC internal prototype to avoid an error. |
| 23156 | Use char because int might match the return type of a GCC |
| 23157 | builtin and then its argument prototype would still apply. */ |
| 23158 | #ifdef __cplusplus |
| 23159 | extern "C" |
| 23160 | #endif |
| 23161 | char umem_free (); |
| 23162 | int |
| 23163 | main () |
| 23164 | { |
| 23165 | return umem_free (); |
| 23166 | ; |
| 23167 | return 0; |
| 23168 | } |
| 23169 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23170 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23171 | ac_cv_lib_umem_umem_free=yes |
| 23172 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23173 | ac_cv_lib_umem_umem_free=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23174 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23175 | rm -f core conftest.err conftest.$ac_objext \ |
| 23176 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23177 | LIBS=$ac_check_lib_save_LIBS |
| 23178 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23180 | $as_echo "$ac_cv_lib_umem_umem_free" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23181 | if test "x$ac_cv_lib_umem_umem_free" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23182 | passed=`expr $passed + 1` |
| 23183 | else |
| 23184 | failed=`expr $failed + 1` |
| 23185 | fi |
| 23186 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23188 | $as_echo_n "checking if umem memory allocation library is complete... " >&6; } |
| 23189 | if test $passed -gt 0; then |
| 23190 | if test $failed -gt 0; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23192 | $as_echo "no -- some components failed test" >&6; } |
| 23193 | have_umem='no (failed tests)' |
| 23194 | else |
| 23195 | UMEM_LIBS='-lumem' |
| 23196 | LIBS="$UMEM_LIBS $LIBS" |
| 23197 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23198 | $as_echo "#define HasUMEM 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23199 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23201 | $as_echo "yes" >&6; } |
| 23202 | have_umem='yes' |
| 23203 | fi |
| 23204 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23206 | $as_echo "no" >&6; } |
| 23207 | fi |
| 23208 | fi |
| 23209 | if test "$have_umem" = 'yes'; then |
| 23210 | HasUMEM_TRUE= |
| 23211 | HasUMEM_FALSE='#' |
| 23212 | else |
| 23213 | HasUMEM_TRUE='#' |
| 23214 | HasUMEM_FALSE= |
| 23215 | fi |
| 23216 | |
| 23217 | |
| 23218 | |
| 23219 | # |
| 23220 | # Add support for ccmalloc memory debugging library if requested |
| 23221 | # |
| 23222 | have_ccmalloc='no' |
| 23223 | CCMALLOC_LIBS='' |
| 23224 | if test "$enable_ccmalloc" = 'yes'; then |
| 23225 | # Extract the first word of "ccmalloc", so it can be a program name with args. |
| 23226 | set dummy ccmalloc; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23228 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23229 | if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23230 | $as_echo_n "(cached) " >&6 |
| 23231 | else |
| 23232 | case $CCMALLOCDelegate in |
| 23233 | [\\/]* | ?:[\\/]*) |
| 23234 | ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path. |
| 23235 | ;; |
| 23236 | *) |
| 23237 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 23238 | for as_dir in $PATH |
| 23239 | do |
| 23240 | IFS=$as_save_IFS |
| 23241 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23242 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23243 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 23244 | ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23245 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23246 | break 2 |
| 23247 | fi |
| 23248 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23249 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23250 | IFS=$as_save_IFS |
| 23251 | |
| 23252 | ;; |
| 23253 | esac |
| 23254 | fi |
| 23255 | CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate |
| 23256 | if test -n "$CCMALLOCDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23258 | $as_echo "$CCMALLOCDelegate" >&6; } |
| 23259 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23261 | $as_echo "no" >&6; } |
| 23262 | fi |
| 23263 | |
| 23264 | |
| 23265 | if test -n "$CCMALLOCDelegate"; then |
| 23266 | eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'` |
| 23267 | OLIBS="$LIBS" |
| 23268 | # Assume that gcc is used with ccmalloc. |
| 23269 | LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23270 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23271 | $as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23272 | if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23273 | $as_echo_n "(cached) " >&6 |
| 23274 | else |
| 23275 | ac_check_lib_save_LIBS=$LIBS |
| 23276 | LIBS="-lccmalloc -ldl $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23277 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23278 | /* end confdefs.h. */ |
| 23279 | |
| 23280 | /* Override any GCC internal prototype to avoid an error. |
| 23281 | Use char because int might match the return type of a GCC |
| 23282 | builtin and then its argument prototype would still apply. */ |
| 23283 | #ifdef __cplusplus |
| 23284 | extern "C" |
| 23285 | #endif |
| 23286 | char ccmalloc_malloc (); |
| 23287 | int |
| 23288 | main () |
| 23289 | { |
| 23290 | return ccmalloc_malloc (); |
| 23291 | ; |
| 23292 | return 0; |
| 23293 | } |
| 23294 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23295 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23296 | ac_cv_lib_ccmalloc_ccmalloc_malloc=yes |
| 23297 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23298 | ac_cv_lib_ccmalloc_ccmalloc_malloc=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23299 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23300 | rm -f core conftest.err conftest.$ac_objext \ |
| 23301 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23302 | LIBS=$ac_check_lib_save_LIBS |
| 23303 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23305 | $as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23306 | if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23307 | CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl" |
| 23308 | fi |
| 23309 | |
| 23310 | if test -n "$CCMALLOC_LIBS"; then |
| 23311 | LIBS="$OLIBS" |
| 23312 | LIBS="$LIBS $CCMALLOC_LIBS" |
| 23313 | have_ccmalloc='yes' |
| 23314 | else |
| 23315 | LIBS="$OLIBS" |
| 23316 | fi |
| 23317 | fi |
| 23318 | fi |
| 23319 | |
| 23320 | # |
| 23321 | # Add support for efence memory debugging library if requested |
| 23322 | # |
| 23323 | if test "$enable_efence" = 'yes'; then |
| 23324 | EFENCE_LIBS='-lefence' |
| 23325 | LIBS="$EFENCE_LIBS $LIBS" |
| 23326 | fi |
| 23327 | |
| 23328 | # |
| 23329 | # Find math library |
| 23330 | # |
| 23331 | MATH_LIBS='' |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23332 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23333 | $as_echo_n "checking for sqrt in -lm... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23334 | if test "${ac_cv_lib_m_sqrt+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23335 | $as_echo_n "(cached) " >&6 |
| 23336 | else |
| 23337 | ac_check_lib_save_LIBS=$LIBS |
| 23338 | LIBS="-lm $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23339 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23340 | /* end confdefs.h. */ |
| 23341 | |
| 23342 | /* Override any GCC internal prototype to avoid an error. |
| 23343 | Use char because int might match the return type of a GCC |
| 23344 | builtin and then its argument prototype would still apply. */ |
| 23345 | #ifdef __cplusplus |
| 23346 | extern "C" |
| 23347 | #endif |
| 23348 | char sqrt (); |
| 23349 | int |
| 23350 | main () |
| 23351 | { |
| 23352 | return sqrt (); |
| 23353 | ; |
| 23354 | return 0; |
| 23355 | } |
| 23356 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23357 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23358 | ac_cv_lib_m_sqrt=yes |
| 23359 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23360 | ac_cv_lib_m_sqrt=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23361 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23362 | rm -f core conftest.err conftest.$ac_objext \ |
| 23363 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23364 | LIBS=$ac_check_lib_save_LIBS |
| 23365 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23367 | $as_echo "$ac_cv_lib_m_sqrt" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23368 | if test "x$ac_cv_lib_m_sqrt" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23369 | MATH_LIBS="-lm" |
| 23370 | fi |
| 23371 | |
| 23372 | LIBS="$MATH_LIBS $LIBS" |
| 23373 | |
| 23374 | |
| 23375 | |
| 23376 | # |
| 23377 | # Check for BZLIB |
| 23378 | # |
| 23379 | |
| 23380 | |
| 23381 | # Check whether --with-bzlib was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23382 | if test "${with_bzlib+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23383 | withval=$with_bzlib; with_bzlib=$withval |
| 23384 | else |
| 23385 | with_bzlib='yes' |
| 23386 | fi |
| 23387 | |
| 23388 | |
| 23389 | if test "$with_bzlib" != 'yes'; then |
| 23390 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib " |
| 23391 | fi |
| 23392 | |
| 23393 | have_bzlib='no' |
| 23394 | if test "$with_bzlib" != 'no'; then |
| 23395 | BZLIB_LIBS='' |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23397 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23399 | $as_echo_n "checking for BZLIB... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23401 | $as_echo "" >&6; } |
| 23402 | failed=0 |
| 23403 | passed=0 |
| 23404 | found_libbz=0 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23405 | ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default" |
| 23406 | if test "x$ac_cv_header_bzlib_h" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23407 | passed=`expr $passed + 1` |
| 23408 | else |
| 23409 | failed=`expr $failed + 1` |
| 23410 | fi |
| 23411 | |
| 23412 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23414 | $as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23415 | if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23416 | $as_echo_n "(cached) " >&6 |
| 23417 | else |
| 23418 | ac_check_lib_save_LIBS=$LIBS |
| 23419 | LIBS="-lbz2 $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23420 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23421 | /* end confdefs.h. */ |
| 23422 | |
| 23423 | /* Override any GCC internal prototype to avoid an error. |
| 23424 | Use char because int might match the return type of a GCC |
| 23425 | builtin and then its argument prototype would still apply. */ |
| 23426 | #ifdef __cplusplus |
| 23427 | extern "C" |
| 23428 | #endif |
| 23429 | char BZ2_bzDecompress (); |
| 23430 | int |
| 23431 | main () |
| 23432 | { |
| 23433 | return BZ2_bzDecompress (); |
| 23434 | ; |
| 23435 | return 0; |
| 23436 | } |
| 23437 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23438 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23439 | ac_cv_lib_bz2_BZ2_bzDecompress=yes |
| 23440 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23441 | ac_cv_lib_bz2_BZ2_bzDecompress=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23442 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23443 | rm -f core conftest.err conftest.$ac_objext \ |
| 23444 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23445 | LIBS=$ac_check_lib_save_LIBS |
| 23446 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23448 | $as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23449 | if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23450 | found_libbz=`expr $found_libbz + 1` |
| 23451 | fi |
| 23452 | |
| 23453 | if test "$native_win32_build" = 'yes'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23454 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23455 | $as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23456 | if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23457 | $as_echo_n "(cached) " >&6 |
| 23458 | else |
| 23459 | ac_check_lib_save_LIBS=$LIBS |
| 23460 | LIBS="-lbz2 $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23461 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23462 | /* end confdefs.h. */ |
| 23463 | |
| 23464 | /* Override any GCC internal prototype to avoid an error. |
| 23465 | Use char because int might match the return type of a GCC |
| 23466 | builtin and then its argument prototype would still apply. */ |
| 23467 | #ifdef __cplusplus |
| 23468 | extern "C" |
| 23469 | #endif |
| 23470 | char _imp__BZ2_decompress (); |
| 23471 | int |
| 23472 | main () |
| 23473 | { |
| 23474 | return _imp__BZ2_decompress (); |
| 23475 | ; |
| 23476 | return 0; |
| 23477 | } |
| 23478 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23479 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23480 | ac_cv_lib_bz2__imp__BZ2_decompress=yes |
| 23481 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23482 | ac_cv_lib_bz2__imp__BZ2_decompress=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23483 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23484 | rm -f core conftest.err conftest.$ac_objext \ |
| 23485 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23486 | LIBS=$ac_check_lib_save_LIBS |
| 23487 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23489 | $as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23490 | if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23491 | found_libbz=`expr $found_libbz + 1` |
| 23492 | fi |
| 23493 | |
| 23494 | fi |
| 23495 | if test $found_libbz -gt 0; then |
| 23496 | passed=`expr $passed + 1` |
| 23497 | else |
| 23498 | failed=`expr $failed + 1` |
| 23499 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23501 | $as_echo_n "checking if BZLIB package is complete... " >&6; } |
| 23502 | if test $passed -gt 0; then |
| 23503 | if test $failed -gt 0; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23505 | $as_echo "no -- some components failed test" >&6; } |
| 23506 | have_bzlib='no (failed tests)' |
| 23507 | else |
| 23508 | BZLIB_LIBS='-lbz2' |
| 23509 | LIBS="$BZLIB_LIBS $LIBS" |
| 23510 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23511 | $as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23512 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23514 | $as_echo "yes" >&6; } |
| 23515 | have_bzlib='yes' |
| 23516 | fi |
| 23517 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23519 | $as_echo "no" >&6; } |
| 23520 | fi |
| 23521 | fi |
| 23522 | if test "$have_bzlib" = 'yes'; then |
| 23523 | BZLIB_DELEGATE_TRUE= |
| 23524 | BZLIB_DELEGATE_FALSE='#' |
| 23525 | else |
| 23526 | BZLIB_DELEGATE_TRUE='#' |
| 23527 | BZLIB_DELEGATE_FALSE= |
| 23528 | fi |
| 23529 | |
| 23530 | |
| 23531 | |
| 23532 | # |
| 23533 | # Find the X11 include and library directories. |
| 23534 | # |
| 23535 | IPC_LIBS='' |
| 23536 | X11_LIBS='' |
| 23537 | XEXT_LIBS='' |
| 23538 | XT_LIBS='' |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 23540 | $as_echo_n "checking for X... " >&6; } |
| 23541 | |
| 23542 | |
| 23543 | # Check whether --with-x was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23544 | if test "${with_x+set}" = set; then : |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 23545 | withval=$with_x; |
| 23546 | fi |
| 23547 | |
| 23548 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
| 23549 | if test "x$with_x" = xno; then |
| 23550 | # The user explicitly disabled X. |
| 23551 | have_x=disabled |
| 23552 | else |
| 23553 | case $x_includes,$x_libraries in #( |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23554 | *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #( |
| 23555 | *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then : |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 23556 | $as_echo_n "(cached) " >&6 |
| 23557 | else |
| 23558 | # One or both of the vars are not set, and there is no cached value. |
| 23559 | ac_x_includes=no ac_x_libraries=no |
| 23560 | rm -f -r conftest.dir |
| 23561 | if mkdir conftest.dir; then |
| 23562 | cd conftest.dir |
| 23563 | cat >Imakefile <<'_ACEOF' |
| 23564 | incroot: |
| 23565 | @echo incroot='${INCROOT}' |
| 23566 | usrlibdir: |
| 23567 | @echo usrlibdir='${USRLIBDIR}' |
| 23568 | libdir: |
| 23569 | @echo libdir='${LIBDIR}' |
| 23570 | _ACEOF |
| 23571 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then |
| 23572 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 23573 | for ac_var in incroot usrlibdir libdir; do |
| 23574 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" |
| 23575 | done |
| 23576 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
| 23577 | for ac_extension in a so sl dylib la dll; do |
| 23578 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && |
| 23579 | test -f "$ac_im_libdir/libX11.$ac_extension"; then |
| 23580 | ac_im_usrlibdir=$ac_im_libdir; break |
| 23581 | fi |
| 23582 | done |
| 23583 | # Screen out bogus values from the imake configuration. They are |
| 23584 | # bogus both because they are the default anyway, and because |
| 23585 | # using them would break gcc on systems where it needs fixed includes. |
| 23586 | case $ac_im_incroot in |
| 23587 | /usr/include) ac_x_includes= ;; |
| 23588 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
| 23589 | esac |
| 23590 | case $ac_im_usrlibdir in |
| 23591 | /usr/lib | /usr/lib64 | /lib | /lib64) ;; |
| 23592 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
| 23593 | esac |
| 23594 | fi |
| 23595 | cd .. |
| 23596 | rm -f -r conftest.dir |
| 23597 | fi |
| 23598 | |
| 23599 | # Standard set of common directories for X headers. |
| 23600 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 23601 | ac_x_header_dirs=' |
| 23602 | /usr/X11/include |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23603 | /usr/X11R7/include |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 23604 | /usr/X11R6/include |
| 23605 | /usr/X11R5/include |
| 23606 | /usr/X11R4/include |
| 23607 | |
| 23608 | /usr/include/X11 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23609 | /usr/include/X11R7 |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 23610 | /usr/include/X11R6 |
| 23611 | /usr/include/X11R5 |
| 23612 | /usr/include/X11R4 |
| 23613 | |
| 23614 | /usr/local/X11/include |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23615 | /usr/local/X11R7/include |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 23616 | /usr/local/X11R6/include |
| 23617 | /usr/local/X11R5/include |
| 23618 | /usr/local/X11R4/include |
| 23619 | |
| 23620 | /usr/local/include/X11 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23621 | /usr/local/include/X11R7 |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 23622 | /usr/local/include/X11R6 |
| 23623 | /usr/local/include/X11R5 |
| 23624 | /usr/local/include/X11R4 |
| 23625 | |
| 23626 | /usr/X386/include |
| 23627 | /usr/x386/include |
| 23628 | /usr/XFree86/include/X11 |
| 23629 | |
| 23630 | /usr/include |
| 23631 | /usr/local/include |
| 23632 | /usr/unsupported/include |
| 23633 | /usr/athena/include |
| 23634 | /usr/local/x11r5/include |
| 23635 | /usr/lpp/Xamples/include |
| 23636 | |
| 23637 | /usr/openwin/include |
| 23638 | /usr/openwin/share/include' |
| 23639 | |
| 23640 | if test "$ac_x_includes" = no; then |
| 23641 | # Guess where to find include files, by looking for Xlib.h. |
| 23642 | # First, try using that file with no special directory specified. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23643 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 23644 | /* end confdefs.h. */ |
| 23645 | #include <X11/Xlib.h> |
| 23646 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23647 | if ac_fn_c_try_cpp "$LINENO"; then : |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 23648 | # We can compile using X headers with no special include directory. |
| 23649 | ac_x_includes= |
| 23650 | else |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 23651 | for ac_dir in $ac_x_header_dirs; do |
| 23652 | if test -r "$ac_dir/X11/Xlib.h"; then |
| 23653 | ac_x_includes=$ac_dir |
| 23654 | break |
| 23655 | fi |
| 23656 | done |
| 23657 | fi |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 23658 | rm -f conftest.err conftest.$ac_ext |
| 23659 | fi # $ac_x_includes = no |
| 23660 | |
| 23661 | if test "$ac_x_libraries" = no; then |
| 23662 | # Check for the libraries. |
| 23663 | # See if we find them without any special options. |
| 23664 | # Don't add to $LIBS permanently. |
| 23665 | ac_save_LIBS=$LIBS |
| 23666 | LIBS="-lX11 $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23667 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 23668 | /* end confdefs.h. */ |
| 23669 | #include <X11/Xlib.h> |
| 23670 | int |
| 23671 | main () |
| 23672 | { |
| 23673 | XrmInitialize () |
| 23674 | ; |
| 23675 | return 0; |
| 23676 | } |
| 23677 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23678 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 23679 | LIBS=$ac_save_LIBS |
| 23680 | # We can link X programs with no special library path. |
| 23681 | ac_x_libraries= |
| 23682 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23683 | LIBS=$ac_save_LIBS |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 23684 | for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
| 23685 | do |
| 23686 | # Don't even attempt the hair of trying to link an X program! |
| 23687 | for ac_extension in a so sl dylib la dll; do |
| 23688 | if test -r "$ac_dir/libX11.$ac_extension"; then |
| 23689 | ac_x_libraries=$ac_dir |
| 23690 | break 2 |
| 23691 | fi |
| 23692 | done |
| 23693 | done |
| 23694 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23695 | rm -f core conftest.err conftest.$ac_objext \ |
| 23696 | conftest$ac_exeext conftest.$ac_ext |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 23697 | fi # $ac_x_libraries = no |
| 23698 | |
| 23699 | case $ac_x_includes,$ac_x_libraries in #( |
| 23700 | no,* | *,no | *\'*) |
| 23701 | # Didn't find X, or a directory has "'" in its name. |
| 23702 | ac_cv_have_x="have_x=no";; #( |
| 23703 | *) |
| 23704 | # Record where we found X for the cache. |
| 23705 | ac_cv_have_x="have_x=yes\ |
| 23706 | ac_x_includes='$ac_x_includes'\ |
| 23707 | ac_x_libraries='$ac_x_libraries'" |
| 23708 | esac |
| 23709 | fi |
| 23710 | ;; #( |
| 23711 | *) have_x=yes;; |
| 23712 | esac |
| 23713 | eval "$ac_cv_have_x" |
| 23714 | fi # $with_x != no |
| 23715 | |
| 23716 | if test "$have_x" != yes; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 23718 | $as_echo "$have_x" >&6; } |
| 23719 | no_x=yes |
| 23720 | else |
| 23721 | # If each of the values was on the command line, it overrides each guess. |
| 23722 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| 23723 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
| 23724 | # Update the cache value to reflect the command line values. |
| 23725 | ac_cv_have_x="have_x=yes\ |
| 23726 | ac_x_includes='$x_includes'\ |
| 23727 | ac_x_libraries='$x_libraries'" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 23729 | $as_echo "libraries $x_libraries, headers $x_includes" >&6; } |
| 23730 | fi |
| 23731 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23732 | if test "$no_x" = yes; then |
| 23733 | # Not all programs may use this symbol, but it does not hurt to define it. |
| 23734 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23735 | $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23736 | |
| 23737 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
| 23738 | else |
| 23739 | if test -n "$x_includes"; then |
| 23740 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 23741 | fi |
| 23742 | |
| 23743 | # It would also be nice to do this for all -L options, not just this one. |
| 23744 | if test -n "$x_libraries"; then |
| 23745 | X_LIBS="$X_LIBS -L$x_libraries" |
| 23746 | # For Solaris; some versions of Sun CC require a space after -R and |
| 23747 | # others require no space. Words are not sufficient . . . . |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23749 | $as_echo_n "checking whether -R must be followed by a space... " >&6; } |
| 23750 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
| 23751 | ac_xsave_c_werror_flag=$ac_c_werror_flag |
| 23752 | ac_c_werror_flag=yes |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23753 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23754 | /* end confdefs.h. */ |
| 23755 | |
| 23756 | int |
| 23757 | main () |
| 23758 | { |
| 23759 | |
| 23760 | ; |
| 23761 | return 0; |
| 23762 | } |
| 23763 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23764 | if ac_fn_c_try_link "$LINENO"; then : |
| 23765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23766 | $as_echo "no" >&6; } |
| 23767 | X_LIBS="$X_LIBS -R$x_libraries" |
| 23768 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23769 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
| 23770 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23771 | /* end confdefs.h. */ |
| 23772 | |
| 23773 | int |
| 23774 | main () |
| 23775 | { |
| 23776 | |
| 23777 | ; |
| 23778 | return 0; |
| 23779 | } |
| 23780 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23781 | if ac_fn_c_try_link "$LINENO"; then : |
| 23782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23783 | $as_echo "yes" >&6; } |
| 23784 | X_LIBS="$X_LIBS -R $x_libraries" |
| 23785 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23787 | $as_echo "neither works" >&6; } |
| 23788 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23789 | rm -f core conftest.err conftest.$ac_objext \ |
| 23790 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23791 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23792 | rm -f core conftest.err conftest.$ac_objext \ |
| 23793 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23794 | ac_c_werror_flag=$ac_xsave_c_werror_flag |
| 23795 | LIBS=$ac_xsave_LIBS |
| 23796 | fi |
| 23797 | |
| 23798 | # Check for system-dependent libraries X programs must link with. |
| 23799 | # Do this before checking for the system-independent R6 libraries |
| 23800 | # (-lICE), since we may need -lsocket or whatever for X linking. |
| 23801 | |
| 23802 | if test "$ISC" = yes; then |
| 23803 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
| 23804 | else |
| 23805 | # Martyn Johnson says this is needed for Ultrix, if the X |
| 23806 | # libraries were built with DECnet support. And Karl Berry says |
| 23807 | # the Alpha needs dnet_stub (dnet does not exist). |
| 23808 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23809 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23810 | /* end confdefs.h. */ |
| 23811 | |
| 23812 | /* Override any GCC internal prototype to avoid an error. |
| 23813 | Use char because int might match the return type of a GCC |
| 23814 | builtin and then its argument prototype would still apply. */ |
| 23815 | #ifdef __cplusplus |
| 23816 | extern "C" |
| 23817 | #endif |
| 23818 | char XOpenDisplay (); |
| 23819 | int |
| 23820 | main () |
| 23821 | { |
| 23822 | return XOpenDisplay (); |
| 23823 | ; |
| 23824 | return 0; |
| 23825 | } |
| 23826 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23827 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23828 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23829 | else |
| 23830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23831 | $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23832 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23833 | $as_echo_n "(cached) " >&6 |
| 23834 | else |
| 23835 | ac_check_lib_save_LIBS=$LIBS |
| 23836 | LIBS="-ldnet $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23837 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23838 | /* end confdefs.h. */ |
| 23839 | |
| 23840 | /* Override any GCC internal prototype to avoid an error. |
| 23841 | Use char because int might match the return type of a GCC |
| 23842 | builtin and then its argument prototype would still apply. */ |
| 23843 | #ifdef __cplusplus |
| 23844 | extern "C" |
| 23845 | #endif |
| 23846 | char dnet_ntoa (); |
| 23847 | int |
| 23848 | main () |
| 23849 | { |
| 23850 | return dnet_ntoa (); |
| 23851 | ; |
| 23852 | return 0; |
| 23853 | } |
| 23854 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23855 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23856 | ac_cv_lib_dnet_dnet_ntoa=yes |
| 23857 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23858 | ac_cv_lib_dnet_dnet_ntoa=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23859 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23860 | rm -f core conftest.err conftest.$ac_objext \ |
| 23861 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23862 | LIBS=$ac_check_lib_save_LIBS |
| 23863 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23865 | $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23866 | if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23867 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
| 23868 | fi |
| 23869 | |
| 23870 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23872 | $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23873 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23874 | $as_echo_n "(cached) " >&6 |
| 23875 | else |
| 23876 | ac_check_lib_save_LIBS=$LIBS |
| 23877 | LIBS="-ldnet_stub $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23878 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23879 | /* end confdefs.h. */ |
| 23880 | |
| 23881 | /* Override any GCC internal prototype to avoid an error. |
| 23882 | Use char because int might match the return type of a GCC |
| 23883 | builtin and then its argument prototype would still apply. */ |
| 23884 | #ifdef __cplusplus |
| 23885 | extern "C" |
| 23886 | #endif |
| 23887 | char dnet_ntoa (); |
| 23888 | int |
| 23889 | main () |
| 23890 | { |
| 23891 | return dnet_ntoa (); |
| 23892 | ; |
| 23893 | return 0; |
| 23894 | } |
| 23895 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23896 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23897 | ac_cv_lib_dnet_stub_dnet_ntoa=yes |
| 23898 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23899 | ac_cv_lib_dnet_stub_dnet_ntoa=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23900 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23901 | rm -f core conftest.err conftest.$ac_objext \ |
| 23902 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23903 | LIBS=$ac_check_lib_save_LIBS |
| 23904 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23906 | $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23907 | if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23908 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
| 23909 | fi |
| 23910 | |
| 23911 | fi |
| 23912 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23913 | rm -f core conftest.err conftest.$ac_objext \ |
| 23914 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23915 | LIBS="$ac_xsave_LIBS" |
| 23916 | |
| 23917 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
| 23918 | # to get the SysV transport functions. |
| 23919 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
| 23920 | # needs -lnsl. |
| 23921 | # The nsl library prevents programs from opening the X display |
| 23922 | # on Irix 5.2, according to T.E. Dickey. |
| 23923 | # The functions gethostbyname, getservbyname, and inet_addr are |
| 23924 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23925 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" |
| 23926 | if test "x$ac_cv_func_gethostbyname" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23927 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23928 | fi |
| 23929 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23930 | if test $ac_cv_func_gethostbyname = no; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23932 | $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23933 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23934 | $as_echo_n "(cached) " >&6 |
| 23935 | else |
| 23936 | ac_check_lib_save_LIBS=$LIBS |
| 23937 | LIBS="-lnsl $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23938 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23939 | /* end confdefs.h. */ |
| 23940 | |
| 23941 | /* Override any GCC internal prototype to avoid an error. |
| 23942 | Use char because int might match the return type of a GCC |
| 23943 | builtin and then its argument prototype would still apply. */ |
| 23944 | #ifdef __cplusplus |
| 23945 | extern "C" |
| 23946 | #endif |
| 23947 | char gethostbyname (); |
| 23948 | int |
| 23949 | main () |
| 23950 | { |
| 23951 | return gethostbyname (); |
| 23952 | ; |
| 23953 | return 0; |
| 23954 | } |
| 23955 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23956 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23957 | ac_cv_lib_nsl_gethostbyname=yes |
| 23958 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23959 | ac_cv_lib_nsl_gethostbyname=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23960 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23961 | rm -f core conftest.err conftest.$ac_objext \ |
| 23962 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23963 | LIBS=$ac_check_lib_save_LIBS |
| 23964 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23966 | $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23967 | if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23968 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
| 23969 | fi |
| 23970 | |
| 23971 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23972 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23973 | $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23974 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23975 | $as_echo_n "(cached) " >&6 |
| 23976 | else |
| 23977 | ac_check_lib_save_LIBS=$LIBS |
| 23978 | LIBS="-lbsd $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23979 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23980 | /* end confdefs.h. */ |
| 23981 | |
| 23982 | /* Override any GCC internal prototype to avoid an error. |
| 23983 | Use char because int might match the return type of a GCC |
| 23984 | builtin and then its argument prototype would still apply. */ |
| 23985 | #ifdef __cplusplus |
| 23986 | extern "C" |
| 23987 | #endif |
| 23988 | char gethostbyname (); |
| 23989 | int |
| 23990 | main () |
| 23991 | { |
| 23992 | return gethostbyname (); |
| 23993 | ; |
| 23994 | return 0; |
| 23995 | } |
| 23996 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 23997 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23998 | ac_cv_lib_bsd_gethostbyname=yes |
| 23999 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24000 | ac_cv_lib_bsd_gethostbyname=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24001 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24002 | rm -f core conftest.err conftest.$ac_objext \ |
| 24003 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24004 | LIBS=$ac_check_lib_save_LIBS |
| 24005 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24007 | $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24008 | if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24009 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
| 24010 | fi |
| 24011 | |
| 24012 | fi |
| 24013 | fi |
| 24014 | |
| 24015 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
| 24016 | # socket/setsockopt and other routines are undefined under SCO ODT |
| 24017 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary |
| 24018 | # on later versions), says Simon Leinen: it contains gethostby* |
| 24019 | # variants that don't use the name server (or something). -lsocket |
| 24020 | # must be given before -lnsl if both are needed. We assume that |
| 24021 | # if connect needs -lnsl, so does gethostbyname. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24022 | ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" |
| 24023 | if test "x$ac_cv_func_connect" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24024 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24025 | fi |
| 24026 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24027 | if test $ac_cv_func_connect = no; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24029 | $as_echo_n "checking for connect in -lsocket... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24030 | if test "${ac_cv_lib_socket_connect+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24031 | $as_echo_n "(cached) " >&6 |
| 24032 | else |
| 24033 | ac_check_lib_save_LIBS=$LIBS |
| 24034 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24035 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24036 | /* end confdefs.h. */ |
| 24037 | |
| 24038 | /* Override any GCC internal prototype to avoid an error. |
| 24039 | Use char because int might match the return type of a GCC |
| 24040 | builtin and then its argument prototype would still apply. */ |
| 24041 | #ifdef __cplusplus |
| 24042 | extern "C" |
| 24043 | #endif |
| 24044 | char connect (); |
| 24045 | int |
| 24046 | main () |
| 24047 | { |
| 24048 | return connect (); |
| 24049 | ; |
| 24050 | return 0; |
| 24051 | } |
| 24052 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24053 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24054 | ac_cv_lib_socket_connect=yes |
| 24055 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24056 | ac_cv_lib_socket_connect=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24057 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24058 | rm -f core conftest.err conftest.$ac_objext \ |
| 24059 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24060 | LIBS=$ac_check_lib_save_LIBS |
| 24061 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24063 | $as_echo "$ac_cv_lib_socket_connect" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24064 | if test "x$ac_cv_lib_socket_connect" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24065 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
| 24066 | fi |
| 24067 | |
| 24068 | fi |
| 24069 | |
| 24070 | # Guillermo Gomez says -lposix is necessary on A/UX. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24071 | ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" |
| 24072 | if test "x$ac_cv_func_remove" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24073 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24074 | fi |
| 24075 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24076 | if test $ac_cv_func_remove = no; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24078 | $as_echo_n "checking for remove in -lposix... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24079 | if test "${ac_cv_lib_posix_remove+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24080 | $as_echo_n "(cached) " >&6 |
| 24081 | else |
| 24082 | ac_check_lib_save_LIBS=$LIBS |
| 24083 | LIBS="-lposix $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24084 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24085 | /* end confdefs.h. */ |
| 24086 | |
| 24087 | /* Override any GCC internal prototype to avoid an error. |
| 24088 | Use char because int might match the return type of a GCC |
| 24089 | builtin and then its argument prototype would still apply. */ |
| 24090 | #ifdef __cplusplus |
| 24091 | extern "C" |
| 24092 | #endif |
| 24093 | char remove (); |
| 24094 | int |
| 24095 | main () |
| 24096 | { |
| 24097 | return remove (); |
| 24098 | ; |
| 24099 | return 0; |
| 24100 | } |
| 24101 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24102 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24103 | ac_cv_lib_posix_remove=yes |
| 24104 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24105 | ac_cv_lib_posix_remove=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24106 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24107 | rm -f core conftest.err conftest.$ac_objext \ |
| 24108 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24109 | LIBS=$ac_check_lib_save_LIBS |
| 24110 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24112 | $as_echo "$ac_cv_lib_posix_remove" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24113 | if test "x$ac_cv_lib_posix_remove" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24114 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
| 24115 | fi |
| 24116 | |
| 24117 | fi |
| 24118 | |
| 24119 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24120 | ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" |
| 24121 | if test "x$ac_cv_func_shmat" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24122 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24123 | fi |
| 24124 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24125 | if test $ac_cv_func_shmat = no; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24126 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24127 | $as_echo_n "checking for shmat in -lipc... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24128 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24129 | $as_echo_n "(cached) " >&6 |
| 24130 | else |
| 24131 | ac_check_lib_save_LIBS=$LIBS |
| 24132 | LIBS="-lipc $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24133 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24134 | /* end confdefs.h. */ |
| 24135 | |
| 24136 | /* Override any GCC internal prototype to avoid an error. |
| 24137 | Use char because int might match the return type of a GCC |
| 24138 | builtin and then its argument prototype would still apply. */ |
| 24139 | #ifdef __cplusplus |
| 24140 | extern "C" |
| 24141 | #endif |
| 24142 | char shmat (); |
| 24143 | int |
| 24144 | main () |
| 24145 | { |
| 24146 | return shmat (); |
| 24147 | ; |
| 24148 | return 0; |
| 24149 | } |
| 24150 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24151 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24152 | ac_cv_lib_ipc_shmat=yes |
| 24153 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24154 | ac_cv_lib_ipc_shmat=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24155 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24156 | rm -f core conftest.err conftest.$ac_objext \ |
| 24157 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24158 | LIBS=$ac_check_lib_save_LIBS |
| 24159 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24161 | $as_echo "$ac_cv_lib_ipc_shmat" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24162 | if test "x$ac_cv_lib_ipc_shmat" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24163 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
| 24164 | fi |
| 24165 | |
| 24166 | fi |
| 24167 | fi |
| 24168 | |
| 24169 | # Check for libraries that X11R6 Xt/Xaw programs need. |
| 24170 | ac_save_LDFLAGS=$LDFLAGS |
| 24171 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
| 24172 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
| 24173 | # check for ICE first), but we must link in the order -lSM -lICE or |
| 24174 | # we get undefined symbols. So assume we have SM if we have ICE. |
| 24175 | # These have to be linked with before -lX11, unlike the other |
| 24176 | # libraries we check for below, so use a different variable. |
| 24177 | # John Interrante, Karl Berry |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24179 | $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24180 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24181 | $as_echo_n "(cached) " >&6 |
| 24182 | else |
| 24183 | ac_check_lib_save_LIBS=$LIBS |
| 24184 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24185 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24186 | /* end confdefs.h. */ |
| 24187 | |
| 24188 | /* Override any GCC internal prototype to avoid an error. |
| 24189 | Use char because int might match the return type of a GCC |
| 24190 | builtin and then its argument prototype would still apply. */ |
| 24191 | #ifdef __cplusplus |
| 24192 | extern "C" |
| 24193 | #endif |
| 24194 | char IceConnectionNumber (); |
| 24195 | int |
| 24196 | main () |
| 24197 | { |
| 24198 | return IceConnectionNumber (); |
| 24199 | ; |
| 24200 | return 0; |
| 24201 | } |
| 24202 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24203 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24204 | ac_cv_lib_ICE_IceConnectionNumber=yes |
| 24205 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24206 | ac_cv_lib_ICE_IceConnectionNumber=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24207 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24208 | rm -f core conftest.err conftest.$ac_objext \ |
| 24209 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24210 | LIBS=$ac_check_lib_save_LIBS |
| 24211 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24213 | $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24214 | if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24215 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
| 24216 | fi |
| 24217 | |
| 24218 | LDFLAGS=$ac_save_LDFLAGS |
| 24219 | |
| 24220 | fi |
| 24221 | |
| 24222 | if test "$no_x" != 'yes'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24224 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24225 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24226 | $as_echo_n "checking for X11... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24228 | $as_echo "" >&6; } |
| 24229 | LDFLAGS="$LDFLAGS $X_LIBS" |
| 24230 | X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS" |
| 24231 | LIBS="$X11_LIBS $LIBS" |
| 24232 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
| 24233 | |
| 24234 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24235 | $as_echo "#define X11_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24236 | |
| 24237 | # |
| 24238 | # Check for X11 shared memory extension |
| 24239 | # |
| 24240 | # shmctl is required to support the shared memory extension |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24241 | ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl" |
| 24242 | if test "x$ac_cv_func_shmctl" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24243 | have_shmctl='yes' |
| 24244 | fi |
| 24245 | |
| 24246 | if test "$have_shmctl" != 'yes'; then |
| 24247 | PERSIST_LIBS=$LIBS |
| 24248 | LIBS="$LIBS -lcygipc" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24249 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24250 | /* end confdefs.h. */ |
| 24251 | |
| 24252 | /* Override any GCC internal prototype to avoid an error. |
| 24253 | Use char because int might match the return type of a GCC |
| 24254 | builtin and then its argument prototype would still apply. */ |
| 24255 | #ifdef __cplusplus |
| 24256 | extern "C" |
| 24257 | #endif |
| 24258 | char shmctl (); |
| 24259 | int |
| 24260 | main () |
| 24261 | { |
| 24262 | return shmctl (); |
| 24263 | ; |
| 24264 | return 0; |
| 24265 | } |
| 24266 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24267 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24268 | have_shmctl='yes'; IPC_LIBS='-lcygipc' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24269 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24270 | rm -f core conftest.err conftest.$ac_objext \ |
| 24271 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24272 | LIBS=$PERSIST_LIBS |
| 24273 | fi |
| 24274 | |
| 24275 | if test "$have_shmctl" = 'yes'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24277 | $as_echo_n "checking for XShmAttach in -lXext... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24278 | if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24279 | $as_echo_n "(cached) " >&6 |
| 24280 | else |
| 24281 | ac_check_lib_save_LIBS=$LIBS |
| 24282 | LIBS="-lXext $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24283 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24284 | /* end confdefs.h. */ |
| 24285 | |
| 24286 | /* Override any GCC internal prototype to avoid an error. |
| 24287 | Use char because int might match the return type of a GCC |
| 24288 | builtin and then its argument prototype would still apply. */ |
| 24289 | #ifdef __cplusplus |
| 24290 | extern "C" |
| 24291 | #endif |
| 24292 | char XShmAttach (); |
| 24293 | int |
| 24294 | main () |
| 24295 | { |
| 24296 | return XShmAttach (); |
| 24297 | ; |
| 24298 | return 0; |
| 24299 | } |
| 24300 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24301 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24302 | ac_cv_lib_Xext_XShmAttach=yes |
| 24303 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24304 | ac_cv_lib_Xext_XShmAttach=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24305 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24306 | rm -f core conftest.err conftest.$ac_objext \ |
| 24307 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24308 | LIBS=$ac_check_lib_save_LIBS |
| 24309 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24311 | $as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24312 | if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24313 | XEXT_LIBS='-lXext' ; |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24314 | $as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24315 | |
| 24316 | fi |
| 24317 | |
| 24318 | fi |
| 24319 | |
| 24320 | # |
| 24321 | # Check for X11 shape extension |
| 24322 | # |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24324 | $as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24325 | if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24326 | $as_echo_n "(cached) " >&6 |
| 24327 | else |
| 24328 | ac_check_lib_save_LIBS=$LIBS |
| 24329 | LIBS="-lXext $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24330 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24331 | /* end confdefs.h. */ |
| 24332 | |
| 24333 | /* Override any GCC internal prototype to avoid an error. |
| 24334 | Use char because int might match the return type of a GCC |
| 24335 | builtin and then its argument prototype would still apply. */ |
| 24336 | #ifdef __cplusplus |
| 24337 | extern "C" |
| 24338 | #endif |
| 24339 | char XShapeCombineMask (); |
| 24340 | int |
| 24341 | main () |
| 24342 | { |
| 24343 | return XShapeCombineMask (); |
| 24344 | ; |
| 24345 | return 0; |
| 24346 | } |
| 24347 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24348 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24349 | ac_cv_lib_Xext_XShapeCombineMask=yes |
| 24350 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24351 | ac_cv_lib_Xext_XShapeCombineMask=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24352 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24353 | rm -f core conftest.err conftest.$ac_objext \ |
| 24354 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24355 | LIBS=$ac_check_lib_save_LIBS |
| 24356 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24358 | $as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24359 | if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24360 | XEXT_LIBS='-lXext' ; |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24361 | $as_echo "#define HAVE_SHAPE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24362 | |
| 24363 | fi |
| 24364 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24366 | $as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24367 | if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24368 | $as_echo_n "(cached) " >&6 |
| 24369 | else |
| 24370 | ac_check_lib_save_LIBS=$LIBS |
| 24371 | LIBS="-lXt $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24372 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24373 | /* end confdefs.h. */ |
| 24374 | |
| 24375 | /* Override any GCC internal prototype to avoid an error. |
| 24376 | Use char because int might match the return type of a GCC |
| 24377 | builtin and then its argument prototype would still apply. */ |
| 24378 | #ifdef __cplusplus |
| 24379 | extern "C" |
| 24380 | #endif |
| 24381 | char XtSetEventDispatcher (); |
| 24382 | int |
| 24383 | main () |
| 24384 | { |
| 24385 | return XtSetEventDispatcher (); |
| 24386 | ; |
| 24387 | return 0; |
| 24388 | } |
| 24389 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24390 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24391 | ac_cv_lib_Xt_XtSetEventDispatcher=yes |
| 24392 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24393 | ac_cv_lib_Xt_XtSetEventDispatcher=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24394 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24395 | rm -f core conftest.err conftest.$ac_objext \ |
| 24396 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24397 | LIBS=$ac_check_lib_save_LIBS |
| 24398 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24400 | $as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24401 | if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24402 | XT_LIBS='-lXt' |
| 24403 | fi |
| 24404 | |
| 24405 | LIBS="$XEXT_LIBS $XT_LIBS $LIBS" |
| 24406 | fi |
| 24407 | if test "$no_x" != 'yes'; then |
| 24408 | have_x='yes' |
| 24409 | else |
| 24410 | have_x='no' |
| 24411 | fi |
| 24412 | if test "$have_x" = 'yes'; then |
| 24413 | X11_DELEGATE_TRUE= |
| 24414 | X11_DELEGATE_FALSE='#' |
| 24415 | else |
| 24416 | X11_DELEGATE_TRUE='#' |
| 24417 | X11_DELEGATE_FALSE= |
| 24418 | fi |
| 24419 | |
| 24420 | |
| 24421 | |
| 24422 | |
| 24423 | |
| 24424 | # |
| 24425 | # Check for ZLIB |
| 24426 | # |
| 24427 | |
| 24428 | # Check whether --with-zlib was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24429 | if test "${with_zlib+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24430 | withval=$with_zlib; with_zlib=$withval |
| 24431 | else |
| 24432 | with_zlib='yes' |
| 24433 | fi |
| 24434 | |
| 24435 | |
| 24436 | if test "$with_zlib" != 'yes'; then |
| 24437 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib " |
| 24438 | fi |
| 24439 | |
| 24440 | have_zlib='no' |
| 24441 | ZLIB_LIBS='' |
| 24442 | if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24444 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24446 | $as_echo_n "checking for ZLIB... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24448 | $as_echo "" >&6; } |
| 24449 | ZLIB_LIBS='' |
| 24450 | failed=0 |
| 24451 | passed=0 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24452 | ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default" |
| 24453 | if test "x$ac_cv_header_zconf_h" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24454 | passed=`expr $passed + 1` |
| 24455 | else |
| 24456 | failed=`expr $failed + 1` |
| 24457 | fi |
| 24458 | |
| 24459 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24460 | ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" |
| 24461 | if test "x$ac_cv_header_zlib_h" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24462 | passed=`expr $passed + 1` |
| 24463 | else |
| 24464 | failed=`expr $failed + 1` |
| 24465 | fi |
| 24466 | |
| 24467 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24469 | $as_echo_n "checking for compress in -lz... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24470 | if test "${ac_cv_lib_z_compress+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24471 | $as_echo_n "(cached) " >&6 |
| 24472 | else |
| 24473 | ac_check_lib_save_LIBS=$LIBS |
| 24474 | LIBS="-lz $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24475 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24476 | /* end confdefs.h. */ |
| 24477 | |
| 24478 | /* Override any GCC internal prototype to avoid an error. |
| 24479 | Use char because int might match the return type of a GCC |
| 24480 | builtin and then its argument prototype would still apply. */ |
| 24481 | #ifdef __cplusplus |
| 24482 | extern "C" |
| 24483 | #endif |
| 24484 | char compress (); |
| 24485 | int |
| 24486 | main () |
| 24487 | { |
| 24488 | return compress (); |
| 24489 | ; |
| 24490 | return 0; |
| 24491 | } |
| 24492 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24493 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24494 | ac_cv_lib_z_compress=yes |
| 24495 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24496 | ac_cv_lib_z_compress=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24497 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24498 | rm -f core conftest.err conftest.$ac_objext \ |
| 24499 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24500 | LIBS=$ac_check_lib_save_LIBS |
| 24501 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24503 | $as_echo "$ac_cv_lib_z_compress" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24504 | if test "x$ac_cv_lib_z_compress" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24505 | passed=`expr $passed + 1` |
| 24506 | else |
| 24507 | failed=`expr $failed + 1` |
| 24508 | fi |
| 24509 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24511 | $as_echo_n "checking for uncompress in -lz... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24512 | if test "${ac_cv_lib_z_uncompress+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24513 | $as_echo_n "(cached) " >&6 |
| 24514 | else |
| 24515 | ac_check_lib_save_LIBS=$LIBS |
| 24516 | LIBS="-lz $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24517 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24518 | /* end confdefs.h. */ |
| 24519 | |
| 24520 | /* Override any GCC internal prototype to avoid an error. |
| 24521 | Use char because int might match the return type of a GCC |
| 24522 | builtin and then its argument prototype would still apply. */ |
| 24523 | #ifdef __cplusplus |
| 24524 | extern "C" |
| 24525 | #endif |
| 24526 | char uncompress (); |
| 24527 | int |
| 24528 | main () |
| 24529 | { |
| 24530 | return uncompress (); |
| 24531 | ; |
| 24532 | return 0; |
| 24533 | } |
| 24534 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24535 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24536 | ac_cv_lib_z_uncompress=yes |
| 24537 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24538 | ac_cv_lib_z_uncompress=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24539 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24540 | rm -f core conftest.err conftest.$ac_objext \ |
| 24541 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24542 | LIBS=$ac_check_lib_save_LIBS |
| 24543 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24545 | $as_echo "$ac_cv_lib_z_uncompress" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24546 | if test "x$ac_cv_lib_z_uncompress" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24547 | passed=`expr $passed + 1` |
| 24548 | else |
| 24549 | failed=`expr $failed + 1` |
| 24550 | fi |
| 24551 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24553 | $as_echo_n "checking for deflate in -lz... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24554 | if test "${ac_cv_lib_z_deflate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24555 | $as_echo_n "(cached) " >&6 |
| 24556 | else |
| 24557 | ac_check_lib_save_LIBS=$LIBS |
| 24558 | LIBS="-lz $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24559 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24560 | /* end confdefs.h. */ |
| 24561 | |
| 24562 | /* Override any GCC internal prototype to avoid an error. |
| 24563 | Use char because int might match the return type of a GCC |
| 24564 | builtin and then its argument prototype would still apply. */ |
| 24565 | #ifdef __cplusplus |
| 24566 | extern "C" |
| 24567 | #endif |
| 24568 | char deflate (); |
| 24569 | int |
| 24570 | main () |
| 24571 | { |
| 24572 | return deflate (); |
| 24573 | ; |
| 24574 | return 0; |
| 24575 | } |
| 24576 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24577 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24578 | ac_cv_lib_z_deflate=yes |
| 24579 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24580 | ac_cv_lib_z_deflate=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24581 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24582 | rm -f core conftest.err conftest.$ac_objext \ |
| 24583 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24584 | LIBS=$ac_check_lib_save_LIBS |
| 24585 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24587 | $as_echo "$ac_cv_lib_z_deflate" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24588 | if test "x$ac_cv_lib_z_deflate" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24589 | passed=`expr $passed + 1` |
| 24590 | else |
| 24591 | failed=`expr $failed + 1` |
| 24592 | fi |
| 24593 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24595 | $as_echo_n "checking for inflate in -lz... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24596 | if test "${ac_cv_lib_z_inflate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24597 | $as_echo_n "(cached) " >&6 |
| 24598 | else |
| 24599 | ac_check_lib_save_LIBS=$LIBS |
| 24600 | LIBS="-lz $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24601 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24602 | /* end confdefs.h. */ |
| 24603 | |
| 24604 | /* Override any GCC internal prototype to avoid an error. |
| 24605 | Use char because int might match the return type of a GCC |
| 24606 | builtin and then its argument prototype would still apply. */ |
| 24607 | #ifdef __cplusplus |
| 24608 | extern "C" |
| 24609 | #endif |
| 24610 | char inflate (); |
| 24611 | int |
| 24612 | main () |
| 24613 | { |
| 24614 | return inflate (); |
| 24615 | ; |
| 24616 | return 0; |
| 24617 | } |
| 24618 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24619 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24620 | ac_cv_lib_z_inflate=yes |
| 24621 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24622 | ac_cv_lib_z_inflate=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24623 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24624 | rm -f core conftest.err conftest.$ac_objext \ |
| 24625 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24626 | LIBS=$ac_check_lib_save_LIBS |
| 24627 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24629 | $as_echo "$ac_cv_lib_z_inflate" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24630 | if test "x$ac_cv_lib_z_inflate" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24631 | passed=`expr $passed + 1` |
| 24632 | else |
| 24633 | failed=`expr $failed + 1` |
| 24634 | fi |
| 24635 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24637 | $as_echo_n "checking for gzseek in -lz... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24638 | if test "${ac_cv_lib_z_gzseek+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24639 | $as_echo_n "(cached) " >&6 |
| 24640 | else |
| 24641 | ac_check_lib_save_LIBS=$LIBS |
| 24642 | LIBS="-lz $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24643 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24644 | /* end confdefs.h. */ |
| 24645 | |
| 24646 | /* Override any GCC internal prototype to avoid an error. |
| 24647 | Use char because int might match the return type of a GCC |
| 24648 | builtin and then its argument prototype would still apply. */ |
| 24649 | #ifdef __cplusplus |
| 24650 | extern "C" |
| 24651 | #endif |
| 24652 | char gzseek (); |
| 24653 | int |
| 24654 | main () |
| 24655 | { |
| 24656 | return gzseek (); |
| 24657 | ; |
| 24658 | return 0; |
| 24659 | } |
| 24660 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24661 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24662 | ac_cv_lib_z_gzseek=yes |
| 24663 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24664 | ac_cv_lib_z_gzseek=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24665 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24666 | rm -f core conftest.err conftest.$ac_objext \ |
| 24667 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24668 | LIBS=$ac_check_lib_save_LIBS |
| 24669 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24671 | $as_echo "$ac_cv_lib_z_gzseek" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24672 | if test "x$ac_cv_lib_z_gzseek" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24673 | passed=`expr $passed + 1` |
| 24674 | else |
| 24675 | failed=`expr $failed + 1` |
| 24676 | fi |
| 24677 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24679 | $as_echo_n "checking for gztell in -lz... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24680 | if test "${ac_cv_lib_z_gztell+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24681 | $as_echo_n "(cached) " >&6 |
| 24682 | else |
| 24683 | ac_check_lib_save_LIBS=$LIBS |
| 24684 | LIBS="-lz $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24685 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24686 | /* end confdefs.h. */ |
| 24687 | |
| 24688 | /* Override any GCC internal prototype to avoid an error. |
| 24689 | Use char because int might match the return type of a GCC |
| 24690 | builtin and then its argument prototype would still apply. */ |
| 24691 | #ifdef __cplusplus |
| 24692 | extern "C" |
| 24693 | #endif |
| 24694 | char gztell (); |
| 24695 | int |
| 24696 | main () |
| 24697 | { |
| 24698 | return gztell (); |
| 24699 | ; |
| 24700 | return 0; |
| 24701 | } |
| 24702 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24703 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24704 | ac_cv_lib_z_gztell=yes |
| 24705 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24706 | ac_cv_lib_z_gztell=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24707 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24708 | rm -f core conftest.err conftest.$ac_objext \ |
| 24709 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24710 | LIBS=$ac_check_lib_save_LIBS |
| 24711 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24713 | $as_echo "$ac_cv_lib_z_gztell" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24714 | if test "x$ac_cv_lib_z_gztell" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24715 | passed=`expr $passed + 1` |
| 24716 | else |
| 24717 | failed=`expr $failed + 1` |
| 24718 | fi |
| 24719 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24721 | $as_echo_n "checking if ZLIB package is complete... " >&6; } |
| 24722 | if test $passed -gt 0; then |
| 24723 | if test $failed -gt 0; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24725 | $as_echo "no -- some components failed test" >&6; } |
| 24726 | have_zlib='no (failed tests)' |
| 24727 | else |
| 24728 | ZLIB_LIBS='-lz' |
| 24729 | LIBS="$ZLIB_LIBS $LIBS" |
| 24730 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24731 | $as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24732 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24734 | $as_echo "yes" >&6; } |
| 24735 | have_zlib='yes' |
| 24736 | fi |
| 24737 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24739 | $as_echo "no" >&6; } |
| 24740 | fi |
| 24741 | fi |
| 24742 | if test "$have_zlib" = 'yes'; then |
| 24743 | ZLIB_DELEGATE_TRUE= |
| 24744 | ZLIB_DELEGATE_FALSE='#' |
| 24745 | else |
| 24746 | ZLIB_DELEGATE_TRUE='#' |
| 24747 | ZLIB_DELEGATE_FALSE= |
| 24748 | fi |
| 24749 | |
| 24750 | |
| 24751 | |
| 24752 | # |
| 24753 | # If profiling, then check for -ldl and dlopen (required for Solaris & gcc) |
| 24754 | # |
| 24755 | LIB_DL='' |
| 24756 | if test "$enable_profiling" = 'yes'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24758 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24759 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24760 | $as_echo_n "(cached) " >&6 |
| 24761 | else |
| 24762 | ac_check_lib_save_LIBS=$LIBS |
| 24763 | LIBS="-ldl $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24764 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24765 | /* end confdefs.h. */ |
| 24766 | |
| 24767 | /* Override any GCC internal prototype to avoid an error. |
| 24768 | Use char because int might match the return type of a GCC |
| 24769 | builtin and then its argument prototype would still apply. */ |
| 24770 | #ifdef __cplusplus |
| 24771 | extern "C" |
| 24772 | #endif |
| 24773 | char dlopen (); |
| 24774 | int |
| 24775 | main () |
| 24776 | { |
| 24777 | return dlopen (); |
| 24778 | ; |
| 24779 | return 0; |
| 24780 | } |
| 24781 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24782 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24783 | ac_cv_lib_dl_dlopen=yes |
| 24784 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24785 | ac_cv_lib_dl_dlopen=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24786 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24787 | rm -f core conftest.err conftest.$ac_objext \ |
| 24788 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24789 | LIBS=$ac_check_lib_save_LIBS |
| 24790 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24792 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24793 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24794 | LIB_DL='-ldl' |
| 24795 | fi |
| 24796 | |
| 24797 | LIBS="$LIB_DL $LIBS" |
| 24798 | fi |
| 24799 | |
| 24800 | |
| 24801 | |
| 24802 | # |
| 24803 | # Check for Autotrace delegate library. |
| 24804 | # |
| 24805 | |
| 24806 | # Check whether --with-autotrace was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24807 | if test "${with_autotrace+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24808 | withval=$with_autotrace; with_autotrace=$withval |
| 24809 | else |
| 24810 | with_autotrace='no' |
| 24811 | fi |
| 24812 | |
| 24813 | |
| 24814 | if test "$with_autotrace" != 'yes'; then |
| 24815 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace " |
| 24816 | fi |
| 24817 | |
| 24818 | have_autotrace='no' |
| 24819 | AUTOTRACE_CFLAGS="" |
| 24820 | AUTOTRACE_LIBS="" |
| 24821 | AUTOTRACE_PKG="" |
| 24822 | if test "x$with_autotrace" = "xyes"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24824 | $as_echo "-------------------------------------------------------------" >&6; } |
| 24825 | |
| 24826 | pkg_failed=no |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24828 | $as_echo_n "checking for AUTOTRACE... " >&6; } |
| 24829 | |
| 24830 | if test -n "$AUTOTRACE_CFLAGS"; then |
| 24831 | pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS" |
| 24832 | elif test -n "$PKG_CONFIG"; then |
| 24833 | if test -n "$PKG_CONFIG" && \ |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24834 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24835 | ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5 |
| 24836 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24837 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 24838 | test $ac_status = 0; }; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24839 | pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null` |
| 24840 | else |
| 24841 | pkg_failed=yes |
| 24842 | fi |
| 24843 | else |
| 24844 | pkg_failed=untried |
| 24845 | fi |
| 24846 | if test -n "$AUTOTRACE_LIBS"; then |
| 24847 | pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS" |
| 24848 | elif test -n "$PKG_CONFIG"; then |
| 24849 | if test -n "$PKG_CONFIG" && \ |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24850 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24851 | ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5 |
| 24852 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24853 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 24854 | test $ac_status = 0; }; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24855 | pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null` |
| 24856 | else |
| 24857 | pkg_failed=yes |
| 24858 | fi |
| 24859 | else |
| 24860 | pkg_failed=untried |
| 24861 | fi |
| 24862 | |
| 24863 | |
| 24864 | |
| 24865 | if test $pkg_failed = yes; then |
| 24866 | |
| 24867 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 24868 | _pkg_short_errors_supported=yes |
| 24869 | else |
| 24870 | _pkg_short_errors_supported=no |
| 24871 | fi |
| 24872 | if test $_pkg_short_errors_supported = yes; then |
| 24873 | AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1` |
| 24874 | else |
| 24875 | AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1` |
| 24876 | fi |
| 24877 | # Put the nasty error message in config.log where it belongs |
| 24878 | echo "$AUTOTRACE_PKG_ERRORS" >&5 |
| 24879 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24881 | $as_echo "no" >&6; } |
| 24882 | have_autotrace=no |
| 24883 | elif test $pkg_failed = untried; then |
| 24884 | have_autotrace=no |
| 24885 | else |
| 24886 | AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS |
| 24887 | AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24889 | $as_echo "yes" >&6; } |
| 24890 | have_autotrace=yes |
| 24891 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24893 | $as_echo "" >&6; } |
| 24894 | fi |
| 24895 | |
| 24896 | if test "$have_autotrace" = 'yes'; then |
| 24897 | failed=0 |
| 24898 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24899 | $as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24900 | |
| 24901 | if test "$with_modules" = 'no'; then |
| 24902 | CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS" |
| 24903 | fi |
| 24904 | fi |
| 24905 | |
| 24906 | if test "$have_autotrace" = 'yes'; then |
| 24907 | AUTOTRACE_DELEGATE_TRUE= |
| 24908 | AUTOTRACE_DELEGATE_FALSE='#' |
| 24909 | else |
| 24910 | AUTOTRACE_DELEGATE_TRUE='#' |
| 24911 | AUTOTRACE_DELEGATE_FALSE= |
| 24912 | fi |
| 24913 | |
| 24914 | |
| 24915 | |
| 24916 | |
| 24917 | |
| 24918 | # |
| 24919 | # Check for Display Postscript delegate library. |
| 24920 | # |
| 24921 | |
| 24922 | # Check whether --with-dps was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24923 | if test "${with_dps+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24924 | withval=$with_dps; with_dps=$withval |
| 24925 | else |
| 24926 | with_dps='yes' |
| 24927 | fi |
| 24928 | |
| 24929 | |
| 24930 | if test "$with_dps" != 'yes'; then |
| 24931 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps " |
| 24932 | fi |
| 24933 | |
| 24934 | have_dps='no' |
| 24935 | DPS_LIBS='' |
| 24936 | if test "$with_dps" != 'no' && test "$with_x" != 'no'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24938 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24940 | $as_echo_n "checking for DPS... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24942 | $as_echo "" >&6; } |
| 24943 | failed=0 |
| 24944 | passed=0 |
| 24945 | PERSIST_CPPFLAGS="$CPPFLAGS" |
| 24946 | CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24947 | ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default" |
| 24948 | if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24949 | passed=`expr $passed + 1` |
| 24950 | else |
| 24951 | failed=`expr $failed + 1` |
| 24952 | fi |
| 24953 | |
| 24954 | |
| 24955 | # DPS issues: |
| 24956 | # XFree86-4.x needs -lXt to provide XtMalloc for -ldps. |
| 24957 | # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build. |
| 24958 | # Adobe DPS (as delivered on Solaris) doesn't require -lXt. |
| 24959 | # ImageMagick itself doesn't use -lXt. |
| 24960 | have_libdps='no' |
| 24961 | LIBDPS_XT='' |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24963 | $as_echo_n "checking for DPSInitialize in -ldps... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24964 | if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24965 | $as_echo_n "(cached) " >&6 |
| 24966 | else |
| 24967 | ac_check_lib_save_LIBS=$LIBS |
| 24968 | LIBS="-ldps $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24969 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24970 | /* end confdefs.h. */ |
| 24971 | |
| 24972 | /* Override any GCC internal prototype to avoid an error. |
| 24973 | Use char because int might match the return type of a GCC |
| 24974 | builtin and then its argument prototype would still apply. */ |
| 24975 | #ifdef __cplusplus |
| 24976 | extern "C" |
| 24977 | #endif |
| 24978 | char DPSInitialize (); |
| 24979 | int |
| 24980 | main () |
| 24981 | { |
| 24982 | return DPSInitialize (); |
| 24983 | ; |
| 24984 | return 0; |
| 24985 | } |
| 24986 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24987 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24988 | ac_cv_lib_dps_DPSInitialize=yes |
| 24989 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24990 | ac_cv_lib_dps_DPSInitialize=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24991 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24992 | rm -f core conftest.err conftest.$ac_objext \ |
| 24993 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24994 | LIBS=$ac_check_lib_save_LIBS |
| 24995 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24997 | $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 24998 | if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24999 | have_libdps='yes' |
| 25000 | else |
| 25001 | have_libdps='no' |
| 25002 | fi |
| 25003 | |
| 25004 | if test "$have_libdps" != 'yes'; then |
| 25005 | # Unset cache variable so we can try again. |
| 25006 | unset ac_cv_lib_dps_DPSInitialize |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25008 | $as_echo_n "checking for DPSInitialize in -ldps... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25009 | if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25010 | $as_echo_n "(cached) " >&6 |
| 25011 | else |
| 25012 | ac_check_lib_save_LIBS=$LIBS |
| 25013 | LIBS="-ldps -lXt $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25014 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25015 | /* end confdefs.h. */ |
| 25016 | |
| 25017 | /* Override any GCC internal prototype to avoid an error. |
| 25018 | Use char because int might match the return type of a GCC |
| 25019 | builtin and then its argument prototype would still apply. */ |
| 25020 | #ifdef __cplusplus |
| 25021 | extern "C" |
| 25022 | #endif |
| 25023 | char DPSInitialize (); |
| 25024 | int |
| 25025 | main () |
| 25026 | { |
| 25027 | return DPSInitialize (); |
| 25028 | ; |
| 25029 | return 0; |
| 25030 | } |
| 25031 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25032 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25033 | ac_cv_lib_dps_DPSInitialize=yes |
| 25034 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25035 | ac_cv_lib_dps_DPSInitialize=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25036 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25037 | rm -f core conftest.err conftest.$ac_objext \ |
| 25038 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25039 | LIBS=$ac_check_lib_save_LIBS |
| 25040 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25042 | $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25043 | if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25044 | have_libdps='yes' |
| 25045 | else |
| 25046 | have_libdps='no' |
| 25047 | fi |
| 25048 | |
| 25049 | if test "$have_libdps" = 'yes'; then |
| 25050 | LIBDPS_XT='-lXt' |
| 25051 | fi |
| 25052 | fi |
| 25053 | if test "$have_libdps" = 'yes'; then |
| 25054 | passed=`expr $passed + 1` |
| 25055 | else |
| 25056 | failed=`expr $failed + 1` |
| 25057 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25059 | $as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25060 | if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25061 | $as_echo_n "(cached) " >&6 |
| 25062 | else |
| 25063 | ac_check_lib_save_LIBS=$LIBS |
| 25064 | LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25065 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25066 | /* end confdefs.h. */ |
| 25067 | |
| 25068 | /* Override any GCC internal prototype to avoid an error. |
| 25069 | Use char because int might match the return type of a GCC |
| 25070 | builtin and then its argument prototype would still apply. */ |
| 25071 | #ifdef __cplusplus |
| 25072 | extern "C" |
| 25073 | #endif |
| 25074 | char XDPSPixelsPerPoint (); |
| 25075 | int |
| 25076 | main () |
| 25077 | { |
| 25078 | return XDPSPixelsPerPoint (); |
| 25079 | ; |
| 25080 | return 0; |
| 25081 | } |
| 25082 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25083 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25084 | ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes |
| 25085 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25086 | ac_cv_lib_dpstk_XDPSPixelsPerPoint=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25087 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25088 | rm -f core conftest.err conftest.$ac_objext \ |
| 25089 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25090 | LIBS=$ac_check_lib_save_LIBS |
| 25091 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25093 | $as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25094 | if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25095 | passed=`expr $passed + 1` |
| 25096 | else |
| 25097 | failed=`expr $failed + 1` |
| 25098 | fi |
| 25099 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25100 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25101 | $as_echo_n "checking if DPS package is complete... " >&6; } |
| 25102 | if test $passed -gt 0; then |
| 25103 | if test $failed -gt 0; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25105 | $as_echo "no -- some components failed test" >&6; } |
| 25106 | have_dps='no (failed tests)' |
| 25107 | CPPFLAGS="$PERSIST_CPPFLAGS" |
| 25108 | else |
| 25109 | DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}" |
| 25110 | LIBS="$DPS_LIBS $LIBS" |
| 25111 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25112 | $as_echo "#define DPS_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25113 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25115 | $as_echo "yes" >&6; } |
| 25116 | have_dps='yes' |
| 25117 | fi |
| 25118 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25120 | $as_echo "no" >&6; } |
| 25121 | CPPFLAGS=$PERSIST_CPPFLAGS |
| 25122 | fi |
| 25123 | fi |
| 25124 | if test "$have_dps" = 'yes'; then |
| 25125 | DPS_DELEGATE_TRUE= |
| 25126 | DPS_DELEGATE_FALSE='#' |
| 25127 | else |
| 25128 | DPS_DELEGATE_TRUE='#' |
| 25129 | DPS_DELEGATE_FALSE= |
| 25130 | fi |
| 25131 | |
| 25132 | |
| 25133 | |
| 25134 | |
| 25135 | # |
| 25136 | # Check for DJVU delegate library. |
| 25137 | # |
| 25138 | |
| 25139 | # Check whether --with-djvu was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25140 | if test "${with_djvu+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25141 | withval=$with_djvu; with_djvu=$withval |
| 25142 | else |
| 25143 | with_djvu='yes' |
| 25144 | fi |
| 25145 | |
| 25146 | |
| 25147 | if test "$with_djvu" != 'yes'; then |
| 25148 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu " |
| 25149 | fi |
| 25150 | |
| 25151 | have_djvu='no' |
| 25152 | DJVU_LIBS='' |
| 25153 | if test "$with_djvu" != 'no'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25155 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25157 | $as_echo_n "checking for DJVU... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25159 | $as_echo "" >&6; } |
| 25160 | failed=0 |
| 25161 | passed=0 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25162 | ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default" |
| 25163 | if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25164 | passed=`expr $passed + 1` |
| 25165 | else |
| 25166 | failed=`expr $failed + 1` |
| 25167 | fi |
| 25168 | |
| 25169 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25171 | $as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25172 | if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25173 | $as_echo_n "(cached) " >&6 |
| 25174 | else |
| 25175 | ac_check_lib_save_LIBS=$LIBS |
| 25176 | LIBS="-ldjvulibre $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25177 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25178 | /* end confdefs.h. */ |
| 25179 | |
| 25180 | /* Override any GCC internal prototype to avoid an error. |
| 25181 | Use char because int might match the return type of a GCC |
| 25182 | builtin and then its argument prototype would still apply. */ |
| 25183 | #ifdef __cplusplus |
| 25184 | extern "C" |
| 25185 | #endif |
| 25186 | char ddjvu_context_create (); |
| 25187 | int |
| 25188 | main () |
| 25189 | { |
| 25190 | return ddjvu_context_create (); |
| 25191 | ; |
| 25192 | return 0; |
| 25193 | } |
| 25194 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25195 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25196 | ac_cv_lib_djvulibre_ddjvu_context_create=yes |
| 25197 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25198 | ac_cv_lib_djvulibre_ddjvu_context_create=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25199 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25200 | rm -f core conftest.err conftest.$ac_objext \ |
| 25201 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25202 | LIBS=$ac_check_lib_save_LIBS |
| 25203 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25205 | $as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25206 | if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25207 | passed=`expr $passed + 1` |
| 25208 | else |
| 25209 | failed=`expr $failed + 1` |
| 25210 | fi |
| 25211 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25213 | $as_echo_n "checking if DJVU package is complete... " >&6; } |
| 25214 | if test $passed -gt 0; then |
| 25215 | if test $failed -gt 0; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25217 | $as_echo "no -- some components failed test" >&6; } |
| 25218 | have_djvu='no (failed tests)' |
| 25219 | else |
| 25220 | DJVU_LIBS='-ldjvulibre' |
| 25221 | LIBS="$DJVU_LIBS $LIBS" |
| 25222 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25223 | $as_echo "#define DJVU_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25224 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25226 | $as_echo "yes" >&6; } |
| 25227 | have_djvu='yes' |
| 25228 | fi |
| 25229 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25231 | $as_echo "no" >&6; } |
| 25232 | fi |
| 25233 | fi |
| 25234 | if test "$have_djvu" = 'yes'; then |
| 25235 | DJVU_DELEGATE_TRUE= |
| 25236 | DJVU_DELEGATE_FALSE='#' |
| 25237 | else |
| 25238 | DJVU_DELEGATE_TRUE='#' |
| 25239 | DJVU_DELEGATE_FALSE= |
| 25240 | fi |
| 25241 | |
| 25242 | |
| 25243 | |
| 25244 | |
| 25245 | # |
| 25246 | # Check for FFTW delegate library. |
| 25247 | # |
| 25248 | |
| 25249 | # Check whether --with-fftw was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25250 | if test "${with_fftw+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25251 | withval=$with_fftw; with_fftw=$withval |
| 25252 | else |
| 25253 | with_fftw='yes' |
| 25254 | fi |
| 25255 | |
| 25256 | |
| 25257 | if test "$with_fftw" != 'yes'; then |
| 25258 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw " |
| 25259 | fi |
| 25260 | |
| 25261 | have_fftw='no' |
| 25262 | FFTW_LIBS='' |
| 25263 | if test "$with_fftw" != 'no'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25265 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25267 | $as_echo_n "checking for FFTW... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25269 | $as_echo "" >&6; } |
| 25270 | failed=0 |
| 25271 | passed=0 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25272 | ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default" |
| 25273 | if test "x$ac_cv_header_fftw3_h" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25274 | passed=`expr $passed + 1` |
| 25275 | else |
| 25276 | failed=`expr $failed + 1` |
| 25277 | fi |
| 25278 | |
| 25279 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25280 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25281 | $as_echo_n "checking for fftw_execute in -lfftw3... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25282 | if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25283 | $as_echo_n "(cached) " >&6 |
| 25284 | else |
| 25285 | ac_check_lib_save_LIBS=$LIBS |
| 25286 | LIBS="-lfftw3 $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25287 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25288 | /* end confdefs.h. */ |
| 25289 | |
| 25290 | /* Override any GCC internal prototype to avoid an error. |
| 25291 | Use char because int might match the return type of a GCC |
| 25292 | builtin and then its argument prototype would still apply. */ |
| 25293 | #ifdef __cplusplus |
| 25294 | extern "C" |
| 25295 | #endif |
| 25296 | char fftw_execute (); |
| 25297 | int |
| 25298 | main () |
| 25299 | { |
| 25300 | return fftw_execute (); |
| 25301 | ; |
| 25302 | return 0; |
| 25303 | } |
| 25304 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25305 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25306 | ac_cv_lib_fftw3_fftw_execute=yes |
| 25307 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25308 | ac_cv_lib_fftw3_fftw_execute=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25309 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25310 | rm -f core conftest.err conftest.$ac_objext \ |
| 25311 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25312 | LIBS=$ac_check_lib_save_LIBS |
| 25313 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25315 | $as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25316 | if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25317 | passed=`expr $passed + 1` |
| 25318 | else |
| 25319 | failed=`expr $failed + 1` |
| 25320 | fi |
| 25321 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25323 | $as_echo_n "checking if FFTW package is complete... " >&6; } |
| 25324 | if test $passed -gt 0; then |
| 25325 | if test $failed -gt 0; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25327 | $as_echo "no -- some components failed test" >&6; } |
| 25328 | have_fftw='no (failed tests)' |
| 25329 | else |
| 25330 | FFTW_LIBS='-lfftw3' |
| 25331 | LIBS="$FFTW_LIBS $LIBS" |
| 25332 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25333 | $as_echo "#define FFTW_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25334 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25336 | $as_echo "yes" >&6; } |
| 25337 | have_fftw='yes' |
| 25338 | fi |
| 25339 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25341 | $as_echo "no" >&6; } |
| 25342 | fi |
| 25343 | fi |
| 25344 | if test "$have_fftw" = 'yes'; then |
| 25345 | FFTW_DELEGATE_TRUE= |
| 25346 | FFTW_DELEGATE_FALSE='#' |
| 25347 | else |
| 25348 | FFTW_DELEGATE_TRUE='#' |
| 25349 | FFTW_DELEGATE_FALSE= |
| 25350 | fi |
| 25351 | |
| 25352 | |
| 25353 | |
| 25354 | |
| 25355 | # |
| 25356 | # Check for FlashPIX delegate library. |
| 25357 | # |
| 25358 | |
| 25359 | # Check whether --with-fpx was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25360 | if test "${with_fpx+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25361 | withval=$with_fpx; with_fpx=$withval |
| 25362 | else |
| 25363 | with_fpx='yes' |
| 25364 | fi |
| 25365 | |
| 25366 | |
| 25367 | if test "$with_fpx" != 'yes'; then |
| 25368 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx " |
| 25369 | fi |
| 25370 | |
| 25371 | have_fpx='no' |
| 25372 | FPX_LIBS='' |
| 25373 | if test "$with_fpx" != 'no'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25375 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25377 | $as_echo_n "checking for FlashPIX... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25379 | $as_echo "" >&6; } |
| 25380 | failed=0 |
| 25381 | passed=0 |
| 25382 | ac_ext=cpp |
| 25383 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 25384 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 25385 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 25386 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 25387 | |
| 25388 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25389 | ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default" |
| 25390 | if test "x$ac_cv_header_fpxlib_h" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25391 | passed=`expr $passed + 1` |
| 25392 | else |
| 25393 | failed=`expr $failed + 1` |
| 25394 | fi |
| 25395 | |
| 25396 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25398 | $as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25399 | if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25400 | $as_echo_n "(cached) " >&6 |
| 25401 | else |
| 25402 | ac_check_lib_save_LIBS=$LIBS |
| 25403 | LIBS="-lfpx $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25404 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25405 | /* end confdefs.h. */ |
| 25406 | |
| 25407 | /* Override any GCC internal prototype to avoid an error. |
| 25408 | Use char because int might match the return type of a GCC |
| 25409 | builtin and then its argument prototype would still apply. */ |
| 25410 | #ifdef __cplusplus |
| 25411 | extern "C" |
| 25412 | #endif |
| 25413 | char FPX_OpenImageByFilename (); |
| 25414 | int |
| 25415 | main () |
| 25416 | { |
| 25417 | return FPX_OpenImageByFilename (); |
| 25418 | ; |
| 25419 | return 0; |
| 25420 | } |
| 25421 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25422 | if ac_fn_cxx_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25423 | ac_cv_lib_fpx_FPX_OpenImageByFilename=yes |
| 25424 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25425 | ac_cv_lib_fpx_FPX_OpenImageByFilename=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25426 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25427 | rm -f core conftest.err conftest.$ac_objext \ |
| 25428 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25429 | LIBS=$ac_check_lib_save_LIBS |
| 25430 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25432 | $as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25433 | if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25434 | passed=`expr $passed + 1` |
| 25435 | else |
| 25436 | failed=`expr $failed + 1` |
| 25437 | fi |
| 25438 | |
| 25439 | ac_ext=c |
| 25440 | ac_cpp='$CPP $CPPFLAGS' |
| 25441 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 25442 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 25443 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 25444 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25446 | $as_echo_n "checking if FlashPIX package is complete... " >&6; } |
| 25447 | if test $passed -gt 0; then |
| 25448 | if test $failed -gt 0; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25450 | $as_echo "no -- some components failed test" >&6; } |
| 25451 | have_fpx='no (failed tests)' |
| 25452 | else |
| 25453 | FPX_LIBS='-lfpx' |
| 25454 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25455 | $as_echo "#define FPX_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25456 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25458 | $as_echo "yes" >&6; } |
| 25459 | have_fpx='yes' |
| 25460 | PERLMAINCC="$CXX" |
| 25461 | fi |
| 25462 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25464 | $as_echo "no" >&6; } |
| 25465 | fi |
| 25466 | fi |
| 25467 | if test "$have_fpx" = 'yes'; then |
| 25468 | FPX_DELEGATE_TRUE= |
| 25469 | FPX_DELEGATE_FALSE='#' |
| 25470 | else |
| 25471 | FPX_DELEGATE_TRUE='#' |
| 25472 | FPX_DELEGATE_FALSE= |
| 25473 | fi |
| 25474 | |
| 25475 | |
| 25476 | |
| 25477 | |
| 25478 | # |
| 25479 | # Check for fontconfig delegate library. |
| 25480 | # |
| 25481 | |
| 25482 | # Check whether --with-fontconfig was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25483 | if test "${with_fontconfig+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25484 | withval=$with_fontconfig; with_fontconfig=$withval |
| 25485 | else |
| 25486 | with_fontconfig=$have_x |
| 25487 | fi |
| 25488 | |
| 25489 | |
| 25490 | if test "$with_fontconfig" != 'yes'; then |
| 25491 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig " |
| 25492 | fi |
| 25493 | |
| 25494 | have_fontconfig='no' |
| 25495 | FONTCONFIG_CFLAGS="" |
| 25496 | FONTCONFIG_LIBS="" |
| 25497 | FONTCONFIG_PKG="" |
| 25498 | if test "x$with_fontconfig" = "xyes"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25500 | $as_echo "-------------------------------------------------------------" >&6; } |
| 25501 | |
| 25502 | pkg_failed=no |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25504 | $as_echo_n "checking for FONTCONFIG... " >&6; } |
| 25505 | |
| 25506 | if test -n "$FONTCONFIG_CFLAGS"; then |
| 25507 | pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS" |
| 25508 | elif test -n "$PKG_CONFIG"; then |
| 25509 | if test -n "$PKG_CONFIG" && \ |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25510 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25511 | ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5 |
| 25512 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25513 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 25514 | test $ac_status = 0; }; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25515 | pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null` |
| 25516 | else |
| 25517 | pkg_failed=yes |
| 25518 | fi |
| 25519 | else |
| 25520 | pkg_failed=untried |
| 25521 | fi |
| 25522 | if test -n "$FONTCONFIG_LIBS"; then |
| 25523 | pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS" |
| 25524 | elif test -n "$PKG_CONFIG"; then |
| 25525 | if test -n "$PKG_CONFIG" && \ |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25526 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25527 | ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5 |
| 25528 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25529 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 25530 | test $ac_status = 0; }; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25531 | pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null` |
| 25532 | else |
| 25533 | pkg_failed=yes |
| 25534 | fi |
| 25535 | else |
| 25536 | pkg_failed=untried |
| 25537 | fi |
| 25538 | |
| 25539 | |
| 25540 | |
| 25541 | if test $pkg_failed = yes; then |
| 25542 | |
| 25543 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 25544 | _pkg_short_errors_supported=yes |
| 25545 | else |
| 25546 | _pkg_short_errors_supported=no |
| 25547 | fi |
| 25548 | if test $_pkg_short_errors_supported = yes; then |
| 25549 | FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1` |
| 25550 | else |
| 25551 | FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1` |
| 25552 | fi |
| 25553 | # Put the nasty error message in config.log where it belongs |
| 25554 | echo "$FONTCONFIG_PKG_ERRORS" >&5 |
| 25555 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25557 | $as_echo "no" >&6; } |
| 25558 | have_fontconfig=no |
| 25559 | elif test $pkg_failed = untried; then |
| 25560 | have_fontconfig=no |
| 25561 | else |
| 25562 | FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS |
| 25563 | FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25565 | $as_echo "yes" >&6; } |
| 25566 | have_fontconfig=yes |
| 25567 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25569 | $as_echo "" >&6; } |
| 25570 | fi |
| 25571 | |
| 25572 | if test "$have_fontconfig" = 'yes'; then |
| 25573 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25574 | $as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25575 | |
| 25576 | if test "$with_modules" = 'no'; then |
| 25577 | CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS" |
| 25578 | fi |
| 25579 | fi |
| 25580 | |
| 25581 | if test "$have_fontconfig" = 'yes'; then |
| 25582 | FONTCONFIG_DELEGATE_TRUE= |
| 25583 | FONTCONFIG_DELEGATE_FALSE='#' |
| 25584 | else |
| 25585 | FONTCONFIG_DELEGATE_TRUE='#' |
| 25586 | FONTCONFIG_DELEGATE_FALSE= |
| 25587 | fi |
| 25588 | |
| 25589 | |
| 25590 | |
| 25591 | |
| 25592 | |
| 25593 | # |
| 25594 | # Check for freetype delegate library. |
| 25595 | # |
| 25596 | |
| 25597 | # Check whether --with-freetype was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25598 | if test "${with_freetype+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25599 | withval=$with_freetype; with_freetype=$withval |
| 25600 | else |
| 25601 | with_freetype='yes' |
| 25602 | fi |
| 25603 | |
| 25604 | |
| 25605 | |
| 25606 | if test "$with_freetype" != 'yes'; then |
| 25607 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype " |
| 25608 | fi |
| 25609 | |
| 25610 | have_freetype='no' |
| 25611 | FREETYPE_LIBS='' |
| 25612 | if test "$with_freetype" != 'no'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25614 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25616 | $as_echo_n "checking for FreeType 2.0... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25618 | $as_echo "" >&6; } |
| 25619 | failed=0 |
| 25620 | passed=0 |
| cristy | 6629111 | 2009-10-03 22:44:36 +0000 | [diff] [blame] | 25621 | PERSIST_LIBS="$LIBS" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25622 | PERSIST_CPPFLAGS="$CPPFLAGS" |
| 25623 | if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then |
| 25624 | : |
| 25625 | else |
| 25626 | freetype_config='' |
| 25627 | for ac_prog in freetype-config |
| 25628 | do |
| 25629 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 25630 | set dummy $ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25632 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25633 | if test "${ac_cv_prog_freetype_config+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25634 | $as_echo_n "(cached) " >&6 |
| 25635 | else |
| 25636 | if test -n "$freetype_config"; then |
| 25637 | ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test. |
| 25638 | else |
| 25639 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 25640 | for as_dir in $PATH |
| 25641 | do |
| 25642 | IFS=$as_save_IFS |
| 25643 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25644 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25645 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 25646 | ac_cv_prog_freetype_config="$ac_prog" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25647 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25648 | break 2 |
| 25649 | fi |
| 25650 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25651 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25652 | IFS=$as_save_IFS |
| 25653 | |
| 25654 | fi |
| 25655 | fi |
| 25656 | freetype_config=$ac_cv_prog_freetype_config |
| 25657 | if test -n "$freetype_config"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25659 | $as_echo "$freetype_config" >&6; } |
| 25660 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25662 | $as_echo "no" >&6; } |
| 25663 | fi |
| 25664 | |
| 25665 | |
| 25666 | test -n "$freetype_config" && break |
| 25667 | done |
| 25668 | if test -n "$freetype_config"; then |
| 25669 | freetype_cflags=`$freetype_config --cflags` |
| 25670 | freetype_libs=`$freetype_config --libs` |
| cristy | 6629111 | 2009-10-03 22:44:36 +0000 | [diff] [blame] | 25671 | LIBS="$LIBS $freetype_libs" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25672 | CPPFLAGS="$freetype_cflags $CPPFLAGS" |
| 25673 | fi |
| 25674 | fi |
| 25675 | |
| 25676 | if test "$FREETYPE_LIBS" = ''; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25678 | $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25679 | if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25680 | $as_echo_n "(cached) " >&6 |
| 25681 | else |
| 25682 | ac_check_lib_save_LIBS=$LIBS |
| 25683 | LIBS="-lfreetype $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25684 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25685 | /* end confdefs.h. */ |
| 25686 | |
| 25687 | /* Override any GCC internal prototype to avoid an error. |
| 25688 | Use char because int might match the return type of a GCC |
| 25689 | builtin and then its argument prototype would still apply. */ |
| 25690 | #ifdef __cplusplus |
| 25691 | extern "C" |
| 25692 | #endif |
| 25693 | char FT_Init_FreeType (); |
| 25694 | int |
| 25695 | main () |
| 25696 | { |
| 25697 | return FT_Init_FreeType (); |
| 25698 | ; |
| 25699 | return 0; |
| 25700 | } |
| 25701 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25702 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25703 | ac_cv_lib_freetype_FT_Init_FreeType=yes |
| 25704 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25705 | ac_cv_lib_freetype_FT_Init_FreeType=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25706 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25707 | rm -f core conftest.err conftest.$ac_objext \ |
| 25708 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25709 | LIBS=$ac_check_lib_save_LIBS |
| 25710 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25712 | $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25713 | if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25714 | FREETYPE_LIBS='-lfreetype' |
| 25715 | fi |
| 25716 | |
| 25717 | if test "$FREETYPE_LIBS" != ''; then |
| 25718 | passed=`expr $passed + 1` |
| 25719 | else |
| 25720 | failed=`expr $failed + 1` |
| cristy | 6629111 | 2009-10-03 22:44:36 +0000 | [diff] [blame] | 25721 | LIBS="$PERSIST_LIBS" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25722 | fi |
| 25723 | fi |
| 25724 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25725 | ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default" |
| 25726 | if test "x$ac_cv_header_ft2build_h" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25727 | FT2BUILD_H='#include <ft2build.h>' |
| 25728 | else |
| 25729 | ft2build='' |
| 25730 | fi |
| 25731 | |
| 25732 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25733 | ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H |
| 25734 | " |
| 25735 | if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25736 | have_freetype_h='yes' |
| 25737 | else |
| 25738 | have_freetype_h='no' |
| 25739 | fi |
| 25740 | |
| 25741 | |
| 25742 | if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then |
| 25743 | passed=`expr $passed + 1` |
| 25744 | else |
| 25745 | failed=`expr $failed + 1` |
| 25746 | CPPFLAGS="$PERSIST_CPPFLAGS" |
| 25747 | fi |
| 25748 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25750 | $as_echo_n "checking if FreeType package is complete... " >&6; } |
| 25751 | if test $passed -gt 0; then |
| 25752 | if test $failed -gt 0; then |
| 25753 | FREETYPE_LIBS='' |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25755 | $as_echo "no -- some components failed test" >&6; } |
| 25756 | have_freetype='no (failed tests)' |
| 25757 | else |
| 25758 | LIBS="$FREETYPE_LIBS $LIBS" |
| 25759 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25760 | $as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25761 | |
| 25762 | if test "$ac_cv_header_ft2build_h" = 'yes'; then |
| 25763 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25764 | $as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25765 | |
| 25766 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25768 | $as_echo "yes" >&6; } |
| 25769 | have_freetype='yes' |
| 25770 | fi |
| 25771 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25773 | $as_echo "no" >&6; } |
| 25774 | fi |
| 25775 | fi |
| 25776 | if test "$have_freetype" = 'yes'; then |
| 25777 | FREETYPE_DELEGATE_TRUE= |
| 25778 | FREETYPE_DELEGATE_FALSE='#' |
| 25779 | else |
| 25780 | FREETYPE_DELEGATE_TRUE='#' |
| 25781 | FREETYPE_DELEGATE_FALSE= |
| 25782 | fi |
| 25783 | |
| 25784 | |
| 25785 | |
| 25786 | |
| 25787 | |
| 25788 | # |
| 25789 | # Check for Ghostscript library or framework. |
| 25790 | # |
| 25791 | # Test for iapi.h & test for gsapi_new_instance in -lgs |
| 25792 | # or -framework Ghostscript |
| 25793 | |
| 25794 | |
| 25795 | # Check whether --with-gslib was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25796 | if test "${with_gslib+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25797 | withval=$with_gslib; with_gslib=$withval |
| 25798 | else |
| 25799 | with_gslib='no' |
| 25800 | fi |
| 25801 | |
| 25802 | |
| cristy | b7931f1 | 2009-09-25 10:22:21 +0000 | [diff] [blame] | 25803 | gslib_framework='no' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25804 | if test "$with_gslib" != 'yes'; then |
| 25805 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib " |
| 25806 | fi |
| 25807 | |
| 25808 | have_gslib='no' |
| 25809 | GS_LIBS='' |
| 25810 | if test "$with_gslib" != 'no'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25812 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25814 | $as_echo_n "checking for Ghostscript... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25816 | $as_echo "" >&6; } |
| cristy | b7931f1 | 2009-09-25 10:22:21 +0000 | [diff] [blame] | 25817 | framework=0 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25818 | failed=0 |
| 25819 | passed=0 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25820 | ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default" |
| 25821 | if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25822 | passed=`expr $passed + 1` |
| 25823 | else |
| 25824 | failed=`expr $failed + 1` |
| 25825 | fi |
| 25826 | |
| 25827 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25828 | ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default" |
| 25829 | if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25830 | passed=`expr $passed + 1` |
| 25831 | else |
| 25832 | failed=`expr $failed + 1` |
| 25833 | fi |
| 25834 | |
| 25835 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25837 | $as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25838 | if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25839 | $as_echo_n "(cached) " >&6 |
| 25840 | else |
| 25841 | ac_check_framework_save_LIBS=$LIBS |
| 25842 | LIBS="-framework Ghostscript $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25843 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25844 | /* end confdefs.h. */ |
| 25845 | |
| 25846 | /* Override any GCC internal prototype to avoid an error. |
| 25847 | Use char because int might match the return type of a GCC |
| 25848 | builtin and then its argument prototype would still apply. */ |
| 25849 | #ifdef __cplusplus |
| 25850 | extern "C" |
| 25851 | #endif |
| 25852 | char gsapi_new_instance (); |
| 25853 | int |
| 25854 | main () |
| 25855 | { |
| 25856 | return gsapi_new_instance (); |
| 25857 | ; |
| 25858 | return 0; |
| 25859 | } |
| 25860 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25861 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25862 | ac_cv_framework_Ghostscript_gsapi_new_instance=yes |
| 25863 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25864 | ac_cv_framework_Ghostscript_gsapi_new_instance=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25865 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25866 | rm -f core conftest.err conftest.$ac_objext \ |
| 25867 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25868 | LIBS=$ac_check_framework_save_LIBS |
| 25869 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25871 | $as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25872 | if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25873 | framework=`expr $framework + 1` |
| 25874 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25876 | $as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25877 | if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25878 | $as_echo_n "(cached) " >&6 |
| 25879 | else |
| 25880 | ac_check_lib_save_LIBS=$LIBS |
| 25881 | LIBS="-lgs $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25882 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25883 | /* end confdefs.h. */ |
| 25884 | |
| 25885 | /* Override any GCC internal prototype to avoid an error. |
| 25886 | Use char because int might match the return type of a GCC |
| 25887 | builtin and then its argument prototype would still apply. */ |
| 25888 | #ifdef __cplusplus |
| 25889 | extern "C" |
| 25890 | #endif |
| 25891 | char gsapi_new_instance (); |
| 25892 | int |
| 25893 | main () |
| 25894 | { |
| 25895 | return gsapi_new_instance (); |
| 25896 | ; |
| 25897 | return 0; |
| 25898 | } |
| 25899 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25900 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25901 | ac_cv_lib_gs_gsapi_new_instance=yes |
| 25902 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25903 | ac_cv_lib_gs_gsapi_new_instance=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25904 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25905 | rm -f core conftest.err conftest.$ac_objext \ |
| 25906 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25907 | LIBS=$ac_check_lib_save_LIBS |
| 25908 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25910 | $as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25911 | if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25912 | passed=`expr $passed + 1` |
| 25913 | else |
| 25914 | failed=`expr $failed + 1` |
| 25915 | fi |
| 25916 | |
| 25917 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25919 | $as_echo_n "checking if Ghostscript package is complete... " >&6; } |
| 25920 | if test $passed -gt 0; then |
| 25921 | if test $failed -gt 0; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25923 | $as_echo "no -- some components failed test" >&6; } |
| 25924 | have_gslib='no (failed tests)' |
| 25925 | else |
| 25926 | if test $framework -gt 0; then |
| 25927 | GS_LIBS='-framework Ghostscript' |
| cristy | b7931f1 | 2009-09-25 10:22:21 +0000 | [diff] [blame] | 25928 | gslib_framework='yes' |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25930 | $as_echo "yes, using framework." >&6; } |
| 25931 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25933 | $as_echo "yes, using library." >&6; } |
| 25934 | GS_LIBS='-lgs' |
| 25935 | fi |
| 25936 | LIBS="$GS_LIBS $LIBS" |
| 25937 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25938 | $as_echo "#define GS_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25939 | |
| 25940 | have_gslib='yes' |
| 25941 | fi |
| 25942 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25944 | $as_echo "no" >&6; } |
| 25945 | fi |
| 25946 | fi |
| 25947 | if test "$have_gslib" = 'yes'; then |
| 25948 | GS_DELEGATE_TRUE= |
| 25949 | GS_DELEGATE_FALSE='#' |
| 25950 | else |
| 25951 | GS_DELEGATE_TRUE='#' |
| 25952 | GS_DELEGATE_FALSE= |
| 25953 | fi |
| 25954 | |
| 25955 | |
| 25956 | |
| 25957 | # Set default font search path |
| 25958 | |
| 25959 | # Check whether --with-fontpath was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25960 | if test "${with_fontpath+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25961 | withval=$with_fontpath; with_fontpath=$withval |
| 25962 | else |
| 25963 | with_fontpath='' |
| 25964 | fi |
| 25965 | |
| 25966 | |
| 25967 | if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then |
| 25968 | with_fontpath='' |
| 25969 | else |
| 25970 | |
| 25971 | cat >>confdefs.h <<_ACEOF |
| 25972 | #define MAGICK_FONT_PATH "$with_fontpath" |
| 25973 | _ACEOF |
| 25974 | |
| 25975 | fi |
| 25976 | if test "$with_fontpath=" != ''; then |
| 25977 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath " |
| 25978 | fi |
| 25979 | |
| 25980 | # Set Ghostscript font directory |
| 25981 | |
| 25982 | # Check whether --with-gs-font-dir was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 25983 | if test "${with_gs_font_dir+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25984 | withval=$with_gs_font_dir; with_gs_font_dir=$withval |
| 25985 | else |
| 25986 | with_gs_font_dir='default' |
| 25987 | fi |
| 25988 | |
| 25989 | |
| 25990 | if test "$with_gs_font_dir" != 'default'; then |
| 25991 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir " |
| 25992 | fi |
| 25993 | |
| 25994 | |
| 25995 | # |
| 25996 | # Check for GVC delegate library. |
| 25997 | # |
| 25998 | |
| 25999 | # Check whether --with-gvc was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26000 | if test "${with_gvc+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26001 | withval=$with_gvc; with_gvc=$withval |
| 26002 | else |
| 26003 | with_gvc='yes' |
| 26004 | fi |
| 26005 | |
| 26006 | |
| 26007 | if test "$with_gvc" != 'yes'; then |
| 26008 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc " |
| 26009 | fi |
| 26010 | |
| 26011 | GVC_PKG="" |
| 26012 | if test "x$with_gvc" = "xyes"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26014 | $as_echo "-------------------------------------------------------------" >&6; } |
| 26015 | |
| 26016 | pkg_failed=no |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26018 | $as_echo_n "checking for GVC... " >&6; } |
| 26019 | |
| 26020 | if test -n "$GVC_CFLAGS"; then |
| 26021 | pkg_cv_GVC_CFLAGS="$GVC_CFLAGS" |
| 26022 | elif test -n "$PKG_CONFIG"; then |
| 26023 | if test -n "$PKG_CONFIG" && \ |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26024 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26025 | ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5 |
| 26026 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26027 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 26028 | test $ac_status = 0; }; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26029 | pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null` |
| 26030 | else |
| 26031 | pkg_failed=yes |
| 26032 | fi |
| 26033 | else |
| 26034 | pkg_failed=untried |
| 26035 | fi |
| 26036 | if test -n "$GVC_LIBS"; then |
| 26037 | pkg_cv_GVC_LIBS="$GVC_LIBS" |
| 26038 | elif test -n "$PKG_CONFIG"; then |
| 26039 | if test -n "$PKG_CONFIG" && \ |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26040 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26041 | ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5 |
| 26042 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26043 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 26044 | test $ac_status = 0; }; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26045 | pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null` |
| 26046 | else |
| 26047 | pkg_failed=yes |
| 26048 | fi |
| 26049 | else |
| 26050 | pkg_failed=untried |
| 26051 | fi |
| 26052 | |
| 26053 | |
| 26054 | |
| 26055 | if test $pkg_failed = yes; then |
| 26056 | |
| 26057 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 26058 | _pkg_short_errors_supported=yes |
| 26059 | else |
| 26060 | _pkg_short_errors_supported=no |
| 26061 | fi |
| 26062 | if test $_pkg_short_errors_supported = yes; then |
| 26063 | GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1` |
| 26064 | else |
| 26065 | GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1` |
| 26066 | fi |
| 26067 | # Put the nasty error message in config.log where it belongs |
| 26068 | echo "$GVC_PKG_ERRORS" >&5 |
| 26069 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26071 | $as_echo "no" >&6; } |
| 26072 | have_gvc=no |
| 26073 | elif test $pkg_failed = untried; then |
| 26074 | have_gvc=no |
| 26075 | else |
| 26076 | GVC_CFLAGS=$pkg_cv_GVC_CFLAGS |
| 26077 | GVC_LIBS=$pkg_cv_GVC_LIBS |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26079 | $as_echo "yes" >&6; } |
| 26080 | have_gvc=yes |
| 26081 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26083 | $as_echo "" >&6; } |
| 26084 | fi |
| 26085 | |
| 26086 | if test "$have_gvc" = 'yes'; then |
| 26087 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26088 | $as_echo "#define GVC_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26089 | |
| 26090 | if test "$with_modules" = 'no'; then |
| 26091 | CPPFLAGS="$GVC_CFLAGS $CPPFLAGS" |
| 26092 | fi |
| 26093 | fi |
| 26094 | |
| 26095 | if test "$have_gvc" = 'yes'; then |
| 26096 | GVC_DELEGATE_TRUE= |
| 26097 | GVC_DELEGATE_FALSE='#' |
| 26098 | else |
| 26099 | GVC_DELEGATE_TRUE='#' |
| 26100 | GVC_DELEGATE_FALSE= |
| 26101 | fi |
| 26102 | |
| 26103 | |
| 26104 | |
| 26105 | |
| 26106 | |
| 26107 | # |
| 26108 | # Check for JBIG delegate library. |
| 26109 | # |
| 26110 | |
| 26111 | |
| 26112 | # Check whether --with-jbig was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26113 | if test "${with_jbig+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26114 | withval=$with_jbig; with_jbig=$withval |
| 26115 | else |
| 26116 | with_jbig='yes' |
| 26117 | fi |
| 26118 | |
| 26119 | |
| 26120 | have_jbig='no' |
| 26121 | JBIG_LIBS='' |
| 26122 | if test "$with_jbig" != 'no'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26124 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26125 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26126 | $as_echo_n "checking for JBIG... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26128 | $as_echo "" >&6; } |
| 26129 | failed=0 |
| 26130 | passed=0 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26131 | ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default" |
| 26132 | if test "x$ac_cv_header_jbig_h" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26133 | passed=`expr $passed + 1` |
| 26134 | else |
| 26135 | failed=`expr $failed + 1` |
| 26136 | fi |
| 26137 | |
| 26138 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26140 | $as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26141 | if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26142 | $as_echo_n "(cached) " >&6 |
| 26143 | else |
| 26144 | ac_check_lib_save_LIBS=$LIBS |
| 26145 | LIBS="-ljbig $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26146 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26147 | /* end confdefs.h. */ |
| 26148 | |
| 26149 | /* Override any GCC internal prototype to avoid an error. |
| 26150 | Use char because int might match the return type of a GCC |
| 26151 | builtin and then its argument prototype would still apply. */ |
| 26152 | #ifdef __cplusplus |
| 26153 | extern "C" |
| 26154 | #endif |
| 26155 | char jbg_dec_init (); |
| 26156 | int |
| 26157 | main () |
| 26158 | { |
| 26159 | return jbg_dec_init (); |
| 26160 | ; |
| 26161 | return 0; |
| 26162 | } |
| 26163 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26164 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26165 | ac_cv_lib_jbig_jbg_dec_init=yes |
| 26166 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26167 | ac_cv_lib_jbig_jbg_dec_init=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26168 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26169 | rm -f core conftest.err conftest.$ac_objext \ |
| 26170 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26171 | LIBS=$ac_check_lib_save_LIBS |
| 26172 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26174 | $as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26175 | if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26176 | passed=`expr $passed + 1` |
| 26177 | else |
| 26178 | failed=`expr $failed + 1` |
| 26179 | fi |
| 26180 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26181 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26182 | $as_echo_n "checking if JBIG package is complete... " >&6; } |
| 26183 | if test $passed -gt 0; then |
| 26184 | if test $failed -gt 0; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26186 | $as_echo "no -- some components failed test" >&6; } |
| 26187 | have_jbig='no (failed tests)' |
| 26188 | else |
| 26189 | JBIG_LIBS='-ljbig' |
| 26190 | LIBS="$JBIG_LIBS $LIBS" |
| 26191 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26192 | $as_echo "#define JBIG_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26193 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26195 | $as_echo "yes" >&6; } |
| 26196 | have_jbig='yes' |
| 26197 | fi |
| 26198 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26200 | $as_echo "no" >&6; } |
| 26201 | fi |
| 26202 | fi |
| 26203 | if test "$have_jbig" = 'yes'; then |
| 26204 | JBIG_DELEGATE_TRUE= |
| 26205 | JBIG_DELEGATE_FALSE='#' |
| 26206 | else |
| 26207 | JBIG_DELEGATE_TRUE='#' |
| 26208 | JBIG_DELEGATE_FALSE= |
| 26209 | fi |
| 26210 | |
| 26211 | |
| 26212 | |
| 26213 | |
| 26214 | # |
| 26215 | # Check for JPEG delegate library. |
| 26216 | # |
| 26217 | |
| 26218 | # Check whether --with-jpeg was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26219 | if test "${with_jpeg+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26220 | withval=$with_jpeg; with_jpeg=$withval |
| 26221 | else |
| 26222 | with_jpeg='yes' |
| 26223 | fi |
| 26224 | |
| 26225 | |
| 26226 | if test "$with_jpeg" != 'yes'; then |
| 26227 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg " |
| 26228 | fi |
| 26229 | |
| 26230 | have_jpeg='no' |
| 26231 | JPEG_LIBS='' |
| 26232 | if test "$with_jpeg" != 'no'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26234 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26236 | $as_echo_n "checking for JPEG... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26238 | $as_echo "" >&6; } |
| 26239 | failed=0 |
| 26240 | passed=0 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26241 | ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default" |
| 26242 | if test "x$ac_cv_header_jconfig_h" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26243 | passed=`expr $passed + 1` |
| 26244 | else |
| 26245 | failed=`expr $failed + 1` |
| 26246 | fi |
| 26247 | |
| 26248 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26249 | ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default" |
| 26250 | if test "x$ac_cv_header_jerror_h" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26251 | passed=`expr $passed + 1` |
| 26252 | else |
| 26253 | failed=`expr $failed + 1` |
| 26254 | fi |
| 26255 | |
| 26256 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26257 | ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default" |
| 26258 | if test "x$ac_cv_header_jmorecfg_h" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26259 | passed=`expr $passed + 1` |
| 26260 | else |
| 26261 | failed=`expr $failed + 1` |
| 26262 | fi |
| 26263 | |
| 26264 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26265 | ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" |
| 26266 | if test "x$ac_cv_header_jpeglib_h" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26267 | passed=`expr $passed + 1` |
| 26268 | else |
| 26269 | failed=`expr $failed + 1` |
| 26270 | fi |
| 26271 | |
| 26272 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26274 | $as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26275 | if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26276 | $as_echo_n "(cached) " >&6 |
| 26277 | else |
| 26278 | ac_check_lib_save_LIBS=$LIBS |
| 26279 | LIBS="-ljpeg $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26280 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26281 | /* end confdefs.h. */ |
| 26282 | |
| 26283 | /* Override any GCC internal prototype to avoid an error. |
| 26284 | Use char because int might match the return type of a GCC |
| 26285 | builtin and then its argument prototype would still apply. */ |
| 26286 | #ifdef __cplusplus |
| 26287 | extern "C" |
| 26288 | #endif |
| 26289 | char jpeg_read_header (); |
| 26290 | int |
| 26291 | main () |
| 26292 | { |
| 26293 | return jpeg_read_header (); |
| 26294 | ; |
| 26295 | return 0; |
| 26296 | } |
| 26297 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26298 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26299 | ac_cv_lib_jpeg_jpeg_read_header=yes |
| 26300 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26301 | ac_cv_lib_jpeg_jpeg_read_header=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26302 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26303 | rm -f core conftest.err conftest.$ac_objext \ |
| 26304 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26305 | LIBS=$ac_check_lib_save_LIBS |
| 26306 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26308 | $as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26309 | if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26310 | passed=`expr $passed + 1` |
| 26311 | else |
| 26312 | failed=`expr $failed + 1` |
| 26313 | fi |
| 26314 | |
| 26315 | |
| 26316 | # Test for compatible JPEG library |
| 26317 | if test "$ac_cv_jpeg_version_ok" != 'yes'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26319 | $as_echo_n "checking for JPEG library is version 6b or later... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26320 | if test "${ac_cv_jpeg_version_ok+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26321 | $as_echo_n "(cached) " >&6 |
| 26322 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26323 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26324 | /* end confdefs.h. */ |
| 26325 | #include <stdio.h> |
| 26326 | #include <stdlib.h> |
| 26327 | #include <jpeglib.h> |
| 26328 | |
| 26329 | int |
| 26330 | main () |
| 26331 | { |
| 26332 | |
| 26333 | #if JPEG_LIB_VERSION < 62 |
| 26334 | #error IJG JPEG library must be version 6b or newer! |
| 26335 | #endif |
| 26336 | return 0; |
| 26337 | |
| 26338 | ; |
| 26339 | return 0; |
| 26340 | } |
| 26341 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26342 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26343 | ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1` |
| 26344 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26345 | ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1` |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26346 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26347 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26348 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26350 | $as_echo "$ac_cv_jpeg_version_ok" >&6; } |
| 26351 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26353 | $as_echo_n "checking if JPEG package is complete... " >&6; } |
| 26354 | if test $passed -gt 0; then |
| 26355 | if test $failed -gt 0; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26357 | $as_echo "no -- some components failed test" >&6; } |
| 26358 | have_jpeg='no (failed tests)' |
| 26359 | else |
| 26360 | JPEG_LIBS='-ljpeg' |
| 26361 | LIBS="$JPEG_LIBS $LIBS" |
| 26362 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26363 | $as_echo "#define JPEG_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26364 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26366 | $as_echo "yes" >&6; } |
| 26367 | have_jpeg='yes' |
| 26368 | fi |
| 26369 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26371 | $as_echo "no" >&6; } |
| 26372 | fi |
| 26373 | fi |
| 26374 | if test "$have_jpeg" = 'yes'; then |
| 26375 | JPEG_DELEGATE_TRUE= |
| 26376 | JPEG_DELEGATE_FALSE='#' |
| 26377 | else |
| 26378 | JPEG_DELEGATE_TRUE='#' |
| 26379 | JPEG_DELEGATE_FALSE= |
| 26380 | fi |
| 26381 | |
| 26382 | |
| 26383 | |
| 26384 | |
| 26385 | # |
| 26386 | # Check for JPEG Version 2 delegate library. |
| 26387 | # |
| 26388 | |
| 26389 | # Check whether --with-jp2 was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26390 | if test "${with_jp2+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26391 | withval=$with_jp2; with_jp2=$withval |
| 26392 | else |
| 26393 | with_jp2='yes' |
| 26394 | fi |
| 26395 | |
| 26396 | |
| 26397 | if test "$with_jp2" != 'yes'; then |
| 26398 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 " |
| 26399 | fi |
| 26400 | |
| 26401 | have_jp2='no' |
| 26402 | JP2_LIBS='' |
| 26403 | if test "$with_jp2" != 'no'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26405 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26407 | $as_echo_n "checking for JPEG Version 2... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26409 | $as_echo "" >&6; } |
| 26410 | failed=0 |
| 26411 | passed=0 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26412 | ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default" |
| 26413 | if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26414 | passed=`expr $passed + 1` |
| 26415 | else |
| 26416 | failed=`expr $failed + 1` |
| 26417 | fi |
| 26418 | |
| 26419 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26421 | $as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26422 | if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26423 | $as_echo_n "(cached) " >&6 |
| 26424 | else |
| 26425 | ac_check_lib_save_LIBS=$LIBS |
| 26426 | LIBS="-ljasper $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26427 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26428 | /* end confdefs.h. */ |
| 26429 | |
| 26430 | /* Override any GCC internal prototype to avoid an error. |
| 26431 | Use char because int might match the return type of a GCC |
| 26432 | builtin and then its argument prototype would still apply. */ |
| 26433 | #ifdef __cplusplus |
| 26434 | extern "C" |
| 26435 | #endif |
| 26436 | char jas_stream_fopen (); |
| 26437 | int |
| 26438 | main () |
| 26439 | { |
| 26440 | return jas_stream_fopen (); |
| 26441 | ; |
| 26442 | return 0; |
| 26443 | } |
| 26444 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26445 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26446 | ac_cv_lib_jasper_jas_stream_fopen=yes |
| 26447 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26448 | ac_cv_lib_jasper_jas_stream_fopen=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26449 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26450 | rm -f core conftest.err conftest.$ac_objext \ |
| 26451 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26452 | LIBS=$ac_check_lib_save_LIBS |
| 26453 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26455 | $as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26456 | if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26457 | passed=`expr $passed + 1` |
| 26458 | else |
| 26459 | failed=`expr $failed + 1` |
| 26460 | fi |
| 26461 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26462 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26463 | $as_echo_n "checking if JPEG version 2 support package is complete... " >&6; } |
| 26464 | if test $passed -gt 0; then |
| 26465 | if test $failed -gt 0; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26467 | $as_echo "no -- some components failed test" >&6; } |
| 26468 | have_jp2='no (failed tests)' |
| 26469 | else |
| 26470 | JP2_LIBS='-ljasper' |
| 26471 | LIBS="$JP2_LIBS $LIBS" |
| 26472 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26473 | $as_echo "#define JP2_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26474 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26476 | $as_echo "yes" >&6; } |
| 26477 | have_jp2='yes' |
| 26478 | fi |
| 26479 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26481 | $as_echo "no" >&6; } |
| 26482 | fi |
| 26483 | fi |
| 26484 | if test "$have_jp2" = 'yes'; then |
| 26485 | JP2_DELEGATE_TRUE= |
| 26486 | JP2_DELEGATE_FALSE='#' |
| 26487 | else |
| 26488 | JP2_DELEGATE_TRUE='#' |
| 26489 | JP2_DELEGATE_FALSE= |
| 26490 | fi |
| 26491 | |
| 26492 | |
| 26493 | |
| 26494 | |
| 26495 | # |
| 26496 | # Check for LCMS delegate library. |
| 26497 | # |
| 26498 | |
| 26499 | # Check whether --with-lcms was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26500 | if test "${with_lcms+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26501 | withval=$with_lcms; with_lcms=$withval |
| 26502 | else |
| 26503 | with_lcms='yes' |
| 26504 | fi |
| 26505 | |
| 26506 | |
| 26507 | if test "$with_lcms" != 'yes'; then |
| 26508 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms " |
| 26509 | fi |
| 26510 | |
| 26511 | have_lcms='no' |
| 26512 | LCMS_LIBS='' |
| 26513 | if test "$with_lcms" != 'no'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26515 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26517 | $as_echo_n "checking for LCMS... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26519 | $as_echo "" >&6; } |
| 26520 | failed=0 |
| 26521 | passed=0 |
| 26522 | have_lcms_header='no' |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26523 | ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default" |
| 26524 | if test "x$ac_cv_header_lcms_h" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26525 | have_lcms_header='yes' |
| 26526 | fi |
| 26527 | |
| 26528 | |
| 26529 | if test "$have_lcms_header" = 'yes'; then |
| 26530 | passed=`expr $passed + 1` |
| 26531 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26532 | $as_echo "#define HAVE_LCMS_H 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26533 | |
| 26534 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26535 | ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default" |
| 26536 | if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26537 | have_lcms_header='yes' |
| 26538 | fi |
| 26539 | |
| 26540 | |
| 26541 | if test "$have_lcms_header" = 'yes'; then |
| 26542 | passed=`expr $passed + 1` |
| 26543 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26544 | $as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26545 | |
| 26546 | else |
| 26547 | failed=`expr $failed + 1` |
| 26548 | fi |
| 26549 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromMem in -llcms" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26551 | $as_echo_n "checking for cmsOpenProfileFromMem in -llcms... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26552 | if test "${ac_cv_lib_lcms_cmsOpenProfileFromMem+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26553 | $as_echo_n "(cached) " >&6 |
| 26554 | else |
| 26555 | ac_check_lib_save_LIBS=$LIBS |
| 26556 | LIBS="-llcms $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26557 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26558 | /* end confdefs.h. */ |
| 26559 | |
| 26560 | /* Override any GCC internal prototype to avoid an error. |
| 26561 | Use char because int might match the return type of a GCC |
| 26562 | builtin and then its argument prototype would still apply. */ |
| 26563 | #ifdef __cplusplus |
| 26564 | extern "C" |
| 26565 | #endif |
| 26566 | char cmsOpenProfileFromMem (); |
| 26567 | int |
| 26568 | main () |
| 26569 | { |
| 26570 | return cmsOpenProfileFromMem (); |
| 26571 | ; |
| 26572 | return 0; |
| 26573 | } |
| 26574 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26575 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26576 | ac_cv_lib_lcms_cmsOpenProfileFromMem=yes |
| 26577 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26578 | ac_cv_lib_lcms_cmsOpenProfileFromMem=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26579 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26580 | rm -f core conftest.err conftest.$ac_objext \ |
| 26581 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26582 | LIBS=$ac_check_lib_save_LIBS |
| 26583 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromMem" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26585 | $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromMem" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26586 | if test "x$ac_cv_lib_lcms_cmsOpenProfileFromMem" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26587 | passed=`expr $passed + 1` |
| 26588 | else |
| 26589 | failed=`expr $failed + 1` |
| 26590 | fi |
| 26591 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26593 | $as_echo_n "checking if LCMS package is complete... " >&6; } |
| 26594 | if test $passed -gt 0; then |
| 26595 | if test $failed -gt 0; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26597 | $as_echo "no -- some components failed test" >&6; } |
| 26598 | have_lcms='no (failed tests)' |
| 26599 | else |
| 26600 | LCMS_LIBS='-llcms' |
| 26601 | LIBS="$LCMS_LIBS $LIBS" |
| 26602 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26603 | $as_echo "#define LCMS_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26604 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26606 | $as_echo "yes" >&6; } |
| 26607 | have_lcms='yes' |
| 26608 | fi |
| 26609 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26611 | $as_echo "no" >&6; } |
| 26612 | fi |
| 26613 | fi |
| 26614 | if test "$have_lcms" = 'yes'; then |
| 26615 | LCMS_DELEGATE_TRUE= |
| 26616 | LCMS_DELEGATE_FALSE='#' |
| 26617 | else |
| 26618 | LCMS_DELEGATE_TRUE='#' |
| 26619 | LCMS_DELEGATE_FALSE= |
| 26620 | fi |
| 26621 | |
| 26622 | |
| 26623 | |
| 26624 | |
| 26625 | # |
| 26626 | # Check for the LQR (Liquid Rescale) delegate library. |
| 26627 | # |
| 26628 | |
| 26629 | # Check whether --with-lqr was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26630 | if test "${with_lqr+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26631 | withval=$with_lqr; with_lqr=$withval |
| 26632 | else |
| 26633 | with_lqr='yes' |
| 26634 | fi |
| 26635 | |
| 26636 | |
| 26637 | if test "$with_lqr" != 'yes'; then |
| 26638 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr " |
| 26639 | fi |
| 26640 | |
| 26641 | have_lqr='no' |
| 26642 | LQR_CFLAGS="" |
| 26643 | LQR_LIBS="" |
| 26644 | LQR_PKG="" |
| 26645 | if test "x$with_lqr" = "xyes"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26647 | $as_echo "-------------------------------------------------------------" >&6; } |
| 26648 | |
| 26649 | pkg_failed=no |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26651 | $as_echo_n "checking for LQR... " >&6; } |
| 26652 | |
| 26653 | if test -n "$LQR_CFLAGS"; then |
| 26654 | pkg_cv_LQR_CFLAGS="$LQR_CFLAGS" |
| 26655 | elif test -n "$PKG_CONFIG"; then |
| 26656 | if test -n "$PKG_CONFIG" && \ |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26657 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26658 | ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5 |
| 26659 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26660 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 26661 | test $ac_status = 0; }; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26662 | pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null` |
| 26663 | else |
| 26664 | pkg_failed=yes |
| 26665 | fi |
| 26666 | else |
| 26667 | pkg_failed=untried |
| 26668 | fi |
| 26669 | if test -n "$LQR_LIBS"; then |
| 26670 | pkg_cv_LQR_LIBS="$LQR_LIBS" |
| 26671 | elif test -n "$PKG_CONFIG"; then |
| 26672 | if test -n "$PKG_CONFIG" && \ |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26673 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26674 | ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5 |
| 26675 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26676 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 26677 | test $ac_status = 0; }; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26678 | pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null` |
| 26679 | else |
| 26680 | pkg_failed=yes |
| 26681 | fi |
| 26682 | else |
| 26683 | pkg_failed=untried |
| 26684 | fi |
| 26685 | |
| 26686 | |
| 26687 | |
| 26688 | if test $pkg_failed = yes; then |
| 26689 | |
| 26690 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 26691 | _pkg_short_errors_supported=yes |
| 26692 | else |
| 26693 | _pkg_short_errors_supported=no |
| 26694 | fi |
| 26695 | if test $_pkg_short_errors_supported = yes; then |
| 26696 | LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1` |
| 26697 | else |
| 26698 | LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1` |
| 26699 | fi |
| 26700 | # Put the nasty error message in config.log where it belongs |
| 26701 | echo "$LQR_PKG_ERRORS" >&5 |
| 26702 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26704 | $as_echo "no" >&6; } |
| 26705 | have_lqr=no |
| 26706 | elif test $pkg_failed = untried; then |
| 26707 | have_lqr=no |
| 26708 | else |
| 26709 | LQR_CFLAGS=$pkg_cv_LQR_CFLAGS |
| 26710 | LQR_LIBS=$pkg_cv_LQR_LIBS |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26712 | $as_echo "yes" >&6; } |
| 26713 | have_lqr=yes |
| 26714 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26716 | $as_echo "" >&6; } |
| 26717 | fi |
| 26718 | |
| 26719 | if test "$have_lqr" = 'yes'; then |
| 26720 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26721 | $as_echo "#define LQR_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26722 | |
| 26723 | CFLAGS="$LQR_CFLAGS $CFLAGS" |
| 26724 | fi |
| 26725 | |
| 26726 | if test "$have_lqr" = 'yes'; then |
| 26727 | LQR_DELEGATE_TRUE= |
| 26728 | LQR_DELEGATE_FALSE='#' |
| 26729 | else |
| 26730 | LQR_DELEGATE_TRUE='#' |
| 26731 | LQR_DELEGATE_FALSE= |
| 26732 | fi |
| 26733 | |
| 26734 | |
| 26735 | |
| 26736 | |
| 26737 | |
| 26738 | # |
| 26739 | # Check for the OpenEXR delegate library. |
| 26740 | # |
| 26741 | |
| 26742 | # Check whether --with-openexr was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26743 | if test "${with_openexr+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26744 | withval=$with_openexr; with_openexr=$withval |
| 26745 | else |
| 26746 | with_openexr='yes' |
| 26747 | fi |
| 26748 | |
| 26749 | |
| 26750 | if test "$with_openexr" != 'yes'; then |
| 26751 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr " |
| 26752 | fi |
| 26753 | |
| 26754 | have_openexr='no' |
| 26755 | OPENEXR_CFLAGS="" |
| 26756 | OPENEXR_LIBS="" |
| 26757 | OPENEXR_PKG="" |
| 26758 | if test "x$with_openexr" = "xyes"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26760 | $as_echo "-------------------------------------------------------------" >&6; } |
| 26761 | |
| 26762 | pkg_failed=no |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26764 | $as_echo_n "checking for OPENEXR... " >&6; } |
| 26765 | |
| 26766 | if test -n "$OPENEXR_CFLAGS"; then |
| 26767 | pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS" |
| 26768 | elif test -n "$PKG_CONFIG"; then |
| 26769 | if test -n "$PKG_CONFIG" && \ |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26770 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26771 | ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5 |
| 26772 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26773 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 26774 | test $ac_status = 0; }; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26775 | pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null` |
| 26776 | else |
| 26777 | pkg_failed=yes |
| 26778 | fi |
| 26779 | else |
| 26780 | pkg_failed=untried |
| 26781 | fi |
| 26782 | if test -n "$OPENEXR_LIBS"; then |
| 26783 | pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS" |
| 26784 | elif test -n "$PKG_CONFIG"; then |
| 26785 | if test -n "$PKG_CONFIG" && \ |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26786 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26787 | ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5 |
| 26788 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26789 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 26790 | test $ac_status = 0; }; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26791 | pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null` |
| 26792 | else |
| 26793 | pkg_failed=yes |
| 26794 | fi |
| 26795 | else |
| 26796 | pkg_failed=untried |
| 26797 | fi |
| 26798 | |
| 26799 | |
| 26800 | |
| 26801 | if test $pkg_failed = yes; then |
| 26802 | |
| 26803 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 26804 | _pkg_short_errors_supported=yes |
| 26805 | else |
| 26806 | _pkg_short_errors_supported=no |
| 26807 | fi |
| 26808 | if test $_pkg_short_errors_supported = yes; then |
| 26809 | OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1` |
| 26810 | else |
| 26811 | OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1` |
| 26812 | fi |
| 26813 | # Put the nasty error message in config.log where it belongs |
| 26814 | echo "$OPENEXR_PKG_ERRORS" >&5 |
| 26815 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26817 | $as_echo "no" >&6; } |
| 26818 | have_openexr=no |
| 26819 | elif test $pkg_failed = untried; then |
| 26820 | have_openexr=no |
| 26821 | else |
| 26822 | OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS |
| 26823 | OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26825 | $as_echo "yes" >&6; } |
| 26826 | have_openexr=yes |
| 26827 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26829 | $as_echo "" >&6; } |
| 26830 | fi |
| 26831 | |
| 26832 | if test "$have_openexr" = 'yes'; then |
| 26833 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26834 | $as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26835 | |
| 26836 | if test "$with_modules" = 'no'; then |
| 26837 | CFLAGS="$OPENEXR_CFLAGS $CFLAGS" |
| 26838 | fi |
| 26839 | fi |
| 26840 | |
| 26841 | if test "$have_openexr" = 'yes'; then |
| 26842 | OPENEXR_DELEGATE_TRUE= |
| 26843 | OPENEXR_DELEGATE_FALSE='#' |
| 26844 | else |
| 26845 | OPENEXR_DELEGATE_TRUE='#' |
| 26846 | OPENEXR_DELEGATE_FALSE= |
| 26847 | fi |
| 26848 | |
| 26849 | |
| 26850 | |
| 26851 | |
| 26852 | |
| 26853 | # |
| 26854 | # Check for PNG delegate library. |
| 26855 | # |
| 26856 | |
| 26857 | # Check whether --with-png was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26858 | if test "${with_png+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26859 | withval=$with_png; with_png=$withval |
| 26860 | else |
| 26861 | with_png='yes' |
| 26862 | fi |
| 26863 | |
| 26864 | |
| 26865 | if test "$with_png" != 'yes'; then |
| 26866 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png " |
| 26867 | fi |
| 26868 | |
| 26869 | have_png='no' |
| 26870 | PNG_LIBS='' |
| 26871 | if test "$with_png" != 'no'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26873 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26875 | $as_echo_n "checking for PNG... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26877 | $as_echo "" >&6; } |
| 26878 | failed=0 |
| 26879 | passed=0 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26880 | ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default" |
| 26881 | if test "x$ac_cv_header_png_h" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26882 | passed=`expr $passed + 1` |
| 26883 | else |
| 26884 | failed=`expr $failed + 1` |
| 26885 | fi |
| 26886 | |
| 26887 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26889 | $as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26890 | if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26891 | $as_echo_n "(cached) " >&6 |
| 26892 | else |
| 26893 | ac_check_lib_save_LIBS=$LIBS |
| 26894 | LIBS="-lpng $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26895 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26896 | /* end confdefs.h. */ |
| 26897 | |
| 26898 | /* Override any GCC internal prototype to avoid an error. |
| 26899 | Use char because int might match the return type of a GCC |
| 26900 | builtin and then its argument prototype would still apply. */ |
| 26901 | #ifdef __cplusplus |
| 26902 | extern "C" |
| 26903 | #endif |
| 26904 | char png_get_io_ptr (); |
| 26905 | int |
| 26906 | main () |
| 26907 | { |
| 26908 | return png_get_io_ptr (); |
| 26909 | ; |
| 26910 | return 0; |
| 26911 | } |
| 26912 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26913 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26914 | ac_cv_lib_png_png_get_io_ptr=yes |
| 26915 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26916 | ac_cv_lib_png_png_get_io_ptr=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26917 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26918 | rm -f core conftest.err conftest.$ac_objext \ |
| 26919 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26920 | LIBS=$ac_check_lib_save_LIBS |
| 26921 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26923 | $as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26924 | if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26925 | passed=`expr $passed + 1` |
| 26926 | else |
| 26927 | failed=`expr $failed + 1` |
| 26928 | fi |
| 26929 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26931 | $as_echo_n "checking if PNG package is complete... " >&6; } |
| 26932 | if test $passed -gt 0; then |
| 26933 | if test $failed -gt 0; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26935 | $as_echo "no -- some components failed test" >&6; } |
| 26936 | have_png='no (failed tests)' |
| 26937 | else |
| 26938 | PNG_LIBS='-lpng' |
| 26939 | LIBS="$PNG_LIBS $LIBS" |
| 26940 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26941 | $as_echo "#define PNG_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26942 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26944 | $as_echo "yes" >&6; } |
| 26945 | have_png='yes' |
| 26946 | fi |
| 26947 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26949 | $as_echo "no" >&6; } |
| 26950 | fi |
| 26951 | fi |
| 26952 | if test "$have_png" = 'yes'; then |
| 26953 | PNG_DELEGATE_TRUE= |
| 26954 | PNG_DELEGATE_FALSE='#' |
| 26955 | else |
| 26956 | PNG_DELEGATE_TRUE='#' |
| 26957 | PNG_DELEGATE_FALSE= |
| 26958 | fi |
| 26959 | |
| 26960 | |
| 26961 | |
| 26962 | |
| 26963 | # |
| 26964 | # Check for RSVG delegate library. |
| 26965 | # |
| 26966 | |
| 26967 | # Check whether --with-rsvg was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26968 | if test "${with_rsvg+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26969 | withval=$with_rsvg; with_rsvg=$withval |
| 26970 | else |
| 26971 | with_rsvg=$have_x |
| 26972 | fi |
| 26973 | |
| 26974 | |
| 26975 | if test "$with_rsvg" != 'yes'; then |
| 26976 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg " |
| 26977 | fi |
| 26978 | |
| 26979 | have_rsvg='no' |
| 26980 | have_cairo='no' |
| 26981 | RSVG_CFLAGS="" |
| 26982 | RSVG_LIBS="" |
| 26983 | RSVG_PKG="" |
| 26984 | if test "x$with_rsvg" = "xyes"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26986 | $as_echo "-------------------------------------------------------------" >&6; } |
| 26987 | |
| 26988 | pkg_failed=no |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26990 | $as_echo_n "checking for RSVG... " >&6; } |
| 26991 | |
| 26992 | if test -n "$RSVG_CFLAGS"; then |
| 26993 | pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS" |
| 26994 | elif test -n "$PKG_CONFIG"; then |
| 26995 | if test -n "$PKG_CONFIG" && \ |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26996 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26997 | ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5 |
| 26998 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 26999 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 27000 | test $ac_status = 0; }; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27001 | pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null` |
| 27002 | else |
| 27003 | pkg_failed=yes |
| 27004 | fi |
| 27005 | else |
| 27006 | pkg_failed=untried |
| 27007 | fi |
| 27008 | if test -n "$RSVG_LIBS"; then |
| 27009 | pkg_cv_RSVG_LIBS="$RSVG_LIBS" |
| 27010 | elif test -n "$PKG_CONFIG"; then |
| 27011 | if test -n "$PKG_CONFIG" && \ |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27012 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27013 | ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5 |
| 27014 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27015 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 27016 | test $ac_status = 0; }; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27017 | pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null` |
| 27018 | else |
| 27019 | pkg_failed=yes |
| 27020 | fi |
| 27021 | else |
| 27022 | pkg_failed=untried |
| 27023 | fi |
| 27024 | |
| 27025 | |
| 27026 | |
| 27027 | if test $pkg_failed = yes; then |
| 27028 | |
| 27029 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 27030 | _pkg_short_errors_supported=yes |
| 27031 | else |
| 27032 | _pkg_short_errors_supported=no |
| 27033 | fi |
| 27034 | if test $_pkg_short_errors_supported = yes; then |
| 27035 | RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1` |
| 27036 | else |
| 27037 | RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1` |
| 27038 | fi |
| 27039 | # Put the nasty error message in config.log where it belongs |
| 27040 | echo "$RSVG_PKG_ERRORS" >&5 |
| 27041 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27043 | $as_echo "no" >&6; } |
| 27044 | have_rsvg=no |
| 27045 | elif test $pkg_failed = untried; then |
| 27046 | have_rsvg=no |
| 27047 | else |
| 27048 | RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS |
| 27049 | RSVG_LIBS=$pkg_cv_RSVG_LIBS |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27051 | $as_echo "yes" >&6; } |
| 27052 | have_rsvg=yes |
| 27053 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27055 | $as_echo "" >&6; } |
| 27056 | |
| 27057 | pkg_failed=no |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27059 | $as_echo_n "checking for CAIRO_SVG... " >&6; } |
| 27060 | |
| 27061 | if test -n "$CAIRO_SVG_CFLAGS"; then |
| 27062 | pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS" |
| 27063 | elif test -n "$PKG_CONFIG"; then |
| 27064 | if test -n "$PKG_CONFIG" && \ |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27065 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27066 | ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5 |
| 27067 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27068 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 27069 | test $ac_status = 0; }; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27070 | pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null` |
| 27071 | else |
| 27072 | pkg_failed=yes |
| 27073 | fi |
| 27074 | else |
| 27075 | pkg_failed=untried |
| 27076 | fi |
| 27077 | if test -n "$CAIRO_SVG_LIBS"; then |
| 27078 | pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS" |
| 27079 | elif test -n "$PKG_CONFIG"; then |
| 27080 | if test -n "$PKG_CONFIG" && \ |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27081 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27082 | ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5 |
| 27083 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27084 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 27085 | test $ac_status = 0; }; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27086 | pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null` |
| 27087 | else |
| 27088 | pkg_failed=yes |
| 27089 | fi |
| 27090 | else |
| 27091 | pkg_failed=untried |
| 27092 | fi |
| 27093 | |
| 27094 | |
| 27095 | |
| 27096 | if test $pkg_failed = yes; then |
| 27097 | |
| 27098 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 27099 | _pkg_short_errors_supported=yes |
| 27100 | else |
| 27101 | _pkg_short_errors_supported=no |
| 27102 | fi |
| 27103 | if test $_pkg_short_errors_supported = yes; then |
| 27104 | CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1` |
| 27105 | else |
| 27106 | CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1` |
| 27107 | fi |
| 27108 | # Put the nasty error message in config.log where it belongs |
| 27109 | echo "$CAIRO_SVG_PKG_ERRORS" >&5 |
| 27110 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27112 | $as_echo "no" >&6; } |
| 27113 | have_cairo=no |
| 27114 | elif test $pkg_failed = untried; then |
| 27115 | have_cairo=no |
| 27116 | else |
| 27117 | CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS |
| 27118 | CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27120 | $as_echo "yes" >&6; } |
| 27121 | have_cairo=yes |
| 27122 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27124 | $as_echo "" >&6; } |
| 27125 | fi |
| 27126 | |
| 27127 | if test "$have_rsvg" = 'yes'; then |
| 27128 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27129 | $as_echo "#define RSVG_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27130 | |
| 27131 | if test "$with_modules" = 'no'; then |
| 27132 | CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS" |
| 27133 | fi |
| 27134 | fi |
| 27135 | |
| 27136 | if test "$have_cairo" = 'yes'; then |
| 27137 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27138 | $as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27139 | |
| 27140 | if test "$with_modules" = 'no'; then |
| 27141 | CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS" |
| 27142 | fi |
| 27143 | fi |
| 27144 | |
| 27145 | if test "$have_rsvg" = 'yes'; then |
| 27146 | RSVG_DELEGATE_TRUE= |
| 27147 | RSVG_DELEGATE_FALSE='#' |
| 27148 | else |
| 27149 | RSVG_DELEGATE_TRUE='#' |
| 27150 | RSVG_DELEGATE_FALSE= |
| 27151 | fi |
| 27152 | |
| 27153 | if test "$have_cairo" = 'yes'; then |
| 27154 | CAIRO_DELEGATE_TRUE= |
| 27155 | CAIRO_DELEGATE_FALSE='#' |
| 27156 | else |
| 27157 | CAIRO_DELEGATE_TRUE='#' |
| 27158 | CAIRO_DELEGATE_FALSE= |
| 27159 | fi |
| 27160 | |
| 27161 | |
| 27162 | |
| 27163 | |
| 27164 | |
| 27165 | # |
| 27166 | # Check for TIFF delegate library. |
| 27167 | # |
| 27168 | |
| 27169 | # Check whether --with-tiff was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27170 | if test "${with_tiff+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27171 | withval=$with_tiff; with_tiff=$withval |
| 27172 | else |
| 27173 | with_tiff='yes' |
| 27174 | fi |
| 27175 | |
| 27176 | |
| 27177 | if test "$with_tiff" != 'yes'; then |
| 27178 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff " |
| 27179 | fi |
| 27180 | |
| 27181 | have_tiff='no' |
| 27182 | TIFF_LIBS='' |
| 27183 | if test "$with_tiff" != 'no'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27185 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27186 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27187 | $as_echo_n "checking for TIFF... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27189 | $as_echo "" >&6; } |
| 27190 | failed=0 |
| 27191 | passed=0 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27192 | ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default" |
| 27193 | if test "x$ac_cv_header_tiff_h" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27194 | passed=`expr $passed + 1` |
| 27195 | else |
| 27196 | failed=`expr $failed + 1` |
| 27197 | fi |
| 27198 | |
| 27199 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27200 | ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default" |
| 27201 | if test "x$ac_cv_header_tiffio_h" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27202 | passed=`expr $passed + 1` |
| 27203 | else |
| 27204 | failed=`expr $failed + 1` |
| 27205 | fi |
| 27206 | |
| 27207 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27209 | $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27210 | if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27211 | $as_echo_n "(cached) " >&6 |
| 27212 | else |
| 27213 | ac_check_lib_save_LIBS=$LIBS |
| 27214 | LIBS="-ltiff $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27215 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27216 | /* end confdefs.h. */ |
| 27217 | |
| 27218 | /* Override any GCC internal prototype to avoid an error. |
| 27219 | Use char because int might match the return type of a GCC |
| 27220 | builtin and then its argument prototype would still apply. */ |
| 27221 | #ifdef __cplusplus |
| 27222 | extern "C" |
| 27223 | #endif |
| 27224 | char TIFFOpen (); |
| 27225 | int |
| 27226 | main () |
| 27227 | { |
| 27228 | return TIFFOpen (); |
| 27229 | ; |
| 27230 | return 0; |
| 27231 | } |
| 27232 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27233 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27234 | ac_cv_lib_tiff_TIFFOpen=yes |
| 27235 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27236 | ac_cv_lib_tiff_TIFFOpen=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27237 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27238 | rm -f core conftest.err conftest.$ac_objext \ |
| 27239 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27240 | LIBS=$ac_check_lib_save_LIBS |
| 27241 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27243 | $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27244 | if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27245 | passed=`expr $passed + 1` |
| 27246 | else |
| 27247 | failed=`expr $failed + 1` |
| 27248 | fi |
| 27249 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27250 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27251 | $as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27252 | if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27253 | $as_echo_n "(cached) " >&6 |
| 27254 | else |
| 27255 | ac_check_lib_save_LIBS=$LIBS |
| 27256 | LIBS="-ltiff $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27257 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27258 | /* end confdefs.h. */ |
| 27259 | |
| 27260 | /* Override any GCC internal prototype to avoid an error. |
| 27261 | Use char because int might match the return type of a GCC |
| 27262 | builtin and then its argument prototype would still apply. */ |
| 27263 | #ifdef __cplusplus |
| 27264 | extern "C" |
| 27265 | #endif |
| 27266 | char TIFFClientOpen (); |
| 27267 | int |
| 27268 | main () |
| 27269 | { |
| 27270 | return TIFFClientOpen (); |
| 27271 | ; |
| 27272 | return 0; |
| 27273 | } |
| 27274 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27275 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27276 | ac_cv_lib_tiff_TIFFClientOpen=yes |
| 27277 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27278 | ac_cv_lib_tiff_TIFFClientOpen=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27279 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27280 | rm -f core conftest.err conftest.$ac_objext \ |
| 27281 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27282 | LIBS=$ac_check_lib_save_LIBS |
| 27283 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27285 | $as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27286 | if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27287 | passed=`expr $passed + 1` |
| 27288 | else |
| 27289 | failed=`expr $failed + 1` |
| 27290 | fi |
| 27291 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27293 | $as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27294 | if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27295 | $as_echo_n "(cached) " >&6 |
| 27296 | else |
| 27297 | ac_check_lib_save_LIBS=$LIBS |
| 27298 | LIBS="-ltiff $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27299 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27300 | /* end confdefs.h. */ |
| 27301 | |
| 27302 | /* Override any GCC internal prototype to avoid an error. |
| 27303 | Use char because int might match the return type of a GCC |
| 27304 | builtin and then its argument prototype would still apply. */ |
| 27305 | #ifdef __cplusplus |
| 27306 | extern "C" |
| 27307 | #endif |
| 27308 | char TIFFIsByteSwapped (); |
| 27309 | int |
| 27310 | main () |
| 27311 | { |
| 27312 | return TIFFIsByteSwapped (); |
| 27313 | ; |
| 27314 | return 0; |
| 27315 | } |
| 27316 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27317 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27318 | ac_cv_lib_tiff_TIFFIsByteSwapped=yes |
| 27319 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27320 | ac_cv_lib_tiff_TIFFIsByteSwapped=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27321 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27322 | rm -f core conftest.err conftest.$ac_objext \ |
| 27323 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27324 | LIBS=$ac_check_lib_save_LIBS |
| 27325 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27327 | $as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27328 | if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27329 | passed=`expr $passed + 1` |
| 27330 | else |
| 27331 | failed=`expr $failed + 1` |
| 27332 | fi |
| 27333 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27335 | $as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27336 | if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27337 | $as_echo_n "(cached) " >&6 |
| 27338 | else |
| 27339 | ac_check_lib_save_LIBS=$LIBS |
| 27340 | LIBS="-ltiff $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27341 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27342 | /* end confdefs.h. */ |
| 27343 | |
| 27344 | /* Override any GCC internal prototype to avoid an error. |
| 27345 | Use char because int might match the return type of a GCC |
| 27346 | builtin and then its argument prototype would still apply. */ |
| 27347 | #ifdef __cplusplus |
| 27348 | extern "C" |
| 27349 | #endif |
| 27350 | char TIFFReadRGBATile (); |
| 27351 | int |
| 27352 | main () |
| 27353 | { |
| 27354 | return TIFFReadRGBATile (); |
| 27355 | ; |
| 27356 | return 0; |
| 27357 | } |
| 27358 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27359 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27360 | ac_cv_lib_tiff_TIFFReadRGBATile=yes |
| 27361 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27362 | ac_cv_lib_tiff_TIFFReadRGBATile=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27363 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27364 | rm -f core conftest.err conftest.$ac_objext \ |
| 27365 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27366 | LIBS=$ac_check_lib_save_LIBS |
| 27367 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27369 | $as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27370 | if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27371 | passed=`expr $passed + 1` |
| 27372 | else |
| 27373 | failed=`expr $failed + 1` |
| 27374 | fi |
| 27375 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27377 | $as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27378 | if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27379 | $as_echo_n "(cached) " >&6 |
| 27380 | else |
| 27381 | ac_check_lib_save_LIBS=$LIBS |
| 27382 | LIBS="-ltiff $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27383 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27384 | /* end confdefs.h. */ |
| 27385 | |
| 27386 | /* Override any GCC internal prototype to avoid an error. |
| 27387 | Use char because int might match the return type of a GCC |
| 27388 | builtin and then its argument prototype would still apply. */ |
| 27389 | #ifdef __cplusplus |
| 27390 | extern "C" |
| 27391 | #endif |
| 27392 | char TIFFReadRGBAStrip (); |
| 27393 | int |
| 27394 | main () |
| 27395 | { |
| 27396 | return TIFFReadRGBAStrip (); |
| 27397 | ; |
| 27398 | return 0; |
| 27399 | } |
| 27400 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27401 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27402 | ac_cv_lib_tiff_TIFFReadRGBAStrip=yes |
| 27403 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27404 | ac_cv_lib_tiff_TIFFReadRGBAStrip=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27405 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27406 | rm -f core conftest.err conftest.$ac_objext \ |
| 27407 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27408 | LIBS=$ac_check_lib_save_LIBS |
| 27409 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27411 | $as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27412 | if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27413 | passed=`expr $passed + 1` |
| 27414 | else |
| 27415 | failed=`expr $failed + 1` |
| 27416 | fi |
| 27417 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27419 | $as_echo_n "checking if TIFF package is complete... " >&6; } |
| 27420 | if test $passed -gt 0; then |
| 27421 | if test $failed -gt 0; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27423 | $as_echo "no -- some components failed test" >&6; } |
| 27424 | have_tiff='no (failed tests)' |
| 27425 | else |
| 27426 | TIFF_LIBS='-ltiff' |
| 27427 | LIBS="$TIFF_LIBS $LIBS" |
| 27428 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27429 | $as_echo "#define TIFF_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27430 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27432 | $as_echo "yes" >&6; } |
| 27433 | have_tiff='yes' |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27434 | for ac_header in tiffconf.h |
| 27435 | do : |
| 27436 | ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default" |
| 27437 | if test "x$ac_cv_header_tiffconf_h" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27438 | cat >>confdefs.h <<_ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27439 | #define HAVE_TIFFCONF_H 1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27440 | _ACEOF |
| 27441 | |
| 27442 | fi |
| 27443 | |
| 27444 | done |
| 27445 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27446 | for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \ |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27447 | TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \ |
| 27448 | TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27449 | do : |
| 27450 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 27451 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 27452 | eval as_val=\$$as_ac_var |
| 27453 | if test "x$as_val" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27454 | cat >>confdefs.h <<_ACEOF |
| 27455 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 27456 | _ACEOF |
| 27457 | |
| 27458 | fi |
| 27459 | done |
| 27460 | |
| 27461 | fi |
| 27462 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27464 | $as_echo "no" >&6; } |
| 27465 | fi |
| 27466 | fi |
| 27467 | if test "$have_tiff" = 'yes'; then |
| 27468 | TIFF_DELEGATE_TRUE= |
| 27469 | TIFF_DELEGATE_FALSE='#' |
| 27470 | else |
| 27471 | TIFF_DELEGATE_TRUE='#' |
| 27472 | TIFF_DELEGATE_FALSE= |
| 27473 | fi |
| 27474 | |
| 27475 | |
| 27476 | |
| 27477 | |
| 27478 | # |
| 27479 | # Set Windows font directory. |
| 27480 | # |
| 27481 | |
| 27482 | # Check whether --with-windows-font-dir was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27483 | if test "${with_windows_font_dir+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27484 | withval=$with_windows_font_dir; with_windows_font_dir=$withval |
| 27485 | else |
| 27486 | with_windows_font_dir='' |
| 27487 | fi |
| 27488 | |
| 27489 | if test "$with_windows_font_dir" != '' ; then |
| 27490 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir " |
| 27491 | fi |
| 27492 | |
| 27493 | |
| 27494 | # |
| 27495 | # Check for WMF delegate library. |
| 27496 | # |
| 27497 | |
| 27498 | # Check whether --with-wmf was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27499 | if test "${with_wmf+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27500 | withval=$with_wmf; with_wmf=$withval |
| 27501 | else |
| 27502 | with_wmf=$with_modules |
| 27503 | fi |
| 27504 | |
| 27505 | |
| 27506 | if test "$with_wmf" != 'yes'; then |
| 27507 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf " |
| 27508 | fi |
| 27509 | |
| 27510 | have_wmf='no' |
| 27511 | WMF_LIBS='' |
| 27512 | WMF_LIBS_DEPS='' |
| 27513 | OLIBS="$LIBS" |
| 27514 | if test "$with_wmf" != 'no'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27516 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27518 | $as_echo_n "checking for WMF... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27520 | $as_echo "" >&6; } |
| 27521 | have_libwmf='no' |
| 27522 | have_libwmflite='no' |
| 27523 | have_libwmf_ipa_h='no' |
| 27524 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27525 | ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H |
| 27526 | " |
| 27527 | if test "x$ac_cv_header_libwmf_ipa_h" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27528 | have_libwmf_ipa_h='yes' |
| 27529 | fi |
| 27530 | |
| 27531 | |
| 27532 | if test "$have_libwmf_ipa_h" = 'yes'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27534 | $as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27535 | if test "${ac_cv_lib_wmflite_wmf_lite_create+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27536 | $as_echo_n "(cached) " >&6 |
| 27537 | else |
| 27538 | ac_check_lib_save_LIBS=$LIBS |
| 27539 | LIBS="-lwmflite $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27540 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27541 | /* end confdefs.h. */ |
| 27542 | |
| 27543 | /* Override any GCC internal prototype to avoid an error. |
| 27544 | Use char because int might match the return type of a GCC |
| 27545 | builtin and then its argument prototype would still apply. */ |
| 27546 | #ifdef __cplusplus |
| 27547 | extern "C" |
| 27548 | #endif |
| 27549 | char wmf_lite_create (); |
| 27550 | int |
| 27551 | main () |
| 27552 | { |
| 27553 | return wmf_lite_create (); |
| 27554 | ; |
| 27555 | return 0; |
| 27556 | } |
| 27557 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27558 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27559 | ac_cv_lib_wmflite_wmf_lite_create=yes |
| 27560 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27561 | ac_cv_lib_wmflite_wmf_lite_create=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27562 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27563 | rm -f core conftest.err conftest.$ac_objext \ |
| 27564 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27565 | LIBS=$ac_check_lib_save_LIBS |
| 27566 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27568 | $as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27569 | if test "x$ac_cv_lib_wmflite_wmf_lite_create" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27570 | have_libwmflite='yes' |
| 27571 | fi |
| 27572 | |
| 27573 | if test "$have_libwmflite" = 'yes'; then |
| 27574 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27575 | $as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27576 | |
| 27577 | WMF_LIBS='-lwmflite' |
| 27578 | LIBS="$WMF_LIBS $LIBS" |
| 27579 | have_wmf='yes' |
| 27580 | else |
| 27581 | WMF_LIBS_DEPS='' |
| 27582 | WMF_CONFIG_LIBS=`libwmf-config --libs` |
| 27583 | for lib in xml2 expat freetype jpeg png z; do |
| 27584 | testlib="-l${lib}" |
| 27585 | echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib" |
| 27586 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27588 | $as_echo_n "checking for wmf_api_create in -lwmf... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27589 | if test "${ac_cv_lib_wmf_wmf_api_create+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27590 | $as_echo_n "(cached) " >&6 |
| 27591 | else |
| 27592 | ac_check_lib_save_LIBS=$LIBS |
| 27593 | LIBS="-lwmf $WMF_LIBS_DEPS $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27594 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27595 | /* end confdefs.h. */ |
| 27596 | |
| 27597 | /* Override any GCC internal prototype to avoid an error. |
| 27598 | Use char because int might match the return type of a GCC |
| 27599 | builtin and then its argument prototype would still apply. */ |
| 27600 | #ifdef __cplusplus |
| 27601 | extern "C" |
| 27602 | #endif |
| 27603 | char wmf_api_create (); |
| 27604 | int |
| 27605 | main () |
| 27606 | { |
| 27607 | return wmf_api_create (); |
| 27608 | ; |
| 27609 | return 0; |
| 27610 | } |
| 27611 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27612 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27613 | ac_cv_lib_wmf_wmf_api_create=yes |
| 27614 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27615 | ac_cv_lib_wmf_wmf_api_create=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27616 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27617 | rm -f core conftest.err conftest.$ac_objext \ |
| 27618 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27619 | LIBS=$ac_check_lib_save_LIBS |
| 27620 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27622 | $as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27623 | if test "x$ac_cv_lib_wmf_wmf_api_create" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27624 | have_libwmf='yes' |
| 27625 | fi |
| 27626 | |
| 27627 | if test "$have_libwmf" = 'yes'; then |
| 27628 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27629 | $as_echo "#define WMF_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27630 | |
| 27631 | WMF_LIBS='-lwmf' |
| 27632 | LIBS="$WMF_LIBS $LIBS" |
| 27633 | have_wmf='yes' |
| 27634 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27636 | $as_echo "no -- some components failed test" >&6; } |
| 27637 | have_wmf='no (failed tests)' |
| 27638 | have_wmflite='no (failed tests)' |
| 27639 | LIBS="$OLIBS" |
| 27640 | WMF_LIBS='' |
| 27641 | fi |
| 27642 | fi |
| 27643 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27645 | $as_echo_n "checking if WMF package is complete... " >&6; } |
| 27646 | if test "$have_wmf" = 'yes'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27648 | $as_echo "yes" >&6; } |
| 27649 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27651 | $as_echo "no" >&6; } |
| 27652 | fi |
| 27653 | fi |
| 27654 | if test "$have_wmf" = 'yes'; then |
| 27655 | WMF_DELEGATE_TRUE= |
| 27656 | WMF_DELEGATE_FALSE='#' |
| 27657 | else |
| 27658 | WMF_DELEGATE_TRUE='#' |
| 27659 | WMF_DELEGATE_FALSE= |
| 27660 | fi |
| 27661 | |
| 27662 | |
| 27663 | |
| 27664 | |
| 27665 | |
| 27666 | # |
| 27667 | # Check for XML delegate library. |
| 27668 | # |
| 27669 | |
| 27670 | # Check whether --with-xml was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27671 | if test "${with_xml+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27672 | withval=$with_xml; with_xml=$withval |
| 27673 | else |
| 27674 | with_xml=$have_x |
| 27675 | fi |
| 27676 | |
| 27677 | |
| 27678 | if test "$with_xml" != 'yes' ; then |
| 27679 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml " |
| 27680 | fi |
| 27681 | |
| 27682 | have_xml='no' |
| 27683 | XML_LIBS='' |
| 27684 | if test "$with_xml" != 'no'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27686 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27688 | $as_echo_n "checking for XML... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27690 | $as_echo "" >&6; } |
| 27691 | PERSIST_LDFLAGS=$LDFLAGS |
| 27692 | PERSIST_CPPFLAGS=$CPPFLAGS |
| 27693 | xml2_config='' |
| 27694 | for ac_prog in xml2-config |
| 27695 | do |
| 27696 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 27697 | set dummy $ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27699 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27700 | if test "${ac_cv_prog_xml2_config+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27701 | $as_echo_n "(cached) " >&6 |
| 27702 | else |
| 27703 | if test -n "$xml2_config"; then |
| 27704 | ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test. |
| 27705 | else |
| 27706 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 27707 | for as_dir in $PATH |
| 27708 | do |
| 27709 | IFS=$as_save_IFS |
| 27710 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27711 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27712 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 27713 | ac_cv_prog_xml2_config="$ac_prog" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27714 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27715 | break 2 |
| 27716 | fi |
| 27717 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27718 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27719 | IFS=$as_save_IFS |
| 27720 | |
| 27721 | fi |
| 27722 | fi |
| 27723 | xml2_config=$ac_cv_prog_xml2_config |
| 27724 | if test -n "$xml2_config"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27726 | $as_echo "$xml2_config" >&6; } |
| 27727 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27729 | $as_echo "no" >&6; } |
| 27730 | fi |
| 27731 | |
| 27732 | |
| 27733 | test -n "$xml2_config" && break |
| 27734 | done |
| 27735 | if test -n "$xml2_config"; then |
| 27736 | # Debian installs libxml headers under /usr/include/libxml2/libxml with |
| 27737 | # the shared library installed under /usr/lib, whereas the package |
| 27738 | # installs itself under $prefix/libxml and $prefix/lib. |
| 27739 | xml2_prefix=`xml2-config --prefix` |
| 27740 | if test -d "${xml2_prefix}/include/libxml2"; then |
| 27741 | CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2" |
| 27742 | fi |
| 27743 | if test "${xml2_prefix}" != '/usr'; then |
| 27744 | LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib" |
| 27745 | fi |
| 27746 | fi |
| 27747 | failed=0 |
| 27748 | passed=0 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27749 | ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default" |
| 27750 | if test "x$ac_cv_header_libxml_parser_h" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27751 | passed=`expr $passed + 1` |
| 27752 | else |
| 27753 | failed=`expr $failed + 1` |
| 27754 | fi |
| 27755 | |
| 27756 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27758 | $as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27759 | if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27760 | $as_echo_n "(cached) " >&6 |
| 27761 | else |
| 27762 | ac_check_lib_save_LIBS=$LIBS |
| 27763 | LIBS="-lxml2 $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27764 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27765 | /* end confdefs.h. */ |
| 27766 | |
| 27767 | /* Override any GCC internal prototype to avoid an error. |
| 27768 | Use char because int might match the return type of a GCC |
| 27769 | builtin and then its argument prototype would still apply. */ |
| 27770 | #ifdef __cplusplus |
| 27771 | extern "C" |
| 27772 | #endif |
| 27773 | char xmlParseExternalEntity (); |
| 27774 | int |
| 27775 | main () |
| 27776 | { |
| 27777 | return xmlParseExternalEntity (); |
| 27778 | ; |
| 27779 | return 0; |
| 27780 | } |
| 27781 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27782 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27783 | ac_cv_lib_xml2_xmlParseExternalEntity=yes |
| 27784 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27785 | ac_cv_lib_xml2_xmlParseExternalEntity=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27786 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27787 | rm -f core conftest.err conftest.$ac_objext \ |
| 27788 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27789 | LIBS=$ac_check_lib_save_LIBS |
| 27790 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27792 | $as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27793 | if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27794 | passed=`expr $passed + 1` |
| 27795 | else |
| 27796 | failed=`expr $failed + 1` |
| 27797 | fi |
| 27798 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27800 | $as_echo_n "checking if XML package is complete... " >&6; } |
| 27801 | if test $passed -gt 0; then |
| 27802 | if test $failed -gt 0; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27804 | $as_echo "no -- some components failed test" >&6; } |
| 27805 | have_xml='no (failed tests)' |
| 27806 | LDFLAGS="$PERSIST_LDFLAGS" |
| 27807 | CPPFLAGS="$PERSIST_CPPFLAGS" |
| 27808 | else |
| 27809 | XML_LIBS='-lxml2' |
| 27810 | LIBS="$XML_LIBS $LIBS" |
| 27811 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27812 | $as_echo "#define XML_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27813 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27815 | $as_echo "yes" >&6; } |
| 27816 | have_xml='yes' |
| 27817 | fi |
| 27818 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 27819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27820 | $as_echo "no" >&6; } |
| 27821 | fi |
| 27822 | fi |
| 27823 | if test "$have_xml" = 'yes'; then |
| 27824 | XML_DELEGATE_TRUE= |
| 27825 | XML_DELEGATE_FALSE='#' |
| 27826 | else |
| 27827 | XML_DELEGATE_TRUE='#' |
| 27828 | XML_DELEGATE_FALSE= |
| 27829 | fi |
| 27830 | |
| 27831 | |
| 27832 | |
| 27833 | |
| 27834 | # Substitute compiler name to build/link PerlMagick |
| 27835 | # |
| 27836 | |
| 27837 | |
| 27838 | # |
| 27839 | # Configure install Paths |
| 27840 | # |
| 27841 | |
| 27842 | # Subdirectory under lib to place ImageMagick lib files |
| 27843 | LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}" |
| 27844 | |
| 27845 | cat >>confdefs.h <<_ACEOF |
| 27846 | #define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH" |
| 27847 | _ACEOF |
| 27848 | |
| 27849 | |
| 27850 | # Path to ImageMagick bin directory |
| 27851 | EXECUTABLE_PATH="${BIN_DIR}" |
| 27852 | DEFINE_EXECUTABLE_PATH="${BIN_DIR}/" |
| 27853 | case "${build_os}" in |
| 27854 | mingw* ) |
| 27855 | DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1` |
| 27856 | ;; |
| 27857 | esac |
| 27858 | |
| 27859 | cat >>confdefs.h <<_ACEOF |
| 27860 | #define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH" |
| 27861 | _ACEOF |
| 27862 | |
| 27863 | |
| 27864 | |
| 27865 | # Path to ImageMagick lib |
| 27866 | LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}" |
| 27867 | DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/" |
| 27868 | case "${build_os}" in |
| 27869 | mingw* ) |
| 27870 | DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1` |
| 27871 | ;; |
| 27872 | esac |
| 27873 | |
| 27874 | cat >>confdefs.h <<_ACEOF |
| 27875 | #define LIBRARY_PATH "$DEFINE_LIBRARY_PATH" |
| 27876 | _ACEOF |
| 27877 | |
| 27878 | |
| 27879 | |
| 27880 | # Subdirectory under lib to place ImageMagick configuration files |
| 27881 | CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config" |
| 27882 | |
| 27883 | cat >>confdefs.h <<_ACEOF |
| 27884 | #define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH" |
| 27885 | _ACEOF |
| 27886 | |
| 27887 | CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/" |
| 27888 | DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/" |
| 27889 | case "${build_os}" in |
| 27890 | mingw* ) |
| 27891 | DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1` |
| 27892 | ;; |
| 27893 | esac |
| 27894 | |
| 27895 | cat >>confdefs.h <<_ACEOF |
| 27896 | #define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH" |
| 27897 | _ACEOF |
| 27898 | |
| 27899 | |
| 27900 | |
| 27901 | # |
| 27902 | # Subdirectory under lib to place ImageMagick coder module files |
| 27903 | CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders" |
| 27904 | |
| 27905 | cat >>confdefs.h <<_ACEOF |
| 27906 | #define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH" |
| 27907 | _ACEOF |
| 27908 | |
| 27909 | CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}" |
| 27910 | DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/" |
| 27911 | case "${build_os}" in |
| 27912 | mingw* ) |
| 27913 | DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1` |
| 27914 | ;; |
| 27915 | esac |
| 27916 | |
| 27917 | cat >>confdefs.h <<_ACEOF |
| 27918 | #define CODER_PATH "$DEFINE_CODER_PATH" |
| 27919 | _ACEOF |
| 27920 | |
| 27921 | |
| 27922 | |
| 27923 | # |
| 27924 | # Subdirectory under lib to place ImageMagick filter module files |
| 27925 | FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters" |
| 27926 | |
| 27927 | cat >>confdefs.h <<_ACEOF |
| 27928 | #define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH" |
| 27929 | _ACEOF |
| 27930 | |
| 27931 | FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}" |
| 27932 | DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/" |
| 27933 | case "${build_os}" in |
| 27934 | mingw* ) |
| 27935 | DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1` |
| 27936 | ;; |
| 27937 | esac |
| 27938 | |
| 27939 | cat >>confdefs.h <<_ACEOF |
| 27940 | #define FILTER_PATH "$DEFINE_FILTER_PATH" |
| 27941 | _ACEOF |
| 27942 | |
| 27943 | |
| 27944 | |
| 27945 | # |
| 27946 | # Path to ImageMagick documentation files |
| 27947 | DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}" |
| 27948 | DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}" |
| 27949 | DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/" |
| 27950 | case "${build_os}" in |
| 27951 | mingw* ) |
| 27952 | DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1` |
| 27953 | ;; |
| 27954 | esac |
| 27955 | |
| 27956 | cat >>confdefs.h <<_ACEOF |
| 27957 | #define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH" |
| 27958 | _ACEOF |
| 27959 | |
| 27960 | |
| 27961 | |
| 27962 | # |
| 27963 | # Path to ImageMagick share files |
| 27964 | SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}" |
| 27965 | SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}" |
| 27966 | DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/" |
| 27967 | case "${build_os}" in |
| 27968 | mingw* ) |
| 27969 | DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1` |
| 27970 | ;; |
| 27971 | esac |
| 27972 | |
| 27973 | cat >>confdefs.h <<_ACEOF |
| 27974 | #define SHARE_PATH "$DEFINE_SHARE_PATH" |
| 27975 | _ACEOF |
| 27976 | |
| 27977 | |
| 27978 | |
| 27979 | # Subdirectory under share to place ImageMagick configuration files |
| 27980 | SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config" |
| 27981 | |
| 27982 | cat >>confdefs.h <<_ACEOF |
| 27983 | #define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH" |
| 27984 | _ACEOF |
| 27985 | |
| 27986 | SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}" |
| 27987 | DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/" |
| 27988 | case "${build_os}" in |
| 27989 | mingw* ) |
| 27990 | DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1` |
| 27991 | ;; |
| 27992 | esac |
| 27993 | |
| 27994 | cat >>confdefs.h <<_ACEOF |
| 27995 | #define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH" |
| 27996 | _ACEOF |
| 27997 | |
| 27998 | |
| 27999 | |
| 28000 | # |
| 28001 | # program_transform_name is formed for use in a Makefile, so create a |
| 28002 | # modified version for use in a shell script. |
| 28003 | configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'` |
| 28004 | |
| 28005 | # Default delegate definitions |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28007 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28009 | $as_echo_n "checking for ImageMagick delegate programs... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28011 | $as_echo "" >&6; } |
| 28012 | AutotraceDecodeDelegateDefault='autotrace' |
| 28013 | AVIDecodeDelegateDefault='mplayer' |
| cristy | 3d7f806 | 2009-09-24 20:45:35 +0000 | [diff] [blame] | 28014 | BlenderDecodeDelegateDefault='blender' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28015 | BZIPDelegateDefault='bzip2' |
| 28016 | BrowseDelegateDefault='xdg-open' |
| 28017 | CGMDecodeDelegateDefault='ralcgm' |
| 28018 | CatDelegateDefault='cat' |
| 28019 | DNGDecodeDelegateDefault='ufraw-batch' |
| 28020 | GVCDecodeDelegateDefault='dot' |
| 28021 | DVIDecodeDelegateDefault='dvips' |
| 28022 | EchoDelegateDefault='echo' |
| 28023 | EditorDelegateDefault='xterm' |
| 28024 | FIGDecodeDelegateDefault='fig2dev' |
| 28025 | ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}` |
| 28026 | DisplayDelegateDefault=`echo display | sed ${configure_transform_name}` |
| 28027 | MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}` |
| 28028 | GnuplotDecodeDelegateDefault='gnuplot' |
| 28029 | HDRDecodeDelegateDefault='ra_pfm' |
| 28030 | HPGLDecodeDelegateDefault='hp2xx' |
| 28031 | HTMLDecodeDelegateDefault='html2ps' |
| 28032 | ILBMDecodeDelegateDefault='ilbmtoppm' |
| 28033 | ILBMEncodeDelegateDefault='ppmtoilbm' |
| 28034 | LPDelegateDefault='lp' |
| 28035 | LPRDelegateDefault='lpr' |
| 28036 | LZWDecodeDelegateDefault='uncompress' |
| 28037 | LZWEncodeDelegateDefault='compress' |
| 28038 | LaunchDelegateDefault='gimp' |
| 28039 | MANDelegateDefault='groff' |
| 28040 | MPEGDecodeDelegateDefault='ffmpeg' |
| 28041 | MPEGEncodeDelegateDefault='ffmpeg' |
| 28042 | MVDelegateDefault='mv' |
| 28043 | PCLDelegateDefault='pcl6' |
| 28044 | PGPDecodeDelegateDefault='pgpv' |
| 28045 | POVDelegateDefault='povray' |
| 28046 | if test "$native_win32_build" = 'yes'; then |
| 28047 | PSDelegateDefault='gswin32c' |
| cristy | b7931f1 | 2009-09-25 10:22:21 +0000 | [diff] [blame] | 28048 | elif test "$gslib_framework" = 'yes'; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28049 | PSDelegateDefault='gsc' |
| 28050 | else |
| 28051 | PSDelegateDefault='gs' |
| 28052 | fi |
| 28053 | RLEEncodeDelegateDefault='rawtorle' |
| 28054 | RMDelegateDefault='rm' |
| 28055 | SCANDecodeDelegateDefault='scanimage' |
| 28056 | TXTDelegateDefault='enscript' |
| 28057 | WMFDecodeDelegateDefault='wmf2eps' |
| 28058 | WWWDecodeDelegateDefault='curl' |
| 28059 | XPSDelegateDefault='gxps' |
| 28060 | ZipDelegateDefault='gzip' |
| 28061 | |
| 28062 | # Search for delegates |
| 28063 | # Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args. |
| 28064 | set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28066 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28067 | if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28068 | $as_echo_n "(cached) " >&6 |
| 28069 | else |
| 28070 | case $AutotraceDecodeDelegate in |
| 28071 | [\\/]* | ?:[\\/]*) |
| 28072 | ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path. |
| 28073 | ;; |
| 28074 | *) |
| 28075 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 28076 | for as_dir in $PATH |
| 28077 | do |
| 28078 | IFS=$as_save_IFS |
| 28079 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28080 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28081 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 28082 | ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28083 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28084 | break 2 |
| 28085 | fi |
| 28086 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28087 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28088 | IFS=$as_save_IFS |
| 28089 | |
| 28090 | test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault"" |
| 28091 | ;; |
| 28092 | esac |
| 28093 | fi |
| 28094 | AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate |
| 28095 | if test -n "$AutotraceDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28097 | $as_echo "$AutotraceDecodeDelegate" >&6; } |
| 28098 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28100 | $as_echo "no" >&6; } |
| 28101 | fi |
| 28102 | |
| 28103 | |
| 28104 | # Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args. |
| 28105 | set dummy "$AVIDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28107 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28108 | if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28109 | $as_echo_n "(cached) " >&6 |
| 28110 | else |
| 28111 | case $AVIDecodeDelegate in |
| 28112 | [\\/]* | ?:[\\/]*) |
| 28113 | ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path. |
| 28114 | ;; |
| 28115 | *) |
| 28116 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 28117 | for as_dir in $PATH |
| 28118 | do |
| 28119 | IFS=$as_save_IFS |
| 28120 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28121 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28122 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 28123 | ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28124 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28125 | break 2 |
| 28126 | fi |
| 28127 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28128 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28129 | IFS=$as_save_IFS |
| 28130 | |
| 28131 | test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault"" |
| 28132 | ;; |
| 28133 | esac |
| 28134 | fi |
| 28135 | AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate |
| 28136 | if test -n "$AVIDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AVIDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28138 | $as_echo "$AVIDecodeDelegate" >&6; } |
| 28139 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28141 | $as_echo "no" >&6; } |
| 28142 | fi |
| 28143 | |
| 28144 | |
| 28145 | # Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args. |
| 28146 | set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28148 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28149 | if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28150 | $as_echo_n "(cached) " >&6 |
| 28151 | else |
| 28152 | case $BlenderDecodeDelegate in |
| 28153 | [\\/]* | ?:[\\/]*) |
| 28154 | ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path. |
| 28155 | ;; |
| 28156 | *) |
| 28157 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 28158 | for as_dir in $PATH |
| 28159 | do |
| 28160 | IFS=$as_save_IFS |
| 28161 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28162 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28163 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 28164 | ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28165 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28166 | break 2 |
| 28167 | fi |
| 28168 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28169 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28170 | IFS=$as_save_IFS |
| 28171 | |
| 28172 | test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault"" |
| 28173 | ;; |
| 28174 | esac |
| 28175 | fi |
| 28176 | BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate |
| 28177 | if test -n "$BlenderDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28179 | $as_echo "$BlenderDecodeDelegate" >&6; } |
| 28180 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28182 | $as_echo "no" >&6; } |
| 28183 | fi |
| 28184 | |
| 28185 | |
| 28186 | # Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args. |
| 28187 | set dummy "$BZIPDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28189 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28190 | if test "${ac_cv_path_BZIPDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28191 | $as_echo_n "(cached) " >&6 |
| 28192 | else |
| 28193 | case $BZIPDelegate in |
| 28194 | [\\/]* | ?:[\\/]*) |
| 28195 | ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path. |
| 28196 | ;; |
| 28197 | *) |
| 28198 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 28199 | for as_dir in $PATH |
| 28200 | do |
| 28201 | IFS=$as_save_IFS |
| 28202 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28203 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28204 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 28205 | ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28206 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28207 | break 2 |
| 28208 | fi |
| 28209 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28210 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28211 | IFS=$as_save_IFS |
| 28212 | |
| 28213 | test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault"" |
| 28214 | ;; |
| 28215 | esac |
| 28216 | fi |
| 28217 | BZIPDelegate=$ac_cv_path_BZIPDelegate |
| 28218 | if test -n "$BZIPDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28220 | $as_echo "$BZIPDelegate" >&6; } |
| 28221 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28223 | $as_echo "no" >&6; } |
| 28224 | fi |
| 28225 | |
| 28226 | |
| 28227 | # Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args. |
| 28228 | set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28230 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28231 | if test "${ac_cv_path_BrowseDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28232 | $as_echo_n "(cached) " >&6 |
| 28233 | else |
| 28234 | case $BrowseDelegate in |
| 28235 | [\\/]* | ?:[\\/]*) |
| 28236 | ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path. |
| 28237 | ;; |
| 28238 | *) |
| 28239 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 28240 | for as_dir in $PATH |
| 28241 | do |
| 28242 | IFS=$as_save_IFS |
| 28243 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28244 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28245 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 28246 | ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28247 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28248 | break 2 |
| 28249 | fi |
| 28250 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28251 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28252 | IFS=$as_save_IFS |
| 28253 | |
| 28254 | test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault"" |
| 28255 | ;; |
| 28256 | esac |
| 28257 | fi |
| 28258 | BrowseDelegate=$ac_cv_path_BrowseDelegate |
| 28259 | if test -n "$BrowseDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28261 | $as_echo "$BrowseDelegate" >&6; } |
| 28262 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28264 | $as_echo "no" >&6; } |
| 28265 | fi |
| 28266 | |
| 28267 | |
| 28268 | # Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args. |
| 28269 | set dummy "$CGMDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28270 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28271 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28272 | if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28273 | $as_echo_n "(cached) " >&6 |
| 28274 | else |
| 28275 | case $CGMDecodeDelegate in |
| 28276 | [\\/]* | ?:[\\/]*) |
| 28277 | ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path. |
| 28278 | ;; |
| 28279 | *) |
| 28280 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 28281 | for as_dir in $PATH |
| 28282 | do |
| 28283 | IFS=$as_save_IFS |
| 28284 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28285 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28286 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 28287 | ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28288 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28289 | break 2 |
| 28290 | fi |
| 28291 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28292 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28293 | IFS=$as_save_IFS |
| 28294 | |
| 28295 | test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault"" |
| 28296 | ;; |
| 28297 | esac |
| 28298 | fi |
| 28299 | CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate |
| 28300 | if test -n "$CGMDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28302 | $as_echo "$CGMDecodeDelegate" >&6; } |
| 28303 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28305 | $as_echo "no" >&6; } |
| 28306 | fi |
| 28307 | |
| 28308 | |
| 28309 | # Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args. |
| 28310 | set dummy "$CatDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28312 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28313 | if test "${ac_cv_path_CatDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28314 | $as_echo_n "(cached) " >&6 |
| 28315 | else |
| 28316 | case $CatDelegate in |
| 28317 | [\\/]* | ?:[\\/]*) |
| 28318 | ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path. |
| 28319 | ;; |
| 28320 | *) |
| 28321 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 28322 | for as_dir in $PATH |
| 28323 | do |
| 28324 | IFS=$as_save_IFS |
| 28325 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28326 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28327 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 28328 | ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28329 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28330 | break 2 |
| 28331 | fi |
| 28332 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28333 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28334 | IFS=$as_save_IFS |
| 28335 | |
| 28336 | test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault"" |
| 28337 | ;; |
| 28338 | esac |
| 28339 | fi |
| 28340 | CatDelegate=$ac_cv_path_CatDelegate |
| 28341 | if test -n "$CatDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28343 | $as_echo "$CatDelegate" >&6; } |
| 28344 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28346 | $as_echo "no" >&6; } |
| 28347 | fi |
| 28348 | |
| 28349 | |
| 28350 | # Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args. |
| 28351 | set dummy "$DNGDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28353 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28354 | if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28355 | $as_echo_n "(cached) " >&6 |
| 28356 | else |
| 28357 | case $DNGDecodeDelegate in |
| 28358 | [\\/]* | ?:[\\/]*) |
| 28359 | ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path. |
| 28360 | ;; |
| 28361 | *) |
| 28362 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 28363 | for as_dir in $PATH |
| 28364 | do |
| 28365 | IFS=$as_save_IFS |
| 28366 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28367 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28368 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 28369 | ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28370 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28371 | break 2 |
| 28372 | fi |
| 28373 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28374 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28375 | IFS=$as_save_IFS |
| 28376 | |
| 28377 | test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault"" |
| 28378 | ;; |
| 28379 | esac |
| 28380 | fi |
| 28381 | DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate |
| 28382 | if test -n "$DNGDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28384 | $as_echo "$DNGDecodeDelegate" >&6; } |
| 28385 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28387 | $as_echo "no" >&6; } |
| 28388 | fi |
| 28389 | |
| 28390 | |
| 28391 | # Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args. |
| 28392 | set dummy "$GVCDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28394 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28395 | if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28396 | $as_echo_n "(cached) " >&6 |
| 28397 | else |
| 28398 | case $GVCDecodeDelegate in |
| 28399 | [\\/]* | ?:[\\/]*) |
| 28400 | ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path. |
| 28401 | ;; |
| 28402 | *) |
| 28403 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 28404 | for as_dir in $PATH |
| 28405 | do |
| 28406 | IFS=$as_save_IFS |
| 28407 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28408 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28409 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 28410 | ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28411 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28412 | break 2 |
| 28413 | fi |
| 28414 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28415 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28416 | IFS=$as_save_IFS |
| 28417 | |
| 28418 | test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault"" |
| 28419 | ;; |
| 28420 | esac |
| 28421 | fi |
| 28422 | GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate |
| 28423 | if test -n "$GVCDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28425 | $as_echo "$GVCDecodeDelegate" >&6; } |
| 28426 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28428 | $as_echo "no" >&6; } |
| 28429 | fi |
| 28430 | |
| 28431 | |
| 28432 | # Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args. |
| 28433 | set dummy "$DVIDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28435 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28436 | if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28437 | $as_echo_n "(cached) " >&6 |
| 28438 | else |
| 28439 | case $DVIDecodeDelegate in |
| 28440 | [\\/]* | ?:[\\/]*) |
| 28441 | ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path. |
| 28442 | ;; |
| 28443 | *) |
| 28444 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 28445 | for as_dir in $PATH |
| 28446 | do |
| 28447 | IFS=$as_save_IFS |
| 28448 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28449 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28450 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 28451 | ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28452 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28453 | break 2 |
| 28454 | fi |
| 28455 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28456 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28457 | IFS=$as_save_IFS |
| 28458 | |
| 28459 | test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault"" |
| 28460 | ;; |
| 28461 | esac |
| 28462 | fi |
| 28463 | DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate |
| 28464 | if test -n "$DVIDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28466 | $as_echo "$DVIDecodeDelegate" >&6; } |
| 28467 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28469 | $as_echo "no" >&6; } |
| 28470 | fi |
| 28471 | |
| 28472 | |
| 28473 | # Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args. |
| 28474 | set dummy "$EchoDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28476 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28477 | if test "${ac_cv_path_EchoDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28478 | $as_echo_n "(cached) " >&6 |
| 28479 | else |
| 28480 | case $EchoDelegate in |
| 28481 | [\\/]* | ?:[\\/]*) |
| 28482 | ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path. |
| 28483 | ;; |
| 28484 | *) |
| 28485 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 28486 | for as_dir in $PATH |
| 28487 | do |
| 28488 | IFS=$as_save_IFS |
| 28489 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28490 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28491 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 28492 | ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28493 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28494 | break 2 |
| 28495 | fi |
| 28496 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28497 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28498 | IFS=$as_save_IFS |
| 28499 | |
| 28500 | test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault"" |
| 28501 | ;; |
| 28502 | esac |
| 28503 | fi |
| 28504 | EchoDelegate=$ac_cv_path_EchoDelegate |
| 28505 | if test -n "$EchoDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28507 | $as_echo "$EchoDelegate" >&6; } |
| 28508 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28510 | $as_echo "no" >&6; } |
| 28511 | fi |
| 28512 | |
| 28513 | |
| 28514 | # Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args. |
| 28515 | set dummy "$EditorDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28517 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28518 | if test "${ac_cv_path_EditorDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28519 | $as_echo_n "(cached) " >&6 |
| 28520 | else |
| 28521 | case $EditorDelegate in |
| 28522 | [\\/]* | ?:[\\/]*) |
| 28523 | ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path. |
| 28524 | ;; |
| 28525 | *) |
| 28526 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 28527 | for as_dir in $PATH |
| 28528 | do |
| 28529 | IFS=$as_save_IFS |
| 28530 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28531 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28532 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 28533 | ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28534 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28535 | break 2 |
| 28536 | fi |
| 28537 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28538 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28539 | IFS=$as_save_IFS |
| 28540 | |
| 28541 | test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault"" |
| 28542 | ;; |
| 28543 | esac |
| 28544 | fi |
| 28545 | EditorDelegate=$ac_cv_path_EditorDelegate |
| 28546 | if test -n "$EditorDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28548 | $as_echo "$EditorDelegate" >&6; } |
| 28549 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28551 | $as_echo "no" >&6; } |
| 28552 | fi |
| 28553 | |
| 28554 | |
| 28555 | # Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args. |
| 28556 | set dummy "$FIGDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28558 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28559 | if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28560 | $as_echo_n "(cached) " >&6 |
| 28561 | else |
| 28562 | case $FIGDecodeDelegate in |
| 28563 | [\\/]* | ?:[\\/]*) |
| 28564 | ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path. |
| 28565 | ;; |
| 28566 | *) |
| 28567 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 28568 | for as_dir in $PATH |
| 28569 | do |
| 28570 | IFS=$as_save_IFS |
| 28571 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28572 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28573 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 28574 | ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28575 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28576 | break 2 |
| 28577 | fi |
| 28578 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28579 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28580 | IFS=$as_save_IFS |
| 28581 | |
| 28582 | test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault"" |
| 28583 | ;; |
| 28584 | esac |
| 28585 | fi |
| 28586 | FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate |
| 28587 | if test -n "$FIGDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28589 | $as_echo "$FIGDecodeDelegate" >&6; } |
| 28590 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28592 | $as_echo "no" >&6; } |
| 28593 | fi |
| 28594 | |
| 28595 | |
| 28596 | # Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args. |
| 28597 | set dummy "$ConvertDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28599 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28600 | if test "${ac_cv_path_ConvertDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28601 | $as_echo_n "(cached) " >&6 |
| 28602 | else |
| 28603 | case $ConvertDelegate in |
| 28604 | [\\/]* | ?:[\\/]*) |
| 28605 | ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path. |
| 28606 | ;; |
| 28607 | *) |
| 28608 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 28609 | for as_dir in $PATH |
| 28610 | do |
| 28611 | IFS=$as_save_IFS |
| 28612 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28613 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28614 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 28615 | ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28616 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28617 | break 2 |
| 28618 | fi |
| 28619 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28620 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28621 | IFS=$as_save_IFS |
| 28622 | |
| 28623 | test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault"" |
| 28624 | ;; |
| 28625 | esac |
| 28626 | fi |
| 28627 | ConvertDelegate=$ac_cv_path_ConvertDelegate |
| 28628 | if test -n "$ConvertDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28630 | $as_echo "$ConvertDelegate" >&6; } |
| 28631 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28633 | $as_echo "no" >&6; } |
| 28634 | fi |
| 28635 | |
| 28636 | |
| 28637 | # Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args. |
| 28638 | set dummy "$DisplayDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28640 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28641 | if test "${ac_cv_path_DisplayDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28642 | $as_echo_n "(cached) " >&6 |
| 28643 | else |
| 28644 | case $DisplayDelegate in |
| 28645 | [\\/]* | ?:[\\/]*) |
| 28646 | ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path. |
| 28647 | ;; |
| 28648 | *) |
| 28649 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 28650 | for as_dir in $PATH |
| 28651 | do |
| 28652 | IFS=$as_save_IFS |
| 28653 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28654 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28655 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 28656 | ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28657 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28658 | break 2 |
| 28659 | fi |
| 28660 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28661 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28662 | IFS=$as_save_IFS |
| 28663 | |
| 28664 | test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault"" |
| 28665 | ;; |
| 28666 | esac |
| 28667 | fi |
| 28668 | DisplayDelegate=$ac_cv_path_DisplayDelegate |
| 28669 | if test -n "$DisplayDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28671 | $as_echo "$DisplayDelegate" >&6; } |
| 28672 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28674 | $as_echo "no" >&6; } |
| 28675 | fi |
| 28676 | |
| 28677 | |
| 28678 | # Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args. |
| 28679 | set dummy "$MogrifyDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28681 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28682 | if test "${ac_cv_path_MogrifyDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28683 | $as_echo_n "(cached) " >&6 |
| 28684 | else |
| 28685 | case $MogrifyDelegate in |
| 28686 | [\\/]* | ?:[\\/]*) |
| 28687 | ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path. |
| 28688 | ;; |
| 28689 | *) |
| 28690 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 28691 | for as_dir in $PATH |
| 28692 | do |
| 28693 | IFS=$as_save_IFS |
| 28694 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28695 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28696 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 28697 | ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28698 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28699 | break 2 |
| 28700 | fi |
| 28701 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28702 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28703 | IFS=$as_save_IFS |
| 28704 | |
| 28705 | test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault"" |
| 28706 | ;; |
| 28707 | esac |
| 28708 | fi |
| 28709 | MogrifyDelegate=$ac_cv_path_MogrifyDelegate |
| 28710 | if test -n "$MogrifyDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28712 | $as_echo "$MogrifyDelegate" >&6; } |
| 28713 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28715 | $as_echo "no" >&6; } |
| 28716 | fi |
| 28717 | |
| 28718 | |
| 28719 | # Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args. |
| 28720 | set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28721 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28722 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28723 | if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28724 | $as_echo_n "(cached) " >&6 |
| 28725 | else |
| 28726 | case $GnuplotDecodeDelegate in |
| 28727 | [\\/]* | ?:[\\/]*) |
| 28728 | ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path. |
| 28729 | ;; |
| 28730 | *) |
| 28731 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 28732 | for as_dir in $PATH |
| 28733 | do |
| 28734 | IFS=$as_save_IFS |
| 28735 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28736 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28737 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 28738 | ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28739 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28740 | break 2 |
| 28741 | fi |
| 28742 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28743 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28744 | IFS=$as_save_IFS |
| 28745 | |
| 28746 | test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault"" |
| 28747 | ;; |
| 28748 | esac |
| 28749 | fi |
| 28750 | GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate |
| 28751 | if test -n "$GnuplotDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28753 | $as_echo "$GnuplotDecodeDelegate" >&6; } |
| 28754 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28756 | $as_echo "no" >&6; } |
| 28757 | fi |
| 28758 | |
| 28759 | |
| 28760 | # Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args. |
| 28761 | set dummy "$HDRDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28763 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28764 | if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28765 | $as_echo_n "(cached) " >&6 |
| 28766 | else |
| 28767 | case $HDRDecodeDelegate in |
| 28768 | [\\/]* | ?:[\\/]*) |
| 28769 | ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path. |
| 28770 | ;; |
| 28771 | *) |
| 28772 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 28773 | for as_dir in $PATH |
| 28774 | do |
| 28775 | IFS=$as_save_IFS |
| 28776 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28777 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28778 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 28779 | ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28780 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28781 | break 2 |
| 28782 | fi |
| 28783 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28784 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28785 | IFS=$as_save_IFS |
| 28786 | |
| 28787 | test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault"" |
| 28788 | ;; |
| 28789 | esac |
| 28790 | fi |
| 28791 | HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate |
| 28792 | if test -n "$HDRDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDRDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28794 | $as_echo "$HDRDecodeDelegate" >&6; } |
| 28795 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28797 | $as_echo "no" >&6; } |
| 28798 | fi |
| 28799 | |
| 28800 | |
| 28801 | # Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args. |
| 28802 | set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28804 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28805 | if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28806 | $as_echo_n "(cached) " >&6 |
| 28807 | else |
| 28808 | case $HPGLDecodeDelegate in |
| 28809 | [\\/]* | ?:[\\/]*) |
| 28810 | ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path. |
| 28811 | ;; |
| 28812 | *) |
| 28813 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 28814 | for as_dir in $PATH |
| 28815 | do |
| 28816 | IFS=$as_save_IFS |
| 28817 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28818 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28819 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 28820 | ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28821 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28822 | break 2 |
| 28823 | fi |
| 28824 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28825 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28826 | IFS=$as_save_IFS |
| 28827 | |
| 28828 | test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault"" |
| 28829 | ;; |
| 28830 | esac |
| 28831 | fi |
| 28832 | HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate |
| 28833 | if test -n "$HPGLDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28835 | $as_echo "$HPGLDecodeDelegate" >&6; } |
| 28836 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28838 | $as_echo "no" >&6; } |
| 28839 | fi |
| 28840 | |
| 28841 | |
| 28842 | # Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args. |
| 28843 | set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28845 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28846 | if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28847 | $as_echo_n "(cached) " >&6 |
| 28848 | else |
| 28849 | case $HTMLDecodeDelegate in |
| 28850 | [\\/]* | ?:[\\/]*) |
| 28851 | ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path. |
| 28852 | ;; |
| 28853 | *) |
| 28854 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 28855 | for as_dir in $PATH |
| 28856 | do |
| 28857 | IFS=$as_save_IFS |
| 28858 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28859 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28860 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 28861 | ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28862 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28863 | break 2 |
| 28864 | fi |
| 28865 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28866 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28867 | IFS=$as_save_IFS |
| 28868 | |
| 28869 | test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault"" |
| 28870 | ;; |
| 28871 | esac |
| 28872 | fi |
| 28873 | HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate |
| 28874 | if test -n "$HTMLDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28876 | $as_echo "$HTMLDecodeDelegate" >&6; } |
| 28877 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28879 | $as_echo "no" >&6; } |
| 28880 | fi |
| 28881 | |
| 28882 | |
| 28883 | # Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args. |
| 28884 | set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28886 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28887 | if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28888 | $as_echo_n "(cached) " >&6 |
| 28889 | else |
| 28890 | case $ILBMDecodeDelegate in |
| 28891 | [\\/]* | ?:[\\/]*) |
| 28892 | ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path. |
| 28893 | ;; |
| 28894 | *) |
| 28895 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 28896 | for as_dir in $PATH |
| 28897 | do |
| 28898 | IFS=$as_save_IFS |
| 28899 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28900 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28901 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 28902 | ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28903 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28904 | break 2 |
| 28905 | fi |
| 28906 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28907 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28908 | IFS=$as_save_IFS |
| 28909 | |
| 28910 | test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault"" |
| 28911 | ;; |
| 28912 | esac |
| 28913 | fi |
| 28914 | ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate |
| 28915 | if test -n "$ILBMDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28917 | $as_echo "$ILBMDecodeDelegate" >&6; } |
| 28918 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28920 | $as_echo "no" >&6; } |
| 28921 | fi |
| 28922 | |
| 28923 | |
| 28924 | # Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args. |
| 28925 | set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28927 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28928 | if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28929 | $as_echo_n "(cached) " >&6 |
| 28930 | else |
| 28931 | case $ILBMEncodeDelegate in |
| 28932 | [\\/]* | ?:[\\/]*) |
| 28933 | ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path. |
| 28934 | ;; |
| 28935 | *) |
| 28936 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 28937 | for as_dir in $PATH |
| 28938 | do |
| 28939 | IFS=$as_save_IFS |
| 28940 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28941 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28942 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 28943 | ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28944 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28945 | break 2 |
| 28946 | fi |
| 28947 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28948 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28949 | IFS=$as_save_IFS |
| 28950 | |
| 28951 | test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault"" |
| 28952 | ;; |
| 28953 | esac |
| 28954 | fi |
| 28955 | ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate |
| 28956 | if test -n "$ILBMEncodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28958 | $as_echo "$ILBMEncodeDelegate" >&6; } |
| 28959 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28961 | $as_echo "no" >&6; } |
| 28962 | fi |
| 28963 | |
| 28964 | |
| 28965 | # Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args. |
| 28966 | set dummy "$LPDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28968 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28969 | if test "${ac_cv_path_LPDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28970 | $as_echo_n "(cached) " >&6 |
| 28971 | else |
| 28972 | case $LPDelegate in |
| 28973 | [\\/]* | ?:[\\/]*) |
| 28974 | ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path. |
| 28975 | ;; |
| 28976 | *) |
| 28977 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 28978 | for as_dir in $PATH |
| 28979 | do |
| 28980 | IFS=$as_save_IFS |
| 28981 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28982 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28983 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 28984 | ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28985 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28986 | break 2 |
| 28987 | fi |
| 28988 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28989 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28990 | IFS=$as_save_IFS |
| 28991 | |
| 28992 | test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no" |
| 28993 | ;; |
| 28994 | esac |
| 28995 | fi |
| 28996 | LPDelegate=$ac_cv_path_LPDelegate |
| 28997 | if test -n "$LPDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 28998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28999 | $as_echo "$LPDelegate" >&6; } |
| 29000 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29002 | $as_echo "no" >&6; } |
| 29003 | fi |
| 29004 | |
| 29005 | |
| 29006 | # Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args. |
| 29007 | set dummy "$LPRDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29009 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29010 | if test "${ac_cv_path_LPRDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29011 | $as_echo_n "(cached) " >&6 |
| 29012 | else |
| 29013 | case $LPRDelegate in |
| 29014 | [\\/]* | ?:[\\/]*) |
| 29015 | ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path. |
| 29016 | ;; |
| 29017 | *) |
| 29018 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 29019 | for as_dir in $PATH |
| 29020 | do |
| 29021 | IFS=$as_save_IFS |
| 29022 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29023 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29024 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 29025 | ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29026 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29027 | break 2 |
| 29028 | fi |
| 29029 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29030 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29031 | IFS=$as_save_IFS |
| 29032 | |
| 29033 | test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault"" |
| 29034 | ;; |
| 29035 | esac |
| 29036 | fi |
| 29037 | LPRDelegate=$ac_cv_path_LPRDelegate |
| 29038 | if test -n "$LPRDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29040 | $as_echo "$LPRDelegate" >&6; } |
| 29041 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29043 | $as_echo "no" >&6; } |
| 29044 | fi |
| 29045 | |
| 29046 | |
| 29047 | # Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args. |
| 29048 | set dummy "$LZWDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29050 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29051 | if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29052 | $as_echo_n "(cached) " >&6 |
| 29053 | else |
| 29054 | case $LZWDecodeDelegate in |
| 29055 | [\\/]* | ?:[\\/]*) |
| 29056 | ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path. |
| 29057 | ;; |
| 29058 | *) |
| 29059 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 29060 | for as_dir in $PATH |
| 29061 | do |
| 29062 | IFS=$as_save_IFS |
| 29063 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29064 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29065 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 29066 | ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29067 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29068 | break 2 |
| 29069 | fi |
| 29070 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29071 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29072 | IFS=$as_save_IFS |
| 29073 | |
| 29074 | test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault"" |
| 29075 | ;; |
| 29076 | esac |
| 29077 | fi |
| 29078 | LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate |
| 29079 | if test -n "$LZWDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29081 | $as_echo "$LZWDecodeDelegate" >&6; } |
| 29082 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29084 | $as_echo "no" >&6; } |
| 29085 | fi |
| 29086 | |
| 29087 | |
| 29088 | # Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args. |
| 29089 | set dummy "$LZWEncodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29091 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29092 | if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29093 | $as_echo_n "(cached) " >&6 |
| 29094 | else |
| 29095 | case $LZWEncodeDelegate in |
| 29096 | [\\/]* | ?:[\\/]*) |
| 29097 | ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path. |
| 29098 | ;; |
| 29099 | *) |
| 29100 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 29101 | for as_dir in $PATH |
| 29102 | do |
| 29103 | IFS=$as_save_IFS |
| 29104 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29105 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29106 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 29107 | ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29108 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29109 | break 2 |
| 29110 | fi |
| 29111 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29112 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29113 | IFS=$as_save_IFS |
| 29114 | |
| 29115 | test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault"" |
| 29116 | ;; |
| 29117 | esac |
| 29118 | fi |
| 29119 | LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate |
| 29120 | if test -n "$LZWEncodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29122 | $as_echo "$LZWEncodeDelegate" >&6; } |
| 29123 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29125 | $as_echo "no" >&6; } |
| 29126 | fi |
| 29127 | |
| 29128 | |
| 29129 | # Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args. |
| 29130 | set dummy "$LaunchDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29131 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29132 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29133 | if test "${ac_cv_path_LaunchDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29134 | $as_echo_n "(cached) " >&6 |
| 29135 | else |
| 29136 | case $LaunchDelegate in |
| 29137 | [\\/]* | ?:[\\/]*) |
| 29138 | ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path. |
| 29139 | ;; |
| 29140 | *) |
| 29141 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 29142 | for as_dir in $PATH |
| 29143 | do |
| 29144 | IFS=$as_save_IFS |
| 29145 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29146 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29147 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 29148 | ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29149 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29150 | break 2 |
| 29151 | fi |
| 29152 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29153 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29154 | IFS=$as_save_IFS |
| 29155 | |
| 29156 | test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault"" |
| 29157 | ;; |
| 29158 | esac |
| 29159 | fi |
| 29160 | LaunchDelegate=$ac_cv_path_LaunchDelegate |
| 29161 | if test -n "$LaunchDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29163 | $as_echo "$LaunchDelegate" >&6; } |
| 29164 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29166 | $as_echo "no" >&6; } |
| 29167 | fi |
| 29168 | |
| 29169 | |
| 29170 | # Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args. |
| 29171 | set dummy "$MANDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29173 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29174 | if test "${ac_cv_path_MANDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29175 | $as_echo_n "(cached) " >&6 |
| 29176 | else |
| 29177 | case $MANDelegate in |
| 29178 | [\\/]* | ?:[\\/]*) |
| 29179 | ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path. |
| 29180 | ;; |
| 29181 | *) |
| 29182 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 29183 | for as_dir in $PATH |
| 29184 | do |
| 29185 | IFS=$as_save_IFS |
| 29186 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29187 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29188 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 29189 | ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29190 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29191 | break 2 |
| 29192 | fi |
| 29193 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29194 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29195 | IFS=$as_save_IFS |
| 29196 | |
| 29197 | test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault"" |
| 29198 | ;; |
| 29199 | esac |
| 29200 | fi |
| 29201 | MANDelegate=$ac_cv_path_MANDelegate |
| 29202 | if test -n "$MANDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29204 | $as_echo "$MANDelegate" >&6; } |
| 29205 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29207 | $as_echo "no" >&6; } |
| 29208 | fi |
| 29209 | |
| 29210 | |
| 29211 | # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args. |
| 29212 | set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29214 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29215 | if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29216 | $as_echo_n "(cached) " >&6 |
| 29217 | else |
| 29218 | case $MPEGDecodeDelegate in |
| 29219 | [\\/]* | ?:[\\/]*) |
| 29220 | ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path. |
| 29221 | ;; |
| 29222 | *) |
| 29223 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 29224 | for as_dir in $PATH |
| 29225 | do |
| 29226 | IFS=$as_save_IFS |
| 29227 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29228 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29229 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 29230 | ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29231 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29232 | break 2 |
| 29233 | fi |
| 29234 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29235 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29236 | IFS=$as_save_IFS |
| 29237 | |
| 29238 | test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault"" |
| 29239 | ;; |
| 29240 | esac |
| 29241 | fi |
| 29242 | MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate |
| 29243 | if test -n "$MPEGDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29245 | $as_echo "$MPEGDecodeDelegate" >&6; } |
| 29246 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29248 | $as_echo "no" >&6; } |
| 29249 | fi |
| 29250 | |
| 29251 | |
| 29252 | # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args. |
| 29253 | set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29255 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29256 | if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29257 | $as_echo_n "(cached) " >&6 |
| 29258 | else |
| 29259 | case $MPEGEncodeDelegate in |
| 29260 | [\\/]* | ?:[\\/]*) |
| 29261 | ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path. |
| 29262 | ;; |
| 29263 | *) |
| 29264 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 29265 | for as_dir in $PATH |
| 29266 | do |
| 29267 | IFS=$as_save_IFS |
| 29268 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29269 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29270 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 29271 | ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29272 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29273 | break 2 |
| 29274 | fi |
| 29275 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29276 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29277 | IFS=$as_save_IFS |
| 29278 | |
| 29279 | test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault"" |
| 29280 | ;; |
| 29281 | esac |
| 29282 | fi |
| 29283 | MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate |
| 29284 | if test -n "$MPEGEncodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29286 | $as_echo "$MPEGEncodeDelegate" >&6; } |
| 29287 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29289 | $as_echo "no" >&6; } |
| 29290 | fi |
| 29291 | |
| 29292 | |
| 29293 | # Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args. |
| 29294 | set dummy "$MVDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29296 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29297 | if test "${ac_cv_path_MVDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29298 | $as_echo_n "(cached) " >&6 |
| 29299 | else |
| 29300 | case $MVDelegate in |
| 29301 | [\\/]* | ?:[\\/]*) |
| 29302 | ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path. |
| 29303 | ;; |
| 29304 | *) |
| 29305 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 29306 | for as_dir in $PATH |
| 29307 | do |
| 29308 | IFS=$as_save_IFS |
| 29309 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29310 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29311 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 29312 | ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29313 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29314 | break 2 |
| 29315 | fi |
| 29316 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29317 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29318 | IFS=$as_save_IFS |
| 29319 | |
| 29320 | test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault"" |
| 29321 | ;; |
| 29322 | esac |
| 29323 | fi |
| 29324 | MVDelegate=$ac_cv_path_MVDelegate |
| 29325 | if test -n "$MVDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29327 | $as_echo "$MVDelegate" >&6; } |
| 29328 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29330 | $as_echo "no" >&6; } |
| 29331 | fi |
| 29332 | |
| 29333 | |
| 29334 | # Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args. |
| 29335 | set dummy "$PCLDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29336 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29337 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29338 | if test "${ac_cv_path_PCLDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29339 | $as_echo_n "(cached) " >&6 |
| 29340 | else |
| 29341 | case $PCLDelegate in |
| 29342 | [\\/]* | ?:[\\/]*) |
| 29343 | ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path. |
| 29344 | ;; |
| 29345 | *) |
| 29346 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 29347 | for as_dir in $PATH |
| 29348 | do |
| 29349 | IFS=$as_save_IFS |
| 29350 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29351 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29352 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 29353 | ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29354 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29355 | break 2 |
| 29356 | fi |
| 29357 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29358 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29359 | IFS=$as_save_IFS |
| 29360 | |
| 29361 | test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault"" |
| 29362 | ;; |
| 29363 | esac |
| 29364 | fi |
| 29365 | PCLDelegate=$ac_cv_path_PCLDelegate |
| 29366 | if test -n "$PCLDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29368 | $as_echo "$PCLDelegate" >&6; } |
| 29369 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29371 | $as_echo "no" >&6; } |
| 29372 | fi |
| 29373 | |
| 29374 | |
| 29375 | # Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args. |
| 29376 | set dummy "$PGPDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29378 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29379 | if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29380 | $as_echo_n "(cached) " >&6 |
| 29381 | else |
| 29382 | case $PGPDecodeDelegate in |
| 29383 | [\\/]* | ?:[\\/]*) |
| 29384 | ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path. |
| 29385 | ;; |
| 29386 | *) |
| 29387 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 29388 | for as_dir in $PATH |
| 29389 | do |
| 29390 | IFS=$as_save_IFS |
| 29391 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29392 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29393 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 29394 | ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29395 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29396 | break 2 |
| 29397 | fi |
| 29398 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29399 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29400 | IFS=$as_save_IFS |
| 29401 | |
| 29402 | test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault"" |
| 29403 | ;; |
| 29404 | esac |
| 29405 | fi |
| 29406 | PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate |
| 29407 | if test -n "$PGPDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29409 | $as_echo "$PGPDecodeDelegate" >&6; } |
| 29410 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29412 | $as_echo "no" >&6; } |
| 29413 | fi |
| 29414 | |
| 29415 | |
| 29416 | # Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args. |
| 29417 | set dummy "$POVDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29419 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29420 | if test "${ac_cv_path_POVDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29421 | $as_echo_n "(cached) " >&6 |
| 29422 | else |
| 29423 | case $POVDelegate in |
| 29424 | [\\/]* | ?:[\\/]*) |
| 29425 | ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path. |
| 29426 | ;; |
| 29427 | *) |
| 29428 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 29429 | for as_dir in $PATH |
| 29430 | do |
| 29431 | IFS=$as_save_IFS |
| 29432 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29433 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29434 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 29435 | ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29436 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29437 | break 2 |
| 29438 | fi |
| 29439 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29440 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29441 | IFS=$as_save_IFS |
| 29442 | |
| 29443 | test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault"" |
| 29444 | ;; |
| 29445 | esac |
| 29446 | fi |
| 29447 | POVDelegate=$ac_cv_path_POVDelegate |
| 29448 | if test -n "$POVDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29450 | $as_echo "$POVDelegate" >&6; } |
| 29451 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29453 | $as_echo "no" >&6; } |
| 29454 | fi |
| 29455 | |
| 29456 | |
| 29457 | for ac_prog in gsx gsc "$PSDelegateDefault" |
| 29458 | do |
| 29459 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 29460 | set dummy $ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29462 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29463 | if test "${ac_cv_path_PSDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29464 | $as_echo_n "(cached) " >&6 |
| 29465 | else |
| 29466 | case $PSDelegate in |
| 29467 | [\\/]* | ?:[\\/]*) |
| 29468 | ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path. |
| 29469 | ;; |
| 29470 | *) |
| 29471 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 29472 | for as_dir in $PATH |
| 29473 | do |
| 29474 | IFS=$as_save_IFS |
| 29475 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29476 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29477 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 29478 | ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29479 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29480 | break 2 |
| 29481 | fi |
| 29482 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29483 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29484 | IFS=$as_save_IFS |
| 29485 | |
| 29486 | ;; |
| 29487 | esac |
| 29488 | fi |
| 29489 | PSDelegate=$ac_cv_path_PSDelegate |
| 29490 | if test -n "$PSDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29492 | $as_echo "$PSDelegate" >&6; } |
| 29493 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29495 | $as_echo "no" >&6; } |
| 29496 | fi |
| 29497 | |
| 29498 | |
| 29499 | test -n "$PSDelegate" && break |
| 29500 | done |
| 29501 | test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault"" |
| 29502 | |
| 29503 | # Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args. |
| 29504 | set dummy "$RLEEncodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29505 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29506 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29507 | if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29508 | $as_echo_n "(cached) " >&6 |
| 29509 | else |
| 29510 | case $RLEEncodeDelegate in |
| 29511 | [\\/]* | ?:[\\/]*) |
| 29512 | ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path. |
| 29513 | ;; |
| 29514 | *) |
| 29515 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 29516 | for as_dir in $PATH |
| 29517 | do |
| 29518 | IFS=$as_save_IFS |
| 29519 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29520 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29521 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 29522 | ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29523 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29524 | break 2 |
| 29525 | fi |
| 29526 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29527 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29528 | IFS=$as_save_IFS |
| 29529 | |
| 29530 | test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault"" |
| 29531 | ;; |
| 29532 | esac |
| 29533 | fi |
| 29534 | RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate |
| 29535 | if test -n "$RLEEncodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29537 | $as_echo "$RLEEncodeDelegate" >&6; } |
| 29538 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29540 | $as_echo "no" >&6; } |
| 29541 | fi |
| 29542 | |
| 29543 | |
| 29544 | # Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args. |
| 29545 | set dummy "$RMDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29547 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29548 | if test "${ac_cv_path_RMDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29549 | $as_echo_n "(cached) " >&6 |
| 29550 | else |
| 29551 | case $RMDelegate in |
| 29552 | [\\/]* | ?:[\\/]*) |
| 29553 | ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path. |
| 29554 | ;; |
| 29555 | *) |
| 29556 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 29557 | for as_dir in $PATH |
| 29558 | do |
| 29559 | IFS=$as_save_IFS |
| 29560 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29561 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29562 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 29563 | ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29564 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29565 | break 2 |
| 29566 | fi |
| 29567 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29568 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29569 | IFS=$as_save_IFS |
| 29570 | |
| 29571 | test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault"" |
| 29572 | ;; |
| 29573 | esac |
| 29574 | fi |
| 29575 | RMDelegate=$ac_cv_path_RMDelegate |
| 29576 | if test -n "$RMDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29578 | $as_echo "$RMDelegate" >&6; } |
| 29579 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29581 | $as_echo "no" >&6; } |
| 29582 | fi |
| 29583 | |
| 29584 | |
| 29585 | # Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args. |
| 29586 | set dummy "$SCANDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29588 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29589 | if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29590 | $as_echo_n "(cached) " >&6 |
| 29591 | else |
| 29592 | case $SCANDecodeDelegate in |
| 29593 | [\\/]* | ?:[\\/]*) |
| 29594 | ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path. |
| 29595 | ;; |
| 29596 | *) |
| 29597 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 29598 | for as_dir in $PATH |
| 29599 | do |
| 29600 | IFS=$as_save_IFS |
| 29601 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29602 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29603 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 29604 | ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29605 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29606 | break 2 |
| 29607 | fi |
| 29608 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29609 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29610 | IFS=$as_save_IFS |
| 29611 | |
| 29612 | test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault"" |
| 29613 | ;; |
| 29614 | esac |
| 29615 | fi |
| 29616 | SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate |
| 29617 | if test -n "$SCANDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29619 | $as_echo "$SCANDecodeDelegate" >&6; } |
| 29620 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29622 | $as_echo "no" >&6; } |
| 29623 | fi |
| 29624 | |
| 29625 | |
| 29626 | # Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args. |
| 29627 | set dummy "$TXTDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29629 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29630 | if test "${ac_cv_path_TXTDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29631 | $as_echo_n "(cached) " >&6 |
| 29632 | else |
| 29633 | case $TXTDelegate in |
| 29634 | [\\/]* | ?:[\\/]*) |
| 29635 | ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path. |
| 29636 | ;; |
| 29637 | *) |
| 29638 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 29639 | for as_dir in $PATH |
| 29640 | do |
| 29641 | IFS=$as_save_IFS |
| 29642 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29643 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29644 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 29645 | ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29646 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29647 | break 2 |
| 29648 | fi |
| 29649 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29650 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29651 | IFS=$as_save_IFS |
| 29652 | |
| 29653 | test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault"" |
| 29654 | ;; |
| 29655 | esac |
| 29656 | fi |
| 29657 | TXTDelegate=$ac_cv_path_TXTDelegate |
| 29658 | if test -n "$TXTDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29660 | $as_echo "$TXTDelegate" >&6; } |
| 29661 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29663 | $as_echo "no" >&6; } |
| 29664 | fi |
| 29665 | |
| 29666 | |
| 29667 | # Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args. |
| 29668 | set dummy "$WMFDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29670 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29671 | if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29672 | $as_echo_n "(cached) " >&6 |
| 29673 | else |
| 29674 | case $WMFDecodeDelegate in |
| 29675 | [\\/]* | ?:[\\/]*) |
| 29676 | ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path. |
| 29677 | ;; |
| 29678 | *) |
| 29679 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 29680 | for as_dir in $PATH |
| 29681 | do |
| 29682 | IFS=$as_save_IFS |
| 29683 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29684 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29685 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 29686 | ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29687 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29688 | break 2 |
| 29689 | fi |
| 29690 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29691 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29692 | IFS=$as_save_IFS |
| 29693 | |
| 29694 | test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault"" |
| 29695 | ;; |
| 29696 | esac |
| 29697 | fi |
| 29698 | WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate |
| 29699 | if test -n "$WMFDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29701 | $as_echo "$WMFDecodeDelegate" >&6; } |
| 29702 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29704 | $as_echo "no" >&6; } |
| 29705 | fi |
| 29706 | |
| 29707 | |
| 29708 | # Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args. |
| 29709 | set dummy "$WWWDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29711 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29712 | if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29713 | $as_echo_n "(cached) " >&6 |
| 29714 | else |
| 29715 | case $WWWDecodeDelegate in |
| 29716 | [\\/]* | ?:[\\/]*) |
| 29717 | ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path. |
| 29718 | ;; |
| 29719 | *) |
| 29720 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 29721 | for as_dir in $PATH |
| 29722 | do |
| 29723 | IFS=$as_save_IFS |
| 29724 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29725 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29726 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 29727 | ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29728 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29729 | break 2 |
| 29730 | fi |
| 29731 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29732 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29733 | IFS=$as_save_IFS |
| 29734 | |
| 29735 | test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault"" |
| 29736 | ;; |
| 29737 | esac |
| 29738 | fi |
| 29739 | WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate |
| 29740 | if test -n "$WWWDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29742 | $as_echo "$WWWDecodeDelegate" >&6; } |
| 29743 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29745 | $as_echo "no" >&6; } |
| 29746 | fi |
| 29747 | |
| 29748 | |
| 29749 | # Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args. |
| 29750 | set dummy "$XPSDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29752 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29753 | if test "${ac_cv_path_XPSDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29754 | $as_echo_n "(cached) " >&6 |
| 29755 | else |
| 29756 | case $XPSDelegate in |
| 29757 | [\\/]* | ?:[\\/]*) |
| 29758 | ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path. |
| 29759 | ;; |
| 29760 | *) |
| 29761 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 29762 | for as_dir in $PATH |
| 29763 | do |
| 29764 | IFS=$as_save_IFS |
| 29765 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29766 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29767 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 29768 | ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29769 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29770 | break 2 |
| 29771 | fi |
| 29772 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29773 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29774 | IFS=$as_save_IFS |
| 29775 | |
| 29776 | test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault"" |
| 29777 | ;; |
| 29778 | esac |
| 29779 | fi |
| 29780 | XPSDelegate=$ac_cv_path_XPSDelegate |
| 29781 | if test -n "$XPSDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29783 | $as_echo "$XPSDelegate" >&6; } |
| 29784 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29786 | $as_echo "no" >&6; } |
| 29787 | fi |
| 29788 | |
| 29789 | |
| 29790 | # Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args. |
| 29791 | set dummy "$ZipDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29793 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29794 | if test "${ac_cv_path_ZipDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29795 | $as_echo_n "(cached) " >&6 |
| 29796 | else |
| 29797 | case $ZipDelegate in |
| 29798 | [\\/]* | ?:[\\/]*) |
| 29799 | ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path. |
| 29800 | ;; |
| 29801 | *) |
| 29802 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 29803 | for as_dir in $PATH |
| 29804 | do |
| 29805 | IFS=$as_save_IFS |
| 29806 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29807 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29808 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 29809 | ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29810 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29811 | break 2 |
| 29812 | fi |
| 29813 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29814 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29815 | IFS=$as_save_IFS |
| 29816 | |
| 29817 | test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault"" |
| 29818 | ;; |
| 29819 | esac |
| 29820 | fi |
| 29821 | ZipDelegate=$ac_cv_path_ZipDelegate |
| 29822 | if test -n "$ZipDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29824 | $as_echo "$ZipDelegate" >&6; } |
| 29825 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29827 | $as_echo "no" >&6; } |
| 29828 | fi |
| 29829 | |
| 29830 | |
| 29831 | |
| 29832 | # Prefer lpr to lp; lp needs options tacked on. |
| 29833 | if test "$LPRDelegate" != no; then |
| 29834 | PrintDelegate="$LPRDelegate" |
| 29835 | else |
| 29836 | PrintDelegate="$LPDelegate -c -s" |
| 29837 | fi |
| 29838 | |
| 29839 | |
| 29840 | # Installed ImageMagick utiltity paths |
| 29841 | ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}" |
| 29842 | DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}" |
| 29843 | MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}" |
| 29844 | |
| 29845 | # Set delegate booleans |
| 29846 | have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi |
| 29847 | have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi |
| 29848 | have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi |
| 29849 | have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi |
| 29850 | have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi |
| 29851 | have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi |
| 29852 | have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi |
| 29853 | have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi |
| 29854 | have_ra_pfm='no' ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi |
| 29855 | have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi |
| 29856 | have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi |
| 29857 | |
| 29858 | # |
| 29859 | # Test for font directories |
| 29860 | # |
| 29861 | type_include_files='' |
| 29862 | |
| 29863 | # Windows |
| 29864 | windows_font_dir='' |
| 29865 | if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then |
| 29866 | windows_font_dir="${with_windows_font_dir}/" |
| 29867 | fi |
| 29868 | if test -n "$windows_font_dir"; then |
| 29869 | if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then |
| 29870 | windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/' |
| 29871 | fi |
| 29872 | if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then |
| 29873 | windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/' |
| 29874 | fi |
| 29875 | if test -f '/usr/share/fonts/msttcore/arial.ttf'; then |
| 29876 | windows_font_dir='/usr/share/fonts/msttcore/truetype/' |
| 29877 | fi |
| 29878 | fi |
| 29879 | if test -n "$windows_font_dir"; then |
| 29880 | type_include_files="$type_include_files "'<include file="type-windows.xml" />' |
| 29881 | fi |
| 29882 | |
| 29883 | |
| 29884 | # Ghostscript |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29886 | $as_echo_n "checking for Ghostscript fonts directory... " >&6; } |
| 29887 | ghostscript_font_dir='' |
| 29888 | if test "${with_gs_font_dir}" != 'default'; then |
| 29889 | ghostscript_font_dir="${with_gs_font_dir}/" |
| 29890 | else |
| 29891 | if test "${native_win32_build}" = 'yes'; then |
| 29892 | # Native Windows Build |
| 29893 | for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do |
| 29894 | if test -f "${font_dir}a010013l.pfb"; then |
| 29895 | ghostscript_font_dir="$font_dir" |
| 29896 | break 1 |
| 29897 | fi |
| 29898 | done |
| 29899 | if test "${PSDelegate}" != 'gswin32c'; then |
| 29900 | ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\" |
| 29901 | fi |
| 29902 | else |
| 29903 | # Linux / Mac OS X / Unix Build |
| 29904 | 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 |
| 29905 | if test -f "${font_dir}a010013l.pfb"; then |
| 29906 | ghostscript_font_dir="${font_dir}" |
| 29907 | break 1 |
| 29908 | fi |
| 29909 | done |
| 29910 | if test "${ghostscript_font_dir}x" = 'x'; then |
| 29911 | if test "$PSDelegate" != 'gs'; then |
| 29912 | ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/" |
| 29913 | fi |
| 29914 | fi |
| 29915 | fi |
| 29916 | fi |
| 29917 | if test "${ghostscript_font_dir}x" != 'x'; then |
| 29918 | type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />' |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29920 | $as_echo "$ghostscript_font_dir" >&6; } |
| 29921 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 29922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29923 | $as_echo "not found!" >&6; }; |
| 29924 | fi |
| 29925 | |
| 29926 | case "${build_os}" in |
| 29927 | mingw* ) |
| 29928 | PSDelegate=`$WinPathScript "$PSDelegate" 1` |
| 29929 | ;; |
| 29930 | esac |
| 29931 | |
| 29932 | |
| 29933 | |
| 29934 | # |
| 29935 | # Handle case where user doesn't want frozen paths |
| 29936 | # |
| 29937 | if test "$with_frozenpaths" != 'yes'; then |
| 29938 | # Re-set delegate definitions to default (no paths) |
| 29939 | AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault" |
| 29940 | AVIDecodeDelegate="$AVIDecodeDelegateDefault" |
| 29941 | BlenderDecodeDelegate="$BlenderDecodeDelegateDefault" |
| 29942 | BZIPDelegate="$BZIPDelegateDefault" |
| 29943 | BrowseDelegate="$BrowseDelegateDefault" |
| 29944 | CGMDecodeDelegate="$CGMDecodeDelegateDefault" |
| 29945 | CatDelegate="$CatDelegateDefault" |
| 29946 | ConvertDelegate="$ConvertDelegateDefault" |
| 29947 | GVCDecodeDelegate="$GVCDecodeDelegateDefault" |
| 29948 | DVIDecodeDelegate="$DVIDecodeDelegateDefault" |
| 29949 | EchoDelegate="$EchoDelegateDefault" |
| 29950 | EditorDelegate="$EditorDelegateDefault" |
| 29951 | FIGDecodeDelegate="$FIGDecodeDelegateDefault" |
| 29952 | GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault" |
| 29953 | HPGLDecodeDelegate="$HPGLDecodeDelegateDefault" |
| 29954 | HTMLDecodeDelegate="$HTMLDecodeDelegateDefault" |
| 29955 | ILBMDecodeDelegate="$ILBMDecodeDelegateDefault" |
| 29956 | ILBMEncodeDelegate="$ILBMEncodeDelegateDefault" |
| 29957 | LPDelegate="$LPDelegateDefault" |
| 29958 | LZWDecodeDelegate="$LZWDecodeDelegateDefault" |
| 29959 | LZWEncodeDelegate="$LZWEncodeDelegateDefault" |
| 29960 | LaunchDelegate="$LaunchDelegateDefault" |
| 29961 | MANDelegate="$MANDelegateDefault" |
| 29962 | MPEGDecodeDelegate="$MPEGDecodeDelegateDefault" |
| 29963 | MPEGEncodeDelegate="$MPEGEncodeDelegateDefault" |
| 29964 | MVDelegate="$MVDelegateDefault" |
| 29965 | MogrifyDelegate="$MogrifyDelegateDefault" |
| 29966 | PCLDelegate="$PCLDelegateDefault" |
| 29967 | PGPDecodeDelegate="$PGPDecodeDelegateDefault" |
| 29968 | POVDelegate="$POVDelegateDefault" |
| 29969 | PSDelegate="$PSDelegateDefault" |
| 29970 | HDRDecodeDelegate="$HDRDecodeDelegateDefault" |
| 29971 | RLEEncodeDelegate="$RLEEncodeDelegateDefault" |
| 29972 | RMDelegate="$RMDelegateDefault" |
| 29973 | SCANDecodeDelegate="$SCANDecodeDelegateDefault" |
| 29974 | ShowImageDelegate="$ShowImageDelegateDefault" |
| 29975 | TXTDelegate="$TXTDelegateDefault" |
| 29976 | WMFDecodeDelegate="$WMFDecodeDelegateDefault" |
| 29977 | WWWDecodeDelegate="$WWWDecodeDelegateDefault" |
| 29978 | XPSDelegate="$XPSDelegateDefault" |
| 29979 | ZipDelegate="$ZipDelegateDefault" |
| 29980 | fi |
| 29981 | |
| 29982 | # Delegate substitutions |
| 29983 | |
| 29984 | |
| 29985 | |
| 29986 | |
| 29987 | |
| 29988 | |
| 29989 | |
| 29990 | |
| 29991 | |
| 29992 | |
| 29993 | |
| 29994 | |
| 29995 | |
| 29996 | |
| 29997 | |
| 29998 | |
| 29999 | |
| 30000 | |
| 30001 | |
| 30002 | |
| 30003 | |
| 30004 | |
| 30005 | |
| 30006 | |
| 30007 | |
| 30008 | |
| 30009 | |
| 30010 | |
| 30011 | |
| 30012 | |
| 30013 | |
| 30014 | |
| 30015 | |
| 30016 | |
| 30017 | |
| 30018 | |
| 30019 | |
| 30020 | |
| 30021 | |
| 30022 | |
| 30023 | |
| 30024 | |
| 30025 | # |
| 30026 | # RPM support. |
| 30027 | # |
| 30028 | RPM='' |
| 30029 | for ac_prog in gnutar gtar tar |
| 30030 | do |
| 30031 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 30032 | set dummy $ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30033 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30034 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30035 | if test "${ac_cv_prog_TAR+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30036 | $as_echo_n "(cached) " >&6 |
| 30037 | else |
| 30038 | if test -n "$TAR"; then |
| 30039 | ac_cv_prog_TAR="$TAR" # Let the user override the test. |
| 30040 | else |
| 30041 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 30042 | for as_dir in $PATH |
| 30043 | do |
| 30044 | IFS=$as_save_IFS |
| 30045 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30046 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30047 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 30048 | ac_cv_prog_TAR="$ac_prog" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30049 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30050 | break 2 |
| 30051 | fi |
| 30052 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30053 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30054 | IFS=$as_save_IFS |
| 30055 | |
| 30056 | fi |
| 30057 | fi |
| 30058 | TAR=$ac_cv_prog_TAR |
| 30059 | if test -n "$TAR"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30061 | $as_echo "$TAR" >&6; } |
| 30062 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30064 | $as_echo "no" >&6; } |
| 30065 | fi |
| 30066 | |
| 30067 | |
| 30068 | test -n "$TAR" && break |
| 30069 | done |
| 30070 | |
| 30071 | for ac_prog in perl |
| 30072 | do |
| 30073 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 30074 | set dummy $ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30076 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30077 | if test "${ac_cv_prog_PERL+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30078 | $as_echo_n "(cached) " >&6 |
| 30079 | else |
| 30080 | if test -n "$PERL"; then |
| 30081 | ac_cv_prog_PERL="$PERL" # Let the user override the test. |
| 30082 | else |
| 30083 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 30084 | for as_dir in $PATH |
| 30085 | do |
| 30086 | IFS=$as_save_IFS |
| 30087 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30088 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30089 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 30090 | ac_cv_prog_PERL="$ac_prog" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30091 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30092 | break 2 |
| 30093 | fi |
| 30094 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30095 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30096 | IFS=$as_save_IFS |
| 30097 | |
| 30098 | fi |
| 30099 | fi |
| 30100 | PERL=$ac_cv_prog_PERL |
| 30101 | if test -n "$PERL"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30103 | $as_echo "$PERL" >&6; } |
| 30104 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30106 | $as_echo "no" >&6; } |
| 30107 | fi |
| 30108 | |
| 30109 | |
| 30110 | test -n "$PERL" && break |
| 30111 | done |
| 30112 | |
| 30113 | for ac_prog in rpmbuild rpm |
| 30114 | do |
| 30115 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 30116 | set dummy $ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30118 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30119 | if test "${ac_cv_prog_RPM+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30120 | $as_echo_n "(cached) " >&6 |
| 30121 | else |
| 30122 | if test -n "$RPM"; then |
| 30123 | ac_cv_prog_RPM="$RPM" # Let the user override the test. |
| 30124 | else |
| 30125 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 30126 | for as_dir in $PATH |
| 30127 | do |
| 30128 | IFS=$as_save_IFS |
| 30129 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30130 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30131 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 30132 | ac_cv_prog_RPM="$ac_prog" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30133 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30134 | break 2 |
| 30135 | fi |
| 30136 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30137 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30138 | IFS=$as_save_IFS |
| 30139 | |
| 30140 | fi |
| 30141 | fi |
| 30142 | RPM=$ac_cv_prog_RPM |
| 30143 | if test -n "$RPM"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30145 | $as_echo "$RPM" >&6; } |
| 30146 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30148 | $as_echo "no" >&6; } |
| 30149 | fi |
| 30150 | |
| 30151 | |
| 30152 | test -n "$RPM" && break |
| 30153 | done |
| 30154 | |
| 30155 | |
| 30156 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"} |
| 30157 | |
| 30158 | |
| 30159 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 30160 | |
| 30161 | |
| 30162 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"} |
| 30163 | |
| 30164 | |
| 30165 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 30166 | |
| 30167 | |
| 30168 | if test "x$RPM" != "x" ; then |
| 30169 | RPM_DELEGATE_TRUE= |
| 30170 | RPM_DELEGATE_FALSE='#' |
| 30171 | else |
| 30172 | RPM_DELEGATE_TRUE='#' |
| 30173 | RPM_DELEGATE_FALSE= |
| 30174 | fi |
| 30175 | |
| 30176 | |
| 30177 | # |
| 30178 | # 7ZIP support (http://p7zip.sourceforge.net/) |
| 30179 | # |
| 30180 | P7ZIP='' |
| 30181 | for ac_prog in 7za |
| 30182 | do |
| 30183 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 30184 | set dummy $ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30185 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30186 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30187 | if test "${ac_cv_prog_P7ZIP+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30188 | $as_echo_n "(cached) " >&6 |
| 30189 | else |
| 30190 | if test -n "$P7ZIP"; then |
| 30191 | ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test. |
| 30192 | else |
| 30193 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 30194 | for as_dir in $PATH |
| 30195 | do |
| 30196 | IFS=$as_save_IFS |
| 30197 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30198 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30199 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 30200 | ac_cv_prog_P7ZIP="$ac_prog" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30201 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30202 | break 2 |
| 30203 | fi |
| 30204 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30205 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30206 | IFS=$as_save_IFS |
| 30207 | |
| 30208 | fi |
| 30209 | fi |
| 30210 | P7ZIP=$ac_cv_prog_P7ZIP |
| 30211 | if test -n "$P7ZIP"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30213 | $as_echo "$P7ZIP" >&6; } |
| 30214 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30216 | $as_echo "no" >&6; } |
| 30217 | fi |
| 30218 | |
| 30219 | |
| 30220 | test -n "$P7ZIP" && break |
| 30221 | done |
| 30222 | |
| 30223 | |
| 30224 | if test "x$P7ZIP" != "x" ; then |
| 30225 | P7ZIP_DELEGATE_TRUE= |
| 30226 | P7ZIP_DELEGATE_FALSE='#' |
| 30227 | else |
| 30228 | P7ZIP_DELEGATE_TRUE='#' |
| 30229 | P7ZIP_DELEGATE_FALSE= |
| 30230 | fi |
| 30231 | |
| 30232 | |
| 30233 | # |
| 30234 | # ZIP support (http://www.info-zip.org/Zip.html) |
| 30235 | # |
| 30236 | ZIP='' |
| 30237 | for ac_prog in zip |
| 30238 | do |
| 30239 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 30240 | set dummy $ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30242 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30243 | if test "${ac_cv_prog_ZIP+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30244 | $as_echo_n "(cached) " >&6 |
| 30245 | else |
| 30246 | if test -n "$ZIP"; then |
| 30247 | ac_cv_prog_ZIP="$ZIP" # Let the user override the test. |
| 30248 | else |
| 30249 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 30250 | for as_dir in $PATH |
| 30251 | do |
| 30252 | IFS=$as_save_IFS |
| 30253 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30254 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30255 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 30256 | ac_cv_prog_ZIP="$ac_prog" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30257 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30258 | break 2 |
| 30259 | fi |
| 30260 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30261 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30262 | IFS=$as_save_IFS |
| 30263 | |
| 30264 | fi |
| 30265 | fi |
| 30266 | ZIP=$ac_cv_prog_ZIP |
| 30267 | if test -n "$ZIP"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30269 | $as_echo "$ZIP" >&6; } |
| 30270 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30272 | $as_echo "no" >&6; } |
| 30273 | fi |
| 30274 | |
| 30275 | |
| 30276 | test -n "$ZIP" && break |
| 30277 | done |
| 30278 | |
| 30279 | |
| 30280 | if test "x$ZIP" != "x" ; then |
| 30281 | ZIP_DELEGATE_TRUE= |
| 30282 | ZIP_DELEGATE_FALSE='#' |
| 30283 | else |
| 30284 | ZIP_DELEGATE_TRUE='#' |
| 30285 | ZIP_DELEGATE_FALSE= |
| 30286 | fi |
| 30287 | |
| 30288 | |
| 30289 | # |
| 30290 | # GhostPCL related configuration. |
| 30291 | # |
| 30292 | PCLColorDevice=ppmraw |
| 30293 | PCLCMYKDevice=bmpsep8 |
| 30294 | PCLMonoDevice=pbmraw |
| 30295 | if test -z "$PCLVersion"; then |
| 30296 | PCLVersion='unknown' |
| 30297 | fi |
| 30298 | if test $have_pcl = 'yes'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30300 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30302 | $as_echo_n "checking for PCL... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30304 | $as_echo "" >&6; } |
| 30305 | # PCLColorDevice |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30307 | $as_echo_n "checking for pcl color device... " >&6; } |
| 30308 | if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 30309 | : |
| 30310 | else |
| 30311 | PCLColorDevice=ppmraw |
| 30312 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30314 | $as_echo "$PCLColorDevice" >&6; } |
| 30315 | |
| 30316 | # PCLCMYKDevice |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30318 | $as_echo_n "checking for pcl CMYK device... " >&6; } |
| 30319 | if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 30320 | : |
| 30321 | else |
| 30322 | PCLCMYKDevice=$PCLColorDevice |
| 30323 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30325 | $as_echo "$PCLCMYKDevice" >&6; } |
| 30326 | |
| 30327 | # PCLMonoDevice |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30329 | $as_echo_n "checking for pcl mono device... " >&6; } |
| 30330 | if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 30331 | : |
| 30332 | else |
| 30333 | PCLMonoDevice=$PCLColorDevice |
| 30334 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30336 | $as_echo "$PCLMonoDevice" >&6; } |
| 30337 | fi |
| 30338 | |
| 30339 | |
| 30340 | |
| 30341 | |
| 30342 | |
| 30343 | |
| 30344 | # |
| 30345 | # GhostXPS related configuration. |
| 30346 | # |
| 30347 | XPSColorDevice=ppmraw |
| 30348 | XPSCMYKDevice=bmpsep8 |
| 30349 | XPSMonoDevice=pbmraw |
| 30350 | if test -z "$XPSVersion"; then |
| 30351 | XPSVersion='unknown' |
| 30352 | fi |
| 30353 | if test $have_xps = 'yes'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30355 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30357 | $as_echo_n "checking for XPS... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30359 | $as_echo "" >&6; } |
| 30360 | # XPSColorDevice |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30362 | $as_echo_n "checking for xps color device... " >&6; } |
| 30363 | if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 30364 | : |
| 30365 | else |
| 30366 | XPSColorDevice=ppmraw |
| 30367 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30369 | $as_echo "$XPSColorDevice" >&6; } |
| 30370 | |
| 30371 | # XPSCMYKDevice |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30373 | $as_echo_n "checking for xps CMYK device... " >&6; } |
| 30374 | if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 30375 | : |
| 30376 | else |
| 30377 | XPSCMYKDevice=$XPSColorDevice |
| 30378 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30380 | $as_echo "$XPSCMYKDevice" >&6; } |
| 30381 | |
| 30382 | # XPSMonoDevice |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30384 | $as_echo_n "checking for xps mono device... " >&6; } |
| 30385 | if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 30386 | : |
| 30387 | else |
| 30388 | XPSMonoDevice=$XPSColorDevice |
| 30389 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30391 | $as_echo "$XPSMonoDevice" >&6; } |
| 30392 | fi |
| 30393 | |
| 30394 | |
| 30395 | |
| 30396 | |
| 30397 | |
| 30398 | |
| 30399 | # |
| 30400 | # Ghostscript related configuration. |
| 30401 | # |
| 30402 | if test "$have_png" = 'yes'; then |
| 30403 | GSAlphaDevice=pngalpha |
| 30404 | else |
| 30405 | GSAlphaDevice=pnmraw |
| 30406 | fi |
| 30407 | GSColorDevice=pnmraw |
| 30408 | GSCMYKDevice=pam |
| 30409 | GSMonoDevice=pbmraw |
| 30410 | GSPDFDevice=pdfwrite |
| 30411 | GSPSDevice=pswrite |
| 30412 | GSEPSDevice=epswrite |
| 30413 | GSVersion='unknown' |
| 30414 | if test $have_gs = 'yes'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30416 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30418 | $as_echo_n "checking for Ghostscript... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30420 | $as_echo "" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30422 | $as_echo_n "checking for Ghostscript version... " >&6; } |
| 30423 | if GSVersion=`$PSDelegate --version`; then |
| 30424 | : |
| 30425 | else |
| 30426 | GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'` |
| 30427 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30429 | $as_echo "$GSVersion" >&6; } |
| 30430 | |
| 30431 | # GSAlphaDevice |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30433 | $as_echo_n "checking for gs alpha device... " >&6; } |
| 30434 | if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 30435 | : |
| 30436 | else |
| 30437 | GSAlphaDevice=pnmraw |
| 30438 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30440 | $as_echo "$GSAlphaDevice" >&6; } |
| 30441 | |
| 30442 | # GSColorDevice |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30444 | $as_echo_n "checking for gs color device... " >&6; } |
| 30445 | if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 30446 | : |
| 30447 | else |
| 30448 | GSColorDevice=pnmraw |
| 30449 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30451 | $as_echo "$GSColorDevice" >&6; } |
| 30452 | |
| 30453 | # GSCMYKDevice |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30454 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30455 | $as_echo_n "checking for gs CMYK device... " >&6; } |
| 30456 | if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 30457 | : |
| 30458 | else |
| 30459 | GSCMYKDevice=bmpsep8 |
| 30460 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30462 | $as_echo "$GSCMYKDevice" >&6; } |
| 30463 | |
| 30464 | # GSMonoDevice |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30466 | $as_echo_n "checking for gs mono device... " >&6; } |
| 30467 | if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 30468 | : |
| 30469 | else |
| 30470 | GSMonoDevice=$GSColorDevice |
| 30471 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30473 | $as_echo "$GSMonoDevice" >&6; } |
| 30474 | |
| 30475 | # GSPDFDevice |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30477 | $as_echo_n "checking for gs PDF writing device... " >&6; } |
| 30478 | if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 30479 | : |
| 30480 | else |
| 30481 | GSPDFDevice=nodevice |
| 30482 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30484 | $as_echo "$GSPDFDevice" >&6; } |
| 30485 | |
| 30486 | # GSPSDevice |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30488 | $as_echo_n "checking for gs PS writing device... " >&6; } |
| 30489 | if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 30490 | : |
| 30491 | else |
| 30492 | GSPSDevice=nodevice |
| 30493 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30495 | $as_echo "$GSPSDevice" >&6; } |
| 30496 | |
| 30497 | # GSEPSDevice |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30499 | $as_echo_n "checking for gs EPS writing device... " >&6; } |
| 30500 | if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 30501 | : |
| 30502 | else |
| 30503 | GSEPSDevice=nodevice |
| 30504 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30506 | $as_echo "$GSEPSDevice" >&6; } |
| 30507 | fi |
| 30508 | |
| 30509 | |
| 30510 | |
| 30511 | |
| 30512 | |
| 30513 | |
| 30514 | |
| 30515 | |
| 30516 | |
| 30517 | |
| 30518 | # |
| 30519 | # PerlMagick-related configuration |
| 30520 | # |
| 30521 | |
| 30522 | # Look for PERL if PerlMagick requested |
| 30523 | # If name/path of desired PERL interpreter is specified, look for that one first |
| 30524 | have_perl='no' |
| 30525 | if test "$with_perl" != 'no'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30527 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30528 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30529 | $as_echo_n "checking for Perl... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30531 | $as_echo "" >&6; } |
| 30532 | if test "$with_perl" != 'yes'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30534 | $as_echo_n "checking for perl... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30535 | if test "${ac_cv_path_PERL+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30536 | $as_echo_n "(cached) " >&6 |
| 30537 | else |
| 30538 | ac_cv_path_PERL="$with_perl" |
| 30539 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30541 | $as_echo "$ac_cv_path_PERL" >&6; }; |
| 30542 | PERL=$ac_cv_path_PERL |
| 30543 | have_perl="$ac_cv_path_PERL" |
| 30544 | else |
| 30545 | for ac_prog in perl perl5 |
| 30546 | do |
| 30547 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 30548 | set dummy $ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30549 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30550 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30551 | if test "${ac_cv_path_PERL+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30552 | $as_echo_n "(cached) " >&6 |
| 30553 | else |
| 30554 | case $PERL in |
| 30555 | [\\/]* | ?:[\\/]*) |
| 30556 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 30557 | ;; |
| 30558 | *) |
| 30559 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 30560 | for as_dir in $PATH |
| 30561 | do |
| 30562 | IFS=$as_save_IFS |
| 30563 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30564 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30565 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 30566 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30567 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30568 | break 2 |
| 30569 | fi |
| 30570 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30571 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30572 | IFS=$as_save_IFS |
| 30573 | |
| 30574 | ;; |
| 30575 | esac |
| 30576 | fi |
| 30577 | PERL=$ac_cv_path_PERL |
| 30578 | if test -n "$PERL"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30580 | $as_echo "$PERL" >&6; } |
| 30581 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30583 | $as_echo "no" >&6; } |
| 30584 | fi |
| 30585 | |
| 30586 | |
| 30587 | test -n "$PERL" && break |
| 30588 | done |
| 30589 | if test "$ac_cv_path_PERL"; then |
| 30590 | have_perl="$ac_cv_path_PERL" |
| 30591 | fi |
| 30592 | fi |
| 30593 | fi |
| 30594 | |
| 30595 | with_perl_static='no' |
| 30596 | with_perl_dynamic='no' |
| 30597 | if test "$have_perl" != 'no'; then |
| 30598 | if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then |
| 30599 | with_perl_static='yes' |
| 30600 | fi |
| 30601 | if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then |
| 30602 | with_perl_dynamic='yes' |
| 30603 | fi |
| 30604 | # Is PERL's MakeMaker new enough to support DESTDIR? |
| 30605 | # Make sure we have perl |
| 30606 | if test -z "$PERL"; then |
| 30607 | # Extract the first word of "perl", so it can be a program name with args. |
| 30608 | set dummy perl; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30609 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30610 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30611 | if test "${ac_cv_prog_PERL+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30612 | $as_echo_n "(cached) " >&6 |
| 30613 | else |
| 30614 | if test -n "$PERL"; then |
| 30615 | ac_cv_prog_PERL="$PERL" # Let the user override the test. |
| 30616 | else |
| 30617 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 30618 | for as_dir in $PATH |
| 30619 | do |
| 30620 | IFS=$as_save_IFS |
| 30621 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30622 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30623 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 30624 | ac_cv_prog_PERL="perl" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30625 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30626 | break 2 |
| 30627 | fi |
| 30628 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30629 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30630 | IFS=$as_save_IFS |
| 30631 | |
| 30632 | fi |
| 30633 | fi |
| 30634 | PERL=$ac_cv_prog_PERL |
| 30635 | if test -n "$PERL"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30637 | $as_echo "$PERL" >&6; } |
| 30638 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30640 | $as_echo "no" >&6; } |
| 30641 | fi |
| 30642 | |
| 30643 | |
| 30644 | fi |
| 30645 | |
| 30646 | # Check if version of Perl is sufficient |
| 30647 | ac_perl_version="5.8.1" |
| 30648 | |
| 30649 | if test "x$PERL" != "x"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version greater than or equal to $ac_perl_version" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30651 | $as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; } |
| 30652 | # NB: It would be nice to log the error if there is one, but we cannot rely |
| 30653 | # on autoconf internals |
| 30654 | $PERL -e "use $ac_perl_version;" > /dev/null 2>&1 |
| 30655 | if test $? -ne 0; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30657 | $as_echo "no" >&6; }; |
| 30658 | PERL_SUPPORTS_DESTDIR='no' |
| 30659 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30661 | $as_echo "ok" >&6; }; |
| 30662 | PERL_SUPPORTS_DESTDIR='yes' |
| 30663 | fi |
| 30664 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30665 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find perl" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30666 | $as_echo "$as_me: WARNING: could not find perl" >&2;} |
| 30667 | fi |
| 30668 | |
| 30669 | fi |
| 30670 | if test "$have_perl" != 'no'; then |
| 30671 | WITH_PERL_TRUE= |
| 30672 | WITH_PERL_FALSE='#' |
| 30673 | else |
| 30674 | WITH_PERL_TRUE='#' |
| 30675 | WITH_PERL_FALSE= |
| 30676 | fi |
| 30677 | |
| 30678 | if test $with_perl_static = 'yes'; then |
| 30679 | WITH_PERL_STATIC_TRUE= |
| 30680 | WITH_PERL_STATIC_FALSE='#' |
| 30681 | else |
| 30682 | WITH_PERL_STATIC_TRUE='#' |
| 30683 | WITH_PERL_STATIC_FALSE= |
| 30684 | fi |
| 30685 | |
| 30686 | if test $with_perl_dynamic = 'yes'; then |
| 30687 | WITH_PERL_DYNAMIC_TRUE= |
| 30688 | WITH_PERL_DYNAMIC_FALSE='#' |
| 30689 | else |
| 30690 | WITH_PERL_DYNAMIC_TRUE='#' |
| 30691 | WITH_PERL_DYNAMIC_FALSE= |
| 30692 | fi |
| 30693 | |
| 30694 | |
| 30695 | |
| 30696 | # Determine path to pick up MagickCore library from for use with building PerlMagick |
| 30697 | MAGICKCORE_PATH="${LIB_DIR}" |
| 30698 | if test $with_perl_static = 'yes'; then |
| 30699 | # Find out where libtool hides its uninstalled libraries (as libtool_objdir) |
| 30700 | libtool_objdir=$objdir |
| 30701 | |
| 30702 | # Linker search path to library, followed by -lMagickCore |
| 30703 | MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}" |
| 30704 | fi |
| 30705 | |
| 30706 | |
| 30707 | # Create a simple string containing format names for all delegate libraries |
| 30708 | DELEGATES='' |
| 30709 | if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi |
| 30710 | if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi |
| 30711 | if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi |
| 30712 | if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi |
| 30713 | if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi |
| 30714 | if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi |
| 30715 | if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi |
| 30716 | if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi |
| 30717 | if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi |
| 30718 | if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi |
| 30719 | if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi |
| 30720 | if test "$have_jpeg" = 'yes'; then |
| 30721 | DELEGATES="$DELEGATES jpeg"; |
| 30722 | if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi |
| 30723 | fi |
| 30724 | if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi |
| 30725 | if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi |
| 30726 | if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi |
| 30727 | if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi |
| 30728 | if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi |
| 30729 | if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi |
| 30730 | if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi |
| 30731 | if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi |
| 30732 | if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi |
| 30733 | if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi |
| 30734 | if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi |
| 30735 | if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi |
| 30736 | |
| 30737 | |
| 30738 | |
| 30739 | # |
| 30740 | # Handle special compiler flags |
| 30741 | # |
| 30742 | |
| 30743 | # Add '-p' if prof source profiling support enabled |
| 30744 | if test "$enable_prof" = 'yes'; then |
| 30745 | CFLAGS="-p $CFLAGS" |
| 30746 | CXXFLAGS="-p $CXXFLAGS" |
| 30747 | LDFLAGS="-p $LDFLAGS" |
| 30748 | fi |
| 30749 | |
| 30750 | # Add '-pg' if gprof source profiling support enabled |
| 30751 | if test "$enable_gprof" = 'yes'; then |
| 30752 | CFLAGS="-pg $CFLAGS" |
| 30753 | CXXFLAGS="-pg $CXXFLAGS" |
| 30754 | LDFLAGS="-pg $LDFLAGS" |
| 30755 | fi |
| 30756 | |
| 30757 | # Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled |
| 30758 | # This is a gcc-specific feature |
| 30759 | if test "$enable_gcov" = 'yes'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30761 | $as_echo_n "checking for _gcov_init in -lgcov... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30762 | if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30763 | $as_echo_n "(cached) " >&6 |
| 30764 | else |
| 30765 | ac_check_lib_save_LIBS=$LIBS |
| 30766 | LIBS="-lgcov $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30767 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30768 | /* end confdefs.h. */ |
| 30769 | |
| 30770 | /* Override any GCC internal prototype to avoid an error. |
| 30771 | Use char because int might match the return type of a GCC |
| 30772 | builtin and then its argument prototype would still apply. */ |
| 30773 | #ifdef __cplusplus |
| 30774 | extern "C" |
| 30775 | #endif |
| 30776 | char _gcov_init (); |
| 30777 | int |
| 30778 | main () |
| 30779 | { |
| 30780 | return _gcov_init (); |
| 30781 | ; |
| 30782 | return 0; |
| 30783 | } |
| 30784 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30785 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30786 | ac_cv_lib_gcov__gcov_init=yes |
| 30787 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30788 | ac_cv_lib_gcov__gcov_init=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30789 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30790 | rm -f core conftest.err conftest.$ac_objext \ |
| 30791 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30792 | LIBS=$ac_check_lib_save_LIBS |
| 30793 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30795 | $as_echo "$ac_cv_lib_gcov__gcov_init" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30796 | if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30797 | cat >>confdefs.h <<_ACEOF |
| 30798 | #define HAVE_LIBGCOV 1 |
| 30799 | _ACEOF |
| 30800 | |
| 30801 | LIBS="-lgcov $LIBS" |
| 30802 | |
| 30803 | fi |
| 30804 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30806 | $as_echo_n "checking for __gcov_init in -lgcov... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30807 | if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30808 | $as_echo_n "(cached) " >&6 |
| 30809 | else |
| 30810 | ac_check_lib_save_LIBS=$LIBS |
| 30811 | LIBS="-lgcov $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30812 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30813 | /* end confdefs.h. */ |
| 30814 | |
| 30815 | /* Override any GCC internal prototype to avoid an error. |
| 30816 | Use char because int might match the return type of a GCC |
| 30817 | builtin and then its argument prototype would still apply. */ |
| 30818 | #ifdef __cplusplus |
| 30819 | extern "C" |
| 30820 | #endif |
| 30821 | char __gcov_init (); |
| 30822 | int |
| 30823 | main () |
| 30824 | { |
| 30825 | return __gcov_init (); |
| 30826 | ; |
| 30827 | return 0; |
| 30828 | } |
| 30829 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30830 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30831 | ac_cv_lib_gcov___gcov_init=yes |
| 30832 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30833 | ac_cv_lib_gcov___gcov_init=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30834 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30835 | rm -f core conftest.err conftest.$ac_objext \ |
| 30836 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30837 | LIBS=$ac_check_lib_save_LIBS |
| 30838 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30840 | $as_echo "$ac_cv_lib_gcov___gcov_init" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30841 | if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30842 | cat >>confdefs.h <<_ACEOF |
| 30843 | #define HAVE_LIBGCOV 1 |
| 30844 | _ACEOF |
| 30845 | |
| 30846 | LIBS="-lgcov $LIBS" |
| 30847 | |
| 30848 | fi |
| 30849 | |
| 30850 | case "$target_os" in |
| 30851 | darwin*) |
| 30852 | OSX_GCOV_LDFLAG="-Wl,-single_module" |
| 30853 | ;; |
| 30854 | *) |
| 30855 | OSX_GCOV_LDFLAG="" |
| 30856 | ;; |
| 30857 | esac |
| 30858 | |
| 30859 | CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS" |
| 30860 | CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS" |
| 30861 | LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS" |
| 30862 | fi |
| 30863 | |
| 30864 | # |
| 30865 | # Build library dependency list for libMagickCore |
| 30866 | # |
| 30867 | |
| 30868 | MAGICK_LIBLTDL='' # Libltdl for build |
| 30869 | MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build |
| 30870 | MAGICK_LTDLDEPS='' # extra libltdl dependencies |
| 30871 | if test "$with_ltdl" != 'no' |
| 30872 | then |
| 30873 | if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then |
| 30874 | MAGICK_API_LIBLTDL='-lltdl' |
| 30875 | fi |
| 30876 | MAGICK_LIBLTDL=${LIBLTDL} |
| 30877 | MAGICK_LTDLDEPS=${LTDLDEPS} |
| 30878 | fi |
| 30879 | |
| 30880 | |
| 30881 | |
| 30882 | if test "$with_modules" != 'no'; then |
| cristy | 2e8b51d | 2009-10-17 18:26:15 +0000 | [diff] [blame] | 30883 | MAGICK_DEP_LIBS="$LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JPEG_LIBS $LQR_LIBS $FFTW_LIBS $FONTCONFIG_LIBS $XEXT_LIBS $IPC_LIBS $X11_LIBS $XT_LIBS $BZLIB_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $CL_LIBS $THREAD_LIBS" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30884 | else |
| cristy | 2e8b51d | 2009-10-17 18:26:15 +0000 | [diff] [blame] | 30885 | 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 $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $BZLIB_LIBS $OPENEXR_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $CL_LIBS $THREAD_LIBS" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30886 | fi |
| 30887 | |
| 30888 | |
| 30889 | # |
| 30890 | # Remove extraneous spaces from output variables (asthetic) |
| 30891 | # |
| 30892 | X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'` |
| 30893 | X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'` |
| 30894 | X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'` |
| 30895 | X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'` |
| 30896 | |
| 30897 | CC=`echo $CC | sed -e 's/ */ /g'` |
| 30898 | CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'` |
| 30899 | CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'` |
| 30900 | CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'` |
| 30901 | DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'` |
| 30902 | DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'` |
| 30903 | LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'` |
| 30904 | TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'` |
| 30905 | MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'` |
| 30906 | #LIBS=`echo $LIBS | sed -e 's/ */ /g'` |
| 30907 | |
| 30908 | # Pass only user-provided LIBS as "global" libraries |
| 30909 | LIBS=$USER_LIBS |
| 30910 | |
| 30911 | #AC_SUBST(CPPFLAGS) |
| 30912 | |
| 30913 | #AC_SUBST(LDFLAGS) |
| 30914 | #AC_SUBST(X_PRE_LIBS) |
| 30915 | #AC_SUBST(X_LIBS) |
| 30916 | #AC_SUBST(X_EXTRA_LIBS) |
| 30917 | |
| 30918 | MAGICK_CFLAGS=$CFLAGS |
| 30919 | MAGICK_CXXFLAGS="$CXXFLAGS" |
| 30920 | MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'` |
| 30921 | MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'` |
| 30922 | MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS" |
| 30923 | MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL" |
| 30924 | |
| 30925 | |
| 30926 | |
| 30927 | |
| 30928 | |
| 30929 | |
| 30930 | |
| 30931 | |
| 30932 | # Set configured scripts to executable. |
| 30933 | ac_config_commands="$ac_config_commands default" |
| 30934 | |
| 30935 | ac_config_commands="$ac_config_commands MagickCore-config.in" |
| 30936 | |
| 30937 | ac_config_commands="$ac_config_commands Magick-config.in" |
| 30938 | |
| 30939 | ac_config_commands="$ac_config_commands MagickWand-config.in" |
| 30940 | |
| 30941 | ac_config_commands="$ac_config_commands Wand-config.in" |
| 30942 | |
| 30943 | ac_config_commands="$ac_config_commands Magick++-config.in" |
| 30944 | |
| 30945 | ac_config_commands="$ac_config_commands PerlMagick/check.sh.in" |
| 30946 | |
| 30947 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30949 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30951 | $as_echo "Update ImageMagick configuration" >&6; } |
| 30952 | cat >confcache <<\_ACEOF |
| 30953 | # This file is a shell script that caches the results of configure |
| 30954 | # tests run on this system so they can be shared between configure |
| 30955 | # scripts and configure runs, see configure's option --config-cache. |
| 30956 | # It is not useful on other systems. If it contains results you don't |
| 30957 | # want to keep, you may remove or edit it. |
| 30958 | # |
| 30959 | # config.status only pays attention to the cache file if you give it |
| 30960 | # the --recheck option to rerun configure. |
| 30961 | # |
| 30962 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 30963 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 30964 | # following values. |
| 30965 | |
| 30966 | _ACEOF |
| 30967 | |
| 30968 | # The following way of writing the cache mishandles newlines in values, |
| 30969 | # but we know of no workaround that is simple, portable, and efficient. |
| 30970 | # So, we kill variables containing newlines. |
| 30971 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 30972 | # and sets the high bit in the cache file unless we assign to the vars. |
| 30973 | ( |
| 30974 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 30975 | eval ac_val=\$$ac_var |
| 30976 | case $ac_val in #( |
| 30977 | *${as_nl}*) |
| 30978 | case $ac_var in #( |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30979 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30980 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 30981 | esac |
| 30982 | case $ac_var in #( |
| 30983 | _ | IFS | as_nl) ;; #( |
| 30984 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30985 | *) { eval $ac_var=; unset $ac_var;} ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30986 | esac ;; |
| 30987 | esac |
| 30988 | done |
| 30989 | |
| 30990 | (set) 2>&1 | |
| 30991 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 30992 | *${as_nl}ac_space=\ *) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 30993 | # `set' does not quote correctly, so add quotes: double-quote |
| 30994 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30995 | sed -n \ |
| 30996 | "s/'/'\\\\''/g; |
| 30997 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 30998 | ;; #( |
| 30999 | *) |
| 31000 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 31001 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 31002 | ;; |
| 31003 | esac | |
| 31004 | sort |
| 31005 | ) | |
| 31006 | sed ' |
| 31007 | /^ac_cv_env_/b end |
| 31008 | t clear |
| 31009 | :clear |
| 31010 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 31011 | t end |
| 31012 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 31013 | :end' >>confcache |
| 31014 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 31015 | if test -w "$cache_file"; then |
| 31016 | test "x$cache_file" != "x/dev/null" && |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31017 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31018 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
| 31019 | cat confcache >$cache_file |
| 31020 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31021 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31022 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
| 31023 | fi |
| 31024 | fi |
| 31025 | rm -f confcache |
| 31026 | |
| 31027 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 31028 | # Let make expand exec_prefix. |
| 31029 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 31030 | |
| 31031 | DEFS=-DHAVE_CONFIG_H |
| 31032 | |
| 31033 | ac_libobjs= |
| 31034 | ac_ltlibobjs= |
| 31035 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 31036 | # 1. Remove the extension, and $U if already installed. |
| 31037 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 31038 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
| 31039 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 31040 | # will be set to the directory where LIBOBJS objects are built. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31041 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 31042 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31043 | done |
| 31044 | LIBOBJS=$ac_libobjs |
| 31045 | |
| 31046 | LTLIBOBJS=$ac_ltlibobjs |
| 31047 | |
| 31048 | |
| 31049 | if test -n "$EXEEXT"; then |
| 31050 | am__EXEEXT_TRUE= |
| 31051 | am__EXEEXT_FALSE='#' |
| 31052 | else |
| 31053 | am__EXEEXT_TRUE='#' |
| 31054 | am__EXEEXT_FALSE= |
| 31055 | fi |
| 31056 | |
| 31057 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31058 | as_fn_error "conditional \"AMDEP\" was never defined. |
| 31059 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31060 | fi |
| 31061 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31062 | as_fn_error "conditional \"am__fastdepCC\" was never defined. |
| 31063 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31064 | fi |
| 31065 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31066 | as_fn_error "conditional \"am__fastdepCXX\" was never defined. |
| 31067 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31068 | fi |
| 31069 | if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31070 | as_fn_error "conditional \"WINGDI32_DELEGATE\" was never defined. |
| 31071 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31072 | fi |
| 31073 | if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31074 | as_fn_error "conditional \"WIN32_NATIVE_BUILD\" was never defined. |
| 31075 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31076 | fi |
| 31077 | if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31078 | as_fn_error "conditional \"CYGWIN_BUILD\" was never defined. |
| 31079 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31080 | fi |
| 31081 | if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31082 | as_fn_error "conditional \"USING_CL\" was never defined. |
| 31083 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31084 | fi |
| 31085 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31086 | as_fn_error "conditional \"am__fastdepCXX\" was never defined. |
| 31087 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31088 | fi |
| 31089 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31090 | as_fn_error "conditional \"INSTALL_LTDL\" was never defined. |
| 31091 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31092 | fi |
| 31093 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31094 | as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined. |
| 31095 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31096 | fi |
| 31097 | LT_CONFIG_H=config/config.h |
| 31098 | |
| 31099 | _ltdl_libobjs= |
| 31100 | _ltdl_ltlibobjs= |
| 31101 | if test -n "$_LT_LIBOBJS"; then |
| 31102 | # Remove the extension. |
| 31103 | _lt_sed_drop_objext='s/\.o$//;s/\.obj$//' |
| 31104 | for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do |
| 31105 | _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext" |
| 31106 | _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo" |
| 31107 | done |
| 31108 | fi |
| 31109 | ltdl_LIBOBJS=$_ltdl_libobjs |
| 31110 | |
| 31111 | ltdl_LTLIBOBJS=$_ltdl_ltlibobjs |
| 31112 | |
| 31113 | |
| 31114 | if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31115 | as_fn_error "conditional \"WITH_MODULES\" was never defined. |
| 31116 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31117 | fi |
| 31118 | if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31119 | as_fn_error "conditional \"WITH_LTDL\" was never defined. |
| 31120 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31121 | fi |
| 31122 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31123 | as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. |
| 31124 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31125 | fi |
| 31126 | |
| 31127 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31128 | as_fn_error "conditional \"am__fastdepCXX\" was never defined. |
| 31129 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31130 | fi |
| 31131 | if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31132 | as_fn_error "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined. |
| 31133 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31134 | fi |
| 31135 | if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31136 | as_fn_error "conditional \"HasUMEM\" was never defined. |
| 31137 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31138 | fi |
| 31139 | if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31140 | as_fn_error "conditional \"BZLIB_DELEGATE\" was never defined. |
| 31141 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31142 | fi |
| 31143 | if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31144 | as_fn_error "conditional \"X11_DELEGATE\" was never defined. |
| 31145 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31146 | fi |
| 31147 | if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31148 | as_fn_error "conditional \"ZLIB_DELEGATE\" was never defined. |
| 31149 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31150 | fi |
| 31151 | if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31152 | as_fn_error "conditional \"AUTOTRACE_DELEGATE\" was never defined. |
| 31153 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31154 | fi |
| 31155 | if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31156 | as_fn_error "conditional \"DPS_DELEGATE\" was never defined. |
| 31157 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31158 | fi |
| 31159 | if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31160 | as_fn_error "conditional \"DJVU_DELEGATE\" was never defined. |
| 31161 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31162 | fi |
| 31163 | if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31164 | as_fn_error "conditional \"FFTW_DELEGATE\" was never defined. |
| 31165 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31166 | fi |
| 31167 | if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31168 | as_fn_error "conditional \"FPX_DELEGATE\" was never defined. |
| 31169 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31170 | fi |
| 31171 | if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31172 | as_fn_error "conditional \"FONTCONFIG_DELEGATE\" was never defined. |
| 31173 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31174 | fi |
| 31175 | if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31176 | as_fn_error "conditional \"FREETYPE_DELEGATE\" was never defined. |
| 31177 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31178 | fi |
| 31179 | if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31180 | as_fn_error "conditional \"GS_DELEGATE\" was never defined. |
| 31181 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31182 | fi |
| 31183 | if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31184 | as_fn_error "conditional \"GVC_DELEGATE\" was never defined. |
| 31185 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31186 | fi |
| 31187 | if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31188 | as_fn_error "conditional \"JBIG_DELEGATE\" was never defined. |
| 31189 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31190 | fi |
| 31191 | if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31192 | as_fn_error "conditional \"JPEG_DELEGATE\" was never defined. |
| 31193 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31194 | fi |
| 31195 | if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31196 | as_fn_error "conditional \"JP2_DELEGATE\" was never defined. |
| 31197 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31198 | fi |
| 31199 | if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31200 | as_fn_error "conditional \"LCMS_DELEGATE\" was never defined. |
| 31201 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31202 | fi |
| 31203 | if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31204 | as_fn_error "conditional \"LQR_DELEGATE\" was never defined. |
| 31205 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31206 | fi |
| 31207 | if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31208 | as_fn_error "conditional \"OPENEXR_DELEGATE\" was never defined. |
| 31209 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31210 | fi |
| 31211 | if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31212 | as_fn_error "conditional \"PNG_DELEGATE\" was never defined. |
| 31213 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31214 | fi |
| 31215 | if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31216 | as_fn_error "conditional \"RSVG_DELEGATE\" was never defined. |
| 31217 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31218 | fi |
| 31219 | if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31220 | as_fn_error "conditional \"CAIRO_DELEGATE\" was never defined. |
| 31221 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31222 | fi |
| 31223 | if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31224 | as_fn_error "conditional \"TIFF_DELEGATE\" was never defined. |
| 31225 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31226 | fi |
| 31227 | if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31228 | as_fn_error "conditional \"WMF_DELEGATE\" was never defined. |
| 31229 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31230 | fi |
| 31231 | if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31232 | as_fn_error "conditional \"XML_DELEGATE\" was never defined. |
| 31233 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31234 | fi |
| 31235 | if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31236 | as_fn_error "conditional \"RPM_DELEGATE\" was never defined. |
| 31237 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31238 | fi |
| 31239 | if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31240 | as_fn_error "conditional \"P7ZIP_DELEGATE\" was never defined. |
| 31241 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31242 | fi |
| 31243 | if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31244 | as_fn_error "conditional \"ZIP_DELEGATE\" was never defined. |
| 31245 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31246 | fi |
| 31247 | if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31248 | as_fn_error "conditional \"WITH_PERL\" was never defined. |
| 31249 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31250 | fi |
| 31251 | if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31252 | as_fn_error "conditional \"WITH_PERL_STATIC\" was never defined. |
| 31253 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31254 | fi |
| 31255 | if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31256 | as_fn_error "conditional \"WITH_PERL_DYNAMIC\" was never defined. |
| 31257 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31258 | fi |
| 31259 | |
| 31260 | : ${CONFIG_STATUS=./config.status} |
| 31261 | ac_write_fail=0 |
| 31262 | ac_clean_files_save=$ac_clean_files |
| 31263 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31264 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31265 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31266 | as_write_fail=0 |
| 31267 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31268 | #! $SHELL |
| 31269 | # Generated by $as_me. |
| 31270 | # Run this file to recreate the current configuration. |
| 31271 | # Compiler output produced by configure, useful for debugging |
| 31272 | # configure, is in config.log if it exists. |
| 31273 | |
| 31274 | debug=false |
| 31275 | ac_cs_recheck=false |
| 31276 | ac_cs_silent=false |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31277 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31278 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 31279 | export SHELL |
| 31280 | _ASEOF |
| 31281 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 31282 | ## -------------------- ## |
| 31283 | ## M4sh Initialization. ## |
| 31284 | ## -------------------- ## |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31285 | |
| 31286 | # Be more Bourne compatible |
| 31287 | DUALCASE=1; export DUALCASE # for MKS sh |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31288 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31289 | emulate sh |
| 31290 | NULLCMD=: |
| 31291 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 31292 | # is contrary to our usage. Disable this feature. |
| 31293 | alias -g '${1+"$@"}'='"$@"' |
| 31294 | setopt NO_GLOB_SUBST |
| 31295 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31296 | case `(set -o) 2>/dev/null` in #( |
| 31297 | *posix*) : |
| 31298 | set -o posix ;; #( |
| 31299 | *) : |
| 31300 | ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31301 | esac |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31302 | fi |
| 31303 | |
| 31304 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31305 | as_nl=' |
| 31306 | ' |
| 31307 | export as_nl |
| 31308 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 31309 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 31310 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 31311 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31312 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 31313 | # but without wasting forks for bash or zsh. |
| 31314 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 31315 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 31316 | as_echo='print -r --' |
| 31317 | as_echo_n='print -rn --' |
| 31318 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31319 | as_echo='printf %s\n' |
| 31320 | as_echo_n='printf %s' |
| 31321 | else |
| 31322 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 31323 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 31324 | as_echo_n='/usr/ucb/echo -n' |
| 31325 | else |
| 31326 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 31327 | as_echo_n_body='eval |
| 31328 | arg=$1; |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31329 | case $arg in #( |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31330 | *"$as_nl"*) |
| 31331 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 31332 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 31333 | esac; |
| 31334 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 31335 | ' |
| 31336 | export as_echo_n_body |
| 31337 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 31338 | fi |
| 31339 | export as_echo_body |
| 31340 | as_echo='sh -c $as_echo_body as_echo' |
| 31341 | fi |
| 31342 | |
| 31343 | # The user is always right. |
| 31344 | if test "${PATH_SEPARATOR+set}" != set; then |
| 31345 | PATH_SEPARATOR=: |
| 31346 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 31347 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 31348 | PATH_SEPARATOR=';' |
| 31349 | } |
| 31350 | fi |
| 31351 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31352 | |
| 31353 | # IFS |
| 31354 | # We need space, tab and new line, in precisely that order. Quoting is |
| 31355 | # there to prevent editors from complaining about space-tab. |
| 31356 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 31357 | # splitting by setting IFS to empty value.) |
| 31358 | IFS=" "" $as_nl" |
| 31359 | |
| 31360 | # Find who we are. Look in the path if we contain no directory separator. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31361 | case $0 in #(( |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31362 | *[\\/]* ) as_myself=$0 ;; |
| 31363 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 31364 | for as_dir in $PATH |
| 31365 | do |
| 31366 | IFS=$as_save_IFS |
| 31367 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31368 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 31369 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31370 | IFS=$as_save_IFS |
| 31371 | |
| 31372 | ;; |
| 31373 | esac |
| 31374 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 31375 | # in which case we are not to be found in the path. |
| 31376 | if test "x$as_myself" = x; then |
| 31377 | as_myself=$0 |
| 31378 | fi |
| 31379 | if test ! -f "$as_myself"; then |
| 31380 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31381 | exit 1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31382 | fi |
| 31383 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31384 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 31385 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 31386 | # suppresses any "Segmentation fault" message there. '((' could |
| 31387 | # trigger a bug in pdksh 5.2.14. |
| 31388 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 31389 | do eval test x\${$as_var+set} = xset \ |
| 31390 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31391 | done |
| 31392 | PS1='$ ' |
| 31393 | PS2='> ' |
| 31394 | PS4='+ ' |
| 31395 | |
| 31396 | # NLS nuisances. |
| 31397 | LC_ALL=C |
| 31398 | export LC_ALL |
| 31399 | LANGUAGE=C |
| 31400 | export LANGUAGE |
| 31401 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31402 | # CDPATH. |
| 31403 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 31404 | |
| 31405 | |
| 31406 | # as_fn_error ERROR [LINENO LOG_FD] |
| 31407 | # --------------------------------- |
| 31408 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 31409 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 31410 | # script with status $?, using 1 if that was 0. |
| 31411 | as_fn_error () |
| 31412 | { |
| 31413 | as_status=$?; test $as_status -eq 0 && as_status=1 |
| 31414 | if test "$3"; then |
| 31415 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 31416 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
| 31417 | fi |
| 31418 | $as_echo "$as_me: error: $1" >&2 |
| 31419 | as_fn_exit $as_status |
| 31420 | } # as_fn_error |
| 31421 | |
| 31422 | |
| 31423 | # as_fn_set_status STATUS |
| 31424 | # ----------------------- |
| 31425 | # Set $? to STATUS, without forking. |
| 31426 | as_fn_set_status () |
| 31427 | { |
| 31428 | return $1 |
| 31429 | } # as_fn_set_status |
| 31430 | |
| 31431 | # as_fn_exit STATUS |
| 31432 | # ----------------- |
| 31433 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 31434 | as_fn_exit () |
| 31435 | { |
| 31436 | set +e |
| 31437 | as_fn_set_status $1 |
| 31438 | exit $1 |
| 31439 | } # as_fn_exit |
| 31440 | |
| 31441 | # as_fn_unset VAR |
| 31442 | # --------------- |
| 31443 | # Portably unset VAR. |
| 31444 | as_fn_unset () |
| 31445 | { |
| 31446 | { eval $1=; unset $1;} |
| 31447 | } |
| 31448 | as_unset=as_fn_unset |
| 31449 | # as_fn_append VAR VALUE |
| 31450 | # ---------------------- |
| 31451 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 31452 | # advantage of any shell optimizations that allow amortized linear growth over |
| 31453 | # repeated appends, instead of the typical quadratic growth present in naive |
| 31454 | # implementations. |
| 31455 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 31456 | eval 'as_fn_append () |
| 31457 | { |
| 31458 | eval $1+=\$2 |
| 31459 | }' |
| 31460 | else |
| 31461 | as_fn_append () |
| 31462 | { |
| 31463 | eval $1=\$$1\$2 |
| 31464 | } |
| 31465 | fi # as_fn_append |
| 31466 | |
| 31467 | # as_fn_arith ARG... |
| 31468 | # ------------------ |
| 31469 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 31470 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 31471 | # must be portable across $(()) and expr. |
| 31472 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 31473 | eval 'as_fn_arith () |
| 31474 | { |
| 31475 | as_val=$(( $* )) |
| 31476 | }' |
| 31477 | else |
| 31478 | as_fn_arith () |
| 31479 | { |
| 31480 | as_val=`expr "$@" || test $? -eq 1` |
| 31481 | } |
| 31482 | fi # as_fn_arith |
| 31483 | |
| 31484 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31485 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 31486 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 31487 | as_expr=expr |
| 31488 | else |
| 31489 | as_expr=false |
| 31490 | fi |
| 31491 | |
| 31492 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 31493 | as_basename=basename |
| 31494 | else |
| 31495 | as_basename=false |
| 31496 | fi |
| 31497 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31498 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 31499 | as_dirname=dirname |
| 31500 | else |
| 31501 | as_dirname=false |
| 31502 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31503 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31504 | as_me=`$as_basename -- "$0" || |
| 31505 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 31506 | X"$0" : 'X\(//\)$' \| \ |
| 31507 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 31508 | $as_echo X/"$0" | |
| 31509 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 31510 | s//\1/ |
| 31511 | q |
| 31512 | } |
| 31513 | /^X\/\(\/\/\)$/{ |
| 31514 | s//\1/ |
| 31515 | q |
| 31516 | } |
| 31517 | /^X\/\(\/\).*/{ |
| 31518 | s//\1/ |
| 31519 | q |
| 31520 | } |
| 31521 | s/.*/./; q'` |
| 31522 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31523 | # Avoid depending upon Character Ranges. |
| 31524 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 31525 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 31526 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 31527 | as_cr_digits='0123456789' |
| 31528 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31529 | |
| 31530 | ECHO_C= ECHO_N= ECHO_T= |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31531 | case `echo -n x` in #((((( |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31532 | -n*) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31533 | case `echo 'xy\c'` in |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31534 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31535 | xy) ECHO_C='\c';; |
| 31536 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 31537 | ECHO_T=' ';; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31538 | esac;; |
| 31539 | *) |
| 31540 | ECHO_N='-n';; |
| 31541 | esac |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31542 | |
| 31543 | rm -f conf$$ conf$$.exe conf$$.file |
| 31544 | if test -d conf$$.dir; then |
| 31545 | rm -f conf$$.dir/conf$$.file |
| 31546 | else |
| 31547 | rm -f conf$$.dir |
| 31548 | mkdir conf$$.dir 2>/dev/null |
| 31549 | fi |
| 31550 | if (echo >conf$$.file) 2>/dev/null; then |
| 31551 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 31552 | as_ln_s='ln -s' |
| 31553 | # ... but there are two gotchas: |
| 31554 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 31555 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 31556 | # In both cases, we have to default to `cp -p'. |
| 31557 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 31558 | as_ln_s='cp -p' |
| 31559 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 31560 | as_ln_s=ln |
| 31561 | else |
| 31562 | as_ln_s='cp -p' |
| 31563 | fi |
| 31564 | else |
| 31565 | as_ln_s='cp -p' |
| 31566 | fi |
| 31567 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 31568 | rmdir conf$$.dir 2>/dev/null |
| 31569 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31570 | |
| 31571 | # as_fn_mkdir_p |
| 31572 | # ------------- |
| 31573 | # Create "$as_dir" as a directory, including parents if necessary. |
| 31574 | as_fn_mkdir_p () |
| 31575 | { |
| 31576 | |
| 31577 | case $as_dir in #( |
| 31578 | -*) as_dir=./$as_dir;; |
| 31579 | esac |
| 31580 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 31581 | as_dirs= |
| 31582 | while :; do |
| 31583 | case $as_dir in #( |
| 31584 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 31585 | *) as_qdir=$as_dir;; |
| 31586 | esac |
| 31587 | as_dirs="'$as_qdir' $as_dirs" |
| 31588 | as_dir=`$as_dirname -- "$as_dir" || |
| 31589 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 31590 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 31591 | X"$as_dir" : 'X\(//\)$' \| \ |
| 31592 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 31593 | $as_echo X"$as_dir" | |
| 31594 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 31595 | s//\1/ |
| 31596 | q |
| 31597 | } |
| 31598 | /^X\(\/\/\)[^/].*/{ |
| 31599 | s//\1/ |
| 31600 | q |
| 31601 | } |
| 31602 | /^X\(\/\/\)$/{ |
| 31603 | s//\1/ |
| 31604 | q |
| 31605 | } |
| 31606 | /^X\(\/\).*/{ |
| 31607 | s//\1/ |
| 31608 | q |
| 31609 | } |
| 31610 | s/.*/./; q'` |
| 31611 | test -d "$as_dir" && break |
| 31612 | done |
| 31613 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 31614 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
| 31615 | |
| 31616 | |
| 31617 | } # as_fn_mkdir_p |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31618 | if mkdir -p . 2>/dev/null; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31619 | as_mkdir_p='mkdir -p "$as_dir"' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31620 | else |
| 31621 | test -d ./-p && rmdir ./-p |
| 31622 | as_mkdir_p=false |
| 31623 | fi |
| 31624 | |
| 31625 | if test -x / >/dev/null 2>&1; then |
| 31626 | as_test_x='test -x' |
| 31627 | else |
| 31628 | if ls -dL / >/dev/null 2>&1; then |
| 31629 | as_ls_L_option=L |
| 31630 | else |
| 31631 | as_ls_L_option= |
| 31632 | fi |
| 31633 | as_test_x=' |
| 31634 | eval sh -c '\'' |
| 31635 | if test -d "$1"; then |
| 31636 | test -d "$1/."; |
| 31637 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31638 | case $1 in #( |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31639 | -*)set "./$1";; |
| 31640 | esac; |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31641 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31642 | ???[sx]*):;;*)false;;esac;fi |
| 31643 | '\'' sh |
| 31644 | ' |
| 31645 | fi |
| 31646 | as_executable_p=$as_test_x |
| 31647 | |
| 31648 | # Sed expression to map a string onto a valid CPP name. |
| 31649 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 31650 | |
| 31651 | # Sed expression to map a string onto a valid variable name. |
| 31652 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 31653 | |
| 31654 | |
| 31655 | exec 6>&1 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31656 | ## ----------------------------------- ## |
| 31657 | ## Main body of $CONFIG_STATUS script. ## |
| 31658 | ## ----------------------------------- ## |
| 31659 | _ASEOF |
| 31660 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31661 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31662 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 31663 | # Save the log message, to keep $0 and so on meaningful, and to |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31664 | # report actual input values of CONFIG_FILES etc. instead of their |
| 31665 | # values after options handling. |
| 31666 | ac_log=" |
| cristy | d934d10 | 2009-10-10 12:55:13 +0000 | [diff] [blame] | 31667 | This file was extended by ImageMagick $as_me 6.5.7, which was |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31668 | generated by GNU Autoconf 2.64. Invocation command line was |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31669 | |
| 31670 | CONFIG_FILES = $CONFIG_FILES |
| 31671 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 31672 | CONFIG_LINKS = $CONFIG_LINKS |
| 31673 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 31674 | $ $0 $@ |
| 31675 | |
| 31676 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 31677 | " |
| 31678 | |
| 31679 | _ACEOF |
| 31680 | |
| 31681 | case $ac_config_files in *" |
| 31682 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 31683 | esac |
| 31684 | |
| 31685 | case $ac_config_headers in *" |
| 31686 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 31687 | esac |
| 31688 | |
| 31689 | |
| 31690 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 31691 | # Files that config.status was made for. |
| 31692 | config_files="$ac_config_files" |
| 31693 | config_headers="$ac_config_headers" |
| 31694 | config_commands="$ac_config_commands" |
| 31695 | |
| 31696 | _ACEOF |
| 31697 | |
| 31698 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 31699 | ac_cs_usage="\ |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31700 | \`$as_me' instantiates files and other configuration actions |
| 31701 | from templates according to the current configuration. Unless the files |
| 31702 | and actions are specified as TAGs, all are instantiated by default. |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31703 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31704 | Usage: $0 [OPTION]... [TAG]... |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31705 | |
| 31706 | -h, --help print this help, then exit |
| 31707 | -V, --version print version number and configuration settings, then exit |
| 31708 | -q, --quiet, --silent |
| 31709 | do not print progress messages |
| 31710 | -d, --debug don't remove temporary files |
| 31711 | --recheck update $as_me by reconfiguring in the same conditions |
| 31712 | --file=FILE[:TEMPLATE] |
| 31713 | instantiate the configuration file FILE |
| 31714 | --header=FILE[:TEMPLATE] |
| 31715 | instantiate the configuration header FILE |
| 31716 | |
| 31717 | Configuration files: |
| 31718 | $config_files |
| 31719 | |
| 31720 | Configuration headers: |
| 31721 | $config_headers |
| 31722 | |
| 31723 | Configuration commands: |
| 31724 | $config_commands |
| 31725 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31726 | Report bugs to <http://www.imagemagick.org>." |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31727 | |
| 31728 | _ACEOF |
| 31729 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 31730 | ac_cs_version="\\ |
| cristy | d934d10 | 2009-10-10 12:55:13 +0000 | [diff] [blame] | 31731 | ImageMagick config.status 6.5.7 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31732 | configured by $0, generated by GNU Autoconf 2.64, |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31733 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
| 31734 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31735 | Copyright (C) 2009 Free Software Foundation, Inc. |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31736 | This config.status script is free software; the Free Software Foundation |
| 31737 | gives unlimited permission to copy, distribute and modify it." |
| 31738 | |
| 31739 | ac_pwd='$ac_pwd' |
| 31740 | srcdir='$srcdir' |
| 31741 | INSTALL='$INSTALL' |
| 31742 | MKDIR_P='$MKDIR_P' |
| 31743 | AWK='$AWK' |
| 31744 | test -n "\$AWK" || AWK=awk |
| 31745 | _ACEOF |
| 31746 | |
| 31747 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 31748 | # The default lists apply if the user does not specify any file. |
| 31749 | ac_need_defaults=: |
| 31750 | while test $# != 0 |
| 31751 | do |
| 31752 | case $1 in |
| 31753 | --*=*) |
| 31754 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 31755 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
| 31756 | ac_shift=: |
| 31757 | ;; |
| 31758 | *) |
| 31759 | ac_option=$1 |
| 31760 | ac_optarg=$2 |
| 31761 | ac_shift=shift |
| 31762 | ;; |
| 31763 | esac |
| 31764 | |
| 31765 | case $ac_option in |
| 31766 | # Handling of the options. |
| 31767 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 31768 | ac_cs_recheck=: ;; |
| 31769 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 31770 | $as_echo "$ac_cs_version"; exit ;; |
| 31771 | --debug | --debu | --deb | --de | --d | -d ) |
| 31772 | debug=: ;; |
| 31773 | --file | --fil | --fi | --f ) |
| 31774 | $ac_shift |
| 31775 | case $ac_optarg in |
| 31776 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 31777 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31778 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31779 | ac_need_defaults=false;; |
| 31780 | --header | --heade | --head | --hea ) |
| 31781 | $ac_shift |
| 31782 | case $ac_optarg in |
| 31783 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 31784 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31785 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31786 | ac_need_defaults=false;; |
| 31787 | --he | --h) |
| 31788 | # Conflict between --help and --header |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31789 | as_fn_error "ambiguous option: \`$1' |
| 31790 | Try \`$0 --help' for more information.";; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31791 | --help | --hel | -h ) |
| 31792 | $as_echo "$ac_cs_usage"; exit ;; |
| 31793 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 31794 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 31795 | ac_cs_silent=: ;; |
| 31796 | |
| 31797 | # This is an error. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31798 | -*) as_fn_error "unrecognized option: \`$1' |
| 31799 | Try \`$0 --help' for more information." ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31800 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 31801 | *) as_fn_append ac_config_targets " $1" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31802 | ac_need_defaults=false ;; |
| 31803 | |
| 31804 | esac |
| 31805 | shift |
| 31806 | done |
| 31807 | |
| 31808 | ac_configure_extra_args= |
| 31809 | |
| 31810 | if $ac_cs_silent; then |
| 31811 | exec 6>/dev/null |
| 31812 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 31813 | fi |
| 31814 | |
| 31815 | _ACEOF |
| 31816 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 31817 | if \$ac_cs_recheck; then |
| 31818 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 31819 | shift |
| 31820 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 31821 | CONFIG_SHELL='$SHELL' |
| 31822 | export CONFIG_SHELL |
| 31823 | exec "\$@" |
| 31824 | fi |
| 31825 | |
| 31826 | _ACEOF |
| 31827 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 31828 | exec 5>>config.log |
| 31829 | { |
| 31830 | echo |
| 31831 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 31832 | ## Running $as_me. ## |
| 31833 | _ASBOX |
| 31834 | $as_echo "$ac_log" |
| 31835 | } >&5 |
| 31836 | |
| 31837 | _ACEOF |
| 31838 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 31839 | # |
| 31840 | # INIT-COMMANDS |
| 31841 | # |
| 31842 | PACKAGE="$PACKAGE" |
| 31843 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
| 31844 | |
| 31845 | |
| 31846 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 31847 | # if CDPATH is set. |
| 31848 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 31849 | |
| 31850 | sed_quote_subst='$sed_quote_subst' |
| 31851 | double_quote_subst='$double_quote_subst' |
| 31852 | delay_variable_subst='$delay_variable_subst' |
| 31853 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' |
| 31854 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' |
| 31855 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' |
| 31856 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' |
| 31857 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' |
| 31858 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' |
| 31859 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' |
| 31860 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' |
| 31861 | AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`' |
| 31862 | DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`' |
| 31863 | OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' |
| 31864 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' |
| 31865 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' |
| 31866 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' |
| 31867 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' |
| 31868 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' |
| 31869 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' |
| 31870 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' |
| 31871 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' |
| 31872 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' |
| 31873 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' |
| 31874 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' |
| 31875 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' |
| 31876 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' |
| 31877 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' |
| 31878 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' |
| 31879 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' |
| 31880 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' |
| 31881 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' |
| 31882 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 31883 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 31884 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' |
| 31885 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' |
| 31886 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' |
| 31887 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' |
| 31888 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' |
| 31889 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' |
| 31890 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 31891 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 31892 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 31893 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' |
| 31894 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' |
| 31895 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' |
| 31896 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' |
| 31897 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' |
| 31898 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' |
| 31899 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' |
| 31900 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' |
| 31901 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' |
| 31902 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' |
| 31903 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' |
| 31904 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' |
| 31905 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 31906 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' |
| 31907 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' |
| 31908 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' |
| 31909 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' |
| 31910 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' |
| 31911 | DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' |
| 31912 | NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' |
| 31913 | LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' |
| 31914 | OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' |
| 31915 | OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' |
| 31916 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' |
| 31917 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 31918 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 31919 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' |
| 31920 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' |
| 31921 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 31922 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 31923 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' |
| 31924 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 31925 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 31926 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 31927 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 31928 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 31929 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 31930 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' |
| 31931 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 31932 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 31933 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 31934 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' |
| 31935 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' |
| 31936 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' |
| 31937 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' |
| 31938 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' |
| 31939 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
| 31940 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' |
| 31941 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' |
| 31942 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' |
| 31943 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' |
| 31944 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' |
| 31945 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 31946 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' |
| 31947 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' |
| 31948 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 31949 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 31950 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' |
| 31951 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' |
| 31952 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' |
| 31953 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' |
| 31954 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
| 31955 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
| 31956 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' |
| 31957 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 31958 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 31959 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 31960 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 31961 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 31962 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 31963 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' |
| 31964 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' |
| 31965 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 31966 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 31967 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' |
| 31968 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' |
| 31969 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' |
| 31970 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' |
| 31971 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' |
| 31972 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' |
| 31973 | compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`' |
| 31974 | predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`' |
| 31975 | postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`' |
| 31976 | predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`' |
| 31977 | postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`' |
| 31978 | compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`' |
| 31979 | LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31980 | old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31981 | compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31982 | GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31983 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31984 | lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31985 | lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31986 | lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31987 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31988 | archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31989 | enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31990 | export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31991 | whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31992 | compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31993 | old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31994 | old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31995 | archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31996 | archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31997 | module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31998 | module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31999 | with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 32000 | allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 32001 | no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 32002 | hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 32003 | hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 32004 | hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 32005 | hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 32006 | hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 32007 | hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 32008 | hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 32009 | hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 32010 | inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 32011 | link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 32012 | fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 32013 | always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 32014 | export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 32015 | exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 32016 | include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 32017 | prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 32018 | file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 32019 | hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 32020 | compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 32021 | predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 32022 | postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 32023 | predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 32024 | postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 32025 | compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 32026 | |
| 32027 | LTCC='$LTCC' |
| 32028 | LTCFLAGS='$LTCFLAGS' |
| 32029 | compiler='$compiler_DEFAULT' |
| 32030 | |
| 32031 | # Quote evaled strings. |
| 32032 | for var in SED \ |
| 32033 | GREP \ |
| 32034 | EGREP \ |
| 32035 | FGREP \ |
| 32036 | LD \ |
| 32037 | NM \ |
| 32038 | LN_S \ |
| 32039 | lt_SP2NL \ |
| 32040 | lt_NL2SP \ |
| 32041 | reload_flag \ |
| 32042 | deplibs_check_method \ |
| 32043 | file_magic_cmd \ |
| 32044 | AR \ |
| 32045 | AR_FLAGS \ |
| 32046 | STRIP \ |
| 32047 | RANLIB \ |
| 32048 | CC \ |
| 32049 | CFLAGS \ |
| 32050 | compiler \ |
| 32051 | lt_cv_sys_global_symbol_pipe \ |
| 32052 | lt_cv_sys_global_symbol_to_cdecl \ |
| 32053 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 32054 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
| 32055 | SHELL \ |
| 32056 | ECHO \ |
| 32057 | lt_prog_compiler_no_builtin_flag \ |
| 32058 | lt_prog_compiler_wl \ |
| 32059 | lt_prog_compiler_pic \ |
| 32060 | lt_prog_compiler_static \ |
| 32061 | lt_cv_prog_compiler_c_o \ |
| 32062 | need_locks \ |
| 32063 | DSYMUTIL \ |
| 32064 | NMEDIT \ |
| 32065 | LIPO \ |
| 32066 | OTOOL \ |
| 32067 | OTOOL64 \ |
| 32068 | shrext_cmds \ |
| 32069 | export_dynamic_flag_spec \ |
| 32070 | whole_archive_flag_spec \ |
| 32071 | compiler_needs_object \ |
| 32072 | with_gnu_ld \ |
| 32073 | allow_undefined_flag \ |
| 32074 | no_undefined_flag \ |
| 32075 | hardcode_libdir_flag_spec \ |
| 32076 | hardcode_libdir_flag_spec_ld \ |
| 32077 | hardcode_libdir_separator \ |
| 32078 | fix_srcfile_path \ |
| 32079 | exclude_expsyms \ |
| 32080 | include_expsyms \ |
| 32081 | file_list_spec \ |
| 32082 | variables_saved_for_relink \ |
| 32083 | libname_spec \ |
| 32084 | library_names_spec \ |
| 32085 | soname_spec \ |
| 32086 | finish_eval \ |
| 32087 | old_striplib \ |
| 32088 | striplib \ |
| 32089 | compiler_lib_search_dirs \ |
| 32090 | predep_objects \ |
| 32091 | postdep_objects \ |
| 32092 | predeps \ |
| 32093 | postdeps \ |
| 32094 | compiler_lib_search_path \ |
| 32095 | LD_CXX \ |
| 32096 | compiler_CXX \ |
| 32097 | lt_prog_compiler_no_builtin_flag_CXX \ |
| 32098 | lt_prog_compiler_wl_CXX \ |
| 32099 | lt_prog_compiler_pic_CXX \ |
| 32100 | lt_prog_compiler_static_CXX \ |
| 32101 | lt_cv_prog_compiler_c_o_CXX \ |
| 32102 | export_dynamic_flag_spec_CXX \ |
| 32103 | whole_archive_flag_spec_CXX \ |
| 32104 | compiler_needs_object_CXX \ |
| 32105 | with_gnu_ld_CXX \ |
| 32106 | allow_undefined_flag_CXX \ |
| 32107 | no_undefined_flag_CXX \ |
| 32108 | hardcode_libdir_flag_spec_CXX \ |
| 32109 | hardcode_libdir_flag_spec_ld_CXX \ |
| 32110 | hardcode_libdir_separator_CXX \ |
| 32111 | fix_srcfile_path_CXX \ |
| 32112 | exclude_expsyms_CXX \ |
| 32113 | include_expsyms_CXX \ |
| 32114 | file_list_spec_CXX \ |
| 32115 | compiler_lib_search_dirs_CXX \ |
| 32116 | predep_objects_CXX \ |
| 32117 | postdep_objects_CXX \ |
| 32118 | predeps_CXX \ |
| 32119 | postdeps_CXX \ |
| 32120 | compiler_lib_search_path_CXX; do |
| 32121 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in |
| 32122 | *[\\\\\\\`\\"\\\$]*) |
| 32123 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
| 32124 | ;; |
| 32125 | *) |
| 32126 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 32127 | ;; |
| 32128 | esac |
| 32129 | done |
| 32130 | |
| 32131 | # Double-quote double-evaled strings. |
| 32132 | for var in reload_cmds \ |
| 32133 | old_postinstall_cmds \ |
| 32134 | old_postuninstall_cmds \ |
| 32135 | old_archive_cmds \ |
| 32136 | extract_expsyms_cmds \ |
| 32137 | old_archive_from_new_cmds \ |
| 32138 | old_archive_from_expsyms_cmds \ |
| 32139 | archive_cmds \ |
| 32140 | archive_expsym_cmds \ |
| 32141 | module_cmds \ |
| 32142 | module_expsym_cmds \ |
| 32143 | export_symbols_cmds \ |
| 32144 | prelink_cmds \ |
| 32145 | postinstall_cmds \ |
| 32146 | postuninstall_cmds \ |
| 32147 | finish_cmds \ |
| 32148 | sys_lib_search_path_spec \ |
| 32149 | sys_lib_dlsearch_path_spec \ |
| 32150 | old_archive_cmds_CXX \ |
| 32151 | old_archive_from_new_cmds_CXX \ |
| 32152 | old_archive_from_expsyms_cmds_CXX \ |
| 32153 | archive_cmds_CXX \ |
| 32154 | archive_expsym_cmds_CXX \ |
| 32155 | module_cmds_CXX \ |
| 32156 | module_expsym_cmds_CXX \ |
| 32157 | export_symbols_cmds_CXX \ |
| 32158 | prelink_cmds_CXX; do |
| 32159 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in |
| 32160 | *[\\\\\\\`\\"\\\$]*) |
| 32161 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
| 32162 | ;; |
| 32163 | *) |
| 32164 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 32165 | ;; |
| 32166 | esac |
| 32167 | done |
| 32168 | |
| 32169 | # Fix-up fallback echo if it was mangled by the above quoting rules. |
| 32170 | case \$lt_ECHO in |
| 32171 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` |
| 32172 | ;; |
| 32173 | esac |
| 32174 | |
| 32175 | ac_aux_dir='$ac_aux_dir' |
| 32176 | xsi_shell='$xsi_shell' |
| 32177 | lt_shell_append='$lt_shell_append' |
| 32178 | |
| 32179 | # See if we are running on zsh, and set the options which allow our |
| 32180 | # commands through without removal of \ escapes INIT. |
| 32181 | if test -n "\${ZSH_VERSION+set}" ; then |
| 32182 | setopt NO_GLOB_SUBST |
| 32183 | fi |
| 32184 | |
| 32185 | |
| 32186 | PACKAGE='$PACKAGE' |
| 32187 | VERSION='$VERSION' |
| 32188 | TIMESTAMP='$TIMESTAMP' |
| 32189 | RM='$RM' |
| 32190 | ofile='$ofile' |
| 32191 | |
| 32192 | |
| 32193 | |
| 32194 | |
| 32195 | |
| 32196 | |
| 32197 | _ACEOF |
| 32198 | |
| 32199 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 32200 | |
| 32201 | # Handling of arguments. |
| 32202 | for ac_config_target in $ac_config_targets |
| 32203 | do |
| 32204 | case $ac_config_target in |
| 32205 | "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;; |
| 32206 | "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;; |
| 32207 | "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;; |
| 32208 | "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;; |
| 32209 | "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;; |
| 32210 | "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;; |
| 32211 | "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;; |
| 32212 | "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;; |
| 32213 | "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;; |
| 32214 | "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;; |
| 32215 | "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;; |
| 32216 | "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;; |
| 32217 | "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;; |
| 32218 | "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;; |
| 32219 | "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;; |
| 32220 | "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;; |
| 32221 | "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;; |
| 32222 | "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;; |
| 32223 | "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;; |
| 32224 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 32225 | "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;; |
| 32226 | "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;; |
| 32227 | "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;; |
| 32228 | "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;; |
| 32229 | "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;; |
| 32230 | "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;; |
| 32231 | "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;; |
| 32232 | "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;; |
| 32233 | "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;; |
| 32234 | "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;; |
| 32235 | "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;; |
| 32236 | "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;; |
| 32237 | "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;; |
| 32238 | "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;; |
| 32239 | "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;; |
| 32240 | "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;; |
| 32241 | "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;; |
| 32242 | "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;; |
| 32243 | "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;; |
| 32244 | "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;; |
| 32245 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
| 32246 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
| 32247 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
| 32248 | "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;; |
| 32249 | "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;; |
| 32250 | "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;; |
| 32251 | "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;; |
| 32252 | "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;; |
| 32253 | "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;; |
| 32254 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 32255 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32256 | esac |
| 32257 | done |
| 32258 | |
| 32259 | |
| 32260 | # If the user did not use the arguments to specify the items to instantiate, |
| 32261 | # then the envvar interface is used. Set only those that are not. |
| 32262 | # We use the long form for the default assignment because of an extremely |
| 32263 | # bizarre bug on SunOS 4.1.3. |
| 32264 | if $ac_need_defaults; then |
| 32265 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 32266 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 32267 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 32268 | fi |
| 32269 | |
| 32270 | # Have a temporary directory for convenience. Make it in the build tree |
| 32271 | # simply because there is no reason against having it here, and in addition, |
| 32272 | # creating and moving files from /tmp can sometimes cause problems. |
| 32273 | # Hook for its removal unless debugging. |
| 32274 | # Note that there is a small window in which the directory will not be cleaned: |
| 32275 | # after its creation but before its name has been assigned to `$tmp'. |
| 32276 | $debug || |
| 32277 | { |
| 32278 | tmp= |
| 32279 | trap 'exit_status=$? |
| 32280 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 32281 | ' 0 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 32282 | trap 'as_fn_exit 1' 1 2 13 15 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32283 | } |
| 32284 | # Create a (secure) tmp directory for tmp files. |
| 32285 | |
| 32286 | { |
| 32287 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
| 32288 | test -n "$tmp" && test -d "$tmp" |
| 32289 | } || |
| 32290 | { |
| 32291 | tmp=./conf$$-$RANDOM |
| 32292 | (umask 077 && mkdir "$tmp") |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 32293 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32294 | |
| 32295 | # Set up the scripts for CONFIG_FILES section. |
| 32296 | # No need to generate them if there are no CONFIG_FILES. |
| 32297 | # This happens for instance with `./config.status config.h'. |
| 32298 | if test -n "$CONFIG_FILES"; then |
| 32299 | |
| 32300 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 32301 | ac_cr=`echo X | tr X '\015'` |
| 32302 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 32303 | # But we know of no other shell where ac_cr would be empty at this |
| 32304 | # point, so we can use a bashism as a fallback. |
| 32305 | if test "x$ac_cr" = x; then |
| 32306 | eval ac_cr=\$\'\\r\' |
| 32307 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32308 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 32309 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 32310 | ac_cs_awk_cr='\r' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32311 | else |
| 32312 | ac_cs_awk_cr=$ac_cr |
| 32313 | fi |
| 32314 | |
| 32315 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
| 32316 | _ACEOF |
| 32317 | |
| 32318 | |
| 32319 | { |
| 32320 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 32321 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 32322 | echo "_ACEOF" |
| 32323 | } >conf$$subs.sh || |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 32324 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32325 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
| 32326 | ac_delim='%!_!# ' |
| 32327 | for ac_last_try in false false false false false :; do |
| 32328 | . ./conf$$subs.sh || |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 32329 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32330 | |
| 32331 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 32332 | if test $ac_delim_n = $ac_delim_num; then |
| 32333 | break |
| 32334 | elif $ac_last_try; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 32335 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32336 | else |
| 32337 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 32338 | fi |
| 32339 | done |
| 32340 | rm -f conf$$subs.sh |
| 32341 | |
| 32342 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 32343 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
| 32344 | _ACEOF |
| 32345 | sed -n ' |
| 32346 | h |
| 32347 | s/^/S["/; s/!.*/"]=/ |
| 32348 | p |
| 32349 | g |
| 32350 | s/^[^!]*!// |
| 32351 | :repl |
| 32352 | t repl |
| 32353 | s/'"$ac_delim"'$// |
| 32354 | t delim |
| 32355 | :nl |
| 32356 | h |
| 32357 | s/\(.\{148\}\).*/\1/ |
| 32358 | t more1 |
| 32359 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 32360 | p |
| 32361 | n |
| 32362 | b repl |
| 32363 | :more1 |
| 32364 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 32365 | p |
| 32366 | g |
| 32367 | s/.\{148\}// |
| 32368 | t nl |
| 32369 | :delim |
| 32370 | h |
| 32371 | s/\(.\{148\}\).*/\1/ |
| 32372 | t more2 |
| 32373 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 32374 | p |
| 32375 | b |
| 32376 | :more2 |
| 32377 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 32378 | p |
| 32379 | g |
| 32380 | s/.\{148\}// |
| 32381 | t delim |
| 32382 | ' <conf$$subs.awk | sed ' |
| 32383 | /^[^""]/{ |
| 32384 | N |
| 32385 | s/\n// |
| 32386 | } |
| 32387 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 32388 | rm -f conf$$subs.awk |
| 32389 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 32390 | _ACAWK |
| 32391 | cat >>"\$tmp/subs1.awk" <<_ACAWK && |
| 32392 | for (key in S) S_is_set[key] = 1 |
| 32393 | FS = "" |
| 32394 | |
| 32395 | } |
| 32396 | { |
| 32397 | line = $ 0 |
| 32398 | nfields = split(line, field, "@") |
| 32399 | substed = 0 |
| 32400 | len = length(field[1]) |
| 32401 | for (i = 2; i < nfields; i++) { |
| 32402 | key = field[i] |
| 32403 | keylen = length(key) |
| 32404 | if (S_is_set[key]) { |
| 32405 | value = S[key] |
| 32406 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 32407 | len += length(value) + length(field[++i]) |
| 32408 | substed = 1 |
| 32409 | } else |
| 32410 | len += 1 + keylen |
| 32411 | } |
| 32412 | |
| 32413 | print line |
| 32414 | } |
| 32415 | |
| 32416 | _ACAWK |
| 32417 | _ACEOF |
| 32418 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 32419 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 32420 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 32421 | else |
| 32422 | cat |
| 32423 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 32424 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32425 | _ACEOF |
| 32426 | |
| 32427 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 32428 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 32429 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 32430 | # (actually we leave an empty line to preserve line numbers). |
| 32431 | if test "x$srcdir" = x.; then |
| 32432 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 32433 | s/:*\$(srcdir):*/:/ |
| 32434 | s/:*\${srcdir}:*/:/ |
| 32435 | s/:*@srcdir@:*/:/ |
| 32436 | s/^\([^=]*=[ ]*\):*/\1/ |
| 32437 | s/:*$// |
| 32438 | s/^[^=]*=[ ]*$// |
| 32439 | }' |
| 32440 | fi |
| 32441 | |
| 32442 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 32443 | fi # test -n "$CONFIG_FILES" |
| 32444 | |
| 32445 | # Set up the scripts for CONFIG_HEADERS section. |
| 32446 | # No need to generate them if there are no CONFIG_HEADERS. |
| 32447 | # This happens for instance with `./config.status Makefile'. |
| 32448 | if test -n "$CONFIG_HEADERS"; then |
| 32449 | cat >"$tmp/defines.awk" <<\_ACAWK || |
| 32450 | BEGIN { |
| 32451 | _ACEOF |
| 32452 | |
| 32453 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 32454 | # here-document in config.status, that substitutes the proper values into |
| 32455 | # config.h.in to produce config.h. |
| 32456 | |
| 32457 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 32458 | # handling of long lines. |
| 32459 | ac_delim='%!_!# ' |
| 32460 | for ac_last_try in false false :; do |
| 32461 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` |
| 32462 | if test -z "$ac_t"; then |
| 32463 | break |
| 32464 | elif $ac_last_try; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 32465 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32466 | else |
| 32467 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 32468 | fi |
| 32469 | done |
| 32470 | |
| 32471 | # For the awk script, D is an array of macro values keyed by name, |
| 32472 | # likewise P contains macro parameters if any. Preserve backslash |
| 32473 | # newline sequences. |
| 32474 | |
| 32475 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 32476 | sed -n ' |
| 32477 | s/.\{148\}/&'"$ac_delim"'/g |
| 32478 | t rset |
| 32479 | :rset |
| 32480 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 32481 | t def |
| 32482 | d |
| 32483 | :def |
| 32484 | s/\\$// |
| 32485 | t bsnl |
| 32486 | s/["\\]/\\&/g |
| 32487 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 32488 | D["\1"]=" \3"/p |
| 32489 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 32490 | d |
| 32491 | :bsnl |
| 32492 | s/["\\]/\\&/g |
| 32493 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 32494 | D["\1"]=" \3\\\\\\n"\\/p |
| 32495 | t cont |
| 32496 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 32497 | t cont |
| 32498 | d |
| 32499 | :cont |
| 32500 | n |
| 32501 | s/.\{148\}/&'"$ac_delim"'/g |
| 32502 | t clear |
| 32503 | :clear |
| 32504 | s/\\$// |
| 32505 | t bsnlc |
| 32506 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 32507 | d |
| 32508 | :bsnlc |
| 32509 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 32510 | b cont |
| 32511 | ' <confdefs.h | sed ' |
| 32512 | s/'"$ac_delim"'/"\\\ |
| 32513 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 32514 | |
| 32515 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 32516 | for (key in D) D_is_set[key] = 1 |
| 32517 | FS = "" |
| 32518 | } |
| 32519 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 32520 | line = \$ 0 |
| 32521 | split(line, arg, " ") |
| 32522 | if (arg[1] == "#") { |
| 32523 | defundef = arg[2] |
| 32524 | mac1 = arg[3] |
| 32525 | } else { |
| 32526 | defundef = substr(arg[1], 2) |
| 32527 | mac1 = arg[2] |
| 32528 | } |
| 32529 | split(mac1, mac2, "(") #) |
| 32530 | macro = mac2[1] |
| 32531 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 32532 | if (D_is_set[macro]) { |
| 32533 | # Preserve the white space surrounding the "#". |
| 32534 | print prefix "define", macro P[macro] D[macro] |
| 32535 | next |
| 32536 | } else { |
| 32537 | # Replace #undef with comments. This is necessary, for example, |
| 32538 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 32539 | # on some systems where configure will not decide to define it. |
| 32540 | if (defundef == "undef") { |
| 32541 | print "/*", prefix defundef, macro, "*/" |
| 32542 | next |
| 32543 | } |
| 32544 | } |
| 32545 | } |
| 32546 | { print } |
| 32547 | _ACAWK |
| 32548 | _ACEOF |
| 32549 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 32550 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32551 | fi # test -n "$CONFIG_HEADERS" |
| 32552 | |
| 32553 | |
| 32554 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
| 32555 | shift |
| 32556 | for ac_tag |
| 32557 | do |
| 32558 | case $ac_tag in |
| 32559 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 32560 | esac |
| 32561 | case $ac_mode$ac_tag in |
| 32562 | :[FHL]*:*);; |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 32563 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32564 | :[FH]-) ac_tag=-:-;; |
| 32565 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 32566 | esac |
| 32567 | ac_save_IFS=$IFS |
| 32568 | IFS=: |
| 32569 | set x $ac_tag |
| 32570 | IFS=$ac_save_IFS |
| 32571 | shift |
| 32572 | ac_file=$1 |
| 32573 | shift |
| 32574 | |
| 32575 | case $ac_mode in |
| 32576 | :L) ac_source=$1;; |
| 32577 | :[FH]) |
| 32578 | ac_file_inputs= |
| 32579 | for ac_f |
| 32580 | do |
| 32581 | case $ac_f in |
| 32582 | -) ac_f="$tmp/stdin";; |
| 32583 | *) # Look for the file first in the build tree, then in the source tree |
| 32584 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 32585 | # because $ac_f cannot contain `:'. |
| 32586 | test -f "$ac_f" || |
| 32587 | case $ac_f in |
| 32588 | [\\/$]*) false;; |
| 32589 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 32590 | esac || |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 32591 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32592 | esac |
| 32593 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 32594 | as_fn_append ac_file_inputs " '$ac_f'" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32595 | done |
| 32596 | |
| 32597 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 32598 | # use $as_me), people would be surprised to read: |
| 32599 | # /* config.h. Generated by config.status. */ |
| 32600 | configure_input='Generated from '` |
| 32601 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 32602 | `' by configure.' |
| 32603 | if test x"$ac_file" != x-; then |
| 32604 | configure_input="$ac_file. $configure_input" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 32605 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32606 | $as_echo "$as_me: creating $ac_file" >&6;} |
| 32607 | fi |
| 32608 | # Neutralize special characters interpreted by sed in replacement strings. |
| 32609 | case $configure_input in #( |
| 32610 | *\&* | *\|* | *\\* ) |
| 32611 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 32612 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 32613 | *) ac_sed_conf_input=$configure_input;; |
| 32614 | esac |
| 32615 | |
| 32616 | case $ac_tag in |
| 32617 | *:-:* | *:-) cat >"$tmp/stdin" \ |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 32618 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32619 | esac |
| 32620 | ;; |
| 32621 | esac |
| 32622 | |
| 32623 | ac_dir=`$as_dirname -- "$ac_file" || |
| 32624 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 32625 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 32626 | X"$ac_file" : 'X\(//\)$' \| \ |
| 32627 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 32628 | $as_echo X"$ac_file" | |
| 32629 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 32630 | s//\1/ |
| 32631 | q |
| 32632 | } |
| 32633 | /^X\(\/\/\)[^/].*/{ |
| 32634 | s//\1/ |
| 32635 | q |
| 32636 | } |
| 32637 | /^X\(\/\/\)$/{ |
| 32638 | s//\1/ |
| 32639 | q |
| 32640 | } |
| 32641 | /^X\(\/\).*/{ |
| 32642 | s//\1/ |
| 32643 | q |
| 32644 | } |
| 32645 | s/.*/./; q'` |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 32646 | as_dir="$ac_dir"; as_fn_mkdir_p |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32647 | ac_builddir=. |
| 32648 | |
| 32649 | case "$ac_dir" in |
| 32650 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 32651 | *) |
| 32652 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 32653 | # A ".." for each directory in $ac_dir_suffix. |
| 32654 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 32655 | case $ac_top_builddir_sub in |
| 32656 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 32657 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 32658 | esac ;; |
| 32659 | esac |
| 32660 | ac_abs_top_builddir=$ac_pwd |
| 32661 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 32662 | # for backward compatibility: |
| 32663 | ac_top_builddir=$ac_top_build_prefix |
| 32664 | |
| 32665 | case $srcdir in |
| 32666 | .) # We are building in place. |
| 32667 | ac_srcdir=. |
| 32668 | ac_top_srcdir=$ac_top_builddir_sub |
| 32669 | ac_abs_top_srcdir=$ac_pwd ;; |
| 32670 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 32671 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 32672 | ac_top_srcdir=$srcdir |
| 32673 | ac_abs_top_srcdir=$srcdir ;; |
| 32674 | *) # Relative name. |
| 32675 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 32676 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 32677 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 32678 | esac |
| 32679 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 32680 | |
| 32681 | |
| 32682 | case $ac_mode in |
| 32683 | :F) |
| 32684 | # |
| 32685 | # CONFIG_FILE |
| 32686 | # |
| 32687 | |
| 32688 | case $INSTALL in |
| 32689 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 32690 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
| 32691 | esac |
| 32692 | ac_MKDIR_P=$MKDIR_P |
| 32693 | case $MKDIR_P in |
| 32694 | [\\/$]* | ?:[\\/]* ) ;; |
| 32695 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 32696 | esac |
| 32697 | _ACEOF |
| 32698 | |
| 32699 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 32700 | # If the template does not know about datarootdir, expand it. |
| 32701 | # FIXME: This hack should be removed a few years after 2.60. |
| 32702 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32703 | ac_sed_dataroot=' |
| 32704 | /datarootdir/ { |
| 32705 | p |
| 32706 | q |
| 32707 | } |
| 32708 | /@datadir@/p |
| 32709 | /@docdir@/p |
| 32710 | /@infodir@/p |
| 32711 | /@localedir@/p |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 32712 | /@mandir@/p' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32713 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 32714 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 32715 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 32716 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32717 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 32718 | _ACEOF |
| 32719 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 32720 | ac_datarootdir_hack=' |
| 32721 | s&@datadir@&$datadir&g |
| 32722 | s&@docdir@&$docdir&g |
| 32723 | s&@infodir@&$infodir&g |
| 32724 | s&@localedir@&$localedir&g |
| 32725 | s&@mandir@&$mandir&g |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 32726 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32727 | esac |
| 32728 | _ACEOF |
| 32729 | |
| 32730 | # Neutralize VPATH when `$srcdir' = `.'. |
| 32731 | # Shell code in configure.ac might set extrasub. |
| 32732 | # FIXME: do we really want to maintain this feature? |
| 32733 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 32734 | ac_sed_extra="$ac_vpsub |
| 32735 | $extrasub |
| 32736 | _ACEOF |
| 32737 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 32738 | :t |
| 32739 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 32740 | s|@configure_input@|$ac_sed_conf_input|;t t |
| 32741 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 32742 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 32743 | s&@srcdir@&$ac_srcdir&;t t |
| 32744 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 32745 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 32746 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 32747 | s&@builddir@&$ac_builddir&;t t |
| 32748 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 32749 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 32750 | s&@INSTALL@&$ac_INSTALL&;t t |
| 32751 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
| 32752 | $ac_datarootdir_hack |
| 32753 | " |
| 32754 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 32755 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32756 | |
| 32757 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 32758 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 32759 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 32760 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32761 | which seems to be undefined. Please make sure it is defined." >&5 |
| 32762 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 32763 | which seems to be undefined. Please make sure it is defined." >&2;} |
| 32764 | |
| 32765 | rm -f "$tmp/stdin" |
| 32766 | case $ac_file in |
| 32767 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
| 32768 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
| 32769 | esac \ |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 32770 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32771 | ;; |
| 32772 | :H) |
| 32773 | # |
| 32774 | # CONFIG_HEADER |
| 32775 | # |
| 32776 | if test x"$ac_file" != x-; then |
| 32777 | { |
| 32778 | $as_echo "/* $configure_input */" \ |
| 32779 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" |
| 32780 | } >"$tmp/config.h" \ |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 32781 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32782 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 32783 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32784 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
| 32785 | else |
| 32786 | rm -f "$ac_file" |
| 32787 | mv "$tmp/config.h" "$ac_file" \ |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 32788 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32789 | fi |
| 32790 | else |
| 32791 | $as_echo "/* $configure_input */" \ |
| 32792 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 32793 | || as_fn_error "could not create -" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32794 | fi |
| 32795 | # Compute "$ac_file"'s index in $config_headers. |
| 32796 | _am_arg="$ac_file" |
| 32797 | _am_stamp_count=1 |
| 32798 | for _am_header in $config_headers :; do |
| 32799 | case $_am_header in |
| 32800 | $_am_arg | $_am_arg:* ) |
| 32801 | break ;; |
| 32802 | * ) |
| 32803 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 32804 | esac |
| 32805 | done |
| 32806 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
| 32807 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 32808 | X"$_am_arg" : 'X\(//\)[^/]' \| \ |
| 32809 | X"$_am_arg" : 'X\(//\)$' \| \ |
| 32810 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
| 32811 | $as_echo X"$_am_arg" | |
| 32812 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 32813 | s//\1/ |
| 32814 | q |
| 32815 | } |
| 32816 | /^X\(\/\/\)[^/].*/{ |
| 32817 | s//\1/ |
| 32818 | q |
| 32819 | } |
| 32820 | /^X\(\/\/\)$/{ |
| 32821 | s//\1/ |
| 32822 | q |
| 32823 | } |
| 32824 | /^X\(\/\).*/{ |
| 32825 | s//\1/ |
| 32826 | q |
| 32827 | } |
| 32828 | s/.*/./; q'`/stamp-h$_am_stamp_count |
| 32829 | ;; |
| 32830 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 32831 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32832 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
| 32833 | ;; |
| 32834 | esac |
| 32835 | |
| 32836 | |
| 32837 | case $ac_file$ac_mode in |
| 32838 | "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h` |
| 32839 | ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"` |
| 32840 | ac_prefix_conf_PKG=`echo MagickCore` |
| 32841 | ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"` |
| 32842 | ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"` |
| 32843 | ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'` |
| 32844 | if test ".$ac_prefix_conf_INP" = "."; then |
| 32845 | for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue |
| 32846 | case "$ac_file" in |
| 32847 | *.h) ac_prefix_conf_INP=$ac_file ;; |
| 32848 | *) |
| 32849 | esac |
| 32850 | test ".$ac_prefix_conf_INP" != "." && break |
| 32851 | done |
| 32852 | fi |
| 32853 | if test ".$ac_prefix_conf_INP" = "."; then |
| 32854 | case "$ac_prefix_conf_OUT" in |
| 32855 | */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"` |
| 32856 | ;; |
| 32857 | *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"` |
| 32858 | ;; |
| 32859 | *) ac_prefix_conf_INP=config.h |
| 32860 | ;; |
| 32861 | esac |
| 32862 | fi |
| 32863 | if test -z "$ac_prefix_conf_PKG" ; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 32864 | as_fn_error "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32865 | else |
| 32866 | if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then |
| 32867 | ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP" |
| 32868 | fi fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 32869 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32870 | $as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;} |
| 32871 | if test -f $ac_prefix_conf_INP ; then |
| 32872 | echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix |
| 32873 | echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix |
| 32874 | echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1 \\" >> conftest.prefix |
| 32875 | echo "#define $ac_prefix_conf_UPP""_\\1 \\2 \\" >> conftest.prefix |
| 32876 | echo "#endif/" >>conftest.prefix |
| 32877 | echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1 \\" >> conftest.prefix |
| 32878 | echo "#define $ac_prefix_conf_LOW""_\\1 \\2 \\" >> conftest.prefix |
| 32879 | echo "#endif/" >> conftest.prefix |
| 32880 | # now executing _script on _DEF input to create _OUT output file |
| 32881 | echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h |
| 32882 | echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h |
| 32883 | echo ' ' >>$tmp/pconfig.h |
| 32884 | echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h |
| 32885 | |
| 32886 | sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h |
| 32887 | echo ' ' >>$tmp/pconfig.h |
| 32888 | echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h |
| 32889 | echo "#endif" >>$tmp/pconfig.h |
| 32890 | if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 32891 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32892 | $as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;} |
| 32893 | else |
| 32894 | ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" || |
| 32895 | $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 32896 | X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \ |
| 32897 | X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \ |
| 32898 | X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null || |
| 32899 | $as_echo X"$ac_prefix_conf_OUT" | |
| 32900 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 32901 | s//\1/ |
| 32902 | q |
| 32903 | } |
| 32904 | /^X\(\/\/\)[^/].*/{ |
| 32905 | s//\1/ |
| 32906 | q |
| 32907 | } |
| 32908 | /^X\(\/\/\)$/{ |
| 32909 | s//\1/ |
| 32910 | q |
| 32911 | } |
| 32912 | /^X\(\/\).*/{ |
| 32913 | s//\1/ |
| 32914 | q |
| 32915 | } |
| 32916 | s/.*/./; q'` |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 32917 | as_dir="$ac_dir"; as_fn_mkdir_p |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32918 | rm -f "$ac_prefix_conf_OUT" |
| 32919 | mv $tmp/pconfig.h "$ac_prefix_conf_OUT" |
| 32920 | fi |
| 32921 | cp conftest.prefix _configs.sed |
| 32922 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 32923 | as_fn_error "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32924 | fi |
| 32925 | rm -f conftest.* |
| 32926 | fi |
| 32927 | ;; |
| 32928 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
| 32929 | # Autoconf 2.62 quotes --file arguments for eval, but not when files |
| 32930 | # are listed without --file. Let's play safe and only enable the eval |
| 32931 | # if we detect the quoting. |
| 32932 | case $CONFIG_FILES in |
| 32933 | *\'*) eval set x "$CONFIG_FILES" ;; |
| 32934 | *) set x $CONFIG_FILES ;; |
| 32935 | esac |
| 32936 | shift |
| 32937 | for mf |
| 32938 | do |
| 32939 | # Strip MF so we end up with the name of the file. |
| 32940 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 32941 | # Check whether this is an Automake generated Makefile or not. |
| 32942 | # We used to match only the files named `Makefile.in', but |
| 32943 | # some people rename them; so instead we look at the file content. |
| 32944 | # Grep'ing the first line is not enough: some people post-process |
| 32945 | # each Makefile.in and add a new line on top of each file to say so. |
| 32946 | # Grep'ing the whole file is not good either: AIX grep has a line |
| 32947 | # limit of 2048, but all sed's we know have understand at least 4000. |
| 32948 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
| 32949 | dirpart=`$as_dirname -- "$mf" || |
| 32950 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 32951 | X"$mf" : 'X\(//\)[^/]' \| \ |
| 32952 | X"$mf" : 'X\(//\)$' \| \ |
| 32953 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
| 32954 | $as_echo X"$mf" | |
| 32955 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 32956 | s//\1/ |
| 32957 | q |
| 32958 | } |
| 32959 | /^X\(\/\/\)[^/].*/{ |
| 32960 | s//\1/ |
| 32961 | q |
| 32962 | } |
| 32963 | /^X\(\/\/\)$/{ |
| 32964 | s//\1/ |
| 32965 | q |
| 32966 | } |
| 32967 | /^X\(\/\).*/{ |
| 32968 | s//\1/ |
| 32969 | q |
| 32970 | } |
| 32971 | s/.*/./; q'` |
| 32972 | else |
| 32973 | continue |
| 32974 | fi |
| 32975 | # Extract the definition of DEPDIR, am__include, and am__quote |
| 32976 | # from the Makefile without running `make'. |
| 32977 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
| 32978 | test -z "$DEPDIR" && continue |
| 32979 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
| 32980 | test -z "am__include" && continue |
| 32981 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
| 32982 | # When using ansi2knr, U may be empty or an underscore; expand it |
| 32983 | U=`sed -n 's/^U = //p' < "$mf"` |
| 32984 | # Find all dependency output files, they are included files with |
| 32985 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
| 32986 | # simplest approach to changing $(DEPDIR) to its actual value in the |
| 32987 | # expansion. |
| 32988 | for file in `sed -n " |
| 32989 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
| 32990 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
| 32991 | # Make sure the directory exists. |
| 32992 | test -f "$dirpart/$file" && continue |
| 32993 | fdir=`$as_dirname -- "$file" || |
| 32994 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 32995 | X"$file" : 'X\(//\)[^/]' \| \ |
| 32996 | X"$file" : 'X\(//\)$' \| \ |
| 32997 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
| 32998 | $as_echo X"$file" | |
| 32999 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 33000 | s//\1/ |
| 33001 | q |
| 33002 | } |
| 33003 | /^X\(\/\/\)[^/].*/{ |
| 33004 | s//\1/ |
| 33005 | q |
| 33006 | } |
| 33007 | /^X\(\/\/\)$/{ |
| 33008 | s//\1/ |
| 33009 | q |
| 33010 | } |
| 33011 | /^X\(\/\).*/{ |
| 33012 | s//\1/ |
| 33013 | q |
| 33014 | } |
| 33015 | s/.*/./; q'` |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 33016 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33017 | # echo "creating $dirpart/$file" |
| 33018 | echo '# dummy' > "$dirpart/$file" |
| 33019 | done |
| 33020 | done |
| 33021 | } |
| 33022 | ;; |
| 33023 | "libtool":C) |
| 33024 | |
| 33025 | # See if we are running on zsh, and set the options which allow our |
| 33026 | # commands through without removal of \ escapes. |
| 33027 | if test -n "${ZSH_VERSION+set}" ; then |
| 33028 | setopt NO_GLOB_SUBST |
| 33029 | fi |
| 33030 | |
| 33031 | cfgfile="${ofile}T" |
| 33032 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
| 33033 | $RM "$cfgfile" |
| 33034 | |
| 33035 | cat <<_LT_EOF >> "$cfgfile" |
| 33036 | #! $SHELL |
| 33037 | |
| 33038 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
| 33039 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
| 33040 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 33041 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 33042 | # |
| 33043 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
| 33044 | # 2006, 2007, 2008 Free Software Foundation, Inc. |
| 33045 | # Written by Gordon Matzigkeit, 1996 |
| 33046 | # |
| 33047 | # This file is part of GNU Libtool. |
| 33048 | # |
| 33049 | # GNU Libtool is free software; you can redistribute it and/or |
| 33050 | # modify it under the terms of the GNU General Public License as |
| 33051 | # published by the Free Software Foundation; either version 2 of |
| 33052 | # the License, or (at your option) any later version. |
| 33053 | # |
| 33054 | # As a special exception to the GNU General Public License, |
| 33055 | # if you distribute this file as part of a program or library that |
| 33056 | # is built using GNU Libtool, you may include this file under the |
| 33057 | # same distribution terms that you use for the rest of that program. |
| 33058 | # |
| 33059 | # GNU Libtool is distributed in the hope that it will be useful, |
| 33060 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 33061 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 33062 | # GNU General Public License for more details. |
| 33063 | # |
| 33064 | # You should have received a copy of the GNU General Public License |
| 33065 | # along with GNU Libtool; see the file COPYING. If not, a copy |
| 33066 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or |
| 33067 | # obtained by writing to the Free Software Foundation, Inc., |
| 33068 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 33069 | |
| 33070 | |
| 33071 | # The names of the tagged configurations supported by this script. |
| 33072 | available_tags="CXX " |
| 33073 | |
| 33074 | # ### BEGIN LIBTOOL CONFIG |
| 33075 | |
| 33076 | # A sed program that does not truncate output. |
| 33077 | SED=$lt_SED |
| 33078 | |
| 33079 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| 33080 | Xsed="\$SED -e 1s/^X//" |
| 33081 | |
| 33082 | # A grep program that handles long lines. |
| 33083 | GREP=$lt_GREP |
| 33084 | |
| 33085 | # An ERE matcher. |
| 33086 | EGREP=$lt_EGREP |
| 33087 | |
| 33088 | # A literal string matcher. |
| 33089 | FGREP=$lt_FGREP |
| 33090 | |
| 33091 | # Which release of libtool.m4 was used? |
| 33092 | macro_version=$macro_version |
| 33093 | macro_revision=$macro_revision |
| 33094 | |
| 33095 | # Assembler program. |
| 33096 | AS=$AS |
| 33097 | |
| 33098 | # DLL creation program. |
| 33099 | DLLTOOL=$DLLTOOL |
| 33100 | |
| 33101 | # Object dumper program. |
| 33102 | OBJDUMP=$OBJDUMP |
| 33103 | |
| 33104 | # Whether or not to build shared libraries. |
| 33105 | build_libtool_libs=$enable_shared |
| 33106 | |
| 33107 | # Whether or not to build static libraries. |
| 33108 | build_old_libs=$enable_static |
| 33109 | |
| 33110 | # What type of objects to build. |
| 33111 | pic_mode=$pic_mode |
| 33112 | |
| 33113 | # Whether or not to optimize for fast installation. |
| 33114 | fast_install=$enable_fast_install |
| 33115 | |
| 33116 | # The host system. |
| 33117 | host_alias=$host_alias |
| 33118 | host=$host |
| 33119 | host_os=$host_os |
| 33120 | |
| 33121 | # The build system. |
| 33122 | build_alias=$build_alias |
| 33123 | build=$build |
| 33124 | build_os=$build_os |
| 33125 | |
| 33126 | # A BSD- or MS-compatible name lister. |
| 33127 | NM=$lt_NM |
| 33128 | |
| 33129 | # Whether we need soft or hard links. |
| 33130 | LN_S=$lt_LN_S |
| 33131 | |
| 33132 | # What is the maximum length of a command? |
| 33133 | max_cmd_len=$max_cmd_len |
| 33134 | |
| 33135 | # Object file suffix (normally "o"). |
| 33136 | objext=$ac_objext |
| 33137 | |
| 33138 | # Executable file suffix (normally ""). |
| 33139 | exeext=$exeext |
| 33140 | |
| 33141 | # whether the shell understands "unset". |
| 33142 | lt_unset=$lt_unset |
| 33143 | |
| 33144 | # turn spaces into newlines. |
| 33145 | SP2NL=$lt_lt_SP2NL |
| 33146 | |
| 33147 | # turn newlines into spaces. |
| 33148 | NL2SP=$lt_lt_NL2SP |
| 33149 | |
| 33150 | # How to create reloadable object files. |
| 33151 | reload_flag=$lt_reload_flag |
| 33152 | reload_cmds=$lt_reload_cmds |
| 33153 | |
| 33154 | # Method to check whether dependent libraries are shared objects. |
| 33155 | deplibs_check_method=$lt_deplibs_check_method |
| 33156 | |
| 33157 | # Command to use when deplibs_check_method == "file_magic". |
| 33158 | file_magic_cmd=$lt_file_magic_cmd |
| 33159 | |
| 33160 | # The archiver. |
| 33161 | AR=$lt_AR |
| 33162 | AR_FLAGS=$lt_AR_FLAGS |
| 33163 | |
| 33164 | # A symbol stripping program. |
| 33165 | STRIP=$lt_STRIP |
| 33166 | |
| 33167 | # Commands used to install an old-style archive. |
| 33168 | RANLIB=$lt_RANLIB |
| 33169 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 33170 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 33171 | |
| 33172 | # A C compiler. |
| 33173 | LTCC=$lt_CC |
| 33174 | |
| 33175 | # LTCC compiler flags. |
| 33176 | LTCFLAGS=$lt_CFLAGS |
| 33177 | |
| 33178 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 33179 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 33180 | |
| 33181 | # Transform the output of nm in a proper C declaration. |
| 33182 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 33183 | |
| 33184 | # Transform the output of nm in a C name address pair. |
| 33185 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 33186 | |
| 33187 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
| 33188 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix |
| 33189 | |
| 33190 | # The name of the directory that contains temporary libtool files. |
| 33191 | objdir=$objdir |
| 33192 | |
| 33193 | # Shell to use when invoking shell scripts. |
| 33194 | SHELL=$lt_SHELL |
| 33195 | |
| 33196 | # An echo program that does not interpret backslashes. |
| 33197 | ECHO=$lt_ECHO |
| 33198 | |
| 33199 | # Used to examine libraries when file_magic_cmd begins with "file". |
| 33200 | MAGIC_CMD=$MAGIC_CMD |
| 33201 | |
| 33202 | # Must we lock files when doing compilation? |
| 33203 | need_locks=$lt_need_locks |
| 33204 | |
| 33205 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
| 33206 | DSYMUTIL=$lt_DSYMUTIL |
| 33207 | |
| 33208 | # Tool to change global to local symbols on Mac OS X. |
| 33209 | NMEDIT=$lt_NMEDIT |
| 33210 | |
| 33211 | # Tool to manipulate fat objects and archives on Mac OS X. |
| 33212 | LIPO=$lt_LIPO |
| 33213 | |
| 33214 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
| 33215 | OTOOL=$lt_OTOOL |
| 33216 | |
| 33217 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
| 33218 | OTOOL64=$lt_OTOOL64 |
| 33219 | |
| 33220 | # Old archive suffix (normally "a"). |
| 33221 | libext=$libext |
| 33222 | |
| 33223 | # Shared library suffix (normally ".so"). |
| 33224 | shrext_cmds=$lt_shrext_cmds |
| 33225 | |
| 33226 | # The commands to extract the exported symbol list from a shared archive. |
| 33227 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 33228 | |
| 33229 | # Variables whose values should be saved in libtool wrapper scripts and |
| 33230 | # restored at link time. |
| 33231 | variables_saved_for_relink=$lt_variables_saved_for_relink |
| 33232 | |
| 33233 | # Do we need the "lib" prefix for modules? |
| 33234 | need_lib_prefix=$need_lib_prefix |
| 33235 | |
| 33236 | # Do we need a version for libraries? |
| 33237 | need_version=$need_version |
| 33238 | |
| 33239 | # Library versioning type. |
| 33240 | version_type=$version_type |
| 33241 | |
| 33242 | # Shared library runtime path variable. |
| 33243 | runpath_var=$runpath_var |
| 33244 | |
| 33245 | # Shared library path variable. |
| 33246 | shlibpath_var=$shlibpath_var |
| 33247 | |
| 33248 | # Is shlibpath searched before the hard-coded library search path? |
| 33249 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 33250 | |
| 33251 | # Format of library name prefix. |
| 33252 | libname_spec=$lt_libname_spec |
| 33253 | |
| 33254 | # List of archive names. First name is the real one, the rest are links. |
| 33255 | # The last name is the one that the linker finds with -lNAME |
| 33256 | library_names_spec=$lt_library_names_spec |
| 33257 | |
| 33258 | # The coded name of the library, if different from the real name. |
| 33259 | soname_spec=$lt_soname_spec |
| 33260 | |
| 33261 | # Command to use after installation of a shared archive. |
| 33262 | postinstall_cmds=$lt_postinstall_cmds |
| 33263 | |
| 33264 | # Command to use after uninstallation of a shared archive. |
| 33265 | postuninstall_cmds=$lt_postuninstall_cmds |
| 33266 | |
| 33267 | # Commands used to finish a libtool library installation in a directory. |
| 33268 | finish_cmds=$lt_finish_cmds |
| 33269 | |
| 33270 | # As "finish_cmds", except a single script fragment to be evaled but |
| 33271 | # not shown. |
| 33272 | finish_eval=$lt_finish_eval |
| 33273 | |
| 33274 | # Whether we should hardcode library paths into libraries. |
| 33275 | hardcode_into_libs=$hardcode_into_libs |
| 33276 | |
| 33277 | # Compile-time system search path for libraries. |
| 33278 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 33279 | |
| 33280 | # Run-time system search path for libraries. |
| 33281 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 33282 | |
| 33283 | # Whether dlopen is supported. |
| 33284 | dlopen_support=$enable_dlopen |
| 33285 | |
| 33286 | # Whether dlopen of programs is supported. |
| 33287 | dlopen_self=$enable_dlopen_self |
| 33288 | |
| 33289 | # Whether dlopen of statically linked programs is supported. |
| 33290 | dlopen_self_static=$enable_dlopen_self_static |
| 33291 | |
| 33292 | # Commands to strip libraries. |
| 33293 | old_striplib=$lt_old_striplib |
| 33294 | striplib=$lt_striplib |
| 33295 | |
| 33296 | |
| 33297 | # The linker used to build libraries. |
| 33298 | LD=$lt_LD |
| 33299 | |
| 33300 | # Commands used to build an old-style archive. |
| 33301 | old_archive_cmds=$lt_old_archive_cmds |
| 33302 | |
| 33303 | # A language specific compiler. |
| 33304 | CC=$lt_compiler |
| 33305 | |
| 33306 | # Is the compiler the GNU compiler? |
| 33307 | with_gcc=$GCC |
| 33308 | |
| 33309 | # Compiler flag to turn off builtin functions. |
| 33310 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
| 33311 | |
| 33312 | # How to pass a linker flag through the compiler. |
| 33313 | wl=$lt_lt_prog_compiler_wl |
| 33314 | |
| 33315 | # Additional compiler flags for building library objects. |
| 33316 | pic_flag=$lt_lt_prog_compiler_pic |
| 33317 | |
| 33318 | # Compiler flag to prevent dynamic linking. |
| 33319 | link_static_flag=$lt_lt_prog_compiler_static |
| 33320 | |
| 33321 | # Does compiler simultaneously support -c and -o options? |
| 33322 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
| 33323 | |
| 33324 | # Whether or not to add -lc for building shared libraries. |
| 33325 | build_libtool_need_lc=$archive_cmds_need_lc |
| 33326 | |
| 33327 | # Whether or not to disallow shared libs when runtime libs are static. |
| 33328 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
| 33329 | |
| 33330 | # Compiler flag to allow reflexive dlopens. |
| 33331 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 33332 | |
| 33333 | # Compiler flag to generate shared objects directly from archives. |
| 33334 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 33335 | |
| 33336 | # Whether the compiler copes with passing no objects directly. |
| 33337 | compiler_needs_object=$lt_compiler_needs_object |
| 33338 | |
| 33339 | # Create an old-style archive from a shared archive. |
| 33340 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 33341 | |
| 33342 | # Create a temporary old-style archive to link instead of a shared archive. |
| 33343 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 33344 | |
| 33345 | # Commands used to build a shared archive. |
| 33346 | archive_cmds=$lt_archive_cmds |
| 33347 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 33348 | |
| 33349 | # Commands used to build a loadable module if different from building |
| 33350 | # a shared archive. |
| 33351 | module_cmds=$lt_module_cmds |
| 33352 | module_expsym_cmds=$lt_module_expsym_cmds |
| 33353 | |
| 33354 | # Whether we are building with GNU ld or not. |
| 33355 | with_gnu_ld=$lt_with_gnu_ld |
| 33356 | |
| 33357 | # Flag that allows shared libraries with undefined symbols to be built. |
| 33358 | allow_undefined_flag=$lt_allow_undefined_flag |
| 33359 | |
| 33360 | # Flag that enforces no undefined symbols. |
| 33361 | no_undefined_flag=$lt_no_undefined_flag |
| 33362 | |
| 33363 | # Flag to hardcode \$libdir into a binary during linking. |
| 33364 | # This must work even if \$libdir does not exist |
| 33365 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 33366 | |
| 33367 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
| 33368 | # during linking. This must work even if \$libdir does not exist. |
| 33369 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
| 33370 | |
| 33371 | # Whether we need a single "-rpath" flag with a separated argument. |
| 33372 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 33373 | |
| 33374 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 33375 | # DIR into the resulting binary. |
| 33376 | hardcode_direct=$hardcode_direct |
| 33377 | |
| 33378 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 33379 | # DIR into the resulting binary and the resulting library dependency is |
| 33380 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the |
| 33381 | # library is relocated. |
| 33382 | hardcode_direct_absolute=$hardcode_direct_absolute |
| 33383 | |
| 33384 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 33385 | # into the resulting binary. |
| 33386 | hardcode_minus_L=$hardcode_minus_L |
| 33387 | |
| 33388 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 33389 | # into the resulting binary. |
| 33390 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 33391 | |
| 33392 | # Set to "yes" if building a shared library automatically hardcodes DIR |
| 33393 | # into the library and all subsequent libraries and executables linked |
| 33394 | # against it. |
| 33395 | hardcode_automatic=$hardcode_automatic |
| 33396 | |
| 33397 | # Set to yes if linker adds runtime paths of dependent libraries |
| 33398 | # to runtime path list. |
| 33399 | inherit_rpath=$inherit_rpath |
| 33400 | |
| 33401 | # Whether libtool must link a program against all its dependency libraries. |
| 33402 | link_all_deplibs=$link_all_deplibs |
| 33403 | |
| 33404 | # Fix the shell variable \$srcfile for the compiler. |
| 33405 | fix_srcfile_path=$lt_fix_srcfile_path |
| 33406 | |
| 33407 | # Set to "yes" if exported symbols are required. |
| 33408 | always_export_symbols=$always_export_symbols |
| 33409 | |
| 33410 | # The commands to list exported symbols. |
| 33411 | export_symbols_cmds=$lt_export_symbols_cmds |
| 33412 | |
| 33413 | # Symbols that should not be listed in the preloaded symbols. |
| 33414 | exclude_expsyms=$lt_exclude_expsyms |
| 33415 | |
| 33416 | # Symbols that must always be exported. |
| 33417 | include_expsyms=$lt_include_expsyms |
| 33418 | |
| 33419 | # Commands necessary for linking programs (against libraries) with templates. |
| 33420 | prelink_cmds=$lt_prelink_cmds |
| 33421 | |
| 33422 | # Specify filename containing input files. |
| 33423 | file_list_spec=$lt_file_list_spec |
| 33424 | |
| 33425 | # How to hardcode a shared library path into an executable. |
| 33426 | hardcode_action=$hardcode_action |
| 33427 | |
| 33428 | # The directories searched by this compiler when creating a shared library. |
| 33429 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs |
| 33430 | |
| 33431 | # Dependencies to place before and after the objects being linked to |
| 33432 | # create a shared library. |
| 33433 | predep_objects=$lt_predep_objects |
| 33434 | postdep_objects=$lt_postdep_objects |
| 33435 | predeps=$lt_predeps |
| 33436 | postdeps=$lt_postdeps |
| 33437 | |
| 33438 | # The library search path used internally by the compiler when linking |
| 33439 | # a shared library. |
| 33440 | compiler_lib_search_path=$lt_compiler_lib_search_path |
| 33441 | |
| 33442 | # ### END LIBTOOL CONFIG |
| 33443 | |
| 33444 | _LT_EOF |
| 33445 | |
| 33446 | case $host_os in |
| 33447 | aix3*) |
| 33448 | cat <<\_LT_EOF >> "$cfgfile" |
| 33449 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 33450 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 33451 | # vanish in a puff of smoke. |
| 33452 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 33453 | COLLECT_NAMES= |
| 33454 | export COLLECT_NAMES |
| 33455 | fi |
| 33456 | _LT_EOF |
| 33457 | ;; |
| 33458 | esac |
| 33459 | |
| 33460 | |
| 33461 | ltmain="$ac_aux_dir/ltmain.sh" |
| 33462 | |
| 33463 | |
| 33464 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 33465 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 33466 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 33467 | # is reportedly fixed, but why not run on old versions too? |
| 33468 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ |
| 33469 | || (rm -f "$cfgfile"; exit 1) |
| 33470 | |
| 33471 | case $xsi_shell in |
| 33472 | yes) |
| 33473 | cat << \_LT_EOF >> "$cfgfile" |
| 33474 | |
| 33475 | # func_dirname file append nondir_replacement |
| 33476 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, |
| 33477 | # otherwise set result to NONDIR_REPLACEMENT. |
| 33478 | func_dirname () |
| 33479 | { |
| 33480 | case ${1} in |
| 33481 | */*) func_dirname_result="${1%/*}${2}" ;; |
| 33482 | * ) func_dirname_result="${3}" ;; |
| 33483 | esac |
| 33484 | } |
| 33485 | |
| 33486 | # func_basename file |
| 33487 | func_basename () |
| 33488 | { |
| 33489 | func_basename_result="${1##*/}" |
| 33490 | } |
| 33491 | |
| 33492 | # func_dirname_and_basename file append nondir_replacement |
| 33493 | # perform func_basename and func_dirname in a single function |
| 33494 | # call: |
| 33495 | # dirname: Compute the dirname of FILE. If nonempty, |
| 33496 | # add APPEND to the result, otherwise set result |
| 33497 | # to NONDIR_REPLACEMENT. |
| 33498 | # value returned in "$func_dirname_result" |
| 33499 | # basename: Compute filename of FILE. |
| 33500 | # value retuned in "$func_basename_result" |
| 33501 | # Implementation must be kept synchronized with func_dirname |
| 33502 | # and func_basename. For efficiency, we do not delegate to |
| 33503 | # those functions but instead duplicate the functionality here. |
| 33504 | func_dirname_and_basename () |
| 33505 | { |
| 33506 | case ${1} in |
| 33507 | */*) func_dirname_result="${1%/*}${2}" ;; |
| 33508 | * ) func_dirname_result="${3}" ;; |
| 33509 | esac |
| 33510 | func_basename_result="${1##*/}" |
| 33511 | } |
| 33512 | |
| 33513 | # func_stripname prefix suffix name |
| 33514 | # strip PREFIX and SUFFIX off of NAME. |
| 33515 | # PREFIX and SUFFIX must not contain globbing or regex special |
| 33516 | # characters, hashes, percent signs, but SUFFIX may contain a leading |
| 33517 | # dot (in which case that matches only a dot). |
| 33518 | func_stripname () |
| 33519 | { |
| 33520 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are |
| 33521 | # positional parameters, so assign one to ordinary parameter first. |
| 33522 | func_stripname_result=${3} |
| 33523 | func_stripname_result=${func_stripname_result#"${1}"} |
| 33524 | func_stripname_result=${func_stripname_result%"${2}"} |
| 33525 | } |
| 33526 | |
| 33527 | # func_opt_split |
| 33528 | func_opt_split () |
| 33529 | { |
| 33530 | func_opt_split_opt=${1%%=*} |
| 33531 | func_opt_split_arg=${1#*=} |
| 33532 | } |
| 33533 | |
| 33534 | # func_lo2o object |
| 33535 | func_lo2o () |
| 33536 | { |
| 33537 | case ${1} in |
| 33538 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; |
| 33539 | *) func_lo2o_result=${1} ;; |
| 33540 | esac |
| 33541 | } |
| 33542 | |
| 33543 | # func_xform libobj-or-source |
| 33544 | func_xform () |
| 33545 | { |
| 33546 | func_xform_result=${1%.*}.lo |
| 33547 | } |
| 33548 | |
| 33549 | # func_arith arithmetic-term... |
| 33550 | func_arith () |
| 33551 | { |
| 33552 | func_arith_result=$(( $* )) |
| 33553 | } |
| 33554 | |
| 33555 | # func_len string |
| 33556 | # STRING may not start with a hyphen. |
| 33557 | func_len () |
| 33558 | { |
| 33559 | func_len_result=${#1} |
| 33560 | } |
| 33561 | |
| 33562 | _LT_EOF |
| 33563 | ;; |
| 33564 | *) # Bourne compatible functions. |
| 33565 | cat << \_LT_EOF >> "$cfgfile" |
| 33566 | |
| 33567 | # func_dirname file append nondir_replacement |
| 33568 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, |
| 33569 | # otherwise set result to NONDIR_REPLACEMENT. |
| 33570 | func_dirname () |
| 33571 | { |
| 33572 | # Extract subdirectory from the argument. |
| 33573 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` |
| 33574 | if test "X$func_dirname_result" = "X${1}"; then |
| 33575 | func_dirname_result="${3}" |
| 33576 | else |
| 33577 | func_dirname_result="$func_dirname_result${2}" |
| 33578 | fi |
| 33579 | } |
| 33580 | |
| 33581 | # func_basename file |
| 33582 | func_basename () |
| 33583 | { |
| 33584 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` |
| 33585 | } |
| 33586 | |
| 33587 | |
| 33588 | # func_stripname prefix suffix name |
| 33589 | # strip PREFIX and SUFFIX off of NAME. |
| 33590 | # PREFIX and SUFFIX must not contain globbing or regex special |
| 33591 | # characters, hashes, percent signs, but SUFFIX may contain a leading |
| 33592 | # dot (in which case that matches only a dot). |
| 33593 | # func_strip_suffix prefix name |
| 33594 | func_stripname () |
| 33595 | { |
| 33596 | case ${2} in |
| 33597 | .*) func_stripname_result=`$ECHO "X${3}" \ |
| 33598 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; |
| 33599 | *) func_stripname_result=`$ECHO "X${3}" \ |
| 33600 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; |
| 33601 | esac |
| 33602 | } |
| 33603 | |
| 33604 | # sed scripts: |
| 33605 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' |
| 33606 | my_sed_long_arg='1s/^-[^=]*=//' |
| 33607 | |
| 33608 | # func_opt_split |
| 33609 | func_opt_split () |
| 33610 | { |
| 33611 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` |
| 33612 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` |
| 33613 | } |
| 33614 | |
| 33615 | # func_lo2o object |
| 33616 | func_lo2o () |
| 33617 | { |
| 33618 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` |
| 33619 | } |
| 33620 | |
| 33621 | # func_xform libobj-or-source |
| 33622 | func_xform () |
| 33623 | { |
| 33624 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` |
| 33625 | } |
| 33626 | |
| 33627 | # func_arith arithmetic-term... |
| 33628 | func_arith () |
| 33629 | { |
| 33630 | func_arith_result=`expr "$@"` |
| 33631 | } |
| 33632 | |
| 33633 | # func_len string |
| 33634 | # STRING may not start with a hyphen. |
| 33635 | func_len () |
| 33636 | { |
| 33637 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` |
| 33638 | } |
| 33639 | |
| 33640 | _LT_EOF |
| 33641 | esac |
| 33642 | |
| 33643 | case $lt_shell_append in |
| 33644 | yes) |
| 33645 | cat << \_LT_EOF >> "$cfgfile" |
| 33646 | |
| 33647 | # func_append var value |
| 33648 | # Append VALUE to the end of shell variable VAR. |
| 33649 | func_append () |
| 33650 | { |
| 33651 | eval "$1+=\$2" |
| 33652 | } |
| 33653 | _LT_EOF |
| 33654 | ;; |
| 33655 | *) |
| 33656 | cat << \_LT_EOF >> "$cfgfile" |
| 33657 | |
| 33658 | # func_append var value |
| 33659 | # Append VALUE to the end of shell variable VAR. |
| 33660 | func_append () |
| 33661 | { |
| 33662 | eval "$1=\$$1\$2" |
| 33663 | } |
| 33664 | |
| 33665 | _LT_EOF |
| 33666 | ;; |
| 33667 | esac |
| 33668 | |
| 33669 | |
| 33670 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ |
| 33671 | || (rm -f "$cfgfile"; exit 1) |
| 33672 | |
| 33673 | mv -f "$cfgfile" "$ofile" || |
| 33674 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 33675 | chmod +x "$ofile" |
| 33676 | |
| 33677 | |
| 33678 | cat <<_LT_EOF >> "$ofile" |
| 33679 | |
| 33680 | # ### BEGIN LIBTOOL TAG CONFIG: CXX |
| 33681 | |
| 33682 | # The linker used to build libraries. |
| 33683 | LD=$lt_LD_CXX |
| 33684 | |
| 33685 | # Commands used to build an old-style archive. |
| 33686 | old_archive_cmds=$lt_old_archive_cmds_CXX |
| 33687 | |
| 33688 | # A language specific compiler. |
| 33689 | CC=$lt_compiler_CXX |
| 33690 | |
| 33691 | # Is the compiler the GNU compiler? |
| 33692 | with_gcc=$GCC_CXX |
| 33693 | |
| 33694 | # Compiler flag to turn off builtin functions. |
| 33695 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| 33696 | |
| 33697 | # How to pass a linker flag through the compiler. |
| 33698 | wl=$lt_lt_prog_compiler_wl_CXX |
| 33699 | |
| 33700 | # Additional compiler flags for building library objects. |
| 33701 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
| 33702 | |
| 33703 | # Compiler flag to prevent dynamic linking. |
| 33704 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
| 33705 | |
| 33706 | # Does compiler simultaneously support -c and -o options? |
| 33707 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| 33708 | |
| 33709 | # Whether or not to add -lc for building shared libraries. |
| 33710 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| 33711 | |
| 33712 | # Whether or not to disallow shared libs when runtime libs are static. |
| 33713 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
| 33714 | |
| 33715 | # Compiler flag to allow reflexive dlopens. |
| 33716 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| 33717 | |
| 33718 | # Compiler flag to generate shared objects directly from archives. |
| 33719 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| 33720 | |
| 33721 | # Whether the compiler copes with passing no objects directly. |
| 33722 | compiler_needs_object=$lt_compiler_needs_object_CXX |
| 33723 | |
| 33724 | # Create an old-style archive from a shared archive. |
| 33725 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| 33726 | |
| 33727 | # Create a temporary old-style archive to link instead of a shared archive. |
| 33728 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| 33729 | |
| 33730 | # Commands used to build a shared archive. |
| 33731 | archive_cmds=$lt_archive_cmds_CXX |
| 33732 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| 33733 | |
| 33734 | # Commands used to build a loadable module if different from building |
| 33735 | # a shared archive. |
| 33736 | module_cmds=$lt_module_cmds_CXX |
| 33737 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
| 33738 | |
| 33739 | # Whether we are building with GNU ld or not. |
| 33740 | with_gnu_ld=$lt_with_gnu_ld_CXX |
| 33741 | |
| 33742 | # Flag that allows shared libraries with undefined symbols to be built. |
| 33743 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| 33744 | |
| 33745 | # Flag that enforces no undefined symbols. |
| 33746 | no_undefined_flag=$lt_no_undefined_flag_CXX |
| 33747 | |
| 33748 | # Flag to hardcode \$libdir into a binary during linking. |
| 33749 | # This must work even if \$libdir does not exist |
| 33750 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| 33751 | |
| 33752 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
| 33753 | # during linking. This must work even if \$libdir does not exist. |
| 33754 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
| 33755 | |
| 33756 | # Whether we need a single "-rpath" flag with a separated argument. |
| 33757 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| 33758 | |
| 33759 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 33760 | # DIR into the resulting binary. |
| 33761 | hardcode_direct=$hardcode_direct_CXX |
| 33762 | |
| 33763 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 33764 | # DIR into the resulting binary and the resulting library dependency is |
| 33765 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the |
| 33766 | # library is relocated. |
| 33767 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX |
| 33768 | |
| 33769 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 33770 | # into the resulting binary. |
| 33771 | hardcode_minus_L=$hardcode_minus_L_CXX |
| 33772 | |
| 33773 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 33774 | # into the resulting binary. |
| 33775 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| 33776 | |
| 33777 | # Set to "yes" if building a shared library automatically hardcodes DIR |
| 33778 | # into the library and all subsequent libraries and executables linked |
| 33779 | # against it. |
| 33780 | hardcode_automatic=$hardcode_automatic_CXX |
| 33781 | |
| 33782 | # Set to yes if linker adds runtime paths of dependent libraries |
| 33783 | # to runtime path list. |
| 33784 | inherit_rpath=$inherit_rpath_CXX |
| 33785 | |
| 33786 | # Whether libtool must link a program against all its dependency libraries. |
| 33787 | link_all_deplibs=$link_all_deplibs_CXX |
| 33788 | |
| 33789 | # Fix the shell variable \$srcfile for the compiler. |
| 33790 | fix_srcfile_path=$lt_fix_srcfile_path_CXX |
| 33791 | |
| 33792 | # Set to "yes" if exported symbols are required. |
| 33793 | always_export_symbols=$always_export_symbols_CXX |
| 33794 | |
| 33795 | # The commands to list exported symbols. |
| 33796 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| 33797 | |
| 33798 | # Symbols that should not be listed in the preloaded symbols. |
| 33799 | exclude_expsyms=$lt_exclude_expsyms_CXX |
| 33800 | |
| 33801 | # Symbols that must always be exported. |
| 33802 | include_expsyms=$lt_include_expsyms_CXX |
| 33803 | |
| 33804 | # Commands necessary for linking programs (against libraries) with templates. |
| 33805 | prelink_cmds=$lt_prelink_cmds_CXX |
| 33806 | |
| 33807 | # Specify filename containing input files. |
| 33808 | file_list_spec=$lt_file_list_spec_CXX |
| 33809 | |
| 33810 | # How to hardcode a shared library path into an executable. |
| 33811 | hardcode_action=$hardcode_action_CXX |
| 33812 | |
| 33813 | # The directories searched by this compiler when creating a shared library. |
| 33814 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX |
| 33815 | |
| 33816 | # Dependencies to place before and after the objects being linked to |
| 33817 | # create a shared library. |
| 33818 | predep_objects=$lt_predep_objects_CXX |
| 33819 | postdep_objects=$lt_postdep_objects_CXX |
| 33820 | predeps=$lt_predeps_CXX |
| 33821 | postdeps=$lt_postdeps_CXX |
| 33822 | |
| 33823 | # The library search path used internally by the compiler when linking |
| 33824 | # a shared library. |
| 33825 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| 33826 | |
| 33827 | # ### END LIBTOOL TAG CONFIG: CXX |
| 33828 | _LT_EOF |
| 33829 | |
| 33830 | ;; |
| 33831 | "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;; |
| 33832 | "Magick-config.in":C) chmod +x magick/Magick-config ;; |
| 33833 | "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;; |
| 33834 | "Wand-config.in":C) chmod +x wand/Wand-config ;; |
| 33835 | "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;; |
| 33836 | "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;; |
| 33837 | |
| 33838 | esac |
| 33839 | done # for ac_tag |
| 33840 | |
| 33841 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 33842 | as_fn_exit 0 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33843 | _ACEOF |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33844 | ac_clean_files=$ac_clean_files_save |
| 33845 | |
| 33846 | test $ac_write_fail = 0 || |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 33847 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33848 | |
| 33849 | |
| 33850 | # configure is writing to config.log, and then calls config.status. |
| 33851 | # config.status does its own redirection, appending to config.log. |
| 33852 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 33853 | # by configure, so config.status won't be able to write to it; its |
| 33854 | # output is simply discarded. So we exec the FD to /dev/null, |
| 33855 | # effectively closing config.log, so it can be properly (re)opened and |
| 33856 | # appended to by config.status. When coming back to configure, we |
| 33857 | # need to make the FD available again. |
| 33858 | if test "$no_create" != yes; then |
| 33859 | ac_cs_success=: |
| 33860 | ac_config_status_args= |
| 33861 | test "$silent" = yes && |
| 33862 | ac_config_status_args="$ac_config_status_args --quiet" |
| 33863 | exec 5>/dev/null |
| 33864 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 33865 | exec 5>>config.log |
| 33866 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 33867 | # would make configure fail if this is the last instruction. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 33868 | $ac_cs_success || as_fn_exit $? |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33869 | fi |
| 33870 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 33871 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33872 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 33873 | fi |
| 33874 | |
| 33875 | |
| 33876 | rm -f magick-version |
| 33877 | |
| 33878 | result_ghostscript_font_dir='none' |
| 33879 | if test "${ghostscript_font_dir}x" != 'x'; then |
| 33880 | result_ghostscript_font_dir=$ghostscript_font_dir |
| 33881 | fi |
| 33882 | |
| 33883 | result_windows_font_dir='none' |
| 33884 | if test "${windows_font_dir}x" != 'x'; then |
| 33885 | result_windows_font_dir=${windows_font_dir} |
| 33886 | fi |
| 33887 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame^] | 33888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33889 | ImageMagick is configured as follows. Please verify that this configuration |
| 33890 | matches your expectations. |
| 33891 | |
| 33892 | Host system type: $host |
| 33893 | Build system type: $build |
| 33894 | |
| 33895 | Option Value |
| 33896 | ------------------------------------------------------------------------------- |
| 33897 | Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs |
| 33898 | Static libraries --enable-static=$enable_static $libtool_build_static_libs |
| 33899 | Module support --with-modules=$with_modules $with_modules |
| 33900 | GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld |
| 33901 | Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth |
| 33902 | High Dynamic Range Imagery |
| 33903 | --enable-hdri=$enable_hdri $enable_hdri |
| 33904 | |
| 33905 | Delegate Configuration: |
| 33906 | BZLIB --with-bzlib=$with_bzlib $have_bzlib |
| 33907 | Autotrace --with-autotrace=$with_autotrace $have_autotrace |
| 33908 | DJVU --with-djvu=$with_djvu $have_djvu |
| 33909 | DPS --with-dps=$with_dps $have_dps |
| 33910 | FFTW --with-fftw=$with_fftw $have_fftw |
| 33911 | FlashPIX --with-fpx=$with_fpx $have_fpx |
| 33912 | FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig |
| 33913 | FreeType --with-freetype=$with_freetype $have_freetype |
| 33914 | GhostPCL None $PCLDelegate ($PCLVersion) |
| 33915 | GhostXPS None $XPSDelegate ($XPSVersion) |
| 33916 | Ghostscript None $PSDelegate ($GSVersion) |
| 33917 | Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir |
| 33918 | Ghostscript lib --with-gslib=$with_gslib $have_gslib |
| 33919 | Graphviz --with-gvc=$with_gvc $have_gvc |
| 33920 | JBIG --with-jbig=$with_jbig $have_jbig |
| 33921 | JPEG v1 --with-jpeg=$with_jpeg $have_jpeg |
| 33922 | JPEG-2000 --with-jp2=$with_jp2 $have_jp2 |
| 33923 | LCMS --with-lcms=$with_lcms $have_lcms |
| 33924 | LQR --with-lqr=$with_lqr $have_lqr |
| 33925 | Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus |
| 33926 | OpenEXR --with-openexr=$with_openexr $have_openexr |
| 33927 | PERL --with-perl=$with_perl $have_perl |
| 33928 | PNG --with-png=$with_png $have_png |
| 33929 | RSVG --with-rsvg=$with_rsvg $have_rsvg |
| 33930 | TIFF --with-tiff=$with_tiff $have_tiff |
| 33931 | Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir |
| 33932 | WMF --with-wmf=$with_wmf $have_wmf |
| 33933 | X11 --with-x=$with_x $have_x |
| 33934 | XML --with-xml=$with_xml $have_xml |
| 33935 | ZLIB --with-zlib=$with_zlib $have_zlib |
| 33936 | |
| 33937 | X11 Configuration: |
| 33938 | X_CFLAGS = $X_CFLAGS |
| 33939 | X_PRE_LIBS = $X_PRE_LIBS |
| 33940 | X_LIBS = $X_LIBS |
| 33941 | X_EXTRA_LIBS = $X_EXTRA_LIBS |
| 33942 | |
| 33943 | Options used to compile and link: |
| 33944 | PREFIX = $PREFIX_DIR |
| 33945 | EXEC-PREFIX = $EXEC_PREFIX_DIR |
| 33946 | VERSION = $PACKAGE_VERSION |
| 33947 | CC = $CC |
| 33948 | CFLAGS = $CFLAGS |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33949 | CPPFLAGS = $MAGICK_CPPFLAGS |
| 33950 | PCFLAGS = $MAGICK_PCFLAGS |
| 33951 | DEFS = $DEFS |
| 33952 | LDFLAGS = $LDFLAGS |
| 33953 | MAGICK_LDFLAGS = $MAGICK_LDFLAGS |
| 33954 | LIBS = $MAGICK_LIBS |
| 33955 | CXX = $CXX |
| 33956 | CXXFLAGS = $CXXFLAGS |
| 33957 | " >&5 |
| 33958 | $as_echo " |
| 33959 | ImageMagick is configured as follows. Please verify that this configuration |
| 33960 | matches your expectations. |
| 33961 | |
| 33962 | Host system type: $host |
| 33963 | Build system type: $build |
| 33964 | |
| 33965 | Option Value |
| 33966 | ------------------------------------------------------------------------------- |
| 33967 | Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs |
| 33968 | Static libraries --enable-static=$enable_static $libtool_build_static_libs |
| 33969 | Module support --with-modules=$with_modules $with_modules |
| 33970 | GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld |
| 33971 | Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth |
| 33972 | High Dynamic Range Imagery |
| 33973 | --enable-hdri=$enable_hdri $enable_hdri |
| 33974 | |
| 33975 | Delegate Configuration: |
| 33976 | BZLIB --with-bzlib=$with_bzlib $have_bzlib |
| 33977 | Autotrace --with-autotrace=$with_autotrace $have_autotrace |
| 33978 | DJVU --with-djvu=$with_djvu $have_djvu |
| 33979 | DPS --with-dps=$with_dps $have_dps |
| 33980 | FFTW --with-fftw=$with_fftw $have_fftw |
| 33981 | FlashPIX --with-fpx=$with_fpx $have_fpx |
| 33982 | FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig |
| 33983 | FreeType --with-freetype=$with_freetype $have_freetype |
| 33984 | GhostPCL None $PCLDelegate ($PCLVersion) |
| 33985 | GhostXPS None $XPSDelegate ($XPSVersion) |
| 33986 | Ghostscript None $PSDelegate ($GSVersion) |
| 33987 | Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir |
| 33988 | Ghostscript lib --with-gslib=$with_gslib $have_gslib |
| 33989 | Graphviz --with-gvc=$with_gvc $have_gvc |
| 33990 | JBIG --with-jbig=$with_jbig $have_jbig |
| 33991 | JPEG v1 --with-jpeg=$with_jpeg $have_jpeg |
| 33992 | JPEG-2000 --with-jp2=$with_jp2 $have_jp2 |
| 33993 | LCMS --with-lcms=$with_lcms $have_lcms |
| 33994 | LQR --with-lqr=$with_lqr $have_lqr |
| 33995 | Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus |
| 33996 | OpenEXR --with-openexr=$with_openexr $have_openexr |
| 33997 | PERL --with-perl=$with_perl $have_perl |
| 33998 | PNG --with-png=$with_png $have_png |
| 33999 | RSVG --with-rsvg=$with_rsvg $have_rsvg |
| 34000 | TIFF --with-tiff=$with_tiff $have_tiff |
| 34001 | Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir |
| 34002 | WMF --with-wmf=$with_wmf $have_wmf |
| 34003 | X11 --with-x=$with_x $have_x |
| 34004 | XML --with-xml=$with_xml $have_xml |
| 34005 | ZLIB --with-zlib=$with_zlib $have_zlib |
| 34006 | |
| 34007 | X11 Configuration: |
| 34008 | X_CFLAGS = $X_CFLAGS |
| 34009 | X_PRE_LIBS = $X_PRE_LIBS |
| 34010 | X_LIBS = $X_LIBS |
| 34011 | X_EXTRA_LIBS = $X_EXTRA_LIBS |
| 34012 | |
| 34013 | Options used to compile and link: |
| 34014 | PREFIX = $PREFIX_DIR |
| 34015 | EXEC-PREFIX = $EXEC_PREFIX_DIR |
| 34016 | VERSION = $PACKAGE_VERSION |
| 34017 | CC = $CC |
| 34018 | CFLAGS = $CFLAGS |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34019 | CPPFLAGS = $MAGICK_CPPFLAGS |
| 34020 | PCFLAGS = $MAGICK_PCFLAGS |
| 34021 | DEFS = $DEFS |
| 34022 | LDFLAGS = $LDFLAGS |
| 34023 | MAGICK_LDFLAGS = $MAGICK_LDFLAGS |
| 34024 | LIBS = $MAGICK_LIBS |
| 34025 | CXX = $CXX |
| 34026 | CXXFLAGS = $CXXFLAGS |
| 34027 | " >&6; } |